@superdoc/sdk 2.27.0 → 2.28.0-next.16

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.
@@ -26430,7 +26430,7 @@ export interface DocTablesConvertFromTextParams {
26430
26430
  expectedRevision?: string;
26431
26431
  changeMode?: string;
26432
26432
  dryRun?: boolean;
26433
- target?: {
26433
+ target?: ({
26434
26434
  kind: "block";
26435
26435
  nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
26436
26436
  nodeId: string;
@@ -26465,7 +26465,192 @@ export interface DocTablesConvertFromTextParams {
26465
26465
  storyType: "textbox";
26466
26466
  textboxId: string;
26467
26467
  });
26468
- };
26468
+ }) | ({
26469
+ captureState?: string;
26470
+ kind: "selection";
26471
+ start: ({
26472
+ kind: "text";
26473
+ blockId: string;
26474
+ offset: number;
26475
+ story?: ({
26476
+ kind: "story";
26477
+ storyType: "body";
26478
+ }) | ({
26479
+ kind: "story";
26480
+ storyType: "headerFooterSlot";
26481
+ section: {
26482
+ kind: "section";
26483
+ sectionId: string;
26484
+ };
26485
+ headerFooterKind: "header" | "footer";
26486
+ variant: "default" | "first" | "even";
26487
+ resolution?: "effective" | "explicit";
26488
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
26489
+ }) | ({
26490
+ kind: "story";
26491
+ storyType: "headerFooterPart";
26492
+ refId: string;
26493
+ }) | ({
26494
+ kind: "story";
26495
+ storyType: "footnote";
26496
+ noteId: string;
26497
+ }) | ({
26498
+ kind: "story";
26499
+ storyType: "endnote";
26500
+ noteId: string;
26501
+ }) | ({
26502
+ kind: "story";
26503
+ storyType: "textbox";
26504
+ textboxId: string;
26505
+ });
26506
+ }) | ({
26507
+ kind: "nodeEdge";
26508
+ node: {
26509
+ kind: "block";
26510
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
26511
+ nodeId: string;
26512
+ story?: ({
26513
+ kind: "story";
26514
+ storyType: "body";
26515
+ }) | ({
26516
+ kind: "story";
26517
+ storyType: "headerFooterSlot";
26518
+ section: {
26519
+ kind: "section";
26520
+ sectionId: string;
26521
+ };
26522
+ headerFooterKind: "header" | "footer";
26523
+ variant: "default" | "first" | "even";
26524
+ resolution?: "effective" | "explicit";
26525
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
26526
+ }) | ({
26527
+ kind: "story";
26528
+ storyType: "headerFooterPart";
26529
+ refId: string;
26530
+ }) | ({
26531
+ kind: "story";
26532
+ storyType: "footnote";
26533
+ noteId: string;
26534
+ }) | ({
26535
+ kind: "story";
26536
+ storyType: "endnote";
26537
+ noteId: string;
26538
+ }) | ({
26539
+ kind: "story";
26540
+ storyType: "textbox";
26541
+ textboxId: string;
26542
+ });
26543
+ };
26544
+ edge: "before" | "after";
26545
+ });
26546
+ end: ({
26547
+ kind: "text";
26548
+ blockId: string;
26549
+ offset: number;
26550
+ story?: ({
26551
+ kind: "story";
26552
+ storyType: "body";
26553
+ }) | ({
26554
+ kind: "story";
26555
+ storyType: "headerFooterSlot";
26556
+ section: {
26557
+ kind: "section";
26558
+ sectionId: string;
26559
+ };
26560
+ headerFooterKind: "header" | "footer";
26561
+ variant: "default" | "first" | "even";
26562
+ resolution?: "effective" | "explicit";
26563
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
26564
+ }) | ({
26565
+ kind: "story";
26566
+ storyType: "headerFooterPart";
26567
+ refId: string;
26568
+ }) | ({
26569
+ kind: "story";
26570
+ storyType: "footnote";
26571
+ noteId: string;
26572
+ }) | ({
26573
+ kind: "story";
26574
+ storyType: "endnote";
26575
+ noteId: string;
26576
+ }) | ({
26577
+ kind: "story";
26578
+ storyType: "textbox";
26579
+ textboxId: string;
26580
+ });
26581
+ }) | ({
26582
+ kind: "nodeEdge";
26583
+ node: {
26584
+ kind: "block";
26585
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
26586
+ nodeId: string;
26587
+ story?: ({
26588
+ kind: "story";
26589
+ storyType: "body";
26590
+ }) | ({
26591
+ kind: "story";
26592
+ storyType: "headerFooterSlot";
26593
+ section: {
26594
+ kind: "section";
26595
+ sectionId: string;
26596
+ };
26597
+ headerFooterKind: "header" | "footer";
26598
+ variant: "default" | "first" | "even";
26599
+ resolution?: "effective" | "explicit";
26600
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
26601
+ }) | ({
26602
+ kind: "story";
26603
+ storyType: "headerFooterPart";
26604
+ refId: string;
26605
+ }) | ({
26606
+ kind: "story";
26607
+ storyType: "footnote";
26608
+ noteId: string;
26609
+ }) | ({
26610
+ kind: "story";
26611
+ storyType: "endnote";
26612
+ noteId: string;
26613
+ }) | ({
26614
+ kind: "story";
26615
+ storyType: "textbox";
26616
+ textboxId: string;
26617
+ });
26618
+ };
26619
+ edge: "before" | "after";
26620
+ });
26621
+ story?: ({
26622
+ kind: "story";
26623
+ storyType: "body";
26624
+ }) | ({
26625
+ kind: "story";
26626
+ storyType: "headerFooterSlot";
26627
+ section: {
26628
+ kind: "section";
26629
+ sectionId: string;
26630
+ };
26631
+ headerFooterKind: "header" | "footer";
26632
+ variant: "default" | "first" | "even";
26633
+ resolution?: "effective" | "explicit";
26634
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
26635
+ }) | ({
26636
+ kind: "story";
26637
+ storyType: "headerFooterPart";
26638
+ refId: string;
26639
+ }) | ({
26640
+ kind: "story";
26641
+ storyType: "footnote";
26642
+ noteId: string;
26643
+ }) | ({
26644
+ kind: "story";
26645
+ storyType: "endnote";
26646
+ noteId: string;
26647
+ }) | ({
26648
+ kind: "story";
26649
+ storyType: "textbox";
26650
+ textboxId: string;
26651
+ });
26652
+ coordinateSpace?: "visible" | "tracked";
26653
+ });
26469
26654
  nodeId?: string;
26470
26655
  delimiter?: "tab" | "comma" | "paragraph" | ({
26471
26656
  custom: string;
@@ -32478,6 +32663,7 @@ export interface DocFootnotesGetParams {
32478
32663
  kind: "entity";
32479
32664
  entityType: "footnote";
32480
32665
  noteId: string;
32666
+ noteType?: "footnote" | "endnote";
32481
32667
  };
32482
32668
  }
32483
32669
  export interface DocFootnotesInsertParams {
@@ -32549,6 +32735,7 @@ export interface DocFootnotesUpdateParams {
32549
32735
  kind: "entity";
32550
32736
  entityType: "footnote";
32551
32737
  noteId: string;
32738
+ noteType?: "footnote" | "endnote";
32552
32739
  };
32553
32740
  patch: ({
32554
32741
  content: string;
@@ -32569,6 +32756,7 @@ export interface DocFootnotesRemoveParams {
32569
32756
  kind: "entity";
32570
32757
  entityType: "footnote";
32571
32758
  noteId: string;
32759
+ noteType?: "footnote" | "endnote";
32572
32760
  };
32573
32761
  }
32574
32762
  export interface DocFootnotesConfigureParams {
@@ -34147,6 +34335,7 @@ export interface DocDiffCompareParams {
34147
34335
  };
34148
34336
  payload: Record<string, unknown>;
34149
34337
  };
34338
+ includeDisplay?: boolean;
34150
34339
  styleChangeMode?: "direct" | "tracked";
34151
34340
  }
34152
34341
  export interface DocDiffApplyParams {
@@ -34209,6 +34398,140 @@ export interface DocDiffApplyParams {
34209
34398
  }>;
34210
34399
  };
34211
34400
  };
34401
+ display?: {
34402
+ changes: Array<{
34403
+ id: string;
34404
+ kind: "insert" | "delete" | "replace" | "format" | "move";
34405
+ before: ({
34406
+ text: string;
34407
+ target: {
34408
+ captureState?: string;
34409
+ kind: "text";
34410
+ blockId: string;
34411
+ range: {
34412
+ start: number;
34413
+ end: number;
34414
+ };
34415
+ story?: ({
34416
+ kind: "story";
34417
+ storyType: "body";
34418
+ }) | ({
34419
+ kind: "story";
34420
+ storyType: "headerFooterSlot";
34421
+ section: {
34422
+ kind: "section";
34423
+ sectionId: string;
34424
+ };
34425
+ headerFooterKind: "header" | "footer";
34426
+ variant: "default" | "first" | "even";
34427
+ resolution?: "effective" | "explicit";
34428
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34429
+ }) | ({
34430
+ kind: "story";
34431
+ storyType: "headerFooterPart";
34432
+ refId: string;
34433
+ }) | ({
34434
+ kind: "story";
34435
+ storyType: "footnote";
34436
+ noteId: string;
34437
+ }) | ({
34438
+ kind: "story";
34439
+ storyType: "endnote";
34440
+ noteId: string;
34441
+ }) | ({
34442
+ kind: "story";
34443
+ storyType: "textbox";
34444
+ textboxId: string;
34445
+ });
34446
+ };
34447
+ }) | unknown;
34448
+ after: ({
34449
+ text: string;
34450
+ target: {
34451
+ captureState?: string;
34452
+ kind: "text";
34453
+ blockId: string;
34454
+ range: {
34455
+ start: number;
34456
+ end: number;
34457
+ };
34458
+ story?: ({
34459
+ kind: "story";
34460
+ storyType: "body";
34461
+ }) | ({
34462
+ kind: "story";
34463
+ storyType: "headerFooterSlot";
34464
+ section: {
34465
+ kind: "section";
34466
+ sectionId: string;
34467
+ };
34468
+ headerFooterKind: "header" | "footer";
34469
+ variant: "default" | "first" | "even";
34470
+ resolution?: "effective" | "explicit";
34471
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34472
+ }) | ({
34473
+ kind: "story";
34474
+ storyType: "headerFooterPart";
34475
+ refId: string;
34476
+ }) | ({
34477
+ kind: "story";
34478
+ storyType: "footnote";
34479
+ noteId: string;
34480
+ }) | ({
34481
+ kind: "story";
34482
+ storyType: "endnote";
34483
+ noteId: string;
34484
+ }) | ({
34485
+ kind: "story";
34486
+ storyType: "textbox";
34487
+ textboxId: string;
34488
+ });
34489
+ };
34490
+ }) | unknown;
34491
+ targetAnchor: ({
34492
+ captureState?: string;
34493
+ kind: "text";
34494
+ blockId: string;
34495
+ range: {
34496
+ start: number;
34497
+ end: number;
34498
+ };
34499
+ story?: ({
34500
+ kind: "story";
34501
+ storyType: "body";
34502
+ }) | ({
34503
+ kind: "story";
34504
+ storyType: "headerFooterSlot";
34505
+ section: {
34506
+ kind: "section";
34507
+ sectionId: string;
34508
+ };
34509
+ headerFooterKind: "header" | "footer";
34510
+ variant: "default" | "first" | "even";
34511
+ resolution?: "effective" | "explicit";
34512
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
34513
+ }) | ({
34514
+ kind: "story";
34515
+ storyType: "headerFooterPart";
34516
+ refId: string;
34517
+ }) | ({
34518
+ kind: "story";
34519
+ storyType: "footnote";
34520
+ noteId: string;
34521
+ }) | ({
34522
+ kind: "story";
34523
+ storyType: "endnote";
34524
+ noteId: string;
34525
+ }) | ({
34526
+ kind: "story";
34527
+ storyType: "textbox";
34528
+ textboxId: string;
34529
+ });
34530
+ }) | unknown;
34531
+ ordinal: number;
34532
+ }>;
34533
+ unrenderedFamilies: Array<string>;
34534
+ };
34212
34535
  partChanges?: Array<{
34213
34536
  partUri: string;
34214
34537
  kind: "added" | "removed" | "modified";
@@ -34992,6 +35315,7 @@ export interface DocOpenParams {
34992
35315
  syncTimeoutMs?: number;
34993
35316
  roomMode?: "join" | "create";
34994
35317
  bootstrapSettlingMs?: number;
35318
+ expectedRevisionScope?: "session" | "room";
34995
35319
  }) | ({
34996
35320
  providerType: "liveblocks";
34997
35321
  roomId: string;
@@ -283881,6 +284205,7 @@ export type DocFootnotesInsertResult = {
283881
284205
  kind: "entity";
283882
284206
  entityType: "footnote";
283883
284207
  noteId: string;
284208
+ noteType?: "footnote" | "endnote";
283884
284209
  };
283885
284210
  };
283886
284211
  export type DocFootnotesUpdateResult = {
@@ -283890,6 +284215,7 @@ export type DocFootnotesUpdateResult = {
283890
284215
  kind: "entity";
283891
284216
  entityType: "footnote";
283892
284217
  noteId: string;
284218
+ noteType?: "footnote" | "endnote";
283893
284219
  };
283894
284220
  };
283895
284221
  export type DocFootnotesRemoveResult = {
@@ -283899,6 +284225,7 @@ export type DocFootnotesRemoveResult = {
283899
284225
  kind: "entity";
283900
284226
  entityType: "footnote";
283901
284227
  noteId: string;
284228
+ noteType?: "footnote" | "endnote";
283902
284229
  };
283903
284230
  };
283904
284231
  export type DocFootnotesConfigureResult = {
@@ -285755,6 +286082,140 @@ export type DocDiffCompareResult = {
285755
286082
  }>;
285756
286083
  };
285757
286084
  };
286085
+ display?: {
286086
+ changes: Array<{
286087
+ id: string;
286088
+ kind: "insert" | "delete" | "replace" | "format" | "move";
286089
+ before: ({
286090
+ text: string;
286091
+ target: {
286092
+ captureState?: string;
286093
+ kind: "text";
286094
+ blockId: string;
286095
+ range: {
286096
+ start: number;
286097
+ end: number;
286098
+ };
286099
+ story?: ({
286100
+ kind: "story";
286101
+ storyType: "body";
286102
+ }) | ({
286103
+ kind: "story";
286104
+ storyType: "headerFooterSlot";
286105
+ section: {
286106
+ kind: "section";
286107
+ sectionId: string;
286108
+ };
286109
+ headerFooterKind: "header" | "footer";
286110
+ variant: "default" | "first" | "even";
286111
+ resolution?: "effective" | "explicit";
286112
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
286113
+ }) | ({
286114
+ kind: "story";
286115
+ storyType: "headerFooterPart";
286116
+ refId: string;
286117
+ }) | ({
286118
+ kind: "story";
286119
+ storyType: "footnote";
286120
+ noteId: string;
286121
+ }) | ({
286122
+ kind: "story";
286123
+ storyType: "endnote";
286124
+ noteId: string;
286125
+ }) | ({
286126
+ kind: "story";
286127
+ storyType: "textbox";
286128
+ textboxId: string;
286129
+ });
286130
+ };
286131
+ }) | null;
286132
+ after: ({
286133
+ text: string;
286134
+ target: {
286135
+ captureState?: string;
286136
+ kind: "text";
286137
+ blockId: string;
286138
+ range: {
286139
+ start: number;
286140
+ end: number;
286141
+ };
286142
+ story?: ({
286143
+ kind: "story";
286144
+ storyType: "body";
286145
+ }) | ({
286146
+ kind: "story";
286147
+ storyType: "headerFooterSlot";
286148
+ section: {
286149
+ kind: "section";
286150
+ sectionId: string;
286151
+ };
286152
+ headerFooterKind: "header" | "footer";
286153
+ variant: "default" | "first" | "even";
286154
+ resolution?: "effective" | "explicit";
286155
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
286156
+ }) | ({
286157
+ kind: "story";
286158
+ storyType: "headerFooterPart";
286159
+ refId: string;
286160
+ }) | ({
286161
+ kind: "story";
286162
+ storyType: "footnote";
286163
+ noteId: string;
286164
+ }) | ({
286165
+ kind: "story";
286166
+ storyType: "endnote";
286167
+ noteId: string;
286168
+ }) | ({
286169
+ kind: "story";
286170
+ storyType: "textbox";
286171
+ textboxId: string;
286172
+ });
286173
+ };
286174
+ }) | null;
286175
+ targetAnchor: ({
286176
+ captureState?: string;
286177
+ kind: "text";
286178
+ blockId: string;
286179
+ range: {
286180
+ start: number;
286181
+ end: number;
286182
+ };
286183
+ story?: ({
286184
+ kind: "story";
286185
+ storyType: "body";
286186
+ }) | ({
286187
+ kind: "story";
286188
+ storyType: "headerFooterSlot";
286189
+ section: {
286190
+ kind: "section";
286191
+ sectionId: string;
286192
+ };
286193
+ headerFooterKind: "header" | "footer";
286194
+ variant: "default" | "first" | "even";
286195
+ resolution?: "effective" | "explicit";
286196
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
286197
+ }) | ({
286198
+ kind: "story";
286199
+ storyType: "headerFooterPart";
286200
+ refId: string;
286201
+ }) | ({
286202
+ kind: "story";
286203
+ storyType: "footnote";
286204
+ noteId: string;
286205
+ }) | ({
286206
+ kind: "story";
286207
+ storyType: "endnote";
286208
+ noteId: string;
286209
+ }) | ({
286210
+ kind: "story";
286211
+ storyType: "textbox";
286212
+ textboxId: string;
286213
+ });
286214
+ }) | null;
286215
+ ordinal: number;
286216
+ }>;
286217
+ unrenderedFamilies: Array<string>;
286218
+ };
285758
286219
  partChanges?: Array<{
285759
286220
  partUri: string;
285760
286221
  kind: "added" | "removed" | "modified";
@@ -311912,11 +312373,140 @@ export interface DocCreateTableBoundParams {
311912
312373
  });
311913
312374
  };
311914
312375
  }) | ({
311915
- kind: "after";
311916
- target: {
311917
- kind: "block";
311918
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
311919
- nodeId: string;
312376
+ kind: "after";
312377
+ target: {
312378
+ kind: "block";
312379
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
312380
+ nodeId: string;
312381
+ story?: ({
312382
+ kind: "story";
312383
+ storyType: "body";
312384
+ }) | ({
312385
+ kind: "story";
312386
+ storyType: "headerFooterSlot";
312387
+ section: {
312388
+ kind: "section";
312389
+ sectionId: string;
312390
+ };
312391
+ headerFooterKind: "header" | "footer";
312392
+ variant: "default" | "first" | "even";
312393
+ resolution?: "effective" | "explicit";
312394
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
312395
+ }) | ({
312396
+ kind: "story";
312397
+ storyType: "headerFooterPart";
312398
+ refId: string;
312399
+ }) | ({
312400
+ kind: "story";
312401
+ storyType: "footnote";
312402
+ noteId: string;
312403
+ }) | ({
312404
+ kind: "story";
312405
+ storyType: "endnote";
312406
+ noteId: string;
312407
+ }) | ({
312408
+ kind: "story";
312409
+ storyType: "textbox";
312410
+ textboxId: string;
312411
+ });
312412
+ };
312413
+ }) | ({
312414
+ kind: "before";
312415
+ nodeId: string;
312416
+ }) | ({
312417
+ kind: "after";
312418
+ nodeId: string;
312419
+ }) | ({
312420
+ kind: "inParagraph";
312421
+ target: {
312422
+ kind: "block";
312423
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
312424
+ nodeId: string;
312425
+ story?: ({
312426
+ kind: "story";
312427
+ storyType: "body";
312428
+ }) | ({
312429
+ kind: "story";
312430
+ storyType: "headerFooterSlot";
312431
+ section: {
312432
+ kind: "section";
312433
+ sectionId: string;
312434
+ };
312435
+ headerFooterKind: "header" | "footer";
312436
+ variant: "default" | "first" | "even";
312437
+ resolution?: "effective" | "explicit";
312438
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
312439
+ }) | ({
312440
+ kind: "story";
312441
+ storyType: "headerFooterPart";
312442
+ refId: string;
312443
+ }) | ({
312444
+ kind: "story";
312445
+ storyType: "footnote";
312446
+ noteId: string;
312447
+ }) | ({
312448
+ kind: "story";
312449
+ storyType: "endnote";
312450
+ noteId: string;
312451
+ }) | ({
312452
+ kind: "story";
312453
+ storyType: "textbox";
312454
+ textboxId: string;
312455
+ });
312456
+ };
312457
+ offset: number;
312458
+ coordinateSpace?: "visible" | "tracked";
312459
+ });
312460
+ }
312461
+ export interface DocTablesConvertFromTextBoundParams {
312462
+ out?: string;
312463
+ force?: boolean;
312464
+ changeTag?: string;
312465
+ expectedRevision?: string;
312466
+ changeMode?: string;
312467
+ dryRun?: boolean;
312468
+ target?: ({
312469
+ kind: "block";
312470
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
312471
+ nodeId: string;
312472
+ story?: ({
312473
+ kind: "story";
312474
+ storyType: "body";
312475
+ }) | ({
312476
+ kind: "story";
312477
+ storyType: "headerFooterSlot";
312478
+ section: {
312479
+ kind: "section";
312480
+ sectionId: string;
312481
+ };
312482
+ headerFooterKind: "header" | "footer";
312483
+ variant: "default" | "first" | "even";
312484
+ resolution?: "effective" | "explicit";
312485
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
312486
+ }) | ({
312487
+ kind: "story";
312488
+ storyType: "headerFooterPart";
312489
+ refId: string;
312490
+ }) | ({
312491
+ kind: "story";
312492
+ storyType: "footnote";
312493
+ noteId: string;
312494
+ }) | ({
312495
+ kind: "story";
312496
+ storyType: "endnote";
312497
+ noteId: string;
312498
+ }) | ({
312499
+ kind: "story";
312500
+ storyType: "textbox";
312501
+ textboxId: string;
312502
+ });
312503
+ }) | ({
312504
+ captureState?: string;
312505
+ kind: "selection";
312506
+ start: ({
312507
+ kind: "text";
312508
+ blockId: string;
312509
+ offset: number;
311920
312510
  story?: ({
311921
312511
  kind: "story";
311922
312512
  storyType: "body";
@@ -311948,19 +312538,50 @@ export interface DocCreateTableBoundParams {
311948
312538
  storyType: "textbox";
311949
312539
  textboxId: string;
311950
312540
  });
311951
- };
311952
- }) | ({
311953
- kind: "before";
311954
- nodeId: string;
311955
- }) | ({
311956
- kind: "after";
311957
- nodeId: string;
311958
- }) | ({
311959
- kind: "inParagraph";
311960
- target: {
311961
- kind: "block";
311962
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
311963
- nodeId: string;
312541
+ }) | ({
312542
+ kind: "nodeEdge";
312543
+ node: {
312544
+ kind: "block";
312545
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
312546
+ nodeId: string;
312547
+ story?: ({
312548
+ kind: "story";
312549
+ storyType: "body";
312550
+ }) | ({
312551
+ kind: "story";
312552
+ storyType: "headerFooterSlot";
312553
+ section: {
312554
+ kind: "section";
312555
+ sectionId: string;
312556
+ };
312557
+ headerFooterKind: "header" | "footer";
312558
+ variant: "default" | "first" | "even";
312559
+ resolution?: "effective" | "explicit";
312560
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
312561
+ }) | ({
312562
+ kind: "story";
312563
+ storyType: "headerFooterPart";
312564
+ refId: string;
312565
+ }) | ({
312566
+ kind: "story";
312567
+ storyType: "footnote";
312568
+ noteId: string;
312569
+ }) | ({
312570
+ kind: "story";
312571
+ storyType: "endnote";
312572
+ noteId: string;
312573
+ }) | ({
312574
+ kind: "story";
312575
+ storyType: "textbox";
312576
+ textboxId: string;
312577
+ });
312578
+ };
312579
+ edge: "before" | "after";
312580
+ });
312581
+ end: ({
312582
+ kind: "text";
312583
+ blockId: string;
312584
+ offset: number;
311964
312585
  story?: ({
311965
312586
  kind: "story";
311966
312587
  storyType: "body";
@@ -311992,22 +312613,46 @@ export interface DocCreateTableBoundParams {
311992
312613
  storyType: "textbox";
311993
312614
  textboxId: string;
311994
312615
  });
311995
- };
311996
- offset: number;
311997
- coordinateSpace?: "visible" | "tracked";
311998
- });
311999
- }
312000
- export interface DocTablesConvertFromTextBoundParams {
312001
- out?: string;
312002
- force?: boolean;
312003
- changeTag?: string;
312004
- expectedRevision?: string;
312005
- changeMode?: string;
312006
- dryRun?: boolean;
312007
- target?: {
312008
- kind: "block";
312009
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
312010
- nodeId: string;
312616
+ }) | ({
312617
+ kind: "nodeEdge";
312618
+ node: {
312619
+ kind: "block";
312620
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
312621
+ nodeId: string;
312622
+ story?: ({
312623
+ kind: "story";
312624
+ storyType: "body";
312625
+ }) | ({
312626
+ kind: "story";
312627
+ storyType: "headerFooterSlot";
312628
+ section: {
312629
+ kind: "section";
312630
+ sectionId: string;
312631
+ };
312632
+ headerFooterKind: "header" | "footer";
312633
+ variant: "default" | "first" | "even";
312634
+ resolution?: "effective" | "explicit";
312635
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
312636
+ }) | ({
312637
+ kind: "story";
312638
+ storyType: "headerFooterPart";
312639
+ refId: string;
312640
+ }) | ({
312641
+ kind: "story";
312642
+ storyType: "footnote";
312643
+ noteId: string;
312644
+ }) | ({
312645
+ kind: "story";
312646
+ storyType: "endnote";
312647
+ noteId: string;
312648
+ }) | ({
312649
+ kind: "story";
312650
+ storyType: "textbox";
312651
+ textboxId: string;
312652
+ });
312653
+ };
312654
+ edge: "before" | "after";
312655
+ });
312011
312656
  story?: ({
312012
312657
  kind: "story";
312013
312658
  storyType: "body";
@@ -312039,7 +312684,8 @@ export interface DocTablesConvertFromTextBoundParams {
312039
312684
  storyType: "textbox";
312040
312685
  textboxId: string;
312041
312686
  });
312042
- };
312687
+ coordinateSpace?: "visible" | "tracked";
312688
+ });
312043
312689
  nodeId?: string;
312044
312690
  delimiter?: "tab" | "comma" | "paragraph" | ({
312045
312691
  custom: string;
@@ -317688,6 +318334,7 @@ export interface DocFootnotesGetBoundParams {
317688
318334
  kind: "entity";
317689
318335
  entityType: "footnote";
317690
318336
  noteId: string;
318337
+ noteType?: "footnote" | "endnote";
317691
318338
  };
317692
318339
  }
317693
318340
  export interface DocFootnotesInsertBoundParams {
@@ -317755,6 +318402,7 @@ export interface DocFootnotesUpdateBoundParams {
317755
318402
  kind: "entity";
317756
318403
  entityType: "footnote";
317757
318404
  noteId: string;
318405
+ noteType?: "footnote" | "endnote";
317758
318406
  };
317759
318407
  patch: ({
317760
318408
  content: string;
@@ -317773,6 +318421,7 @@ export interface DocFootnotesRemoveBoundParams {
317773
318421
  kind: "entity";
317774
318422
  entityType: "footnote";
317775
318423
  noteId: string;
318424
+ noteType?: "footnote" | "endnote";
317776
318425
  };
317777
318426
  }
317778
318427
  export interface DocFootnotesConfigureBoundParams {
@@ -319233,6 +319882,7 @@ export interface DocDiffCompareBoundParams {
319233
319882
  };
319234
319883
  payload: Record<string, unknown>;
319235
319884
  };
319885
+ includeDisplay?: boolean;
319236
319886
  styleChangeMode?: "direct" | "tracked";
319237
319887
  }
319238
319888
  export interface DocDiffApplyBoundParams {
@@ -319293,6 +319943,140 @@ export interface DocDiffApplyBoundParams {
319293
319943
  }>;
319294
319944
  };
319295
319945
  };
319946
+ display?: {
319947
+ changes: Array<{
319948
+ id: string;
319949
+ kind: "insert" | "delete" | "replace" | "format" | "move";
319950
+ before: ({
319951
+ text: string;
319952
+ target: {
319953
+ captureState?: string;
319954
+ kind: "text";
319955
+ blockId: string;
319956
+ range: {
319957
+ start: number;
319958
+ end: number;
319959
+ };
319960
+ story?: ({
319961
+ kind: "story";
319962
+ storyType: "body";
319963
+ }) | ({
319964
+ kind: "story";
319965
+ storyType: "headerFooterSlot";
319966
+ section: {
319967
+ kind: "section";
319968
+ sectionId: string;
319969
+ };
319970
+ headerFooterKind: "header" | "footer";
319971
+ variant: "default" | "first" | "even";
319972
+ resolution?: "effective" | "explicit";
319973
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
319974
+ }) | ({
319975
+ kind: "story";
319976
+ storyType: "headerFooterPart";
319977
+ refId: string;
319978
+ }) | ({
319979
+ kind: "story";
319980
+ storyType: "footnote";
319981
+ noteId: string;
319982
+ }) | ({
319983
+ kind: "story";
319984
+ storyType: "endnote";
319985
+ noteId: string;
319986
+ }) | ({
319987
+ kind: "story";
319988
+ storyType: "textbox";
319989
+ textboxId: string;
319990
+ });
319991
+ };
319992
+ }) | unknown;
319993
+ after: ({
319994
+ text: string;
319995
+ target: {
319996
+ captureState?: string;
319997
+ kind: "text";
319998
+ blockId: string;
319999
+ range: {
320000
+ start: number;
320001
+ end: number;
320002
+ };
320003
+ story?: ({
320004
+ kind: "story";
320005
+ storyType: "body";
320006
+ }) | ({
320007
+ kind: "story";
320008
+ storyType: "headerFooterSlot";
320009
+ section: {
320010
+ kind: "section";
320011
+ sectionId: string;
320012
+ };
320013
+ headerFooterKind: "header" | "footer";
320014
+ variant: "default" | "first" | "even";
320015
+ resolution?: "effective" | "explicit";
320016
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
320017
+ }) | ({
320018
+ kind: "story";
320019
+ storyType: "headerFooterPart";
320020
+ refId: string;
320021
+ }) | ({
320022
+ kind: "story";
320023
+ storyType: "footnote";
320024
+ noteId: string;
320025
+ }) | ({
320026
+ kind: "story";
320027
+ storyType: "endnote";
320028
+ noteId: string;
320029
+ }) | ({
320030
+ kind: "story";
320031
+ storyType: "textbox";
320032
+ textboxId: string;
320033
+ });
320034
+ };
320035
+ }) | unknown;
320036
+ targetAnchor: ({
320037
+ captureState?: string;
320038
+ kind: "text";
320039
+ blockId: string;
320040
+ range: {
320041
+ start: number;
320042
+ end: number;
320043
+ };
320044
+ story?: ({
320045
+ kind: "story";
320046
+ storyType: "body";
320047
+ }) | ({
320048
+ kind: "story";
320049
+ storyType: "headerFooterSlot";
320050
+ section: {
320051
+ kind: "section";
320052
+ sectionId: string;
320053
+ };
320054
+ headerFooterKind: "header" | "footer";
320055
+ variant: "default" | "first" | "even";
320056
+ resolution?: "effective" | "explicit";
320057
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
320058
+ }) | ({
320059
+ kind: "story";
320060
+ storyType: "headerFooterPart";
320061
+ refId: string;
320062
+ }) | ({
320063
+ kind: "story";
320064
+ storyType: "footnote";
320065
+ noteId: string;
320066
+ }) | ({
320067
+ kind: "story";
320068
+ storyType: "endnote";
320069
+ noteId: string;
320070
+ }) | ({
320071
+ kind: "story";
320072
+ storyType: "textbox";
320073
+ textboxId: string;
320074
+ });
320075
+ }) | unknown;
320076
+ ordinal: number;
320077
+ }>;
320078
+ unrenderedFamilies: Array<string>;
320079
+ };
319296
320080
  partChanges?: Array<{
319297
320081
  partUri: string;
319298
320082
  kind: "added" | "removed" | "modified";