@superdoc/sdk 2.19.1-next.2 → 2.20.0-next.10

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.
@@ -40,6 +40,12 @@ export type ContractSDInboundTable = {
40
40
  bottom?: number;
41
41
  left?: number;
42
42
  };
43
+ borders?: {
44
+ top?: string;
45
+ right?: string;
46
+ bottom?: string;
47
+ left?: string;
48
+ };
43
49
  };
44
50
  colSpan?: number;
45
51
  rowSpan?: number;
@@ -20927,109 +20933,7 @@ export interface DocMutationsPreviewParams {
20927
20933
  };
20928
20934
  }) | ({
20929
20935
  id: string;
20930
- op: "assert";
20931
- where: {
20932
- by: "select";
20933
- select: ({
20934
- type: "text";
20935
- pattern: string;
20936
- mode?: "contains" | "regex";
20937
- caseSensitive?: boolean;
20938
- wholeWord?: boolean;
20939
- includeDeletedText?: boolean;
20940
- }) | ({
20941
- type: "node";
20942
- nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
20943
- kind?: "block" | "inline";
20944
- });
20945
- within?: {
20946
- kind: "block";
20947
- nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
20948
- nodeId: string;
20949
- story?: ({
20950
- kind: "story";
20951
- storyType: "body";
20952
- }) | ({
20953
- kind: "story";
20954
- storyType: "headerFooterSlot";
20955
- section: {
20956
- kind: "section";
20957
- sectionId: string;
20958
- };
20959
- headerFooterKind: "header" | "footer";
20960
- variant: "default" | "first" | "even";
20961
- resolution?: "effective" | "explicit";
20962
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
20963
- }) | ({
20964
- kind: "story";
20965
- storyType: "headerFooterPart";
20966
- refId: string;
20967
- }) | ({
20968
- kind: "story";
20969
- storyType: "footnote";
20970
- noteId: string;
20971
- }) | ({
20972
- kind: "story";
20973
- storyType: "endnote";
20974
- noteId: string;
20975
- }) | ({
20976
- kind: "story";
20977
- storyType: "textbox";
20978
- textboxId: string;
20979
- });
20980
- };
20981
- };
20982
- args: {
20983
- expectCount: number;
20984
- };
20985
- })>;
20986
- detail?: {
20987
- offset?: number;
20988
- limit?: number;
20989
- };
20990
- }
20991
- export interface DocMutationsApplyParams {
20992
- doc?: string;
20993
- sessionId?: string;
20994
- out?: string;
20995
- force?: boolean;
20996
- expectedRevision?: string;
20997
- changeMode?: string;
20998
- in?: ({
20999
- kind: "story";
21000
- storyType: "body";
21001
- }) | ({
21002
- kind: "story";
21003
- storyType: "headerFooterSlot";
21004
- section: {
21005
- kind: "section";
21006
- sectionId: string;
21007
- };
21008
- headerFooterKind: "header" | "footer";
21009
- variant: "default" | "first" | "even";
21010
- resolution?: "effective" | "explicit";
21011
- onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
21012
- }) | ({
21013
- kind: "story";
21014
- storyType: "headerFooterPart";
21015
- refId: string;
21016
- }) | ({
21017
- kind: "story";
21018
- storyType: "footnote";
21019
- noteId: string;
21020
- }) | ({
21021
- kind: "story";
21022
- storyType: "endnote";
21023
- noteId: string;
21024
- }) | ({
21025
- kind: "story";
21026
- storyType: "textbox";
21027
- textboxId: string;
21028
- });
21029
- atomic: boolean;
21030
- steps: Array<({
21031
- id: string;
21032
- op: "text.rewrite";
20936
+ op: "structural.replace";
21033
20937
  where: ({
21034
20938
  by: "select";
21035
20939
  select: ({
@@ -21313,35 +21217,116 @@ export interface DocMutationsApplyParams {
21313
21217
  nodeId: string;
21314
21218
  });
21315
21219
  args: {
21316
- replacement: ({
21317
- text: string;
21220
+ content: Record<string, unknown> | Array<Record<string, unknown>>;
21221
+ nestingPolicy?: {
21222
+ tables?: "forbid" | "allow";
21223
+ };
21224
+ };
21225
+ }) | ({
21226
+ id: string;
21227
+ op: "assert";
21228
+ where: {
21229
+ by: "select";
21230
+ select: ({
21231
+ type: "text";
21232
+ pattern: string;
21233
+ mode?: "contains" | "regex";
21234
+ caseSensitive?: boolean;
21235
+ wholeWord?: boolean;
21236
+ includeDeletedText?: boolean;
21318
21237
  }) | ({
21319
- blocks: Array<{
21320
- text: string;
21321
- }>;
21238
+ type: "node";
21239
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
21240
+ kind?: "block" | "inline";
21322
21241
  });
21323
- replacementMode?: "literal" | "regex-template";
21324
- caseHandling?: "exact" | "preserve-match";
21325
- style?: {
21326
- inline: {
21327
- mode: "preserve" | "set" | "clear" | "merge";
21328
- requireUniform?: boolean;
21329
- onNonUniform?: "error" | "useLeadingRun" | "majority" | "union";
21330
- setMarks?: {
21331
- bold?: "on" | "off" | "clear";
21332
- italic?: "on" | "off" | "clear";
21333
- underline?: "on" | "off" | "clear";
21334
- strike?: "on" | "off" | "clear";
21242
+ within?: {
21243
+ kind: "block";
21244
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
21245
+ nodeId: string;
21246
+ story?: ({
21247
+ kind: "story";
21248
+ storyType: "body";
21249
+ }) | ({
21250
+ kind: "story";
21251
+ storyType: "headerFooterSlot";
21252
+ section: {
21253
+ kind: "section";
21254
+ sectionId: string;
21335
21255
  };
21336
- };
21337
- paragraph?: {
21338
- mode: "preserve" | "set" | "clear";
21339
- };
21256
+ headerFooterKind: "header" | "footer";
21257
+ variant: "default" | "first" | "even";
21258
+ resolution?: "effective" | "explicit";
21259
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
21260
+ }) | ({
21261
+ kind: "story";
21262
+ storyType: "headerFooterPart";
21263
+ refId: string;
21264
+ }) | ({
21265
+ kind: "story";
21266
+ storyType: "footnote";
21267
+ noteId: string;
21268
+ }) | ({
21269
+ kind: "story";
21270
+ storyType: "endnote";
21271
+ noteId: string;
21272
+ }) | ({
21273
+ kind: "story";
21274
+ storyType: "textbox";
21275
+ textboxId: string;
21276
+ });
21340
21277
  };
21341
21278
  };
21279
+ args: {
21280
+ expectCount: number;
21281
+ };
21282
+ })>;
21283
+ detail?: {
21284
+ offset?: number;
21285
+ limit?: number;
21286
+ };
21287
+ }
21288
+ export interface DocMutationsApplyParams {
21289
+ doc?: string;
21290
+ sessionId?: string;
21291
+ out?: string;
21292
+ force?: boolean;
21293
+ expectedRevision?: string;
21294
+ changeMode?: string;
21295
+ in?: ({
21296
+ kind: "story";
21297
+ storyType: "body";
21298
+ }) | ({
21299
+ kind: "story";
21300
+ storyType: "headerFooterSlot";
21301
+ section: {
21302
+ kind: "section";
21303
+ sectionId: string;
21304
+ };
21305
+ headerFooterKind: "header" | "footer";
21306
+ variant: "default" | "first" | "even";
21307
+ resolution?: "effective" | "explicit";
21308
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
21309
+ }) | ({
21310
+ kind: "story";
21311
+ storyType: "headerFooterPart";
21312
+ refId: string;
21313
+ }) | ({
21314
+ kind: "story";
21315
+ storyType: "footnote";
21316
+ noteId: string;
21317
+ }) | ({
21318
+ kind: "story";
21319
+ storyType: "endnote";
21320
+ noteId: string;
21342
21321
  }) | ({
21322
+ kind: "story";
21323
+ storyType: "textbox";
21324
+ textboxId: string;
21325
+ });
21326
+ atomic: boolean;
21327
+ steps: Array<({
21343
21328
  id: string;
21344
- op: "text.insert";
21329
+ op: "text.rewrite";
21345
21330
  where: ({
21346
21331
  by: "select";
21347
21332
  select: ({
@@ -21392,7 +21377,7 @@ export interface DocMutationsApplyParams {
21392
21377
  textboxId: string;
21393
21378
  });
21394
21379
  };
21395
- require: "first" | "exactlyOne";
21380
+ require: "first" | "exactlyOne" | "all";
21396
21381
  }) | ({
21397
21382
  by: "ref";
21398
21383
  ref: string;
@@ -21625,13 +21610,20 @@ export interface DocMutationsApplyParams {
21625
21610
  nodeId: string;
21626
21611
  });
21627
21612
  args: {
21628
- position: "before" | "after";
21629
- content: {
21613
+ replacement: ({
21630
21614
  text: string;
21631
- };
21615
+ }) | ({
21616
+ blocks: Array<{
21617
+ text: string;
21618
+ }>;
21619
+ });
21620
+ replacementMode?: "literal" | "regex-template";
21621
+ caseHandling?: "exact" | "preserve-match";
21632
21622
  style?: {
21633
21623
  inline: {
21634
- mode: "inherit" | "set" | "clear";
21624
+ mode: "preserve" | "set" | "clear" | "merge";
21625
+ requireUniform?: boolean;
21626
+ onNonUniform?: "error" | "useLeadingRun" | "majority" | "union";
21635
21627
  setMarks?: {
21636
21628
  bold?: "on" | "off" | "clear";
21637
21629
  italic?: "on" | "off" | "clear";
@@ -21639,11 +21631,14 @@ export interface DocMutationsApplyParams {
21639
21631
  strike?: "on" | "off" | "clear";
21640
21632
  };
21641
21633
  };
21634
+ paragraph?: {
21635
+ mode: "preserve" | "set" | "clear";
21636
+ };
21642
21637
  };
21643
21638
  };
21644
21639
  }) | ({
21645
21640
  id: string;
21646
- op: "text.delete";
21641
+ op: "text.insert";
21647
21642
  where: ({
21648
21643
  by: "select";
21649
21644
  select: ({
@@ -21694,7 +21689,7 @@ export interface DocMutationsApplyParams {
21694
21689
  textboxId: string;
21695
21690
  });
21696
21691
  };
21697
- require: "first" | "exactlyOne" | "all";
21692
+ require: "first" | "exactlyOne";
21698
21693
  }) | ({
21699
21694
  by: "ref";
21700
21695
  ref: string;
@@ -21927,11 +21922,313 @@ export interface DocMutationsApplyParams {
21927
21922
  nodeId: string;
21928
21923
  });
21929
21924
  args: {
21930
- behavior?: "selection" | "exact";
21925
+ position: "before" | "after";
21926
+ content: {
21927
+ text: string;
21928
+ };
21929
+ style?: {
21930
+ inline: {
21931
+ mode: "inherit" | "set" | "clear";
21932
+ setMarks?: {
21933
+ bold?: "on" | "off" | "clear";
21934
+ italic?: "on" | "off" | "clear";
21935
+ underline?: "on" | "off" | "clear";
21936
+ strike?: "on" | "off" | "clear";
21937
+ };
21938
+ };
21939
+ };
21931
21940
  };
21932
21941
  }) | ({
21933
21942
  id: string;
21934
- op: "format.apply";
21943
+ op: "text.delete";
21944
+ where: ({
21945
+ by: "select";
21946
+ select: ({
21947
+ type: "text";
21948
+ pattern: string;
21949
+ mode?: "contains" | "regex";
21950
+ caseSensitive?: boolean;
21951
+ wholeWord?: boolean;
21952
+ includeDeletedText?: boolean;
21953
+ }) | ({
21954
+ type: "node";
21955
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
21956
+ kind?: "block" | "inline";
21957
+ });
21958
+ within?: {
21959
+ kind: "block";
21960
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
21961
+ nodeId: string;
21962
+ story?: ({
21963
+ kind: "story";
21964
+ storyType: "body";
21965
+ }) | ({
21966
+ kind: "story";
21967
+ storyType: "headerFooterSlot";
21968
+ section: {
21969
+ kind: "section";
21970
+ sectionId: string;
21971
+ };
21972
+ headerFooterKind: "header" | "footer";
21973
+ variant: "default" | "first" | "even";
21974
+ resolution?: "effective" | "explicit";
21975
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
21976
+ }) | ({
21977
+ kind: "story";
21978
+ storyType: "headerFooterPart";
21979
+ refId: string;
21980
+ }) | ({
21981
+ kind: "story";
21982
+ storyType: "footnote";
21983
+ noteId: string;
21984
+ }) | ({
21985
+ kind: "story";
21986
+ storyType: "endnote";
21987
+ noteId: string;
21988
+ }) | ({
21989
+ kind: "story";
21990
+ storyType: "textbox";
21991
+ textboxId: string;
21992
+ });
21993
+ };
21994
+ require: "first" | "exactlyOne" | "all";
21995
+ }) | ({
21996
+ by: "ref";
21997
+ ref: string;
21998
+ within?: {
21999
+ kind: "block";
22000
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22001
+ nodeId: string;
22002
+ story?: ({
22003
+ kind: "story";
22004
+ storyType: "body";
22005
+ }) | ({
22006
+ kind: "story";
22007
+ storyType: "headerFooterSlot";
22008
+ section: {
22009
+ kind: "section";
22010
+ sectionId: string;
22011
+ };
22012
+ headerFooterKind: "header" | "footer";
22013
+ variant: "default" | "first" | "even";
22014
+ resolution?: "effective" | "explicit";
22015
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22016
+ }) | ({
22017
+ kind: "story";
22018
+ storyType: "headerFooterPart";
22019
+ refId: string;
22020
+ }) | ({
22021
+ kind: "story";
22022
+ storyType: "footnote";
22023
+ noteId: string;
22024
+ }) | ({
22025
+ kind: "story";
22026
+ storyType: "endnote";
22027
+ noteId: string;
22028
+ }) | ({
22029
+ kind: "story";
22030
+ storyType: "textbox";
22031
+ textboxId: string;
22032
+ });
22033
+ };
22034
+ }) | ({
22035
+ by: "target";
22036
+ target: {
22037
+ kind: "selection";
22038
+ start: ({
22039
+ kind: "text";
22040
+ blockId: string;
22041
+ offset: number;
22042
+ story?: ({
22043
+ kind: "story";
22044
+ storyType: "body";
22045
+ }) | ({
22046
+ kind: "story";
22047
+ storyType: "headerFooterSlot";
22048
+ section: {
22049
+ kind: "section";
22050
+ sectionId: string;
22051
+ };
22052
+ headerFooterKind: "header" | "footer";
22053
+ variant: "default" | "first" | "even";
22054
+ resolution?: "effective" | "explicit";
22055
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22056
+ }) | ({
22057
+ kind: "story";
22058
+ storyType: "headerFooterPart";
22059
+ refId: string;
22060
+ }) | ({
22061
+ kind: "story";
22062
+ storyType: "footnote";
22063
+ noteId: string;
22064
+ }) | ({
22065
+ kind: "story";
22066
+ storyType: "endnote";
22067
+ noteId: string;
22068
+ }) | ({
22069
+ kind: "story";
22070
+ storyType: "textbox";
22071
+ textboxId: string;
22072
+ });
22073
+ }) | ({
22074
+ kind: "nodeEdge";
22075
+ node: {
22076
+ kind: "block";
22077
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
22078
+ nodeId: string;
22079
+ story?: ({
22080
+ kind: "story";
22081
+ storyType: "body";
22082
+ }) | ({
22083
+ kind: "story";
22084
+ storyType: "headerFooterSlot";
22085
+ section: {
22086
+ kind: "section";
22087
+ sectionId: string;
22088
+ };
22089
+ headerFooterKind: "header" | "footer";
22090
+ variant: "default" | "first" | "even";
22091
+ resolution?: "effective" | "explicit";
22092
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22093
+ }) | ({
22094
+ kind: "story";
22095
+ storyType: "headerFooterPart";
22096
+ refId: string;
22097
+ }) | ({
22098
+ kind: "story";
22099
+ storyType: "footnote";
22100
+ noteId: string;
22101
+ }) | ({
22102
+ kind: "story";
22103
+ storyType: "endnote";
22104
+ noteId: string;
22105
+ }) | ({
22106
+ kind: "story";
22107
+ storyType: "textbox";
22108
+ textboxId: string;
22109
+ });
22110
+ };
22111
+ edge: "before" | "after";
22112
+ });
22113
+ end: ({
22114
+ kind: "text";
22115
+ blockId: string;
22116
+ offset: number;
22117
+ story?: ({
22118
+ kind: "story";
22119
+ storyType: "body";
22120
+ }) | ({
22121
+ kind: "story";
22122
+ storyType: "headerFooterSlot";
22123
+ section: {
22124
+ kind: "section";
22125
+ sectionId: string;
22126
+ };
22127
+ headerFooterKind: "header" | "footer";
22128
+ variant: "default" | "first" | "even";
22129
+ resolution?: "effective" | "explicit";
22130
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22131
+ }) | ({
22132
+ kind: "story";
22133
+ storyType: "headerFooterPart";
22134
+ refId: string;
22135
+ }) | ({
22136
+ kind: "story";
22137
+ storyType: "footnote";
22138
+ noteId: string;
22139
+ }) | ({
22140
+ kind: "story";
22141
+ storyType: "endnote";
22142
+ noteId: string;
22143
+ }) | ({
22144
+ kind: "story";
22145
+ storyType: "textbox";
22146
+ textboxId: string;
22147
+ });
22148
+ }) | ({
22149
+ kind: "nodeEdge";
22150
+ node: {
22151
+ kind: "block";
22152
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
22153
+ nodeId: string;
22154
+ story?: ({
22155
+ kind: "story";
22156
+ storyType: "body";
22157
+ }) | ({
22158
+ kind: "story";
22159
+ storyType: "headerFooterSlot";
22160
+ section: {
22161
+ kind: "section";
22162
+ sectionId: string;
22163
+ };
22164
+ headerFooterKind: "header" | "footer";
22165
+ variant: "default" | "first" | "even";
22166
+ resolution?: "effective" | "explicit";
22167
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22168
+ }) | ({
22169
+ kind: "story";
22170
+ storyType: "headerFooterPart";
22171
+ refId: string;
22172
+ }) | ({
22173
+ kind: "story";
22174
+ storyType: "footnote";
22175
+ noteId: string;
22176
+ }) | ({
22177
+ kind: "story";
22178
+ storyType: "endnote";
22179
+ noteId: string;
22180
+ }) | ({
22181
+ kind: "story";
22182
+ storyType: "textbox";
22183
+ textboxId: string;
22184
+ });
22185
+ };
22186
+ edge: "before" | "after";
22187
+ });
22188
+ story?: ({
22189
+ kind: "story";
22190
+ storyType: "body";
22191
+ }) | ({
22192
+ kind: "story";
22193
+ storyType: "headerFooterSlot";
22194
+ section: {
22195
+ kind: "section";
22196
+ sectionId: string;
22197
+ };
22198
+ headerFooterKind: "header" | "footer";
22199
+ variant: "default" | "first" | "even";
22200
+ resolution?: "effective" | "explicit";
22201
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22202
+ }) | ({
22203
+ kind: "story";
22204
+ storyType: "headerFooterPart";
22205
+ refId: string;
22206
+ }) | ({
22207
+ kind: "story";
22208
+ storyType: "footnote";
22209
+ noteId: string;
22210
+ }) | ({
22211
+ kind: "story";
22212
+ storyType: "endnote";
22213
+ noteId: string;
22214
+ }) | ({
22215
+ kind: "story";
22216
+ storyType: "textbox";
22217
+ textboxId: string;
22218
+ });
22219
+ coordinateSpace?: "visible" | "tracked";
22220
+ };
22221
+ }) | ({
22222
+ by: "block";
22223
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22224
+ nodeId: string;
22225
+ });
22226
+ args: {
22227
+ behavior?: "selection" | "exact";
22228
+ };
22229
+ }) | ({
22230
+ id: string;
22231
+ op: "format.apply";
21935
22232
  where: ({
21936
22233
  by: "select";
21937
22234
  select: ({
@@ -22302,6 +22599,297 @@ export interface DocMutationsApplyParams {
22302
22599
  alignment?: "left" | "center" | "right" | "justify";
22303
22600
  scope?: "match" | "block";
22304
22601
  };
22602
+ }) | ({
22603
+ id: string;
22604
+ op: "structural.replace";
22605
+ where: ({
22606
+ by: "select";
22607
+ select: ({
22608
+ type: "text";
22609
+ pattern: string;
22610
+ mode?: "contains" | "regex";
22611
+ caseSensitive?: boolean;
22612
+ wholeWord?: boolean;
22613
+ includeDeletedText?: boolean;
22614
+ }) | ({
22615
+ type: "node";
22616
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
22617
+ kind?: "block" | "inline";
22618
+ });
22619
+ within?: {
22620
+ kind: "block";
22621
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22622
+ nodeId: string;
22623
+ story?: ({
22624
+ kind: "story";
22625
+ storyType: "body";
22626
+ }) | ({
22627
+ kind: "story";
22628
+ storyType: "headerFooterSlot";
22629
+ section: {
22630
+ kind: "section";
22631
+ sectionId: string;
22632
+ };
22633
+ headerFooterKind: "header" | "footer";
22634
+ variant: "default" | "first" | "even";
22635
+ resolution?: "effective" | "explicit";
22636
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22637
+ }) | ({
22638
+ kind: "story";
22639
+ storyType: "headerFooterPart";
22640
+ refId: string;
22641
+ }) | ({
22642
+ kind: "story";
22643
+ storyType: "footnote";
22644
+ noteId: string;
22645
+ }) | ({
22646
+ kind: "story";
22647
+ storyType: "endnote";
22648
+ noteId: string;
22649
+ }) | ({
22650
+ kind: "story";
22651
+ storyType: "textbox";
22652
+ textboxId: string;
22653
+ });
22654
+ };
22655
+ require: "first" | "exactlyOne" | "all";
22656
+ }) | ({
22657
+ by: "ref";
22658
+ ref: string;
22659
+ within?: {
22660
+ kind: "block";
22661
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22662
+ nodeId: string;
22663
+ story?: ({
22664
+ kind: "story";
22665
+ storyType: "body";
22666
+ }) | ({
22667
+ kind: "story";
22668
+ storyType: "headerFooterSlot";
22669
+ section: {
22670
+ kind: "section";
22671
+ sectionId: string;
22672
+ };
22673
+ headerFooterKind: "header" | "footer";
22674
+ variant: "default" | "first" | "even";
22675
+ resolution?: "effective" | "explicit";
22676
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22677
+ }) | ({
22678
+ kind: "story";
22679
+ storyType: "headerFooterPart";
22680
+ refId: string;
22681
+ }) | ({
22682
+ kind: "story";
22683
+ storyType: "footnote";
22684
+ noteId: string;
22685
+ }) | ({
22686
+ kind: "story";
22687
+ storyType: "endnote";
22688
+ noteId: string;
22689
+ }) | ({
22690
+ kind: "story";
22691
+ storyType: "textbox";
22692
+ textboxId: string;
22693
+ });
22694
+ };
22695
+ }) | ({
22696
+ by: "target";
22697
+ target: {
22698
+ kind: "selection";
22699
+ start: ({
22700
+ kind: "text";
22701
+ blockId: string;
22702
+ offset: number;
22703
+ story?: ({
22704
+ kind: "story";
22705
+ storyType: "body";
22706
+ }) | ({
22707
+ kind: "story";
22708
+ storyType: "headerFooterSlot";
22709
+ section: {
22710
+ kind: "section";
22711
+ sectionId: string;
22712
+ };
22713
+ headerFooterKind: "header" | "footer";
22714
+ variant: "default" | "first" | "even";
22715
+ resolution?: "effective" | "explicit";
22716
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22717
+ }) | ({
22718
+ kind: "story";
22719
+ storyType: "headerFooterPart";
22720
+ refId: string;
22721
+ }) | ({
22722
+ kind: "story";
22723
+ storyType: "footnote";
22724
+ noteId: string;
22725
+ }) | ({
22726
+ kind: "story";
22727
+ storyType: "endnote";
22728
+ noteId: string;
22729
+ }) | ({
22730
+ kind: "story";
22731
+ storyType: "textbox";
22732
+ textboxId: string;
22733
+ });
22734
+ }) | ({
22735
+ kind: "nodeEdge";
22736
+ node: {
22737
+ kind: "block";
22738
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
22739
+ nodeId: string;
22740
+ story?: ({
22741
+ kind: "story";
22742
+ storyType: "body";
22743
+ }) | ({
22744
+ kind: "story";
22745
+ storyType: "headerFooterSlot";
22746
+ section: {
22747
+ kind: "section";
22748
+ sectionId: string;
22749
+ };
22750
+ headerFooterKind: "header" | "footer";
22751
+ variant: "default" | "first" | "even";
22752
+ resolution?: "effective" | "explicit";
22753
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22754
+ }) | ({
22755
+ kind: "story";
22756
+ storyType: "headerFooterPart";
22757
+ refId: string;
22758
+ }) | ({
22759
+ kind: "story";
22760
+ storyType: "footnote";
22761
+ noteId: string;
22762
+ }) | ({
22763
+ kind: "story";
22764
+ storyType: "endnote";
22765
+ noteId: string;
22766
+ }) | ({
22767
+ kind: "story";
22768
+ storyType: "textbox";
22769
+ textboxId: string;
22770
+ });
22771
+ };
22772
+ edge: "before" | "after";
22773
+ });
22774
+ end: ({
22775
+ kind: "text";
22776
+ blockId: string;
22777
+ offset: number;
22778
+ story?: ({
22779
+ kind: "story";
22780
+ storyType: "body";
22781
+ }) | ({
22782
+ kind: "story";
22783
+ storyType: "headerFooterSlot";
22784
+ section: {
22785
+ kind: "section";
22786
+ sectionId: string;
22787
+ };
22788
+ headerFooterKind: "header" | "footer";
22789
+ variant: "default" | "first" | "even";
22790
+ resolution?: "effective" | "explicit";
22791
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22792
+ }) | ({
22793
+ kind: "story";
22794
+ storyType: "headerFooterPart";
22795
+ refId: string;
22796
+ }) | ({
22797
+ kind: "story";
22798
+ storyType: "footnote";
22799
+ noteId: string;
22800
+ }) | ({
22801
+ kind: "story";
22802
+ storyType: "endnote";
22803
+ noteId: string;
22804
+ }) | ({
22805
+ kind: "story";
22806
+ storyType: "textbox";
22807
+ textboxId: string;
22808
+ });
22809
+ }) | ({
22810
+ kind: "nodeEdge";
22811
+ node: {
22812
+ kind: "block";
22813
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
22814
+ nodeId: string;
22815
+ story?: ({
22816
+ kind: "story";
22817
+ storyType: "body";
22818
+ }) | ({
22819
+ kind: "story";
22820
+ storyType: "headerFooterSlot";
22821
+ section: {
22822
+ kind: "section";
22823
+ sectionId: string;
22824
+ };
22825
+ headerFooterKind: "header" | "footer";
22826
+ variant: "default" | "first" | "even";
22827
+ resolution?: "effective" | "explicit";
22828
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22829
+ }) | ({
22830
+ kind: "story";
22831
+ storyType: "headerFooterPart";
22832
+ refId: string;
22833
+ }) | ({
22834
+ kind: "story";
22835
+ storyType: "footnote";
22836
+ noteId: string;
22837
+ }) | ({
22838
+ kind: "story";
22839
+ storyType: "endnote";
22840
+ noteId: string;
22841
+ }) | ({
22842
+ kind: "story";
22843
+ storyType: "textbox";
22844
+ textboxId: string;
22845
+ });
22846
+ };
22847
+ edge: "before" | "after";
22848
+ });
22849
+ story?: ({
22850
+ kind: "story";
22851
+ storyType: "body";
22852
+ }) | ({
22853
+ kind: "story";
22854
+ storyType: "headerFooterSlot";
22855
+ section: {
22856
+ kind: "section";
22857
+ sectionId: string;
22858
+ };
22859
+ headerFooterKind: "header" | "footer";
22860
+ variant: "default" | "first" | "even";
22861
+ resolution?: "effective" | "explicit";
22862
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
22863
+ }) | ({
22864
+ kind: "story";
22865
+ storyType: "headerFooterPart";
22866
+ refId: string;
22867
+ }) | ({
22868
+ kind: "story";
22869
+ storyType: "footnote";
22870
+ noteId: string;
22871
+ }) | ({
22872
+ kind: "story";
22873
+ storyType: "endnote";
22874
+ noteId: string;
22875
+ }) | ({
22876
+ kind: "story";
22877
+ storyType: "textbox";
22878
+ textboxId: string;
22879
+ });
22880
+ coordinateSpace?: "visible" | "tracked";
22881
+ };
22882
+ }) | ({
22883
+ by: "block";
22884
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
22885
+ nodeId: string;
22886
+ });
22887
+ args: {
22888
+ content: Record<string, unknown> | Array<Record<string, unknown>>;
22889
+ nestingPolicy?: {
22890
+ tables?: "forbid" | "allow";
22891
+ };
22892
+ };
22305
22893
  }) | ({
22306
22894
  id: string;
22307
22895
  op: "assert";
@@ -33172,6 +33760,12 @@ export type DocMarkdownToFragmentResult = {
33172
33760
  bottom?: number;
33173
33761
  left?: number;
33174
33762
  };
33763
+ borders?: {
33764
+ top?: string;
33765
+ right?: string;
33766
+ bottom?: string;
33767
+ left?: string;
33768
+ };
33175
33769
  };
33176
33770
  colSpan?: number;
33177
33771
  rowSpan?: number;
@@ -33438,6 +34032,12 @@ export type DocMarkdownToFragmentResult = {
33438
34032
  bottom?: number;
33439
34033
  left?: number;
33440
34034
  };
34035
+ borders?: {
34036
+ top?: string;
34037
+ right?: string;
34038
+ bottom?: string;
34039
+ left?: string;
34040
+ };
33441
34041
  };
33442
34042
  colSpan?: number;
33443
34043
  rowSpan?: number;
@@ -33728,271 +34328,283 @@ export type DocHtmlToFragmentResult = {
33728
34328
  bottom?: number;
33729
34329
  left?: number;
33730
34330
  };
33731
- };
33732
- colSpan?: number;
33733
- rowSpan?: number;
33734
- header?: boolean;
33735
- content: Array<ContractSDInboundContentNode>;
33736
- }>;
33737
- }>;
33738
- };
33739
- }) | ({
33740
- id?: string;
33741
- kind: "horizontalRule";
33742
- horizontalRule: Record<string, unknown>;
33743
- })) | (Array<({
33744
- id?: string;
33745
- kind: "paragraph";
33746
- paragraph: {
33747
- inlines: Array<({
33748
- id?: string;
33749
- kind: "run";
33750
- run: {
33751
- text: string;
33752
- styleRef?: string;
33753
- props?: {
33754
- bold?: boolean;
33755
- italic?: boolean;
33756
- underline?: {
33757
- style?: "single";
33758
- };
33759
- strikethrough?: boolean;
33760
- color?: {
33761
- model: "rgb";
33762
- value: string;
33763
- };
33764
- highlight?: "yellow";
33765
- shading?: {
33766
- pattern?: string;
33767
- fill?: {
33768
- model: "rgb";
33769
- value: string;
33770
- };
33771
- color?: {
33772
- model: "rgb";
33773
- value: string;
33774
- };
33775
- };
33776
- fontSize?: number;
33777
- fontFamily?: string;
33778
- verticalAlign?: "baseline" | "superscript" | "subscript";
33779
- };
33780
- };
33781
- }) | ({
33782
- id?: string;
33783
- kind: "hyperlink";
33784
- hyperlink: {
33785
- href: string;
33786
- tooltip?: string;
33787
- targetFrame?: string;
33788
- history?: boolean;
33789
- inlines: Array<({
33790
- id?: string;
33791
- kind: "run";
33792
- run: {
33793
- text: string;
33794
- styleRef?: string;
33795
- props?: {
33796
- bold?: boolean;
33797
- italic?: boolean;
33798
- underline?: {
33799
- style?: "single";
33800
- };
33801
- strikethrough?: boolean;
33802
- color?: {
33803
- model: "rgb";
33804
- value: string;
33805
- };
33806
- highlight?: "yellow";
33807
- shading?: {
33808
- pattern?: string;
33809
- fill?: {
33810
- model: "rgb";
33811
- value: string;
33812
- };
33813
- color?: {
33814
- model: "rgb";
33815
- value: string;
33816
- };
33817
- };
33818
- fontSize?: number;
33819
- fontFamily?: string;
33820
- verticalAlign?: "baseline" | "superscript" | "subscript";
33821
- };
33822
- };
33823
- }) | ({
33824
- id?: string;
33825
- kind: "lineBreak";
33826
- lineBreak: Record<string, unknown>;
33827
- })>;
33828
- };
33829
- }) | ({
33830
- id?: string;
33831
- kind: "lineBreak";
33832
- lineBreak: Record<string, unknown>;
33833
- })>;
33834
- styleRef?: string;
33835
- props?: {
33836
- alignment?: "left" | "center" | "right" | "justify";
33837
- indent?: {
33838
- start?: number;
33839
- end?: number;
33840
- left?: number;
33841
- right?: number;
33842
- firstLine?: number;
33843
- hanging?: number;
33844
- };
33845
- spacing?: {
33846
- before?: number;
33847
- after?: number;
33848
- line?: number;
33849
- lineRule?: "auto" | "exact" | "atLeast";
33850
- };
33851
- };
33852
- };
33853
- }) | ({
33854
- id?: string;
33855
- kind: "heading";
33856
- heading: {
33857
- level: number;
33858
- inlines: Array<({
33859
- id?: string;
33860
- kind: "run";
33861
- run: {
33862
- text: string;
33863
- styleRef?: string;
33864
- props?: {
33865
- bold?: boolean;
33866
- italic?: boolean;
33867
- underline?: {
33868
- style?: "single";
33869
- };
33870
- strikethrough?: boolean;
33871
- color?: {
33872
- model: "rgb";
33873
- value: string;
33874
- };
33875
- highlight?: "yellow";
33876
- shading?: {
33877
- pattern?: string;
33878
- fill?: {
33879
- model: "rgb";
33880
- value: string;
33881
- };
33882
- color?: {
33883
- model: "rgb";
33884
- value: string;
33885
- };
33886
- };
33887
- fontSize?: number;
33888
- fontFamily?: string;
33889
- verticalAlign?: "baseline" | "superscript" | "subscript";
33890
- };
33891
- };
33892
- }) | ({
33893
- id?: string;
33894
- kind: "hyperlink";
33895
- hyperlink: {
33896
- href: string;
33897
- tooltip?: string;
33898
- targetFrame?: string;
33899
- history?: boolean;
33900
- inlines: Array<({
33901
- id?: string;
33902
- kind: "run";
33903
- run: {
33904
- text: string;
33905
- styleRef?: string;
33906
- props?: {
33907
- bold?: boolean;
33908
- italic?: boolean;
33909
- underline?: {
33910
- style?: "single";
33911
- };
33912
- strikethrough?: boolean;
33913
- color?: {
33914
- model: "rgb";
33915
- value: string;
33916
- };
33917
- highlight?: "yellow";
33918
- shading?: {
33919
- pattern?: string;
33920
- fill?: {
33921
- model: "rgb";
33922
- value: string;
33923
- };
33924
- color?: {
33925
- model: "rgb";
33926
- value: string;
33927
- };
33928
- };
33929
- fontSize?: number;
33930
- fontFamily?: string;
33931
- verticalAlign?: "baseline" | "superscript" | "subscript";
33932
- };
33933
- };
33934
- }) | ({
33935
- id?: string;
33936
- kind: "lineBreak";
33937
- lineBreak: Record<string, unknown>;
33938
- })>;
33939
- };
33940
- }) | ({
33941
- id?: string;
33942
- kind: "lineBreak";
33943
- lineBreak: Record<string, unknown>;
33944
- })>;
33945
- styleRef?: string;
33946
- props?: {
33947
- alignment?: "left" | "center" | "right" | "justify";
33948
- indent?: {
33949
- start?: number;
33950
- end?: number;
33951
- left?: number;
33952
- right?: number;
33953
- firstLine?: number;
33954
- hanging?: number;
33955
- };
33956
- spacing?: {
33957
- before?: number;
33958
- after?: number;
33959
- line?: number;
33960
- lineRule?: "auto" | "exact" | "atLeast";
33961
- };
33962
- };
33963
- };
33964
- }) | ({
33965
- id?: string;
33966
- kind: "list";
33967
- list: {
33968
- levels?: Array<{
33969
- level: number;
33970
- kind: "ordered" | "bullet";
33971
- format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman";
33972
- text?: string;
33973
- start?: number;
33974
- }>;
33975
- items: Array<ContractSDInboundListItem>;
33976
- };
33977
- }) | ({
33978
- id?: string;
33979
- kind: "table";
33980
- table: {
33981
- rows: Array<{
33982
- id?: string;
33983
- cells: Array<{
33984
- id?: string;
33985
- props?: {
33986
- verticalAlign?: "top" | "center" | "bottom";
33987
- shading?: {
33988
- model: "rgb";
33989
- value: string;
33990
- };
33991
- padding?: {
33992
- top?: number;
33993
- right?: number;
33994
- bottom?: number;
33995
- left?: number;
34331
+ borders?: {
34332
+ top?: string;
34333
+ right?: string;
34334
+ bottom?: string;
34335
+ left?: string;
34336
+ };
34337
+ };
34338
+ colSpan?: number;
34339
+ rowSpan?: number;
34340
+ header?: boolean;
34341
+ content: Array<ContractSDInboundContentNode>;
34342
+ }>;
34343
+ }>;
34344
+ };
34345
+ }) | ({
34346
+ id?: string;
34347
+ kind: "horizontalRule";
34348
+ horizontalRule: Record<string, unknown>;
34349
+ })) | (Array<({
34350
+ id?: string;
34351
+ kind: "paragraph";
34352
+ paragraph: {
34353
+ inlines: Array<({
34354
+ id?: string;
34355
+ kind: "run";
34356
+ run: {
34357
+ text: string;
34358
+ styleRef?: string;
34359
+ props?: {
34360
+ bold?: boolean;
34361
+ italic?: boolean;
34362
+ underline?: {
34363
+ style?: "single";
34364
+ };
34365
+ strikethrough?: boolean;
34366
+ color?: {
34367
+ model: "rgb";
34368
+ value: string;
34369
+ };
34370
+ highlight?: "yellow";
34371
+ shading?: {
34372
+ pattern?: string;
34373
+ fill?: {
34374
+ model: "rgb";
34375
+ value: string;
34376
+ };
34377
+ color?: {
34378
+ model: "rgb";
34379
+ value: string;
34380
+ };
34381
+ };
34382
+ fontSize?: number;
34383
+ fontFamily?: string;
34384
+ verticalAlign?: "baseline" | "superscript" | "subscript";
34385
+ };
34386
+ };
34387
+ }) | ({
34388
+ id?: string;
34389
+ kind: "hyperlink";
34390
+ hyperlink: {
34391
+ href: string;
34392
+ tooltip?: string;
34393
+ targetFrame?: string;
34394
+ history?: boolean;
34395
+ inlines: Array<({
34396
+ id?: string;
34397
+ kind: "run";
34398
+ run: {
34399
+ text: string;
34400
+ styleRef?: string;
34401
+ props?: {
34402
+ bold?: boolean;
34403
+ italic?: boolean;
34404
+ underline?: {
34405
+ style?: "single";
34406
+ };
34407
+ strikethrough?: boolean;
34408
+ color?: {
34409
+ model: "rgb";
34410
+ value: string;
34411
+ };
34412
+ highlight?: "yellow";
34413
+ shading?: {
34414
+ pattern?: string;
34415
+ fill?: {
34416
+ model: "rgb";
34417
+ value: string;
34418
+ };
34419
+ color?: {
34420
+ model: "rgb";
34421
+ value: string;
34422
+ };
34423
+ };
34424
+ fontSize?: number;
34425
+ fontFamily?: string;
34426
+ verticalAlign?: "baseline" | "superscript" | "subscript";
34427
+ };
34428
+ };
34429
+ }) | ({
34430
+ id?: string;
34431
+ kind: "lineBreak";
34432
+ lineBreak: Record<string, unknown>;
34433
+ })>;
34434
+ };
34435
+ }) | ({
34436
+ id?: string;
34437
+ kind: "lineBreak";
34438
+ lineBreak: Record<string, unknown>;
34439
+ })>;
34440
+ styleRef?: string;
34441
+ props?: {
34442
+ alignment?: "left" | "center" | "right" | "justify";
34443
+ indent?: {
34444
+ start?: number;
34445
+ end?: number;
34446
+ left?: number;
34447
+ right?: number;
34448
+ firstLine?: number;
34449
+ hanging?: number;
34450
+ };
34451
+ spacing?: {
34452
+ before?: number;
34453
+ after?: number;
34454
+ line?: number;
34455
+ lineRule?: "auto" | "exact" | "atLeast";
34456
+ };
34457
+ };
34458
+ };
34459
+ }) | ({
34460
+ id?: string;
34461
+ kind: "heading";
34462
+ heading: {
34463
+ level: number;
34464
+ inlines: Array<({
34465
+ id?: string;
34466
+ kind: "run";
34467
+ run: {
34468
+ text: string;
34469
+ styleRef?: string;
34470
+ props?: {
34471
+ bold?: boolean;
34472
+ italic?: boolean;
34473
+ underline?: {
34474
+ style?: "single";
34475
+ };
34476
+ strikethrough?: boolean;
34477
+ color?: {
34478
+ model: "rgb";
34479
+ value: string;
34480
+ };
34481
+ highlight?: "yellow";
34482
+ shading?: {
34483
+ pattern?: string;
34484
+ fill?: {
34485
+ model: "rgb";
34486
+ value: string;
34487
+ };
34488
+ color?: {
34489
+ model: "rgb";
34490
+ value: string;
34491
+ };
34492
+ };
34493
+ fontSize?: number;
34494
+ fontFamily?: string;
34495
+ verticalAlign?: "baseline" | "superscript" | "subscript";
34496
+ };
34497
+ };
34498
+ }) | ({
34499
+ id?: string;
34500
+ kind: "hyperlink";
34501
+ hyperlink: {
34502
+ href: string;
34503
+ tooltip?: string;
34504
+ targetFrame?: string;
34505
+ history?: boolean;
34506
+ inlines: Array<({
34507
+ id?: string;
34508
+ kind: "run";
34509
+ run: {
34510
+ text: string;
34511
+ styleRef?: string;
34512
+ props?: {
34513
+ bold?: boolean;
34514
+ italic?: boolean;
34515
+ underline?: {
34516
+ style?: "single";
34517
+ };
34518
+ strikethrough?: boolean;
34519
+ color?: {
34520
+ model: "rgb";
34521
+ value: string;
34522
+ };
34523
+ highlight?: "yellow";
34524
+ shading?: {
34525
+ pattern?: string;
34526
+ fill?: {
34527
+ model: "rgb";
34528
+ value: string;
34529
+ };
34530
+ color?: {
34531
+ model: "rgb";
34532
+ value: string;
34533
+ };
34534
+ };
34535
+ fontSize?: number;
34536
+ fontFamily?: string;
34537
+ verticalAlign?: "baseline" | "superscript" | "subscript";
34538
+ };
34539
+ };
34540
+ }) | ({
34541
+ id?: string;
34542
+ kind: "lineBreak";
34543
+ lineBreak: Record<string, unknown>;
34544
+ })>;
34545
+ };
34546
+ }) | ({
34547
+ id?: string;
34548
+ kind: "lineBreak";
34549
+ lineBreak: Record<string, unknown>;
34550
+ })>;
34551
+ styleRef?: string;
34552
+ props?: {
34553
+ alignment?: "left" | "center" | "right" | "justify";
34554
+ indent?: {
34555
+ start?: number;
34556
+ end?: number;
34557
+ left?: number;
34558
+ right?: number;
34559
+ firstLine?: number;
34560
+ hanging?: number;
34561
+ };
34562
+ spacing?: {
34563
+ before?: number;
34564
+ after?: number;
34565
+ line?: number;
34566
+ lineRule?: "auto" | "exact" | "atLeast";
34567
+ };
34568
+ };
34569
+ };
34570
+ }) | ({
34571
+ id?: string;
34572
+ kind: "list";
34573
+ list: {
34574
+ levels?: Array<{
34575
+ level: number;
34576
+ kind: "ordered" | "bullet";
34577
+ format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman";
34578
+ text?: string;
34579
+ start?: number;
34580
+ }>;
34581
+ items: Array<ContractSDInboundListItem>;
34582
+ };
34583
+ }) | ({
34584
+ id?: string;
34585
+ kind: "table";
34586
+ table: {
34587
+ rows: Array<{
34588
+ id?: string;
34589
+ cells: Array<{
34590
+ id?: string;
34591
+ props?: {
34592
+ verticalAlign?: "top" | "center" | "bottom";
34593
+ shading?: {
34594
+ model: "rgb";
34595
+ value: string;
34596
+ };
34597
+ padding?: {
34598
+ top?: number;
34599
+ right?: number;
34600
+ bottom?: number;
34601
+ left?: number;
34602
+ };
34603
+ borders?: {
34604
+ top?: string;
34605
+ right?: string;
34606
+ bottom?: string;
34607
+ left?: string;
33996
34608
  };
33997
34609
  };
33998
34610
  colSpan?: number;
@@ -106848,6 +107460,11 @@ export type DocCapabilitiesGetResult = {
106848
107460
  };
106849
107461
  planEngine: {
106850
107462
  supportedStepOps: Array<string>;
107463
+ supportedTargets?: Array<string>;
107464
+ unsupported?: Array<{
107465
+ cell: string;
107466
+ reason: string;
107467
+ }>;
106851
107468
  supportedNonUniformStrategies: Array<string>;
106852
107469
  supportedSetMarks: Array<string>;
106853
107470
  regex: {
@@ -107406,6 +108023,12 @@ export type DocCapabilitiesCheckResult = ({
107406
108023
  bottom?: number;
107407
108024
  left?: number;
107408
108025
  };
108026
+ borders?: {
108027
+ top?: string;
108028
+ right?: string;
108029
+ bottom?: string;
108030
+ left?: string;
108031
+ };
107409
108032
  };
107410
108033
  colSpan?: number;
107411
108034
  rowSpan?: number;
@@ -107672,6 +108295,12 @@ export type DocCapabilitiesCheckResult = ({
107672
108295
  bottom?: number;
107673
108296
  left?: number;
107674
108297
  };
108298
+ borders?: {
108299
+ top?: string;
108300
+ right?: string;
108301
+ bottom?: string;
108302
+ left?: string;
108303
+ };
107675
108304
  };
107676
108305
  colSpan?: number;
107677
108306
  rowSpan?: number;
@@ -143641,6 +144270,297 @@ export interface DocMutationsPreviewBoundParams {
143641
144270
  alignment?: "left" | "center" | "right" | "justify";
143642
144271
  scope?: "match" | "block";
143643
144272
  };
144273
+ }) | ({
144274
+ id: string;
144275
+ op: "structural.replace";
144276
+ where: ({
144277
+ by: "select";
144278
+ select: ({
144279
+ type: "text";
144280
+ pattern: string;
144281
+ mode?: "contains" | "regex";
144282
+ caseSensitive?: boolean;
144283
+ wholeWord?: boolean;
144284
+ includeDeletedText?: boolean;
144285
+ }) | ({
144286
+ type: "node";
144287
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
144288
+ kind?: "block" | "inline";
144289
+ });
144290
+ within?: {
144291
+ kind: "block";
144292
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
144293
+ nodeId: string;
144294
+ story?: ({
144295
+ kind: "story";
144296
+ storyType: "body";
144297
+ }) | ({
144298
+ kind: "story";
144299
+ storyType: "headerFooterSlot";
144300
+ section: {
144301
+ kind: "section";
144302
+ sectionId: string;
144303
+ };
144304
+ headerFooterKind: "header" | "footer";
144305
+ variant: "default" | "first" | "even";
144306
+ resolution?: "effective" | "explicit";
144307
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
144308
+ }) | ({
144309
+ kind: "story";
144310
+ storyType: "headerFooterPart";
144311
+ refId: string;
144312
+ }) | ({
144313
+ kind: "story";
144314
+ storyType: "footnote";
144315
+ noteId: string;
144316
+ }) | ({
144317
+ kind: "story";
144318
+ storyType: "endnote";
144319
+ noteId: string;
144320
+ }) | ({
144321
+ kind: "story";
144322
+ storyType: "textbox";
144323
+ textboxId: string;
144324
+ });
144325
+ };
144326
+ require: "first" | "exactlyOne" | "all";
144327
+ }) | ({
144328
+ by: "ref";
144329
+ ref: string;
144330
+ within?: {
144331
+ kind: "block";
144332
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
144333
+ nodeId: string;
144334
+ story?: ({
144335
+ kind: "story";
144336
+ storyType: "body";
144337
+ }) | ({
144338
+ kind: "story";
144339
+ storyType: "headerFooterSlot";
144340
+ section: {
144341
+ kind: "section";
144342
+ sectionId: string;
144343
+ };
144344
+ headerFooterKind: "header" | "footer";
144345
+ variant: "default" | "first" | "even";
144346
+ resolution?: "effective" | "explicit";
144347
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
144348
+ }) | ({
144349
+ kind: "story";
144350
+ storyType: "headerFooterPart";
144351
+ refId: string;
144352
+ }) | ({
144353
+ kind: "story";
144354
+ storyType: "footnote";
144355
+ noteId: string;
144356
+ }) | ({
144357
+ kind: "story";
144358
+ storyType: "endnote";
144359
+ noteId: string;
144360
+ }) | ({
144361
+ kind: "story";
144362
+ storyType: "textbox";
144363
+ textboxId: string;
144364
+ });
144365
+ };
144366
+ }) | ({
144367
+ by: "target";
144368
+ target: {
144369
+ kind: "selection";
144370
+ start: ({
144371
+ kind: "text";
144372
+ blockId: string;
144373
+ offset: number;
144374
+ story?: ({
144375
+ kind: "story";
144376
+ storyType: "body";
144377
+ }) | ({
144378
+ kind: "story";
144379
+ storyType: "headerFooterSlot";
144380
+ section: {
144381
+ kind: "section";
144382
+ sectionId: string;
144383
+ };
144384
+ headerFooterKind: "header" | "footer";
144385
+ variant: "default" | "first" | "even";
144386
+ resolution?: "effective" | "explicit";
144387
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
144388
+ }) | ({
144389
+ kind: "story";
144390
+ storyType: "headerFooterPart";
144391
+ refId: string;
144392
+ }) | ({
144393
+ kind: "story";
144394
+ storyType: "footnote";
144395
+ noteId: string;
144396
+ }) | ({
144397
+ kind: "story";
144398
+ storyType: "endnote";
144399
+ noteId: string;
144400
+ }) | ({
144401
+ kind: "story";
144402
+ storyType: "textbox";
144403
+ textboxId: string;
144404
+ });
144405
+ }) | ({
144406
+ kind: "nodeEdge";
144407
+ node: {
144408
+ kind: "block";
144409
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
144410
+ nodeId: string;
144411
+ story?: ({
144412
+ kind: "story";
144413
+ storyType: "body";
144414
+ }) | ({
144415
+ kind: "story";
144416
+ storyType: "headerFooterSlot";
144417
+ section: {
144418
+ kind: "section";
144419
+ sectionId: string;
144420
+ };
144421
+ headerFooterKind: "header" | "footer";
144422
+ variant: "default" | "first" | "even";
144423
+ resolution?: "effective" | "explicit";
144424
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
144425
+ }) | ({
144426
+ kind: "story";
144427
+ storyType: "headerFooterPart";
144428
+ refId: string;
144429
+ }) | ({
144430
+ kind: "story";
144431
+ storyType: "footnote";
144432
+ noteId: string;
144433
+ }) | ({
144434
+ kind: "story";
144435
+ storyType: "endnote";
144436
+ noteId: string;
144437
+ }) | ({
144438
+ kind: "story";
144439
+ storyType: "textbox";
144440
+ textboxId: string;
144441
+ });
144442
+ };
144443
+ edge: "before" | "after";
144444
+ });
144445
+ end: ({
144446
+ kind: "text";
144447
+ blockId: string;
144448
+ offset: number;
144449
+ story?: ({
144450
+ kind: "story";
144451
+ storyType: "body";
144452
+ }) | ({
144453
+ kind: "story";
144454
+ storyType: "headerFooterSlot";
144455
+ section: {
144456
+ kind: "section";
144457
+ sectionId: string;
144458
+ };
144459
+ headerFooterKind: "header" | "footer";
144460
+ variant: "default" | "first" | "even";
144461
+ resolution?: "effective" | "explicit";
144462
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
144463
+ }) | ({
144464
+ kind: "story";
144465
+ storyType: "headerFooterPart";
144466
+ refId: string;
144467
+ }) | ({
144468
+ kind: "story";
144469
+ storyType: "footnote";
144470
+ noteId: string;
144471
+ }) | ({
144472
+ kind: "story";
144473
+ storyType: "endnote";
144474
+ noteId: string;
144475
+ }) | ({
144476
+ kind: "story";
144477
+ storyType: "textbox";
144478
+ textboxId: string;
144479
+ });
144480
+ }) | ({
144481
+ kind: "nodeEdge";
144482
+ node: {
144483
+ kind: "block";
144484
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
144485
+ nodeId: string;
144486
+ story?: ({
144487
+ kind: "story";
144488
+ storyType: "body";
144489
+ }) | ({
144490
+ kind: "story";
144491
+ storyType: "headerFooterSlot";
144492
+ section: {
144493
+ kind: "section";
144494
+ sectionId: string;
144495
+ };
144496
+ headerFooterKind: "header" | "footer";
144497
+ variant: "default" | "first" | "even";
144498
+ resolution?: "effective" | "explicit";
144499
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
144500
+ }) | ({
144501
+ kind: "story";
144502
+ storyType: "headerFooterPart";
144503
+ refId: string;
144504
+ }) | ({
144505
+ kind: "story";
144506
+ storyType: "footnote";
144507
+ noteId: string;
144508
+ }) | ({
144509
+ kind: "story";
144510
+ storyType: "endnote";
144511
+ noteId: string;
144512
+ }) | ({
144513
+ kind: "story";
144514
+ storyType: "textbox";
144515
+ textboxId: string;
144516
+ });
144517
+ };
144518
+ edge: "before" | "after";
144519
+ });
144520
+ story?: ({
144521
+ kind: "story";
144522
+ storyType: "body";
144523
+ }) | ({
144524
+ kind: "story";
144525
+ storyType: "headerFooterSlot";
144526
+ section: {
144527
+ kind: "section";
144528
+ sectionId: string;
144529
+ };
144530
+ headerFooterKind: "header" | "footer";
144531
+ variant: "default" | "first" | "even";
144532
+ resolution?: "effective" | "explicit";
144533
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
144534
+ }) | ({
144535
+ kind: "story";
144536
+ storyType: "headerFooterPart";
144537
+ refId: string;
144538
+ }) | ({
144539
+ kind: "story";
144540
+ storyType: "footnote";
144541
+ noteId: string;
144542
+ }) | ({
144543
+ kind: "story";
144544
+ storyType: "endnote";
144545
+ noteId: string;
144546
+ }) | ({
144547
+ kind: "story";
144548
+ storyType: "textbox";
144549
+ textboxId: string;
144550
+ });
144551
+ coordinateSpace?: "visible" | "tracked";
144552
+ };
144553
+ }) | ({
144554
+ by: "block";
144555
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
144556
+ nodeId: string;
144557
+ });
144558
+ args: {
144559
+ content: Record<string, unknown> | Array<Record<string, unknown>>;
144560
+ nestingPolicy?: {
144561
+ tables?: "forbid" | "allow";
144562
+ };
144563
+ };
143644
144564
  }) | ({
143645
144565
  id: string;
143646
144566
  op: "assert";
@@ -145016,6 +145936,297 @@ export interface DocMutationsApplyBoundParams {
145016
145936
  alignment?: "left" | "center" | "right" | "justify";
145017
145937
  scope?: "match" | "block";
145018
145938
  };
145939
+ }) | ({
145940
+ id: string;
145941
+ op: "structural.replace";
145942
+ where: ({
145943
+ by: "select";
145944
+ select: ({
145945
+ type: "text";
145946
+ pattern: string;
145947
+ mode?: "contains" | "regex";
145948
+ caseSensitive?: boolean;
145949
+ wholeWord?: boolean;
145950
+ includeDeletedText?: boolean;
145951
+ }) | ({
145952
+ type: "node";
145953
+ nodeType?: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt" | "run" | "bookmark" | "comment" | "hyperlink" | "footnoteRef" | "endnoteRef" | "crossRef" | "indexEntry" | "citation" | "authorityEntry" | "sequenceField" | "tab" | "lineBreak";
145954
+ kind?: "block" | "inline";
145955
+ });
145956
+ within?: {
145957
+ kind: "block";
145958
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
145959
+ nodeId: string;
145960
+ story?: ({
145961
+ kind: "story";
145962
+ storyType: "body";
145963
+ }) | ({
145964
+ kind: "story";
145965
+ storyType: "headerFooterSlot";
145966
+ section: {
145967
+ kind: "section";
145968
+ sectionId: string;
145969
+ };
145970
+ headerFooterKind: "header" | "footer";
145971
+ variant: "default" | "first" | "even";
145972
+ resolution?: "effective" | "explicit";
145973
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
145974
+ }) | ({
145975
+ kind: "story";
145976
+ storyType: "headerFooterPart";
145977
+ refId: string;
145978
+ }) | ({
145979
+ kind: "story";
145980
+ storyType: "footnote";
145981
+ noteId: string;
145982
+ }) | ({
145983
+ kind: "story";
145984
+ storyType: "endnote";
145985
+ noteId: string;
145986
+ }) | ({
145987
+ kind: "story";
145988
+ storyType: "textbox";
145989
+ textboxId: string;
145990
+ });
145991
+ };
145992
+ require: "first" | "exactlyOne" | "all";
145993
+ }) | ({
145994
+ by: "ref";
145995
+ ref: string;
145996
+ within?: {
145997
+ kind: "block";
145998
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
145999
+ nodeId: string;
146000
+ story?: ({
146001
+ kind: "story";
146002
+ storyType: "body";
146003
+ }) | ({
146004
+ kind: "story";
146005
+ storyType: "headerFooterSlot";
146006
+ section: {
146007
+ kind: "section";
146008
+ sectionId: string;
146009
+ };
146010
+ headerFooterKind: "header" | "footer";
146011
+ variant: "default" | "first" | "even";
146012
+ resolution?: "effective" | "explicit";
146013
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
146014
+ }) | ({
146015
+ kind: "story";
146016
+ storyType: "headerFooterPart";
146017
+ refId: string;
146018
+ }) | ({
146019
+ kind: "story";
146020
+ storyType: "footnote";
146021
+ noteId: string;
146022
+ }) | ({
146023
+ kind: "story";
146024
+ storyType: "endnote";
146025
+ noteId: string;
146026
+ }) | ({
146027
+ kind: "story";
146028
+ storyType: "textbox";
146029
+ textboxId: string;
146030
+ });
146031
+ };
146032
+ }) | ({
146033
+ by: "target";
146034
+ target: {
146035
+ kind: "selection";
146036
+ start: ({
146037
+ kind: "text";
146038
+ blockId: string;
146039
+ offset: number;
146040
+ story?: ({
146041
+ kind: "story";
146042
+ storyType: "body";
146043
+ }) | ({
146044
+ kind: "story";
146045
+ storyType: "headerFooterSlot";
146046
+ section: {
146047
+ kind: "section";
146048
+ sectionId: string;
146049
+ };
146050
+ headerFooterKind: "header" | "footer";
146051
+ variant: "default" | "first" | "even";
146052
+ resolution?: "effective" | "explicit";
146053
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
146054
+ }) | ({
146055
+ kind: "story";
146056
+ storyType: "headerFooterPart";
146057
+ refId: string;
146058
+ }) | ({
146059
+ kind: "story";
146060
+ storyType: "footnote";
146061
+ noteId: string;
146062
+ }) | ({
146063
+ kind: "story";
146064
+ storyType: "endnote";
146065
+ noteId: string;
146066
+ }) | ({
146067
+ kind: "story";
146068
+ storyType: "textbox";
146069
+ textboxId: string;
146070
+ });
146071
+ }) | ({
146072
+ kind: "nodeEdge";
146073
+ node: {
146074
+ kind: "block";
146075
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
146076
+ nodeId: string;
146077
+ story?: ({
146078
+ kind: "story";
146079
+ storyType: "body";
146080
+ }) | ({
146081
+ kind: "story";
146082
+ storyType: "headerFooterSlot";
146083
+ section: {
146084
+ kind: "section";
146085
+ sectionId: string;
146086
+ };
146087
+ headerFooterKind: "header" | "footer";
146088
+ variant: "default" | "first" | "even";
146089
+ resolution?: "effective" | "explicit";
146090
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
146091
+ }) | ({
146092
+ kind: "story";
146093
+ storyType: "headerFooterPart";
146094
+ refId: string;
146095
+ }) | ({
146096
+ kind: "story";
146097
+ storyType: "footnote";
146098
+ noteId: string;
146099
+ }) | ({
146100
+ kind: "story";
146101
+ storyType: "endnote";
146102
+ noteId: string;
146103
+ }) | ({
146104
+ kind: "story";
146105
+ storyType: "textbox";
146106
+ textboxId: string;
146107
+ });
146108
+ };
146109
+ edge: "before" | "after";
146110
+ });
146111
+ end: ({
146112
+ kind: "text";
146113
+ blockId: string;
146114
+ offset: number;
146115
+ story?: ({
146116
+ kind: "story";
146117
+ storyType: "body";
146118
+ }) | ({
146119
+ kind: "story";
146120
+ storyType: "headerFooterSlot";
146121
+ section: {
146122
+ kind: "section";
146123
+ sectionId: string;
146124
+ };
146125
+ headerFooterKind: "header" | "footer";
146126
+ variant: "default" | "first" | "even";
146127
+ resolution?: "effective" | "explicit";
146128
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
146129
+ }) | ({
146130
+ kind: "story";
146131
+ storyType: "headerFooterPart";
146132
+ refId: string;
146133
+ }) | ({
146134
+ kind: "story";
146135
+ storyType: "footnote";
146136
+ noteId: string;
146137
+ }) | ({
146138
+ kind: "story";
146139
+ storyType: "endnote";
146140
+ noteId: string;
146141
+ }) | ({
146142
+ kind: "story";
146143
+ storyType: "textbox";
146144
+ textboxId: string;
146145
+ });
146146
+ }) | ({
146147
+ kind: "nodeEdge";
146148
+ node: {
146149
+ kind: "block";
146150
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableOfContents" | "sdt" | "image";
146151
+ nodeId: string;
146152
+ story?: ({
146153
+ kind: "story";
146154
+ storyType: "body";
146155
+ }) | ({
146156
+ kind: "story";
146157
+ storyType: "headerFooterSlot";
146158
+ section: {
146159
+ kind: "section";
146160
+ sectionId: string;
146161
+ };
146162
+ headerFooterKind: "header" | "footer";
146163
+ variant: "default" | "first" | "even";
146164
+ resolution?: "effective" | "explicit";
146165
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
146166
+ }) | ({
146167
+ kind: "story";
146168
+ storyType: "headerFooterPart";
146169
+ refId: string;
146170
+ }) | ({
146171
+ kind: "story";
146172
+ storyType: "footnote";
146173
+ noteId: string;
146174
+ }) | ({
146175
+ kind: "story";
146176
+ storyType: "endnote";
146177
+ noteId: string;
146178
+ }) | ({
146179
+ kind: "story";
146180
+ storyType: "textbox";
146181
+ textboxId: string;
146182
+ });
146183
+ };
146184
+ edge: "before" | "after";
146185
+ });
146186
+ story?: ({
146187
+ kind: "story";
146188
+ storyType: "body";
146189
+ }) | ({
146190
+ kind: "story";
146191
+ storyType: "headerFooterSlot";
146192
+ section: {
146193
+ kind: "section";
146194
+ sectionId: string;
146195
+ };
146196
+ headerFooterKind: "header" | "footer";
146197
+ variant: "default" | "first" | "even";
146198
+ resolution?: "effective" | "explicit";
146199
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
146200
+ }) | ({
146201
+ kind: "story";
146202
+ storyType: "headerFooterPart";
146203
+ refId: string;
146204
+ }) | ({
146205
+ kind: "story";
146206
+ storyType: "footnote";
146207
+ noteId: string;
146208
+ }) | ({
146209
+ kind: "story";
146210
+ storyType: "endnote";
146211
+ noteId: string;
146212
+ }) | ({
146213
+ kind: "story";
146214
+ storyType: "textbox";
146215
+ textboxId: string;
146216
+ });
146217
+ coordinateSpace?: "visible" | "tracked";
146218
+ };
146219
+ }) | ({
146220
+ by: "block";
146221
+ nodeType: "paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt";
146222
+ nodeId: string;
146223
+ });
146224
+ args: {
146225
+ content: Record<string, unknown> | Array<Record<string, unknown>>;
146226
+ nestingPolicy?: {
146227
+ tables?: "forbid" | "allow";
146228
+ };
146229
+ };
145019
146230
  }) | ({
145020
146231
  id: string;
145021
146232
  op: "assert";