@superdoc-dev/sdk 1.8.0-next.6 → 1.8.0-next.60

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.
@@ -122,6 +122,9 @@ export const CONTRACT = {
122
122
  "$ref": "#/$defs/TextSegment"
123
123
  },
124
124
  "minItems": 1
125
+ },
126
+ "story": {
127
+ "$ref": "#/$defs/StoryLocator"
125
128
  }
126
129
  },
127
130
  "additionalProperties": false,
@@ -1220,7 +1223,7 @@ export const CONTRACT = {
1220
1223
  "find"
1221
1224
  ],
1222
1225
  "category": "core",
1223
- "description": "Search the document for text or node matches using SDM/1 selectors. Returns discovery-grade results for mutation targeting, use query.match instead.",
1226
+ "description": "Search the document for text or node matches using SDM/1 selectors. Returns discovery-grade results: for mutation targeting, use query.match instead.",
1224
1227
  "requiresDocumentContext": true,
1225
1228
  "docRequirement": "optional",
1226
1229
  "responseEnvelopeKey": "result",
@@ -3131,7 +3134,7 @@ export const CONTRACT = {
3131
3134
  "extract"
3132
3135
  ],
3133
3136
  "category": "core",
3134
- "description": "Extract all document content with stable IDs for RAG pipelines. Returns blocks with full text, comments, and tracked changes each with an ID compatible with scrollToElement().",
3137
+ "description": "Extract all document content with stable IDs for RAG pipelines. Returns blocks with full text, comments, and tracked changes: each with an ID compatible with scrollToElement().",
3135
3138
  "requiresDocumentContext": true,
3136
3139
  "docRequirement": "optional",
3137
3140
  "responseEnvelopeKey": null,
@@ -3170,7 +3173,7 @@ export const CONTRACT = {
3170
3173
  "properties": {
3171
3174
  "nodeId": {
3172
3175
  "type": "string",
3173
- "description": "Stable block ID pass to scrollToElement() for navigation."
3176
+ "description": "Stable block ID: pass to scrollToElement() for navigation."
3174
3177
  },
3175
3178
  "type": {
3176
3179
  "type": "string",
@@ -3180,9 +3183,52 @@ export const CONTRACT = {
3180
3183
  "type": "string",
3181
3184
  "description": "Full plain text content of the block."
3182
3185
  },
3186
+ "textSpans": {
3187
+ "type": "array",
3188
+ "description": "Block text broken into runs with tracked-change marks preserved per run. Present only when the block contains at least one tracked change. Concatenating span text yields `text`.",
3189
+ "items": {
3190
+ "type": "object",
3191
+ "properties": {
3192
+ "text": {
3193
+ "type": "string",
3194
+ "description": "Raw text of the run."
3195
+ },
3196
+ "trackedChanges": {
3197
+ "type": "array",
3198
+ "description": "Tracked-change marks applied to this run.",
3199
+ "items": {
3200
+ "type": "object",
3201
+ "properties": {
3202
+ "entityId": {
3203
+ "type": "string",
3204
+ "description": "Tracked change entity ID matching an entry in trackedChanges[]."
3205
+ },
3206
+ "type": {
3207
+ "type": "string",
3208
+ "enum": [
3209
+ "insert",
3210
+ "delete",
3211
+ "format"
3212
+ ]
3213
+ }
3214
+ },
3215
+ "additionalProperties": false,
3216
+ "required": [
3217
+ "entityId",
3218
+ "type"
3219
+ ]
3220
+ }
3221
+ }
3222
+ },
3223
+ "additionalProperties": false,
3224
+ "required": [
3225
+ "text"
3226
+ ]
3227
+ }
3228
+ },
3183
3229
  "headingLevel": {
3184
3230
  "type": "integer",
3185
- "description": "Heading level (16). Only present for headings."
3231
+ "description": "Heading level (1-6). Only present for headings."
3186
3232
  },
3187
3233
  "tableContext": {
3188
3234
  "type": "object",
@@ -3245,7 +3291,7 @@ export const CONTRACT = {
3245
3291
  "properties": {
3246
3292
  "entityId": {
3247
3293
  "type": "string",
3248
- "description": "Comment entity ID pass to scrollToElement() for navigation."
3294
+ "description": "Comment entity ID: pass to scrollToElement() for navigation."
3249
3295
  },
3250
3296
  "text": {
3251
3297
  "type": "string",
@@ -3285,7 +3331,7 @@ export const CONTRACT = {
3285
3331
  "properties": {
3286
3332
  "entityId": {
3287
3333
  "type": "string",
3288
- "description": "Tracked change entity ID pass to scrollToElement() for navigation."
3334
+ "description": "Tracked change entity ID. Pass to scrollToElement() for navigation."
3289
3335
  },
3290
3336
  "type": {
3291
3337
  "type": "string",
@@ -3293,11 +3339,37 @@ export const CONTRACT = {
3293
3339
  "insert",
3294
3340
  "delete",
3295
3341
  "format"
3296
- ]
3342
+ ],
3343
+ "description": "Aggregate type at the entity level. In paired replacement mode, a delete+insert pair shares one entity and this collapses to 'insert'; per-half type lives on block.textSpans[].trackedChanges[]."
3344
+ },
3345
+ "blockIds": {
3346
+ "type": "array",
3347
+ "description": "Block IDs whose textSpans carry this change.",
3348
+ "items": {
3349
+ "type": "string"
3350
+ }
3351
+ },
3352
+ "wordRevisionIds": {
3353
+ "type": "object",
3354
+ "properties": {
3355
+ "insert": {
3356
+ "type": "string",
3357
+ "description": "Original OOXML w:id from a w:ins mark."
3358
+ },
3359
+ "delete": {
3360
+ "type": "string",
3361
+ "description": "Original OOXML w:id from a w:del mark."
3362
+ },
3363
+ "format": {
3364
+ "type": "string",
3365
+ "description": "Original OOXML w:id from a w:rPrChange mark."
3366
+ }
3367
+ },
3368
+ "additionalProperties": false
3297
3369
  },
3298
3370
  "excerpt": {
3299
3371
  "type": "string",
3300
- "description": "Short text excerpt of the changed content."
3372
+ "description": "Short text excerpt of the changed content. Omitted for paired replacements; read block.textSpans for the per-half text."
3301
3373
  },
3302
3374
  "author": {
3303
3375
  "type": "string",
@@ -34826,7 +34898,7 @@ export const CONTRACT = {
34826
34898
  "name": "text",
34827
34899
  "kind": "flag",
34828
34900
  "type": "string",
34829
- "description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item do NOT use newlines to put multiple items in one paragraph."
34901
+ "description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item: do NOT use newlines to put multiple items in one paragraph."
34830
34902
  },
34831
34903
  {
34832
34904
  "name": "input",
@@ -34910,7 +34982,7 @@ export const CONTRACT = {
34910
34982
  },
34911
34983
  "text": {
34912
34984
  "type": "string",
34913
- "description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item do NOT use newlines to put multiple items in one paragraph."
34985
+ "description": "Paragraph text content. Each call creates ONE paragraph. For multiple items (e.g. list items), call superdoc_create separately for each item: do NOT use newlines to put multiple items in one paragraph."
34914
34986
  }
34915
34987
  },
34916
34988
  "additionalProperties": false
@@ -51249,7 +51321,7 @@ export const CONTRACT = {
51249
51321
  "create"
51250
51322
  ],
51251
51323
  "category": "lists",
51252
- "description": "Create a new list from one or more paragraphs. Supports optional preset or style for new sequences. When sequence.mode is \"continuePrevious\", preset and style are not allowed the new items inherit formatting from the previous sequence.",
51324
+ "description": "Create a new list from one or more paragraphs. Supports optional preset or style for new sequences. When sequence.mode is \"continuePrevious\", preset and style are not allowed: the new items inherit formatting from the previous sequence.",
51253
51325
  "requiresDocumentContext": true,
51254
51326
  "docRequirement": "optional",
51255
51327
  "responseEnvelopeKey": "result",
@@ -51319,9 +51391,9 @@ export const CONTRACT = {
51319
51391
  "const": "fromParagraphs"
51320
51392
  }
51321
51393
  ],
51322
- "description": "Required. 'fromParagraphs' converts existing paragraphs into list items each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'."
51394
+ "description": "Required. 'fromParagraphs' converts existing paragraphs into list items: each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'."
51323
51395
  },
51324
- "description": "Required. 'fromParagraphs' converts existing paragraphs into list items each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'."
51396
+ "description": "Required. 'fromParagraphs' converts existing paragraphs into list items: each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'."
51325
51397
  },
51326
51398
  {
51327
51399
  "name": "at",
@@ -51636,7 +51708,7 @@ export const CONTRACT = {
51636
51708
  "empty",
51637
51709
  "fromParagraphs"
51638
51710
  ],
51639
- "description": "Required. 'fromParagraphs' converts existing paragraphs into list items each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'."
51711
+ "description": "Required. 'fromParagraphs' converts existing paragraphs into list items: each paragraph becomes one item, so create one paragraph per item first. 'empty' creates a new empty list at 'at'."
51640
51712
  },
51641
51713
  "at": {
51642
51714
  "$ref": "#/$defs/BlockAddress",
@@ -53583,7 +53655,7 @@ export const CONTRACT = {
53583
53655
  "merge"
53584
53656
  ],
53585
53657
  "category": "lists",
53586
- "description": "Compound: merge two adjacent list sequences into one. Reassigns numId on the absorbed sequence (no strict abstractNumId check absorbed items adopt the absorbing definition) and deletes empty paragraphs between the two sequences. Use this instead of lists.join for the user-facing \"merge these lists\" intent.",
53658
+ "description": "Compound: merge two adjacent list sequences into one. Reassigns numId on the absorbed sequence (no strict abstractNumId check: absorbed items adopt the absorbing definition) and deletes empty paragraphs between the two sequences. Use this instead of lists.join for the user-facing \"merge these lists\" intent.",
53587
53659
  "requiresDocumentContext": true,
53588
53660
  "docRequirement": "optional",
53589
53661
  "responseEnvelopeKey": null,
@@ -59738,7 +59810,7 @@ export const CONTRACT = {
59738
59810
  "set-level-number-style"
59739
59811
  ],
59740
59812
  "category": "lists",
59741
- "description": "Set the numbering style (e.g. decimal, lowerLetter, upperRoman) for a specific list level. Rejects \"bullet\" use setLevelBullet instead. Sequence-local: clones shared definitions.",
59813
+ "description": "Set the numbering style (e.g. decimal, lowerLetter, upperRoman) for a specific list level. Rejects \"bullet\": use setLevelBullet instead. Sequence-local: clones shared definitions.",
59742
59814
  "requiresDocumentContext": true,
59743
59815
  "docRequirement": "optional",
59744
59816
  "responseEnvelopeKey": null,
@@ -60464,7 +60536,7 @@ export const CONTRACT = {
60464
60536
  "set-level-layout"
60465
60537
  ],
60466
60538
  "category": "lists",
60467
- "description": "Set the layout properties (alignment, indentation, trailing character, tab stop) for a specific list level. Accepts partial updates omitted fields are left unchanged. Sequence-local: clones shared definitions.",
60539
+ "description": "Set the layout properties (alignment, indentation, trailing character, tab stop) for a specific list level. Accepts partial updates: omitted fields are left unchanged. Sequence-local: clones shared definitions.",
60468
60540
  "requiresDocumentContext": true,
60469
60541
  "docRequirement": "optional",
60470
60542
  "responseEnvelopeKey": null,
@@ -60904,6 +60976,162 @@ export const CONTRACT = {
60904
60976
  "range"
60905
60977
  ]
60906
60978
  }
60979
+ },
60980
+ "story": {
60981
+ "oneOf": [
60982
+ {
60983
+ "type": "object",
60984
+ "properties": {
60985
+ "kind": {
60986
+ "const": "story"
60987
+ },
60988
+ "storyType": {
60989
+ "const": "body"
60990
+ }
60991
+ },
60992
+ "required": [
60993
+ "kind",
60994
+ "storyType"
60995
+ ]
60996
+ },
60997
+ {
60998
+ "type": "object",
60999
+ "properties": {
61000
+ "kind": {
61001
+ "const": "story"
61002
+ },
61003
+ "storyType": {
61004
+ "const": "headerFooterSlot"
61005
+ },
61006
+ "section": {
61007
+ "type": "object",
61008
+ "properties": {
61009
+ "kind": {
61010
+ "const": "section"
61011
+ },
61012
+ "sectionId": {
61013
+ "type": "string"
61014
+ }
61015
+ },
61016
+ "required": [
61017
+ "kind",
61018
+ "sectionId"
61019
+ ]
61020
+ },
61021
+ "headerFooterKind": {
61022
+ "oneOf": [
61023
+ {
61024
+ "const": "header"
61025
+ },
61026
+ {
61027
+ "const": "footer"
61028
+ }
61029
+ ]
61030
+ },
61031
+ "variant": {
61032
+ "oneOf": [
61033
+ {
61034
+ "const": "default"
61035
+ },
61036
+ {
61037
+ "const": "first"
61038
+ },
61039
+ {
61040
+ "const": "even"
61041
+ }
61042
+ ]
61043
+ },
61044
+ "resolution": {
61045
+ "oneOf": [
61046
+ {
61047
+ "const": "effective"
61048
+ },
61049
+ {
61050
+ "const": "explicit"
61051
+ }
61052
+ ]
61053
+ },
61054
+ "onWrite": {
61055
+ "oneOf": [
61056
+ {
61057
+ "const": "materializeIfInherited"
61058
+ },
61059
+ {
61060
+ "const": "editResolvedPart"
61061
+ },
61062
+ {
61063
+ "const": "error"
61064
+ }
61065
+ ]
61066
+ }
61067
+ },
61068
+ "required": [
61069
+ "kind",
61070
+ "storyType",
61071
+ "section",
61072
+ "headerFooterKind",
61073
+ "variant"
61074
+ ]
61075
+ },
61076
+ {
61077
+ "type": "object",
61078
+ "properties": {
61079
+ "kind": {
61080
+ "const": "story"
61081
+ },
61082
+ "storyType": {
61083
+ "const": "headerFooterPart"
61084
+ },
61085
+ "refId": {
61086
+ "type": "string"
61087
+ }
61088
+ },
61089
+ "required": [
61090
+ "kind",
61091
+ "storyType",
61092
+ "refId"
61093
+ ]
61094
+ },
61095
+ {
61096
+ "type": "object",
61097
+ "properties": {
61098
+ "kind": {
61099
+ "const": "story"
61100
+ },
61101
+ "storyType": {
61102
+ "const": "footnote"
61103
+ },
61104
+ "noteId": {
61105
+ "type": "string"
61106
+ }
61107
+ },
61108
+ "required": [
61109
+ "kind",
61110
+ "storyType",
61111
+ "noteId"
61112
+ ]
61113
+ },
61114
+ {
61115
+ "type": "object",
61116
+ "properties": {
61117
+ "kind": {
61118
+ "const": "story"
61119
+ },
61120
+ "storyType": {
61121
+ "const": "endnote"
61122
+ },
61123
+ "noteId": {
61124
+ "type": "string"
61125
+ }
61126
+ },
61127
+ "required": [
61128
+ "kind",
61129
+ "storyType",
61130
+ "noteId"
61131
+ ]
61132
+ }
61133
+ ],
61134
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
60907
61135
  }
60908
61136
  },
60909
61137
  "required": [
@@ -61173,11 +61401,14 @@ export const CONTRACT = {
61173
61401
  "oneOf": [
61174
61402
  {
61175
61403
  "const": "resolved"
61404
+ },
61405
+ {
61406
+ "const": "active"
61176
61407
  }
61177
61408
  ],
61178
- "description": "Set comment status. Use 'resolved' to mark as resolved."
61409
+ "description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
61179
61410
  },
61180
- "description": "Set comment status. Use 'resolved' to mark as resolved."
61411
+ "description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
61181
61412
  },
61182
61413
  {
61183
61414
  "name": "isInternal",
@@ -61229,9 +61460,10 @@ export const CONTRACT = {
61229
61460
  },
61230
61461
  "status": {
61231
61462
  "enum": [
61232
- "resolved"
61463
+ "resolved",
61464
+ "active"
61233
61465
  ],
61234
- "description": "Set comment status. Use 'resolved' to mark as resolved."
61466
+ "description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
61235
61467
  },
61236
61468
  "isInternal": {
61237
61469
  "type": "boolean",
@@ -64127,6 +64359,18 @@ export const CONTRACT = {
64127
64359
  "type": "string"
64128
64360
  }
64129
64361
  },
64362
+ "activeCommentIds": {
64363
+ "type": "array",
64364
+ "items": {
64365
+ "type": "string"
64366
+ }
64367
+ },
64368
+ "activeChangeIds": {
64369
+ "type": "array",
64370
+ "items": {
64371
+ "type": "string"
64372
+ }
64373
+ },
64130
64374
  "text": {
64131
64375
  "type": "string"
64132
64376
  }
@@ -64135,7 +64379,9 @@ export const CONTRACT = {
64135
64379
  "required": [
64136
64380
  "empty",
64137
64381
  "target",
64138
- "activeMarks"
64382
+ "activeMarks",
64383
+ "activeCommentIds",
64384
+ "activeChangeIds"
64139
64385
  ]
64140
64386
  }
64141
64387
  },
@@ -132469,6 +132715,170 @@ export const CONTRACT = {
132469
132715
  "name": "offset",
132470
132716
  "kind": "flag",
132471
132717
  "type": "number"
132718
+ },
132719
+ {
132720
+ "name": "in",
132721
+ "kind": "jsonFlag",
132722
+ "type": "json",
132723
+ "flag": "in-json",
132724
+ "schema": {
132725
+ "oneOf": [
132726
+ {
132727
+ "type": "object",
132728
+ "properties": {
132729
+ "kind": {
132730
+ "const": "story"
132731
+ },
132732
+ "storyType": {
132733
+ "const": "body"
132734
+ }
132735
+ },
132736
+ "required": [
132737
+ "kind",
132738
+ "storyType"
132739
+ ]
132740
+ },
132741
+ {
132742
+ "type": "object",
132743
+ "properties": {
132744
+ "kind": {
132745
+ "const": "story"
132746
+ },
132747
+ "storyType": {
132748
+ "const": "headerFooterSlot"
132749
+ },
132750
+ "section": {
132751
+ "type": "object",
132752
+ "properties": {
132753
+ "kind": {
132754
+ "const": "section"
132755
+ },
132756
+ "sectionId": {
132757
+ "type": "string"
132758
+ }
132759
+ },
132760
+ "required": [
132761
+ "kind",
132762
+ "sectionId"
132763
+ ]
132764
+ },
132765
+ "headerFooterKind": {
132766
+ "oneOf": [
132767
+ {
132768
+ "const": "header"
132769
+ },
132770
+ {
132771
+ "const": "footer"
132772
+ }
132773
+ ]
132774
+ },
132775
+ "variant": {
132776
+ "oneOf": [
132777
+ {
132778
+ "const": "default"
132779
+ },
132780
+ {
132781
+ "const": "first"
132782
+ },
132783
+ {
132784
+ "const": "even"
132785
+ }
132786
+ ]
132787
+ },
132788
+ "resolution": {
132789
+ "oneOf": [
132790
+ {
132791
+ "const": "effective"
132792
+ },
132793
+ {
132794
+ "const": "explicit"
132795
+ }
132796
+ ]
132797
+ },
132798
+ "onWrite": {
132799
+ "oneOf": [
132800
+ {
132801
+ "const": "materializeIfInherited"
132802
+ },
132803
+ {
132804
+ "const": "editResolvedPart"
132805
+ },
132806
+ {
132807
+ "const": "error"
132808
+ }
132809
+ ]
132810
+ }
132811
+ },
132812
+ "required": [
132813
+ "kind",
132814
+ "storyType",
132815
+ "section",
132816
+ "headerFooterKind",
132817
+ "variant"
132818
+ ]
132819
+ },
132820
+ {
132821
+ "type": "object",
132822
+ "properties": {
132823
+ "kind": {
132824
+ "const": "story"
132825
+ },
132826
+ "storyType": {
132827
+ "const": "headerFooterPart"
132828
+ },
132829
+ "refId": {
132830
+ "type": "string"
132831
+ }
132832
+ },
132833
+ "required": [
132834
+ "kind",
132835
+ "storyType",
132836
+ "refId"
132837
+ ]
132838
+ },
132839
+ {
132840
+ "type": "object",
132841
+ "properties": {
132842
+ "kind": {
132843
+ "const": "story"
132844
+ },
132845
+ "storyType": {
132846
+ "const": "footnote"
132847
+ },
132848
+ "noteId": {
132849
+ "type": "string"
132850
+ }
132851
+ },
132852
+ "required": [
132853
+ "kind",
132854
+ "storyType",
132855
+ "noteId"
132856
+ ]
132857
+ },
132858
+ {
132859
+ "type": "object",
132860
+ "properties": {
132861
+ "kind": {
132862
+ "const": "story"
132863
+ },
132864
+ "storyType": {
132865
+ "const": "endnote"
132866
+ },
132867
+ "noteId": {
132868
+ "type": "string"
132869
+ }
132870
+ },
132871
+ "required": [
132872
+ "kind",
132873
+ "storyType",
132874
+ "noteId"
132875
+ ]
132876
+ }
132877
+ ],
132878
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
132879
+ },
132880
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.",
132881
+ "agentVisible": false
132472
132882
  }
132473
132883
  ],
132474
132884
  "constraints": null,
@@ -132486,6 +132896,9 @@ export const CONTRACT = {
132486
132896
  "offset": {
132487
132897
  "type": "integer",
132488
132898
  "minimum": 0
132899
+ },
132900
+ "in": {
132901
+ "$ref": "#/$defs/StoryLocator"
132489
132902
  }
132490
132903
  },
132491
132904
  "additionalProperties": false
@@ -132538,6 +132951,162 @@ export const CONTRACT = {
132538
132951
  },
132539
132952
  "name": {
132540
132953
  "type": "string"
132954
+ },
132955
+ "story": {
132956
+ "oneOf": [
132957
+ {
132958
+ "type": "object",
132959
+ "properties": {
132960
+ "kind": {
132961
+ "const": "story"
132962
+ },
132963
+ "storyType": {
132964
+ "const": "body"
132965
+ }
132966
+ },
132967
+ "required": [
132968
+ "kind",
132969
+ "storyType"
132970
+ ]
132971
+ },
132972
+ {
132973
+ "type": "object",
132974
+ "properties": {
132975
+ "kind": {
132976
+ "const": "story"
132977
+ },
132978
+ "storyType": {
132979
+ "const": "headerFooterSlot"
132980
+ },
132981
+ "section": {
132982
+ "type": "object",
132983
+ "properties": {
132984
+ "kind": {
132985
+ "const": "section"
132986
+ },
132987
+ "sectionId": {
132988
+ "type": "string"
132989
+ }
132990
+ },
132991
+ "required": [
132992
+ "kind",
132993
+ "sectionId"
132994
+ ]
132995
+ },
132996
+ "headerFooterKind": {
132997
+ "oneOf": [
132998
+ {
132999
+ "const": "header"
133000
+ },
133001
+ {
133002
+ "const": "footer"
133003
+ }
133004
+ ]
133005
+ },
133006
+ "variant": {
133007
+ "oneOf": [
133008
+ {
133009
+ "const": "default"
133010
+ },
133011
+ {
133012
+ "const": "first"
133013
+ },
133014
+ {
133015
+ "const": "even"
133016
+ }
133017
+ ]
133018
+ },
133019
+ "resolution": {
133020
+ "oneOf": [
133021
+ {
133022
+ "const": "effective"
133023
+ },
133024
+ {
133025
+ "const": "explicit"
133026
+ }
133027
+ ]
133028
+ },
133029
+ "onWrite": {
133030
+ "oneOf": [
133031
+ {
133032
+ "const": "materializeIfInherited"
133033
+ },
133034
+ {
133035
+ "const": "editResolvedPart"
133036
+ },
133037
+ {
133038
+ "const": "error"
133039
+ }
133040
+ ]
133041
+ }
133042
+ },
133043
+ "required": [
133044
+ "kind",
133045
+ "storyType",
133046
+ "section",
133047
+ "headerFooterKind",
133048
+ "variant"
133049
+ ]
133050
+ },
133051
+ {
133052
+ "type": "object",
133053
+ "properties": {
133054
+ "kind": {
133055
+ "const": "story"
133056
+ },
133057
+ "storyType": {
133058
+ "const": "headerFooterPart"
133059
+ },
133060
+ "refId": {
133061
+ "type": "string"
133062
+ }
133063
+ },
133064
+ "required": [
133065
+ "kind",
133066
+ "storyType",
133067
+ "refId"
133068
+ ]
133069
+ },
133070
+ {
133071
+ "type": "object",
133072
+ "properties": {
133073
+ "kind": {
133074
+ "const": "story"
133075
+ },
133076
+ "storyType": {
133077
+ "const": "footnote"
133078
+ },
133079
+ "noteId": {
133080
+ "type": "string"
133081
+ }
133082
+ },
133083
+ "required": [
133084
+ "kind",
133085
+ "storyType",
133086
+ "noteId"
133087
+ ]
133088
+ },
133089
+ {
133090
+ "type": "object",
133091
+ "properties": {
133092
+ "kind": {
133093
+ "const": "story"
133094
+ },
133095
+ "storyType": {
133096
+ "const": "endnote"
133097
+ },
133098
+ "noteId": {
133099
+ "type": "string"
133100
+ }
133101
+ },
133102
+ "required": [
133103
+ "kind",
133104
+ "storyType",
133105
+ "noteId"
133106
+ ]
133107
+ }
133108
+ ],
133109
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
132541
133110
  }
132542
133111
  },
132543
133112
  "required": [
@@ -132567,6 +133136,9 @@ export const CONTRACT = {
132567
133136
  },
132568
133137
  "name": {
132569
133138
  "type": "string"
133139
+ },
133140
+ "story": {
133141
+ "$ref": "#/$defs/StoryLocator"
132570
133142
  }
132571
133143
  },
132572
133144
  "additionalProperties": false,
@@ -132699,6 +133271,162 @@ export const CONTRACT = {
132699
133271
  "range"
132700
133272
  ]
132701
133273
  }
133274
+ },
133275
+ "story": {
133276
+ "oneOf": [
133277
+ {
133278
+ "type": "object",
133279
+ "properties": {
133280
+ "kind": {
133281
+ "const": "story"
133282
+ },
133283
+ "storyType": {
133284
+ "const": "body"
133285
+ }
133286
+ },
133287
+ "required": [
133288
+ "kind",
133289
+ "storyType"
133290
+ ]
133291
+ },
133292
+ {
133293
+ "type": "object",
133294
+ "properties": {
133295
+ "kind": {
133296
+ "const": "story"
133297
+ },
133298
+ "storyType": {
133299
+ "const": "headerFooterSlot"
133300
+ },
133301
+ "section": {
133302
+ "type": "object",
133303
+ "properties": {
133304
+ "kind": {
133305
+ "const": "section"
133306
+ },
133307
+ "sectionId": {
133308
+ "type": "string"
133309
+ }
133310
+ },
133311
+ "required": [
133312
+ "kind",
133313
+ "sectionId"
133314
+ ]
133315
+ },
133316
+ "headerFooterKind": {
133317
+ "oneOf": [
133318
+ {
133319
+ "const": "header"
133320
+ },
133321
+ {
133322
+ "const": "footer"
133323
+ }
133324
+ ]
133325
+ },
133326
+ "variant": {
133327
+ "oneOf": [
133328
+ {
133329
+ "const": "default"
133330
+ },
133331
+ {
133332
+ "const": "first"
133333
+ },
133334
+ {
133335
+ "const": "even"
133336
+ }
133337
+ ]
133338
+ },
133339
+ "resolution": {
133340
+ "oneOf": [
133341
+ {
133342
+ "const": "effective"
133343
+ },
133344
+ {
133345
+ "const": "explicit"
133346
+ }
133347
+ ]
133348
+ },
133349
+ "onWrite": {
133350
+ "oneOf": [
133351
+ {
133352
+ "const": "materializeIfInherited"
133353
+ },
133354
+ {
133355
+ "const": "editResolvedPart"
133356
+ },
133357
+ {
133358
+ "const": "error"
133359
+ }
133360
+ ]
133361
+ }
133362
+ },
133363
+ "required": [
133364
+ "kind",
133365
+ "storyType",
133366
+ "section",
133367
+ "headerFooterKind",
133368
+ "variant"
133369
+ ]
133370
+ },
133371
+ {
133372
+ "type": "object",
133373
+ "properties": {
133374
+ "kind": {
133375
+ "const": "story"
133376
+ },
133377
+ "storyType": {
133378
+ "const": "headerFooterPart"
133379
+ },
133380
+ "refId": {
133381
+ "type": "string"
133382
+ }
133383
+ },
133384
+ "required": [
133385
+ "kind",
133386
+ "storyType",
133387
+ "refId"
133388
+ ]
133389
+ },
133390
+ {
133391
+ "type": "object",
133392
+ "properties": {
133393
+ "kind": {
133394
+ "const": "story"
133395
+ },
133396
+ "storyType": {
133397
+ "const": "footnote"
133398
+ },
133399
+ "noteId": {
133400
+ "type": "string"
133401
+ }
133402
+ },
133403
+ "required": [
133404
+ "kind",
133405
+ "storyType",
133406
+ "noteId"
133407
+ ]
133408
+ },
133409
+ {
133410
+ "type": "object",
133411
+ "properties": {
133412
+ "kind": {
133413
+ "const": "story"
133414
+ },
133415
+ "storyType": {
133416
+ "const": "endnote"
133417
+ },
133418
+ "noteId": {
133419
+ "type": "string"
133420
+ }
133421
+ },
133422
+ "required": [
133423
+ "kind",
133424
+ "storyType",
133425
+ "noteId"
133426
+ ]
133427
+ }
133428
+ ],
133429
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
132702
133430
  }
132703
133431
  },
132704
133432
  "required": [
@@ -132785,6 +133513,9 @@ export const CONTRACT = {
132785
133513
  },
132786
133514
  "name": {
132787
133515
  "type": "string"
133516
+ },
133517
+ "story": {
133518
+ "$ref": "#/$defs/StoryLocator"
132788
133519
  }
132789
133520
  },
132790
133521
  "additionalProperties": false,
@@ -132850,6 +133581,9 @@ export const CONTRACT = {
132850
133581
  },
132851
133582
  "name": {
132852
133583
  "type": "string"
133584
+ },
133585
+ "story": {
133586
+ "$ref": "#/$defs/StoryLocator"
132853
133587
  }
132854
133588
  },
132855
133589
  "additionalProperties": false,
@@ -132980,6 +133714,162 @@ export const CONTRACT = {
132980
133714
  },
132981
133715
  "name": {
132982
133716
  "type": "string"
133717
+ },
133718
+ "story": {
133719
+ "oneOf": [
133720
+ {
133721
+ "type": "object",
133722
+ "properties": {
133723
+ "kind": {
133724
+ "const": "story"
133725
+ },
133726
+ "storyType": {
133727
+ "const": "body"
133728
+ }
133729
+ },
133730
+ "required": [
133731
+ "kind",
133732
+ "storyType"
133733
+ ]
133734
+ },
133735
+ {
133736
+ "type": "object",
133737
+ "properties": {
133738
+ "kind": {
133739
+ "const": "story"
133740
+ },
133741
+ "storyType": {
133742
+ "const": "headerFooterSlot"
133743
+ },
133744
+ "section": {
133745
+ "type": "object",
133746
+ "properties": {
133747
+ "kind": {
133748
+ "const": "section"
133749
+ },
133750
+ "sectionId": {
133751
+ "type": "string"
133752
+ }
133753
+ },
133754
+ "required": [
133755
+ "kind",
133756
+ "sectionId"
133757
+ ]
133758
+ },
133759
+ "headerFooterKind": {
133760
+ "oneOf": [
133761
+ {
133762
+ "const": "header"
133763
+ },
133764
+ {
133765
+ "const": "footer"
133766
+ }
133767
+ ]
133768
+ },
133769
+ "variant": {
133770
+ "oneOf": [
133771
+ {
133772
+ "const": "default"
133773
+ },
133774
+ {
133775
+ "const": "first"
133776
+ },
133777
+ {
133778
+ "const": "even"
133779
+ }
133780
+ ]
133781
+ },
133782
+ "resolution": {
133783
+ "oneOf": [
133784
+ {
133785
+ "const": "effective"
133786
+ },
133787
+ {
133788
+ "const": "explicit"
133789
+ }
133790
+ ]
133791
+ },
133792
+ "onWrite": {
133793
+ "oneOf": [
133794
+ {
133795
+ "const": "materializeIfInherited"
133796
+ },
133797
+ {
133798
+ "const": "editResolvedPart"
133799
+ },
133800
+ {
133801
+ "const": "error"
133802
+ }
133803
+ ]
133804
+ }
133805
+ },
133806
+ "required": [
133807
+ "kind",
133808
+ "storyType",
133809
+ "section",
133810
+ "headerFooterKind",
133811
+ "variant"
133812
+ ]
133813
+ },
133814
+ {
133815
+ "type": "object",
133816
+ "properties": {
133817
+ "kind": {
133818
+ "const": "story"
133819
+ },
133820
+ "storyType": {
133821
+ "const": "headerFooterPart"
133822
+ },
133823
+ "refId": {
133824
+ "type": "string"
133825
+ }
133826
+ },
133827
+ "required": [
133828
+ "kind",
133829
+ "storyType",
133830
+ "refId"
133831
+ ]
133832
+ },
133833
+ {
133834
+ "type": "object",
133835
+ "properties": {
133836
+ "kind": {
133837
+ "const": "story"
133838
+ },
133839
+ "storyType": {
133840
+ "const": "footnote"
133841
+ },
133842
+ "noteId": {
133843
+ "type": "string"
133844
+ }
133845
+ },
133846
+ "required": [
133847
+ "kind",
133848
+ "storyType",
133849
+ "noteId"
133850
+ ]
133851
+ },
133852
+ {
133853
+ "type": "object",
133854
+ "properties": {
133855
+ "kind": {
133856
+ "const": "story"
133857
+ },
133858
+ "storyType": {
133859
+ "const": "endnote"
133860
+ },
133861
+ "noteId": {
133862
+ "type": "string"
133863
+ }
133864
+ },
133865
+ "required": [
133866
+ "kind",
133867
+ "storyType",
133868
+ "noteId"
133869
+ ]
133870
+ }
133871
+ ],
133872
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
132983
133873
  }
132984
133874
  },
132985
133875
  "required": [
@@ -133016,6 +133906,9 @@ export const CONTRACT = {
133016
133906
  },
133017
133907
  "name": {
133018
133908
  "type": "string"
133909
+ },
133910
+ "story": {
133911
+ "$ref": "#/$defs/StoryLocator"
133019
133912
  }
133020
133913
  },
133021
133914
  "additionalProperties": false,
@@ -133054,6 +133947,9 @@ export const CONTRACT = {
133054
133947
  },
133055
133948
  "name": {
133056
133949
  "type": "string"
133950
+ },
133951
+ "story": {
133952
+ "$ref": "#/$defs/StoryLocator"
133057
133953
  }
133058
133954
  },
133059
133955
  "additionalProperties": false,
@@ -133119,6 +134015,9 @@ export const CONTRACT = {
133119
134015
  },
133120
134016
  "name": {
133121
134017
  "type": "string"
134018
+ },
134019
+ "story": {
134020
+ "$ref": "#/$defs/StoryLocator"
133122
134021
  }
133123
134022
  },
133124
134023
  "additionalProperties": false,
@@ -133249,6 +134148,162 @@ export const CONTRACT = {
133249
134148
  },
133250
134149
  "name": {
133251
134150
  "type": "string"
134151
+ },
134152
+ "story": {
134153
+ "oneOf": [
134154
+ {
134155
+ "type": "object",
134156
+ "properties": {
134157
+ "kind": {
134158
+ "const": "story"
134159
+ },
134160
+ "storyType": {
134161
+ "const": "body"
134162
+ }
134163
+ },
134164
+ "required": [
134165
+ "kind",
134166
+ "storyType"
134167
+ ]
134168
+ },
134169
+ {
134170
+ "type": "object",
134171
+ "properties": {
134172
+ "kind": {
134173
+ "const": "story"
134174
+ },
134175
+ "storyType": {
134176
+ "const": "headerFooterSlot"
134177
+ },
134178
+ "section": {
134179
+ "type": "object",
134180
+ "properties": {
134181
+ "kind": {
134182
+ "const": "section"
134183
+ },
134184
+ "sectionId": {
134185
+ "type": "string"
134186
+ }
134187
+ },
134188
+ "required": [
134189
+ "kind",
134190
+ "sectionId"
134191
+ ]
134192
+ },
134193
+ "headerFooterKind": {
134194
+ "oneOf": [
134195
+ {
134196
+ "const": "header"
134197
+ },
134198
+ {
134199
+ "const": "footer"
134200
+ }
134201
+ ]
134202
+ },
134203
+ "variant": {
134204
+ "oneOf": [
134205
+ {
134206
+ "const": "default"
134207
+ },
134208
+ {
134209
+ "const": "first"
134210
+ },
134211
+ {
134212
+ "const": "even"
134213
+ }
134214
+ ]
134215
+ },
134216
+ "resolution": {
134217
+ "oneOf": [
134218
+ {
134219
+ "const": "effective"
134220
+ },
134221
+ {
134222
+ "const": "explicit"
134223
+ }
134224
+ ]
134225
+ },
134226
+ "onWrite": {
134227
+ "oneOf": [
134228
+ {
134229
+ "const": "materializeIfInherited"
134230
+ },
134231
+ {
134232
+ "const": "editResolvedPart"
134233
+ },
134234
+ {
134235
+ "const": "error"
134236
+ }
134237
+ ]
134238
+ }
134239
+ },
134240
+ "required": [
134241
+ "kind",
134242
+ "storyType",
134243
+ "section",
134244
+ "headerFooterKind",
134245
+ "variant"
134246
+ ]
134247
+ },
134248
+ {
134249
+ "type": "object",
134250
+ "properties": {
134251
+ "kind": {
134252
+ "const": "story"
134253
+ },
134254
+ "storyType": {
134255
+ "const": "headerFooterPart"
134256
+ },
134257
+ "refId": {
134258
+ "type": "string"
134259
+ }
134260
+ },
134261
+ "required": [
134262
+ "kind",
134263
+ "storyType",
134264
+ "refId"
134265
+ ]
134266
+ },
134267
+ {
134268
+ "type": "object",
134269
+ "properties": {
134270
+ "kind": {
134271
+ "const": "story"
134272
+ },
134273
+ "storyType": {
134274
+ "const": "footnote"
134275
+ },
134276
+ "noteId": {
134277
+ "type": "string"
134278
+ }
134279
+ },
134280
+ "required": [
134281
+ "kind",
134282
+ "storyType",
134283
+ "noteId"
134284
+ ]
134285
+ },
134286
+ {
134287
+ "type": "object",
134288
+ "properties": {
134289
+ "kind": {
134290
+ "const": "story"
134291
+ },
134292
+ "storyType": {
134293
+ "const": "endnote"
134294
+ },
134295
+ "noteId": {
134296
+ "type": "string"
134297
+ }
134298
+ },
134299
+ "required": [
134300
+ "kind",
134301
+ "storyType",
134302
+ "noteId"
134303
+ ]
134304
+ }
134305
+ ],
134306
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
133252
134307
  }
133253
134308
  },
133254
134309
  "required": [
@@ -133278,6 +134333,9 @@ export const CONTRACT = {
133278
134333
  },
133279
134334
  "name": {
133280
134335
  "type": "string"
134336
+ },
134337
+ "story": {
134338
+ "$ref": "#/$defs/StoryLocator"
133281
134339
  }
133282
134340
  },
133283
134341
  "additionalProperties": false,
@@ -133312,6 +134370,9 @@ export const CONTRACT = {
133312
134370
  },
133313
134371
  "name": {
133314
134372
  "type": "string"
134373
+ },
134374
+ "story": {
134375
+ "$ref": "#/$defs/StoryLocator"
133315
134376
  }
133316
134377
  },
133317
134378
  "additionalProperties": false,
@@ -133377,6 +134438,9 @@ export const CONTRACT = {
133377
134438
  },
133378
134439
  "name": {
133379
134440
  "type": "string"
134441
+ },
134442
+ "story": {
134443
+ "$ref": "#/$defs/StoryLocator"
133380
134444
  }
133381
134445
  },
133382
134446
  "additionalProperties": false,
@@ -133703,6 +134767,162 @@ export const CONTRACT = {
133703
134767
  "range"
133704
134768
  ]
133705
134769
  }
134770
+ },
134771
+ "story": {
134772
+ "oneOf": [
134773
+ {
134774
+ "type": "object",
134775
+ "properties": {
134776
+ "kind": {
134777
+ "const": "story"
134778
+ },
134779
+ "storyType": {
134780
+ "const": "body"
134781
+ }
134782
+ },
134783
+ "required": [
134784
+ "kind",
134785
+ "storyType"
134786
+ ]
134787
+ },
134788
+ {
134789
+ "type": "object",
134790
+ "properties": {
134791
+ "kind": {
134792
+ "const": "story"
134793
+ },
134794
+ "storyType": {
134795
+ "const": "headerFooterSlot"
134796
+ },
134797
+ "section": {
134798
+ "type": "object",
134799
+ "properties": {
134800
+ "kind": {
134801
+ "const": "section"
134802
+ },
134803
+ "sectionId": {
134804
+ "type": "string"
134805
+ }
134806
+ },
134807
+ "required": [
134808
+ "kind",
134809
+ "sectionId"
134810
+ ]
134811
+ },
134812
+ "headerFooterKind": {
134813
+ "oneOf": [
134814
+ {
134815
+ "const": "header"
134816
+ },
134817
+ {
134818
+ "const": "footer"
134819
+ }
134820
+ ]
134821
+ },
134822
+ "variant": {
134823
+ "oneOf": [
134824
+ {
134825
+ "const": "default"
134826
+ },
134827
+ {
134828
+ "const": "first"
134829
+ },
134830
+ {
134831
+ "const": "even"
134832
+ }
134833
+ ]
134834
+ },
134835
+ "resolution": {
134836
+ "oneOf": [
134837
+ {
134838
+ "const": "effective"
134839
+ },
134840
+ {
134841
+ "const": "explicit"
134842
+ }
134843
+ ]
134844
+ },
134845
+ "onWrite": {
134846
+ "oneOf": [
134847
+ {
134848
+ "const": "materializeIfInherited"
134849
+ },
134850
+ {
134851
+ "const": "editResolvedPart"
134852
+ },
134853
+ {
134854
+ "const": "error"
134855
+ }
134856
+ ]
134857
+ }
134858
+ },
134859
+ "required": [
134860
+ "kind",
134861
+ "storyType",
134862
+ "section",
134863
+ "headerFooterKind",
134864
+ "variant"
134865
+ ]
134866
+ },
134867
+ {
134868
+ "type": "object",
134869
+ "properties": {
134870
+ "kind": {
134871
+ "const": "story"
134872
+ },
134873
+ "storyType": {
134874
+ "const": "headerFooterPart"
134875
+ },
134876
+ "refId": {
134877
+ "type": "string"
134878
+ }
134879
+ },
134880
+ "required": [
134881
+ "kind",
134882
+ "storyType",
134883
+ "refId"
134884
+ ]
134885
+ },
134886
+ {
134887
+ "type": "object",
134888
+ "properties": {
134889
+ "kind": {
134890
+ "const": "story"
134891
+ },
134892
+ "storyType": {
134893
+ "const": "footnote"
134894
+ },
134895
+ "noteId": {
134896
+ "type": "string"
134897
+ }
134898
+ },
134899
+ "required": [
134900
+ "kind",
134901
+ "storyType",
134902
+ "noteId"
134903
+ ]
134904
+ },
134905
+ {
134906
+ "type": "object",
134907
+ "properties": {
134908
+ "kind": {
134909
+ "const": "story"
134910
+ },
134911
+ "storyType": {
134912
+ "const": "endnote"
134913
+ },
134914
+ "noteId": {
134915
+ "type": "string"
134916
+ }
134917
+ },
134918
+ "required": [
134919
+ "kind",
134920
+ "storyType",
134921
+ "noteId"
134922
+ ]
134923
+ }
134924
+ ],
134925
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
133706
134926
  }
133707
134927
  },
133708
134928
  "required": [
@@ -135091,6 +136311,162 @@ export const CONTRACT = {
135091
136311
  "range"
135092
136312
  ]
135093
136313
  }
136314
+ },
136315
+ "story": {
136316
+ "oneOf": [
136317
+ {
136318
+ "type": "object",
136319
+ "properties": {
136320
+ "kind": {
136321
+ "const": "story"
136322
+ },
136323
+ "storyType": {
136324
+ "const": "body"
136325
+ }
136326
+ },
136327
+ "required": [
136328
+ "kind",
136329
+ "storyType"
136330
+ ]
136331
+ },
136332
+ {
136333
+ "type": "object",
136334
+ "properties": {
136335
+ "kind": {
136336
+ "const": "story"
136337
+ },
136338
+ "storyType": {
136339
+ "const": "headerFooterSlot"
136340
+ },
136341
+ "section": {
136342
+ "type": "object",
136343
+ "properties": {
136344
+ "kind": {
136345
+ "const": "section"
136346
+ },
136347
+ "sectionId": {
136348
+ "type": "string"
136349
+ }
136350
+ },
136351
+ "required": [
136352
+ "kind",
136353
+ "sectionId"
136354
+ ]
136355
+ },
136356
+ "headerFooterKind": {
136357
+ "oneOf": [
136358
+ {
136359
+ "const": "header"
136360
+ },
136361
+ {
136362
+ "const": "footer"
136363
+ }
136364
+ ]
136365
+ },
136366
+ "variant": {
136367
+ "oneOf": [
136368
+ {
136369
+ "const": "default"
136370
+ },
136371
+ {
136372
+ "const": "first"
136373
+ },
136374
+ {
136375
+ "const": "even"
136376
+ }
136377
+ ]
136378
+ },
136379
+ "resolution": {
136380
+ "oneOf": [
136381
+ {
136382
+ "const": "effective"
136383
+ },
136384
+ {
136385
+ "const": "explicit"
136386
+ }
136387
+ ]
136388
+ },
136389
+ "onWrite": {
136390
+ "oneOf": [
136391
+ {
136392
+ "const": "materializeIfInherited"
136393
+ },
136394
+ {
136395
+ "const": "editResolvedPart"
136396
+ },
136397
+ {
136398
+ "const": "error"
136399
+ }
136400
+ ]
136401
+ }
136402
+ },
136403
+ "required": [
136404
+ "kind",
136405
+ "storyType",
136406
+ "section",
136407
+ "headerFooterKind",
136408
+ "variant"
136409
+ ]
136410
+ },
136411
+ {
136412
+ "type": "object",
136413
+ "properties": {
136414
+ "kind": {
136415
+ "const": "story"
136416
+ },
136417
+ "storyType": {
136418
+ "const": "headerFooterPart"
136419
+ },
136420
+ "refId": {
136421
+ "type": "string"
136422
+ }
136423
+ },
136424
+ "required": [
136425
+ "kind",
136426
+ "storyType",
136427
+ "refId"
136428
+ ]
136429
+ },
136430
+ {
136431
+ "type": "object",
136432
+ "properties": {
136433
+ "kind": {
136434
+ "const": "story"
136435
+ },
136436
+ "storyType": {
136437
+ "const": "footnote"
136438
+ },
136439
+ "noteId": {
136440
+ "type": "string"
136441
+ }
136442
+ },
136443
+ "required": [
136444
+ "kind",
136445
+ "storyType",
136446
+ "noteId"
136447
+ ]
136448
+ },
136449
+ {
136450
+ "type": "object",
136451
+ "properties": {
136452
+ "kind": {
136453
+ "const": "story"
136454
+ },
136455
+ "storyType": {
136456
+ "const": "endnote"
136457
+ },
136458
+ "noteId": {
136459
+ "type": "string"
136460
+ }
136461
+ },
136462
+ "required": [
136463
+ "kind",
136464
+ "storyType",
136465
+ "noteId"
136466
+ ]
136467
+ }
136468
+ ],
136469
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
135094
136470
  }
135095
136471
  },
135096
136472
  "required": [
@@ -137967,6 +139343,162 @@ export const CONTRACT = {
137967
139343
  "range"
137968
139344
  ]
137969
139345
  }
139346
+ },
139347
+ "story": {
139348
+ "oneOf": [
139349
+ {
139350
+ "type": "object",
139351
+ "properties": {
139352
+ "kind": {
139353
+ "const": "story"
139354
+ },
139355
+ "storyType": {
139356
+ "const": "body"
139357
+ }
139358
+ },
139359
+ "required": [
139360
+ "kind",
139361
+ "storyType"
139362
+ ]
139363
+ },
139364
+ {
139365
+ "type": "object",
139366
+ "properties": {
139367
+ "kind": {
139368
+ "const": "story"
139369
+ },
139370
+ "storyType": {
139371
+ "const": "headerFooterSlot"
139372
+ },
139373
+ "section": {
139374
+ "type": "object",
139375
+ "properties": {
139376
+ "kind": {
139377
+ "const": "section"
139378
+ },
139379
+ "sectionId": {
139380
+ "type": "string"
139381
+ }
139382
+ },
139383
+ "required": [
139384
+ "kind",
139385
+ "sectionId"
139386
+ ]
139387
+ },
139388
+ "headerFooterKind": {
139389
+ "oneOf": [
139390
+ {
139391
+ "const": "header"
139392
+ },
139393
+ {
139394
+ "const": "footer"
139395
+ }
139396
+ ]
139397
+ },
139398
+ "variant": {
139399
+ "oneOf": [
139400
+ {
139401
+ "const": "default"
139402
+ },
139403
+ {
139404
+ "const": "first"
139405
+ },
139406
+ {
139407
+ "const": "even"
139408
+ }
139409
+ ]
139410
+ },
139411
+ "resolution": {
139412
+ "oneOf": [
139413
+ {
139414
+ "const": "effective"
139415
+ },
139416
+ {
139417
+ "const": "explicit"
139418
+ }
139419
+ ]
139420
+ },
139421
+ "onWrite": {
139422
+ "oneOf": [
139423
+ {
139424
+ "const": "materializeIfInherited"
139425
+ },
139426
+ {
139427
+ "const": "editResolvedPart"
139428
+ },
139429
+ {
139430
+ "const": "error"
139431
+ }
139432
+ ]
139433
+ }
139434
+ },
139435
+ "required": [
139436
+ "kind",
139437
+ "storyType",
139438
+ "section",
139439
+ "headerFooterKind",
139440
+ "variant"
139441
+ ]
139442
+ },
139443
+ {
139444
+ "type": "object",
139445
+ "properties": {
139446
+ "kind": {
139447
+ "const": "story"
139448
+ },
139449
+ "storyType": {
139450
+ "const": "headerFooterPart"
139451
+ },
139452
+ "refId": {
139453
+ "type": "string"
139454
+ }
139455
+ },
139456
+ "required": [
139457
+ "kind",
139458
+ "storyType",
139459
+ "refId"
139460
+ ]
139461
+ },
139462
+ {
139463
+ "type": "object",
139464
+ "properties": {
139465
+ "kind": {
139466
+ "const": "story"
139467
+ },
139468
+ "storyType": {
139469
+ "const": "footnote"
139470
+ },
139471
+ "noteId": {
139472
+ "type": "string"
139473
+ }
139474
+ },
139475
+ "required": [
139476
+ "kind",
139477
+ "storyType",
139478
+ "noteId"
139479
+ ]
139480
+ },
139481
+ {
139482
+ "type": "object",
139483
+ "properties": {
139484
+ "kind": {
139485
+ "const": "story"
139486
+ },
139487
+ "storyType": {
139488
+ "const": "endnote"
139489
+ },
139490
+ "noteId": {
139491
+ "type": "string"
139492
+ }
139493
+ },
139494
+ "required": [
139495
+ "kind",
139496
+ "storyType",
139497
+ "noteId"
139498
+ ]
139499
+ }
139500
+ ],
139501
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
137970
139502
  }
137971
139503
  },
137972
139504
  "required": [
@@ -140370,6 +141902,162 @@ export const CONTRACT = {
140370
141902
  "range"
140371
141903
  ]
140372
141904
  }
141905
+ },
141906
+ "story": {
141907
+ "oneOf": [
141908
+ {
141909
+ "type": "object",
141910
+ "properties": {
141911
+ "kind": {
141912
+ "const": "story"
141913
+ },
141914
+ "storyType": {
141915
+ "const": "body"
141916
+ }
141917
+ },
141918
+ "required": [
141919
+ "kind",
141920
+ "storyType"
141921
+ ]
141922
+ },
141923
+ {
141924
+ "type": "object",
141925
+ "properties": {
141926
+ "kind": {
141927
+ "const": "story"
141928
+ },
141929
+ "storyType": {
141930
+ "const": "headerFooterSlot"
141931
+ },
141932
+ "section": {
141933
+ "type": "object",
141934
+ "properties": {
141935
+ "kind": {
141936
+ "const": "section"
141937
+ },
141938
+ "sectionId": {
141939
+ "type": "string"
141940
+ }
141941
+ },
141942
+ "required": [
141943
+ "kind",
141944
+ "sectionId"
141945
+ ]
141946
+ },
141947
+ "headerFooterKind": {
141948
+ "oneOf": [
141949
+ {
141950
+ "const": "header"
141951
+ },
141952
+ {
141953
+ "const": "footer"
141954
+ }
141955
+ ]
141956
+ },
141957
+ "variant": {
141958
+ "oneOf": [
141959
+ {
141960
+ "const": "default"
141961
+ },
141962
+ {
141963
+ "const": "first"
141964
+ },
141965
+ {
141966
+ "const": "even"
141967
+ }
141968
+ ]
141969
+ },
141970
+ "resolution": {
141971
+ "oneOf": [
141972
+ {
141973
+ "const": "effective"
141974
+ },
141975
+ {
141976
+ "const": "explicit"
141977
+ }
141978
+ ]
141979
+ },
141980
+ "onWrite": {
141981
+ "oneOf": [
141982
+ {
141983
+ "const": "materializeIfInherited"
141984
+ },
141985
+ {
141986
+ "const": "editResolvedPart"
141987
+ },
141988
+ {
141989
+ "const": "error"
141990
+ }
141991
+ ]
141992
+ }
141993
+ },
141994
+ "required": [
141995
+ "kind",
141996
+ "storyType",
141997
+ "section",
141998
+ "headerFooterKind",
141999
+ "variant"
142000
+ ]
142001
+ },
142002
+ {
142003
+ "type": "object",
142004
+ "properties": {
142005
+ "kind": {
142006
+ "const": "story"
142007
+ },
142008
+ "storyType": {
142009
+ "const": "headerFooterPart"
142010
+ },
142011
+ "refId": {
142012
+ "type": "string"
142013
+ }
142014
+ },
142015
+ "required": [
142016
+ "kind",
142017
+ "storyType",
142018
+ "refId"
142019
+ ]
142020
+ },
142021
+ {
142022
+ "type": "object",
142023
+ "properties": {
142024
+ "kind": {
142025
+ "const": "story"
142026
+ },
142027
+ "storyType": {
142028
+ "const": "footnote"
142029
+ },
142030
+ "noteId": {
142031
+ "type": "string"
142032
+ }
142033
+ },
142034
+ "required": [
142035
+ "kind",
142036
+ "storyType",
142037
+ "noteId"
142038
+ ]
142039
+ },
142040
+ {
142041
+ "type": "object",
142042
+ "properties": {
142043
+ "kind": {
142044
+ "const": "story"
142045
+ },
142046
+ "storyType": {
142047
+ "const": "endnote"
142048
+ },
142049
+ "noteId": {
142050
+ "type": "string"
142051
+ }
142052
+ },
142053
+ "required": [
142054
+ "kind",
142055
+ "storyType",
142056
+ "noteId"
142057
+ ]
142058
+ }
142059
+ ],
142060
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
140373
142061
  }
140374
142062
  },
140375
142063
  "required": [
@@ -141397,6 +143085,162 @@ export const CONTRACT = {
141397
143085
  "range"
141398
143086
  ]
141399
143087
  }
143088
+ },
143089
+ "story": {
143090
+ "oneOf": [
143091
+ {
143092
+ "type": "object",
143093
+ "properties": {
143094
+ "kind": {
143095
+ "const": "story"
143096
+ },
143097
+ "storyType": {
143098
+ "const": "body"
143099
+ }
143100
+ },
143101
+ "required": [
143102
+ "kind",
143103
+ "storyType"
143104
+ ]
143105
+ },
143106
+ {
143107
+ "type": "object",
143108
+ "properties": {
143109
+ "kind": {
143110
+ "const": "story"
143111
+ },
143112
+ "storyType": {
143113
+ "const": "headerFooterSlot"
143114
+ },
143115
+ "section": {
143116
+ "type": "object",
143117
+ "properties": {
143118
+ "kind": {
143119
+ "const": "section"
143120
+ },
143121
+ "sectionId": {
143122
+ "type": "string"
143123
+ }
143124
+ },
143125
+ "required": [
143126
+ "kind",
143127
+ "sectionId"
143128
+ ]
143129
+ },
143130
+ "headerFooterKind": {
143131
+ "oneOf": [
143132
+ {
143133
+ "const": "header"
143134
+ },
143135
+ {
143136
+ "const": "footer"
143137
+ }
143138
+ ]
143139
+ },
143140
+ "variant": {
143141
+ "oneOf": [
143142
+ {
143143
+ "const": "default"
143144
+ },
143145
+ {
143146
+ "const": "first"
143147
+ },
143148
+ {
143149
+ "const": "even"
143150
+ }
143151
+ ]
143152
+ },
143153
+ "resolution": {
143154
+ "oneOf": [
143155
+ {
143156
+ "const": "effective"
143157
+ },
143158
+ {
143159
+ "const": "explicit"
143160
+ }
143161
+ ]
143162
+ },
143163
+ "onWrite": {
143164
+ "oneOf": [
143165
+ {
143166
+ "const": "materializeIfInherited"
143167
+ },
143168
+ {
143169
+ "const": "editResolvedPart"
143170
+ },
143171
+ {
143172
+ "const": "error"
143173
+ }
143174
+ ]
143175
+ }
143176
+ },
143177
+ "required": [
143178
+ "kind",
143179
+ "storyType",
143180
+ "section",
143181
+ "headerFooterKind",
143182
+ "variant"
143183
+ ]
143184
+ },
143185
+ {
143186
+ "type": "object",
143187
+ "properties": {
143188
+ "kind": {
143189
+ "const": "story"
143190
+ },
143191
+ "storyType": {
143192
+ "const": "headerFooterPart"
143193
+ },
143194
+ "refId": {
143195
+ "type": "string"
143196
+ }
143197
+ },
143198
+ "required": [
143199
+ "kind",
143200
+ "storyType",
143201
+ "refId"
143202
+ ]
143203
+ },
143204
+ {
143205
+ "type": "object",
143206
+ "properties": {
143207
+ "kind": {
143208
+ "const": "story"
143209
+ },
143210
+ "storyType": {
143211
+ "const": "footnote"
143212
+ },
143213
+ "noteId": {
143214
+ "type": "string"
143215
+ }
143216
+ },
143217
+ "required": [
143218
+ "kind",
143219
+ "storyType",
143220
+ "noteId"
143221
+ ]
143222
+ },
143223
+ {
143224
+ "type": "object",
143225
+ "properties": {
143226
+ "kind": {
143227
+ "const": "story"
143228
+ },
143229
+ "storyType": {
143230
+ "const": "endnote"
143231
+ },
143232
+ "noteId": {
143233
+ "type": "string"
143234
+ }
143235
+ },
143236
+ "required": [
143237
+ "kind",
143238
+ "storyType",
143239
+ "noteId"
143240
+ ]
143241
+ }
143242
+ ],
143243
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
141400
143244
  }
141401
143245
  },
141402
143246
  "required": [
@@ -146692,6 +148536,162 @@ export const CONTRACT = {
146692
148536
  "range"
146693
148537
  ]
146694
148538
  }
148539
+ },
148540
+ "story": {
148541
+ "oneOf": [
148542
+ {
148543
+ "type": "object",
148544
+ "properties": {
148545
+ "kind": {
148546
+ "const": "story"
148547
+ },
148548
+ "storyType": {
148549
+ "const": "body"
148550
+ }
148551
+ },
148552
+ "required": [
148553
+ "kind",
148554
+ "storyType"
148555
+ ]
148556
+ },
148557
+ {
148558
+ "type": "object",
148559
+ "properties": {
148560
+ "kind": {
148561
+ "const": "story"
148562
+ },
148563
+ "storyType": {
148564
+ "const": "headerFooterSlot"
148565
+ },
148566
+ "section": {
148567
+ "type": "object",
148568
+ "properties": {
148569
+ "kind": {
148570
+ "const": "section"
148571
+ },
148572
+ "sectionId": {
148573
+ "type": "string"
148574
+ }
148575
+ },
148576
+ "required": [
148577
+ "kind",
148578
+ "sectionId"
148579
+ ]
148580
+ },
148581
+ "headerFooterKind": {
148582
+ "oneOf": [
148583
+ {
148584
+ "const": "header"
148585
+ },
148586
+ {
148587
+ "const": "footer"
148588
+ }
148589
+ ]
148590
+ },
148591
+ "variant": {
148592
+ "oneOf": [
148593
+ {
148594
+ "const": "default"
148595
+ },
148596
+ {
148597
+ "const": "first"
148598
+ },
148599
+ {
148600
+ "const": "even"
148601
+ }
148602
+ ]
148603
+ },
148604
+ "resolution": {
148605
+ "oneOf": [
148606
+ {
148607
+ "const": "effective"
148608
+ },
148609
+ {
148610
+ "const": "explicit"
148611
+ }
148612
+ ]
148613
+ },
148614
+ "onWrite": {
148615
+ "oneOf": [
148616
+ {
148617
+ "const": "materializeIfInherited"
148618
+ },
148619
+ {
148620
+ "const": "editResolvedPart"
148621
+ },
148622
+ {
148623
+ "const": "error"
148624
+ }
148625
+ ]
148626
+ }
148627
+ },
148628
+ "required": [
148629
+ "kind",
148630
+ "storyType",
148631
+ "section",
148632
+ "headerFooterKind",
148633
+ "variant"
148634
+ ]
148635
+ },
148636
+ {
148637
+ "type": "object",
148638
+ "properties": {
148639
+ "kind": {
148640
+ "const": "story"
148641
+ },
148642
+ "storyType": {
148643
+ "const": "headerFooterPart"
148644
+ },
148645
+ "refId": {
148646
+ "type": "string"
148647
+ }
148648
+ },
148649
+ "required": [
148650
+ "kind",
148651
+ "storyType",
148652
+ "refId"
148653
+ ]
148654
+ },
148655
+ {
148656
+ "type": "object",
148657
+ "properties": {
148658
+ "kind": {
148659
+ "const": "story"
148660
+ },
148661
+ "storyType": {
148662
+ "const": "footnote"
148663
+ },
148664
+ "noteId": {
148665
+ "type": "string"
148666
+ }
148667
+ },
148668
+ "required": [
148669
+ "kind",
148670
+ "storyType",
148671
+ "noteId"
148672
+ ]
148673
+ },
148674
+ {
148675
+ "type": "object",
148676
+ "properties": {
148677
+ "kind": {
148678
+ "const": "story"
148679
+ },
148680
+ "storyType": {
148681
+ "const": "endnote"
148682
+ },
148683
+ "noteId": {
148684
+ "type": "string"
148685
+ }
148686
+ },
148687
+ "required": [
148688
+ "kind",
148689
+ "storyType",
148690
+ "noteId"
148691
+ ]
148692
+ }
148693
+ ],
148694
+ "description": "Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes."
146695
148695
  }
146696
148696
  },
146697
148697
  "required": [