@superdoc-dev/sdk 1.8.0-next.5 → 1.8.0-next.52

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;
@@ -4463,6 +4493,33 @@ export interface DocCommentsCreateParams {
4463
4493
  end: number;
4464
4494
  };
4465
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
+ });
4466
4523
  });
4467
4524
  parentId?: string;
4468
4525
  blockId?: string;
@@ -8182,6 +8239,33 @@ export interface DocBookmarksListParams {
8182
8239
  sessionId?: string;
8183
8240
  limit?: number;
8184
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
+ });
8185
8269
  }
8186
8270
  export interface DocBookmarksGetParams {
8187
8271
  doc?: string;
@@ -8190,6 +8274,33 @@ export interface DocBookmarksGetParams {
8190
8274
  kind: "entity";
8191
8275
  entityType: "bookmark";
8192
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
+ });
8193
8304
  };
8194
8305
  }
8195
8306
  export interface DocBookmarksInsertParams {
@@ -8210,6 +8321,33 @@ export interface DocBookmarksInsertParams {
8210
8321
  end: number;
8211
8322
  };
8212
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
+ });
8213
8351
  };
8214
8352
  tableColumn?: {
8215
8353
  colFirst: number;
@@ -8228,6 +8366,33 @@ export interface DocBookmarksRenameParams {
8228
8366
  kind: "entity";
8229
8367
  entityType: "bookmark";
8230
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
+ });
8231
8396
  };
8232
8397
  newName: string;
8233
8398
  }
@@ -8243,6 +8408,33 @@ export interface DocBookmarksRemoveParams {
8243
8408
  kind: "entity";
8244
8409
  entityType: "bookmark";
8245
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
+ });
8246
8438
  };
8247
8439
  }
8248
8440
  export interface DocFootnotesListParams {
@@ -8278,6 +8470,33 @@ export interface DocFootnotesInsertParams {
8278
8470
  end: number;
8279
8471
  };
8280
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
+ });
8281
8500
  };
8282
8501
  type: string;
8283
8502
  content: string;
@@ -8376,6 +8595,33 @@ export interface DocCrossRefsInsertParams {
8376
8595
  end: number;
8377
8596
  };
8378
8597
  }>;
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
+ });
8379
8625
  };
8380
8626
  target: ({
8381
8627
  kind: "bookmark";
@@ -8602,19 +8848,46 @@ export interface DocIndexEntriesInsertParams {
8602
8848
  end: number;
8603
8849
  };
8604
8850
  }>;
8605
- };
8606
- entry: {
8607
- text: string;
8608
- subEntry?: string;
8609
- bold?: boolean;
8610
- italic?: boolean;
8611
- crossReference?: string;
8612
- pageRangeBookmark?: string;
8613
- entryType?: string;
8614
- yomi?: string;
8615
- };
8616
- }
8617
- export interface DocIndexEntriesUpdateParams {
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
+ });
8878
+ };
8879
+ entry: {
8880
+ text: string;
8881
+ subEntry?: string;
8882
+ bold?: boolean;
8883
+ italic?: boolean;
8884
+ crossReference?: string;
8885
+ pageRangeBookmark?: string;
8886
+ entryType?: string;
8887
+ yomi?: string;
8888
+ };
8889
+ }
8890
+ export interface DocIndexEntriesUpdateParams {
8618
8891
  doc?: string;
8619
8892
  sessionId?: string;
8620
8893
  out?: string;
@@ -8781,6 +9054,33 @@ export interface DocFieldsInsertParams {
8781
9054
  end: number;
8782
9055
  };
8783
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
+ });
8784
9084
  };
8785
9085
  instruction: string;
8786
9086
  }
@@ -8856,6 +9156,33 @@ export interface DocCitationsInsertParams {
8856
9156
  end: number;
8857
9157
  };
8858
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
+ });
8859
9186
  };
8860
9187
  sourceIds: string[];
8861
9188
  }
@@ -9248,6 +9575,33 @@ export interface DocAuthoritiesEntriesInsertParams {
9248
9575
  end: number;
9249
9576
  };
9250
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
+ });
9251
9605
  };
9252
9606
  entry: {
9253
9607
  longCitation: string;
@@ -9707,6 +10061,13 @@ export type DocExtractResult = {
9707
10061
  nodeId: string;
9708
10062
  type: string;
9709
10063
  text: string;
10064
+ textSpans?: Array<{
10065
+ text: string;
10066
+ trackedChanges?: Array<{
10067
+ entityId: string;
10068
+ type: "insert" | "delete" | "format";
10069
+ }>;
10070
+ }>;
9710
10071
  headingLevel?: number;
9711
10072
  tableContext?: {
9712
10073
  tableOrdinal: number;
@@ -9730,6 +10091,12 @@ export type DocExtractResult = {
9730
10091
  trackedChanges: Array<{
9731
10092
  entityId: string;
9732
10093
  type: "insert" | "delete" | "format";
10094
+ blockIds?: Array<string>;
10095
+ wordRevisionIds?: {
10096
+ insert?: string;
10097
+ delete?: string;
10098
+ format?: string;
10099
+ };
9733
10100
  excerpt?: string;
9734
10101
  author?: string;
9735
10102
  date?: string;
@@ -18621,6 +18988,18 @@ export type DocListsSeparateResult = {
18621
18988
  listId: string;
18622
18989
  numId: number;
18623
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
+ };
18624
19003
  export type DocListsSetLevelResult = {
18625
19004
  success: true;
18626
19005
  item: {
@@ -19199,6 +19578,33 @@ export type DocCommentsGetResult = {
19199
19578
  end: number;
19200
19579
  };
19201
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
+ });
19202
19608
  };
19203
19609
  anchoredText?: string;
19204
19610
  createdTime?: number;
@@ -19234,6 +19640,33 @@ export type DocCommentsListResult = {
19234
19640
  end: number;
19235
19641
  };
19236
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
+ });
19237
19670
  };
19238
19671
  anchoredText?: string;
19239
19672
  createdTime?: number;
@@ -19690,8 +20123,37 @@ export type DocSelectionCurrentResult = {
19690
20123
  end: number;
19691
20124
  };
19692
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
+ });
19693
20153
  }) | null;
19694
20154
  activeMarks: Array<string>;
20155
+ activeCommentIds: Array<string>;
20156
+ activeChangeIds: Array<string>;
19695
20157
  text?: string;
19696
20158
  };
19697
20159
  export type DocMutationsPreviewResult = {
@@ -20687,6 +21149,18 @@ export type DocCapabilitiesGetResult = {
20687
21149
  dryRun: boolean;
20688
21150
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
20689
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
+ };
20690
21164
  "lists.setLevel": {
20691
21165
  available: boolean;
20692
21166
  tracked: boolean;
@@ -25290,6 +25764,33 @@ export type DocBookmarksInsertResult = {
25290
25764
  kind: "entity";
25291
25765
  entityType: "bookmark";
25292
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
+ });
25293
25794
  };
25294
25795
  };
25295
25796
  export type DocBookmarksRenameResult = {
@@ -25298,14 +25799,68 @@ export type DocBookmarksRenameResult = {
25298
25799
  kind: "entity";
25299
25800
  entityType: "bookmark";
25300
25801
  name: string;
25301
- };
25302
- };
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
+ });
25829
+ };
25830
+ };
25303
25831
  export type DocBookmarksRemoveResult = {
25304
25832
  success: true;
25305
25833
  bookmark: {
25306
25834
  kind: "entity";
25307
25835
  entityType: "bookmark";
25308
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
+ });
25309
25864
  };
25310
25865
  };
25311
25866
  export type DocFootnotesListResult = Record<string, unknown>;
@@ -29767,6 +30322,32 @@ export interface DocListsSeparateBoundParams {
29767
30322
  input?: Record<string, unknown> | unknown[];
29768
30323
  nodeId?: string;
29769
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
+ }
29770
30351
  export interface DocListsSetLevelBoundParams {
29771
30352
  out?: string;
29772
30353
  force?: boolean;
@@ -30181,6 +30762,33 @@ export interface DocCommentsCreateBoundParams {
30181
30762
  end: number;
30182
30763
  };
30183
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
+ });
30184
30792
  });
30185
30793
  parentId?: string;
30186
30794
  blockId?: string;
@@ -33557,12 +34165,66 @@ export interface DocContentControlsGroupUngroupBoundParams {
33557
34165
  export interface DocBookmarksListBoundParams {
33558
34166
  limit?: number;
33559
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
+ });
33560
34195
  }
33561
34196
  export interface DocBookmarksGetBoundParams {
33562
34197
  target: {
33563
34198
  kind: "entity";
33564
34199
  entityType: "bookmark";
33565
34200
  name: string;
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
+ });
33566
34228
  };
33567
34229
  }
33568
34230
  export interface DocBookmarksInsertBoundParams {
@@ -33581,6 +34243,33 @@ export interface DocBookmarksInsertBoundParams {
33581
34243
  end: number;
33582
34244
  };
33583
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
+ });
33584
34273
  };
33585
34274
  tableColumn?: {
33586
34275
  colFirst: number;
@@ -33597,6 +34286,33 @@ export interface DocBookmarksRenameBoundParams {
33597
34286
  kind: "entity";
33598
34287
  entityType: "bookmark";
33599
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
+ });
33600
34316
  };
33601
34317
  newName: string;
33602
34318
  }
@@ -33610,6 +34326,33 @@ export interface DocBookmarksRemoveBoundParams {
33610
34326
  kind: "entity";
33611
34327
  entityType: "bookmark";
33612
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
+ });
33613
34356
  };
33614
34357
  }
33615
34358
  export interface DocFootnotesListBoundParams {
@@ -33639,6 +34382,33 @@ export interface DocFootnotesInsertBoundParams {
33639
34382
  end: number;
33640
34383
  };
33641
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
+ });
33642
34412
  };
33643
34413
  type: string;
33644
34414
  content: string;
@@ -33725,6 +34495,33 @@ export interface DocCrossRefsInsertBoundParams {
33725
34495
  end: number;
33726
34496
  };
33727
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
+ });
33728
34525
  };
33729
34526
  target: ({
33730
34527
  kind: "bookmark";
@@ -33929,6 +34726,33 @@ export interface DocIndexEntriesInsertBoundParams {
33929
34726
  end: number;
33930
34727
  };
33931
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
+ });
33932
34756
  };
33933
34757
  entry: {
33934
34758
  text: string;
@@ -34086,6 +34910,33 @@ export interface DocFieldsInsertBoundParams {
34086
34910
  end: number;
34087
34911
  };
34088
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
+ });
34089
34940
  };
34090
34941
  instruction: string;
34091
34942
  }
@@ -34151,6 +35002,33 @@ export interface DocCitationsInsertBoundParams {
34151
35002
  end: number;
34152
35003
  };
34153
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
+ });
34154
35032
  };
34155
35033
  sourceIds: string[];
34156
35034
  }
@@ -34501,6 +35379,33 @@ export interface DocAuthoritiesEntriesInsertBoundParams {
34501
35379
  end: number;
34502
35380
  };
34503
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
+ });
34504
35409
  };
34505
35410
  entry: {
34506
35411
  longCitation: string;
@@ -34870,6 +35775,8 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
34870
35775
  join: (params?: DocListsJoinParams, options?: InvokeOptions) => Promise<DocListsJoinResult>;
34871
35776
  canJoin: (params?: DocListsCanJoinParams, options?: InvokeOptions) => Promise<DocListsCanJoinResult>;
34872
35777
  separate: (params?: DocListsSeparateParams, options?: InvokeOptions) => Promise<DocListsSeparateResult>;
35778
+ merge: (params: DocListsMergeParams, options?: InvokeOptions) => Promise<DocListsMergeResult>;
35779
+ split: (params: DocListsSplitParams, options?: InvokeOptions) => Promise<DocListsSplitResult>;
34873
35780
  setLevel: (params?: DocListsSetLevelParams, options?: InvokeOptions) => Promise<DocListsSetLevelResult>;
34874
35781
  setValue: (params?: DocListsSetValueParams, options?: InvokeOptions) => Promise<DocListsSetValueResult>;
34875
35782
  continuePrevious: (params?: DocListsContinuePreviousParams, options?: InvokeOptions) => Promise<DocListsContinuePreviousResult>;
@@ -35365,6 +36272,8 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
35365
36272
  join: (params?: DocListsJoinBoundParams, options?: InvokeOptions) => Promise<DocListsJoinResult>;
35366
36273
  canJoin: (params?: DocListsCanJoinBoundParams, options?: InvokeOptions) => Promise<DocListsCanJoinResult>;
35367
36274
  separate: (params?: DocListsSeparateBoundParams, options?: InvokeOptions) => Promise<DocListsSeparateResult>;
36275
+ merge: (params: DocListsMergeBoundParams, options?: InvokeOptions) => Promise<DocListsMergeResult>;
36276
+ split: (params: DocListsSplitBoundParams, options?: InvokeOptions) => Promise<DocListsSplitResult>;
35368
36277
  setLevel: (params?: DocListsSetLevelBoundParams, options?: InvokeOptions) => Promise<DocListsSetLevelResult>;
35369
36278
  setValue: (params?: DocListsSetValueBoundParams, options?: InvokeOptions) => Promise<DocListsSetValueResult>;
35370
36279
  continuePrevious: (params?: DocListsContinuePreviousBoundParams, options?: InvokeOptions) => Promise<DocListsContinuePreviousResult>;