@superdoc/sdk 2.27.0-next.9 → 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;
@@ -29886,6 +30071,7 @@ export interface DocContentControlsWrapParams {
29886
30071
  changeMode?: string;
29887
30072
  dryRun?: boolean;
29888
30073
  kind: "block" | "inline";
30074
+ controlType?: string;
29889
30075
  target: {
29890
30076
  kind: "block" | "inline";
29891
30077
  nodeType: "sdt";
@@ -32477,6 +32663,7 @@ export interface DocFootnotesGetParams {
32477
32663
  kind: "entity";
32478
32664
  entityType: "footnote";
32479
32665
  noteId: string;
32666
+ noteType?: "footnote" | "endnote";
32480
32667
  };
32481
32668
  }
32482
32669
  export interface DocFootnotesInsertParams {
@@ -32548,6 +32735,7 @@ export interface DocFootnotesUpdateParams {
32548
32735
  kind: "entity";
32549
32736
  entityType: "footnote";
32550
32737
  noteId: string;
32738
+ noteType?: "footnote" | "endnote";
32551
32739
  };
32552
32740
  patch: ({
32553
32741
  content: string;
@@ -32568,6 +32756,7 @@ export interface DocFootnotesRemoveParams {
32568
32756
  kind: "entity";
32569
32757
  entityType: "footnote";
32570
32758
  noteId: string;
32759
+ noteType?: "footnote" | "endnote";
32571
32760
  };
32572
32761
  }
32573
32762
  export interface DocFootnotesConfigureParams {
@@ -34146,6 +34335,7 @@ export interface DocDiffCompareParams {
34146
34335
  };
34147
34336
  payload: Record<string, unknown>;
34148
34337
  };
34338
+ includeDisplay?: boolean;
34149
34339
  styleChangeMode?: "direct" | "tracked";
34150
34340
  }
34151
34341
  export interface DocDiffApplyParams {
@@ -34208,6 +34398,140 @@ export interface DocDiffApplyParams {
34208
34398
  }>;
34209
34399
  };
34210
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
+ };
34211
34535
  partChanges?: Array<{
34212
34536
  partUri: string;
34213
34537
  kind: "added" | "removed" | "modified";
@@ -34991,6 +35315,7 @@ export interface DocOpenParams {
34991
35315
  syncTimeoutMs?: number;
34992
35316
  roomMode?: "join" | "create";
34993
35317
  bootstrapSettlingMs?: number;
35318
+ expectedRevisionScope?: "session" | "room";
34994
35319
  }) | ({
34995
35320
  providerType: "liveblocks";
34996
35321
  roomId: string;
@@ -283880,6 +284205,7 @@ export type DocFootnotesInsertResult = {
283880
284205
  kind: "entity";
283881
284206
  entityType: "footnote";
283882
284207
  noteId: string;
284208
+ noteType?: "footnote" | "endnote";
283883
284209
  };
283884
284210
  };
283885
284211
  export type DocFootnotesUpdateResult = {
@@ -283889,6 +284215,7 @@ export type DocFootnotesUpdateResult = {
283889
284215
  kind: "entity";
283890
284216
  entityType: "footnote";
283891
284217
  noteId: string;
284218
+ noteType?: "footnote" | "endnote";
283892
284219
  };
283893
284220
  };
283894
284221
  export type DocFootnotesRemoveResult = {
@@ -283898,6 +284225,7 @@ export type DocFootnotesRemoveResult = {
283898
284225
  kind: "entity";
283899
284226
  entityType: "footnote";
283900
284227
  noteId: string;
284228
+ noteType?: "footnote" | "endnote";
283901
284229
  };
283902
284230
  };
283903
284231
  export type DocFootnotesConfigureResult = {
@@ -285754,6 +286082,140 @@ export type DocDiffCompareResult = {
285754
286082
  }>;
285755
286083
  };
285756
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
+ };
285757
286219
  partChanges?: Array<{
285758
286220
  partUri: string;
285759
286221
  kind: "added" | "removed" | "modified";
@@ -311911,11 +312373,140 @@ export interface DocCreateTableBoundParams {
311911
312373
  });
311912
312374
  };
311913
312375
  }) | ({
311914
- kind: "after";
311915
- target: {
311916
- kind: "block";
311917
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
311918
- 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;
311919
312510
  story?: ({
311920
312511
  kind: "story";
311921
312512
  storyType: "body";
@@ -311947,19 +312538,50 @@ export interface DocCreateTableBoundParams {
311947
312538
  storyType: "textbox";
311948
312539
  textboxId: string;
311949
312540
  });
311950
- };
311951
- }) | ({
311952
- kind: "before";
311953
- nodeId: string;
311954
- }) | ({
311955
- kind: "after";
311956
- nodeId: string;
311957
- }) | ({
311958
- kind: "inParagraph";
311959
- target: {
311960
- kind: "block";
311961
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
311962
- 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;
311963
312585
  story?: ({
311964
312586
  kind: "story";
311965
312587
  storyType: "body";
@@ -311991,22 +312613,46 @@ export interface DocCreateTableBoundParams {
311991
312613
  storyType: "textbox";
311992
312614
  textboxId: string;
311993
312615
  });
311994
- };
311995
- offset: number;
311996
- coordinateSpace?: "visible" | "tracked";
311997
- });
311998
- }
311999
- export interface DocTablesConvertFromTextBoundParams {
312000
- out?: string;
312001
- force?: boolean;
312002
- changeTag?: string;
312003
- expectedRevision?: string;
312004
- changeMode?: string;
312005
- dryRun?: boolean;
312006
- target?: {
312007
- kind: "block";
312008
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
312009
- 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
+ });
312010
312656
  story?: ({
312011
312657
  kind: "story";
312012
312658
  storyType: "body";
@@ -312038,7 +312684,8 @@ export interface DocTablesConvertFromTextBoundParams {
312038
312684
  storyType: "textbox";
312039
312685
  textboxId: string;
312040
312686
  });
312041
- };
312687
+ coordinateSpace?: "visible" | "tracked";
312688
+ });
312042
312689
  nodeId?: string;
312043
312690
  delimiter?: "tab" | "comma" | "paragraph" | ({
312044
312691
  custom: string;
@@ -315201,6 +315848,7 @@ export interface DocContentControlsWrapBoundParams {
315201
315848
  changeMode?: string;
315202
315849
  dryRun?: boolean;
315203
315850
  kind: "block" | "inline";
315851
+ controlType?: string;
315204
315852
  target: {
315205
315853
  kind: "block" | "inline";
315206
315854
  nodeType: "sdt";
@@ -317686,6 +318334,7 @@ export interface DocFootnotesGetBoundParams {
317686
318334
  kind: "entity";
317687
318335
  entityType: "footnote";
317688
318336
  noteId: string;
318337
+ noteType?: "footnote" | "endnote";
317689
318338
  };
317690
318339
  }
317691
318340
  export interface DocFootnotesInsertBoundParams {
@@ -317753,6 +318402,7 @@ export interface DocFootnotesUpdateBoundParams {
317753
318402
  kind: "entity";
317754
318403
  entityType: "footnote";
317755
318404
  noteId: string;
318405
+ noteType?: "footnote" | "endnote";
317756
318406
  };
317757
318407
  patch: ({
317758
318408
  content: string;
@@ -317771,6 +318421,7 @@ export interface DocFootnotesRemoveBoundParams {
317771
318421
  kind: "entity";
317772
318422
  entityType: "footnote";
317773
318423
  noteId: string;
318424
+ noteType?: "footnote" | "endnote";
317774
318425
  };
317775
318426
  }
317776
318427
  export interface DocFootnotesConfigureBoundParams {
@@ -319231,6 +319882,7 @@ export interface DocDiffCompareBoundParams {
319231
319882
  };
319232
319883
  payload: Record<string, unknown>;
319233
319884
  };
319885
+ includeDisplay?: boolean;
319234
319886
  styleChangeMode?: "direct" | "tracked";
319235
319887
  }
319236
319888
  export interface DocDiffApplyBoundParams {
@@ -319291,6 +319943,140 @@ export interface DocDiffApplyBoundParams {
319291
319943
  }>;
319292
319944
  };
319293
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
+ };
319294
320080
  partChanges?: Array<{
319295
320081
  partUri: string;
319296
320082
  kind: "added" | "removed" | "modified";