@superdoc-dev/sdk 1.8.0-next.9 → 1.8.0

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.
@@ -102,7 +102,7 @@ const CONTRACT = {
102
102
  "find"
103
103
  ],
104
104
  "category": "core",
105
- "description": "Search the document for text or node matches using SDM/1 selectors. Returns discovery-grade results for mutation targeting, use query.match instead.",
105
+ "description": "Search the document for text or node matches using SDM/1 selectors. Returns discovery-grade results: for mutation targeting, use query.match instead.",
106
106
  "requiresDocumentContext": true,
107
107
  "docRequirement": "optional",
108
108
  "responseEnvelopeKey": "result",
@@ -2013,7 +2013,7 @@ const CONTRACT = {
2013
2013
  "extract"
2014
2014
  ],
2015
2015
  "category": "core",
2016
- "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().",
2016
+ "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().",
2017
2017
  "requiresDocumentContext": true,
2018
2018
  "docRequirement": "optional",
2019
2019
  "responseEnvelopeKey": null,
@@ -2052,7 +2052,7 @@ const CONTRACT = {
2052
2052
  "properties": {
2053
2053
  "nodeId": {
2054
2054
  "type": "string",
2055
- "description": "Stable block ID pass to scrollToElement() for navigation."
2055
+ "description": "Stable block ID: pass to scrollToElement() for navigation."
2056
2056
  },
2057
2057
  "type": {
2058
2058
  "type": "string",
@@ -2170,7 +2170,7 @@ const CONTRACT = {
2170
2170
  "properties": {
2171
2171
  "entityId": {
2172
2172
  "type": "string",
2173
- "description": "Comment entity ID pass to scrollToElement() for navigation."
2173
+ "description": "Comment entity ID: pass to scrollToElement() for navigation."
2174
2174
  },
2175
2175
  "text": {
2176
2176
  "type": "string",
@@ -33777,7 +33777,7 @@ const CONTRACT = {
33777
33777
  "name": "text",
33778
33778
  "kind": "flag",
33779
33779
  "type": "string",
33780
- "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."
33780
+ "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."
33781
33781
  },
33782
33782
  {
33783
33783
  "name": "input",
@@ -33861,7 +33861,7 @@ const CONTRACT = {
33861
33861
  },
33862
33862
  "text": {
33863
33863
  "type": "string",
33864
- "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."
33864
+ "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."
33865
33865
  }
33866
33866
  },
33867
33867
  "additionalProperties": false
@@ -50200,7 +50200,7 @@ const CONTRACT = {
50200
50200
  "create"
50201
50201
  ],
50202
50202
  "category": "lists",
50203
- "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.",
50203
+ "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.",
50204
50204
  "requiresDocumentContext": true,
50205
50205
  "docRequirement": "optional",
50206
50206
  "responseEnvelopeKey": "result",
@@ -50270,9 +50270,9 @@ const CONTRACT = {
50270
50270
  "const": "fromParagraphs"
50271
50271
  }
50272
50272
  ],
50273
- "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'."
50273
+ "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'."
50274
50274
  },
50275
- "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'."
50275
+ "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'."
50276
50276
  },
50277
50277
  {
50278
50278
  "name": "at",
@@ -50587,7 +50587,7 @@ const CONTRACT = {
50587
50587
  "empty",
50588
50588
  "fromParagraphs"
50589
50589
  ],
50590
- "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'."
50590
+ "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'."
50591
50591
  },
50592
50592
  "at": {
50593
50593
  "$ref": "#/$defs/BlockAddress",
@@ -52534,7 +52534,7 @@ const CONTRACT = {
52534
52534
  "merge"
52535
52535
  ],
52536
52536
  "category": "lists",
52537
- "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.",
52537
+ "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.",
52538
52538
  "requiresDocumentContext": true,
52539
52539
  "docRequirement": "optional",
52540
52540
  "responseEnvelopeKey": null,
@@ -58689,7 +58689,7 @@ const CONTRACT = {
58689
58689
  "set-level-number-style"
58690
58690
  ],
58691
58691
  "category": "lists",
58692
- "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.",
58692
+ "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.",
58693
58693
  "requiresDocumentContext": true,
58694
58694
  "docRequirement": "optional",
58695
58695
  "responseEnvelopeKey": null,
@@ -59415,7 +59415,7 @@ const CONTRACT = {
59415
59415
  "set-level-layout"
59416
59416
  ],
59417
59417
  "category": "lists",
59418
- "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.",
59418
+ "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.",
59419
59419
  "requiresDocumentContext": true,
59420
59420
  "docRequirement": "optional",
59421
59421
  "responseEnvelopeKey": null,
@@ -59855,6 +59855,162 @@ const CONTRACT = {
59855
59855
  "range"
59856
59856
  ]
59857
59857
  }
59858
+ },
59859
+ "story": {
59860
+ "oneOf": [
59861
+ {
59862
+ "type": "object",
59863
+ "properties": {
59864
+ "kind": {
59865
+ "const": "story"
59866
+ },
59867
+ "storyType": {
59868
+ "const": "body"
59869
+ }
59870
+ },
59871
+ "required": [
59872
+ "kind",
59873
+ "storyType"
59874
+ ]
59875
+ },
59876
+ {
59877
+ "type": "object",
59878
+ "properties": {
59879
+ "kind": {
59880
+ "const": "story"
59881
+ },
59882
+ "storyType": {
59883
+ "const": "headerFooterSlot"
59884
+ },
59885
+ "section": {
59886
+ "type": "object",
59887
+ "properties": {
59888
+ "kind": {
59889
+ "const": "section"
59890
+ },
59891
+ "sectionId": {
59892
+ "type": "string"
59893
+ }
59894
+ },
59895
+ "required": [
59896
+ "kind",
59897
+ "sectionId"
59898
+ ]
59899
+ },
59900
+ "headerFooterKind": {
59901
+ "oneOf": [
59902
+ {
59903
+ "const": "header"
59904
+ },
59905
+ {
59906
+ "const": "footer"
59907
+ }
59908
+ ]
59909
+ },
59910
+ "variant": {
59911
+ "oneOf": [
59912
+ {
59913
+ "const": "default"
59914
+ },
59915
+ {
59916
+ "const": "first"
59917
+ },
59918
+ {
59919
+ "const": "even"
59920
+ }
59921
+ ]
59922
+ },
59923
+ "resolution": {
59924
+ "oneOf": [
59925
+ {
59926
+ "const": "effective"
59927
+ },
59928
+ {
59929
+ "const": "explicit"
59930
+ }
59931
+ ]
59932
+ },
59933
+ "onWrite": {
59934
+ "oneOf": [
59935
+ {
59936
+ "const": "materializeIfInherited"
59937
+ },
59938
+ {
59939
+ "const": "editResolvedPart"
59940
+ },
59941
+ {
59942
+ "const": "error"
59943
+ }
59944
+ ]
59945
+ }
59946
+ },
59947
+ "required": [
59948
+ "kind",
59949
+ "storyType",
59950
+ "section",
59951
+ "headerFooterKind",
59952
+ "variant"
59953
+ ]
59954
+ },
59955
+ {
59956
+ "type": "object",
59957
+ "properties": {
59958
+ "kind": {
59959
+ "const": "story"
59960
+ },
59961
+ "storyType": {
59962
+ "const": "headerFooterPart"
59963
+ },
59964
+ "refId": {
59965
+ "type": "string"
59966
+ }
59967
+ },
59968
+ "required": [
59969
+ "kind",
59970
+ "storyType",
59971
+ "refId"
59972
+ ]
59973
+ },
59974
+ {
59975
+ "type": "object",
59976
+ "properties": {
59977
+ "kind": {
59978
+ "const": "story"
59979
+ },
59980
+ "storyType": {
59981
+ "const": "footnote"
59982
+ },
59983
+ "noteId": {
59984
+ "type": "string"
59985
+ }
59986
+ },
59987
+ "required": [
59988
+ "kind",
59989
+ "storyType",
59990
+ "noteId"
59991
+ ]
59992
+ },
59993
+ {
59994
+ "type": "object",
59995
+ "properties": {
59996
+ "kind": {
59997
+ "const": "story"
59998
+ },
59999
+ "storyType": {
60000
+ "const": "endnote"
60001
+ },
60002
+ "noteId": {
60003
+ "type": "string"
60004
+ }
60005
+ },
60006
+ "required": [
60007
+ "kind",
60008
+ "storyType",
60009
+ "noteId"
60010
+ ]
60011
+ }
60012
+ ],
60013
+ "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."
59858
60014
  }
59859
60015
  },
59860
60016
  "required": [
@@ -60124,11 +60280,14 @@ const CONTRACT = {
60124
60280
  "oneOf": [
60125
60281
  {
60126
60282
  "const": "resolved"
60283
+ },
60284
+ {
60285
+ "const": "active"
60127
60286
  }
60128
60287
  ],
60129
- "description": "Set comment status. Use 'resolved' to mark as resolved."
60288
+ "description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
60130
60289
  },
60131
- "description": "Set comment status. Use 'resolved' to mark as resolved."
60290
+ "description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
60132
60291
  },
60133
60292
  {
60134
60293
  "name": "isInternal",
@@ -60180,9 +60339,10 @@ const CONTRACT = {
60180
60339
  },
60181
60340
  "status": {
60182
60341
  "enum": [
60183
- "resolved"
60342
+ "resolved",
60343
+ "active"
60184
60344
  ],
60185
- "description": "Set comment status. Use 'resolved' to mark as resolved."
60345
+ "description": "Set comment status. Use 'resolved' to resolve a comment, or 'active' to reopen a previously resolved comment (lifecycle inverse)."
60186
60346
  },
60187
60347
  "isInternal": {
60188
60348
  "type": "boolean",
@@ -63078,6 +63238,18 @@ const CONTRACT = {
63078
63238
  "type": "string"
63079
63239
  }
63080
63240
  },
63241
+ "activeCommentIds": {
63242
+ "type": "array",
63243
+ "items": {
63244
+ "type": "string"
63245
+ }
63246
+ },
63247
+ "activeChangeIds": {
63248
+ "type": "array",
63249
+ "items": {
63250
+ "type": "string"
63251
+ }
63252
+ },
63081
63253
  "text": {
63082
63254
  "type": "string"
63083
63255
  }
@@ -63086,7 +63258,9 @@ const CONTRACT = {
63086
63258
  "required": [
63087
63259
  "empty",
63088
63260
  "target",
63089
- "activeMarks"
63261
+ "activeMarks",
63262
+ "activeCommentIds",
63263
+ "activeChangeIds"
63090
63264
  ]
63091
63265
  }
63092
63266
  },
@@ -131420,6 +131594,170 @@ const CONTRACT = {
131420
131594
  "name": "offset",
131421
131595
  "kind": "flag",
131422
131596
  "type": "number"
131597
+ },
131598
+ {
131599
+ "name": "in",
131600
+ "kind": "jsonFlag",
131601
+ "type": "json",
131602
+ "flag": "in-json",
131603
+ "schema": {
131604
+ "oneOf": [
131605
+ {
131606
+ "type": "object",
131607
+ "properties": {
131608
+ "kind": {
131609
+ "const": "story"
131610
+ },
131611
+ "storyType": {
131612
+ "const": "body"
131613
+ }
131614
+ },
131615
+ "required": [
131616
+ "kind",
131617
+ "storyType"
131618
+ ]
131619
+ },
131620
+ {
131621
+ "type": "object",
131622
+ "properties": {
131623
+ "kind": {
131624
+ "const": "story"
131625
+ },
131626
+ "storyType": {
131627
+ "const": "headerFooterSlot"
131628
+ },
131629
+ "section": {
131630
+ "type": "object",
131631
+ "properties": {
131632
+ "kind": {
131633
+ "const": "section"
131634
+ },
131635
+ "sectionId": {
131636
+ "type": "string"
131637
+ }
131638
+ },
131639
+ "required": [
131640
+ "kind",
131641
+ "sectionId"
131642
+ ]
131643
+ },
131644
+ "headerFooterKind": {
131645
+ "oneOf": [
131646
+ {
131647
+ "const": "header"
131648
+ },
131649
+ {
131650
+ "const": "footer"
131651
+ }
131652
+ ]
131653
+ },
131654
+ "variant": {
131655
+ "oneOf": [
131656
+ {
131657
+ "const": "default"
131658
+ },
131659
+ {
131660
+ "const": "first"
131661
+ },
131662
+ {
131663
+ "const": "even"
131664
+ }
131665
+ ]
131666
+ },
131667
+ "resolution": {
131668
+ "oneOf": [
131669
+ {
131670
+ "const": "effective"
131671
+ },
131672
+ {
131673
+ "const": "explicit"
131674
+ }
131675
+ ]
131676
+ },
131677
+ "onWrite": {
131678
+ "oneOf": [
131679
+ {
131680
+ "const": "materializeIfInherited"
131681
+ },
131682
+ {
131683
+ "const": "editResolvedPart"
131684
+ },
131685
+ {
131686
+ "const": "error"
131687
+ }
131688
+ ]
131689
+ }
131690
+ },
131691
+ "required": [
131692
+ "kind",
131693
+ "storyType",
131694
+ "section",
131695
+ "headerFooterKind",
131696
+ "variant"
131697
+ ]
131698
+ },
131699
+ {
131700
+ "type": "object",
131701
+ "properties": {
131702
+ "kind": {
131703
+ "const": "story"
131704
+ },
131705
+ "storyType": {
131706
+ "const": "headerFooterPart"
131707
+ },
131708
+ "refId": {
131709
+ "type": "string"
131710
+ }
131711
+ },
131712
+ "required": [
131713
+ "kind",
131714
+ "storyType",
131715
+ "refId"
131716
+ ]
131717
+ },
131718
+ {
131719
+ "type": "object",
131720
+ "properties": {
131721
+ "kind": {
131722
+ "const": "story"
131723
+ },
131724
+ "storyType": {
131725
+ "const": "footnote"
131726
+ },
131727
+ "noteId": {
131728
+ "type": "string"
131729
+ }
131730
+ },
131731
+ "required": [
131732
+ "kind",
131733
+ "storyType",
131734
+ "noteId"
131735
+ ]
131736
+ },
131737
+ {
131738
+ "type": "object",
131739
+ "properties": {
131740
+ "kind": {
131741
+ "const": "story"
131742
+ },
131743
+ "storyType": {
131744
+ "const": "endnote"
131745
+ },
131746
+ "noteId": {
131747
+ "type": "string"
131748
+ }
131749
+ },
131750
+ "required": [
131751
+ "kind",
131752
+ "storyType",
131753
+ "noteId"
131754
+ ]
131755
+ }
131756
+ ],
131757
+ "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."
131758
+ },
131759
+ "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.",
131760
+ "agentVisible": false
131423
131761
  }
131424
131762
  ],
131425
131763
  "constraints": null,
@@ -131437,6 +131775,9 @@ const CONTRACT = {
131437
131775
  "offset": {
131438
131776
  "type": "integer",
131439
131777
  "minimum": 0
131778
+ },
131779
+ "in": {
131780
+ "$ref": "#/$defs/StoryLocator"
131440
131781
  }
131441
131782
  },
131442
131783
  "additionalProperties": false
@@ -131489,6 +131830,162 @@ const CONTRACT = {
131489
131830
  },
131490
131831
  "name": {
131491
131832
  "type": "string"
131833
+ },
131834
+ "story": {
131835
+ "oneOf": [
131836
+ {
131837
+ "type": "object",
131838
+ "properties": {
131839
+ "kind": {
131840
+ "const": "story"
131841
+ },
131842
+ "storyType": {
131843
+ "const": "body"
131844
+ }
131845
+ },
131846
+ "required": [
131847
+ "kind",
131848
+ "storyType"
131849
+ ]
131850
+ },
131851
+ {
131852
+ "type": "object",
131853
+ "properties": {
131854
+ "kind": {
131855
+ "const": "story"
131856
+ },
131857
+ "storyType": {
131858
+ "const": "headerFooterSlot"
131859
+ },
131860
+ "section": {
131861
+ "type": "object",
131862
+ "properties": {
131863
+ "kind": {
131864
+ "const": "section"
131865
+ },
131866
+ "sectionId": {
131867
+ "type": "string"
131868
+ }
131869
+ },
131870
+ "required": [
131871
+ "kind",
131872
+ "sectionId"
131873
+ ]
131874
+ },
131875
+ "headerFooterKind": {
131876
+ "oneOf": [
131877
+ {
131878
+ "const": "header"
131879
+ },
131880
+ {
131881
+ "const": "footer"
131882
+ }
131883
+ ]
131884
+ },
131885
+ "variant": {
131886
+ "oneOf": [
131887
+ {
131888
+ "const": "default"
131889
+ },
131890
+ {
131891
+ "const": "first"
131892
+ },
131893
+ {
131894
+ "const": "even"
131895
+ }
131896
+ ]
131897
+ },
131898
+ "resolution": {
131899
+ "oneOf": [
131900
+ {
131901
+ "const": "effective"
131902
+ },
131903
+ {
131904
+ "const": "explicit"
131905
+ }
131906
+ ]
131907
+ },
131908
+ "onWrite": {
131909
+ "oneOf": [
131910
+ {
131911
+ "const": "materializeIfInherited"
131912
+ },
131913
+ {
131914
+ "const": "editResolvedPart"
131915
+ },
131916
+ {
131917
+ "const": "error"
131918
+ }
131919
+ ]
131920
+ }
131921
+ },
131922
+ "required": [
131923
+ "kind",
131924
+ "storyType",
131925
+ "section",
131926
+ "headerFooterKind",
131927
+ "variant"
131928
+ ]
131929
+ },
131930
+ {
131931
+ "type": "object",
131932
+ "properties": {
131933
+ "kind": {
131934
+ "const": "story"
131935
+ },
131936
+ "storyType": {
131937
+ "const": "headerFooterPart"
131938
+ },
131939
+ "refId": {
131940
+ "type": "string"
131941
+ }
131942
+ },
131943
+ "required": [
131944
+ "kind",
131945
+ "storyType",
131946
+ "refId"
131947
+ ]
131948
+ },
131949
+ {
131950
+ "type": "object",
131951
+ "properties": {
131952
+ "kind": {
131953
+ "const": "story"
131954
+ },
131955
+ "storyType": {
131956
+ "const": "footnote"
131957
+ },
131958
+ "noteId": {
131959
+ "type": "string"
131960
+ }
131961
+ },
131962
+ "required": [
131963
+ "kind",
131964
+ "storyType",
131965
+ "noteId"
131966
+ ]
131967
+ },
131968
+ {
131969
+ "type": "object",
131970
+ "properties": {
131971
+ "kind": {
131972
+ "const": "story"
131973
+ },
131974
+ "storyType": {
131975
+ "const": "endnote"
131976
+ },
131977
+ "noteId": {
131978
+ "type": "string"
131979
+ }
131980
+ },
131981
+ "required": [
131982
+ "kind",
131983
+ "storyType",
131984
+ "noteId"
131985
+ ]
131986
+ }
131987
+ ],
131988
+ "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."
131492
131989
  }
131493
131990
  },
131494
131991
  "required": [
@@ -131518,6 +132015,9 @@ const CONTRACT = {
131518
132015
  },
131519
132016
  "name": {
131520
132017
  "type": "string"
132018
+ },
132019
+ "story": {
132020
+ "$ref": "#/$defs/StoryLocator"
131521
132021
  }
131522
132022
  },
131523
132023
  "additionalProperties": false,
@@ -131650,6 +132150,162 @@ const CONTRACT = {
131650
132150
  "range"
131651
132151
  ]
131652
132152
  }
132153
+ },
132154
+ "story": {
132155
+ "oneOf": [
132156
+ {
132157
+ "type": "object",
132158
+ "properties": {
132159
+ "kind": {
132160
+ "const": "story"
132161
+ },
132162
+ "storyType": {
132163
+ "const": "body"
132164
+ }
132165
+ },
132166
+ "required": [
132167
+ "kind",
132168
+ "storyType"
132169
+ ]
132170
+ },
132171
+ {
132172
+ "type": "object",
132173
+ "properties": {
132174
+ "kind": {
132175
+ "const": "story"
132176
+ },
132177
+ "storyType": {
132178
+ "const": "headerFooterSlot"
132179
+ },
132180
+ "section": {
132181
+ "type": "object",
132182
+ "properties": {
132183
+ "kind": {
132184
+ "const": "section"
132185
+ },
132186
+ "sectionId": {
132187
+ "type": "string"
132188
+ }
132189
+ },
132190
+ "required": [
132191
+ "kind",
132192
+ "sectionId"
132193
+ ]
132194
+ },
132195
+ "headerFooterKind": {
132196
+ "oneOf": [
132197
+ {
132198
+ "const": "header"
132199
+ },
132200
+ {
132201
+ "const": "footer"
132202
+ }
132203
+ ]
132204
+ },
132205
+ "variant": {
132206
+ "oneOf": [
132207
+ {
132208
+ "const": "default"
132209
+ },
132210
+ {
132211
+ "const": "first"
132212
+ },
132213
+ {
132214
+ "const": "even"
132215
+ }
132216
+ ]
132217
+ },
132218
+ "resolution": {
132219
+ "oneOf": [
132220
+ {
132221
+ "const": "effective"
132222
+ },
132223
+ {
132224
+ "const": "explicit"
132225
+ }
132226
+ ]
132227
+ },
132228
+ "onWrite": {
132229
+ "oneOf": [
132230
+ {
132231
+ "const": "materializeIfInherited"
132232
+ },
132233
+ {
132234
+ "const": "editResolvedPart"
132235
+ },
132236
+ {
132237
+ "const": "error"
132238
+ }
132239
+ ]
132240
+ }
132241
+ },
132242
+ "required": [
132243
+ "kind",
132244
+ "storyType",
132245
+ "section",
132246
+ "headerFooterKind",
132247
+ "variant"
132248
+ ]
132249
+ },
132250
+ {
132251
+ "type": "object",
132252
+ "properties": {
132253
+ "kind": {
132254
+ "const": "story"
132255
+ },
132256
+ "storyType": {
132257
+ "const": "headerFooterPart"
132258
+ },
132259
+ "refId": {
132260
+ "type": "string"
132261
+ }
132262
+ },
132263
+ "required": [
132264
+ "kind",
132265
+ "storyType",
132266
+ "refId"
132267
+ ]
132268
+ },
132269
+ {
132270
+ "type": "object",
132271
+ "properties": {
132272
+ "kind": {
132273
+ "const": "story"
132274
+ },
132275
+ "storyType": {
132276
+ "const": "footnote"
132277
+ },
132278
+ "noteId": {
132279
+ "type": "string"
132280
+ }
132281
+ },
132282
+ "required": [
132283
+ "kind",
132284
+ "storyType",
132285
+ "noteId"
132286
+ ]
132287
+ },
132288
+ {
132289
+ "type": "object",
132290
+ "properties": {
132291
+ "kind": {
132292
+ "const": "story"
132293
+ },
132294
+ "storyType": {
132295
+ "const": "endnote"
132296
+ },
132297
+ "noteId": {
132298
+ "type": "string"
132299
+ }
132300
+ },
132301
+ "required": [
132302
+ "kind",
132303
+ "storyType",
132304
+ "noteId"
132305
+ ]
132306
+ }
132307
+ ],
132308
+ "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."
131653
132309
  }
131654
132310
  },
131655
132311
  "required": [
@@ -131736,6 +132392,9 @@ const CONTRACT = {
131736
132392
  },
131737
132393
  "name": {
131738
132394
  "type": "string"
132395
+ },
132396
+ "story": {
132397
+ "$ref": "#/$defs/StoryLocator"
131739
132398
  }
131740
132399
  },
131741
132400
  "additionalProperties": false,
@@ -131801,6 +132460,9 @@ const CONTRACT = {
131801
132460
  },
131802
132461
  "name": {
131803
132462
  "type": "string"
132463
+ },
132464
+ "story": {
132465
+ "$ref": "#/$defs/StoryLocator"
131804
132466
  }
131805
132467
  },
131806
132468
  "additionalProperties": false,
@@ -131931,6 +132593,162 @@ const CONTRACT = {
131931
132593
  },
131932
132594
  "name": {
131933
132595
  "type": "string"
132596
+ },
132597
+ "story": {
132598
+ "oneOf": [
132599
+ {
132600
+ "type": "object",
132601
+ "properties": {
132602
+ "kind": {
132603
+ "const": "story"
132604
+ },
132605
+ "storyType": {
132606
+ "const": "body"
132607
+ }
132608
+ },
132609
+ "required": [
132610
+ "kind",
132611
+ "storyType"
132612
+ ]
132613
+ },
132614
+ {
132615
+ "type": "object",
132616
+ "properties": {
132617
+ "kind": {
132618
+ "const": "story"
132619
+ },
132620
+ "storyType": {
132621
+ "const": "headerFooterSlot"
132622
+ },
132623
+ "section": {
132624
+ "type": "object",
132625
+ "properties": {
132626
+ "kind": {
132627
+ "const": "section"
132628
+ },
132629
+ "sectionId": {
132630
+ "type": "string"
132631
+ }
132632
+ },
132633
+ "required": [
132634
+ "kind",
132635
+ "sectionId"
132636
+ ]
132637
+ },
132638
+ "headerFooterKind": {
132639
+ "oneOf": [
132640
+ {
132641
+ "const": "header"
132642
+ },
132643
+ {
132644
+ "const": "footer"
132645
+ }
132646
+ ]
132647
+ },
132648
+ "variant": {
132649
+ "oneOf": [
132650
+ {
132651
+ "const": "default"
132652
+ },
132653
+ {
132654
+ "const": "first"
132655
+ },
132656
+ {
132657
+ "const": "even"
132658
+ }
132659
+ ]
132660
+ },
132661
+ "resolution": {
132662
+ "oneOf": [
132663
+ {
132664
+ "const": "effective"
132665
+ },
132666
+ {
132667
+ "const": "explicit"
132668
+ }
132669
+ ]
132670
+ },
132671
+ "onWrite": {
132672
+ "oneOf": [
132673
+ {
132674
+ "const": "materializeIfInherited"
132675
+ },
132676
+ {
132677
+ "const": "editResolvedPart"
132678
+ },
132679
+ {
132680
+ "const": "error"
132681
+ }
132682
+ ]
132683
+ }
132684
+ },
132685
+ "required": [
132686
+ "kind",
132687
+ "storyType",
132688
+ "section",
132689
+ "headerFooterKind",
132690
+ "variant"
132691
+ ]
132692
+ },
132693
+ {
132694
+ "type": "object",
132695
+ "properties": {
132696
+ "kind": {
132697
+ "const": "story"
132698
+ },
132699
+ "storyType": {
132700
+ "const": "headerFooterPart"
132701
+ },
132702
+ "refId": {
132703
+ "type": "string"
132704
+ }
132705
+ },
132706
+ "required": [
132707
+ "kind",
132708
+ "storyType",
132709
+ "refId"
132710
+ ]
132711
+ },
132712
+ {
132713
+ "type": "object",
132714
+ "properties": {
132715
+ "kind": {
132716
+ "const": "story"
132717
+ },
132718
+ "storyType": {
132719
+ "const": "footnote"
132720
+ },
132721
+ "noteId": {
132722
+ "type": "string"
132723
+ }
132724
+ },
132725
+ "required": [
132726
+ "kind",
132727
+ "storyType",
132728
+ "noteId"
132729
+ ]
132730
+ },
132731
+ {
132732
+ "type": "object",
132733
+ "properties": {
132734
+ "kind": {
132735
+ "const": "story"
132736
+ },
132737
+ "storyType": {
132738
+ "const": "endnote"
132739
+ },
132740
+ "noteId": {
132741
+ "type": "string"
132742
+ }
132743
+ },
132744
+ "required": [
132745
+ "kind",
132746
+ "storyType",
132747
+ "noteId"
132748
+ ]
132749
+ }
132750
+ ],
132751
+ "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."
131934
132752
  }
131935
132753
  },
131936
132754
  "required": [
@@ -131967,6 +132785,9 @@ const CONTRACT = {
131967
132785
  },
131968
132786
  "name": {
131969
132787
  "type": "string"
132788
+ },
132789
+ "story": {
132790
+ "$ref": "#/$defs/StoryLocator"
131970
132791
  }
131971
132792
  },
131972
132793
  "additionalProperties": false,
@@ -132005,6 +132826,9 @@ const CONTRACT = {
132005
132826
  },
132006
132827
  "name": {
132007
132828
  "type": "string"
132829
+ },
132830
+ "story": {
132831
+ "$ref": "#/$defs/StoryLocator"
132008
132832
  }
132009
132833
  },
132010
132834
  "additionalProperties": false,
@@ -132070,6 +132894,9 @@ const CONTRACT = {
132070
132894
  },
132071
132895
  "name": {
132072
132896
  "type": "string"
132897
+ },
132898
+ "story": {
132899
+ "$ref": "#/$defs/StoryLocator"
132073
132900
  }
132074
132901
  },
132075
132902
  "additionalProperties": false,
@@ -132200,6 +133027,162 @@ const CONTRACT = {
132200
133027
  },
132201
133028
  "name": {
132202
133029
  "type": "string"
133030
+ },
133031
+ "story": {
133032
+ "oneOf": [
133033
+ {
133034
+ "type": "object",
133035
+ "properties": {
133036
+ "kind": {
133037
+ "const": "story"
133038
+ },
133039
+ "storyType": {
133040
+ "const": "body"
133041
+ }
133042
+ },
133043
+ "required": [
133044
+ "kind",
133045
+ "storyType"
133046
+ ]
133047
+ },
133048
+ {
133049
+ "type": "object",
133050
+ "properties": {
133051
+ "kind": {
133052
+ "const": "story"
133053
+ },
133054
+ "storyType": {
133055
+ "const": "headerFooterSlot"
133056
+ },
133057
+ "section": {
133058
+ "type": "object",
133059
+ "properties": {
133060
+ "kind": {
133061
+ "const": "section"
133062
+ },
133063
+ "sectionId": {
133064
+ "type": "string"
133065
+ }
133066
+ },
133067
+ "required": [
133068
+ "kind",
133069
+ "sectionId"
133070
+ ]
133071
+ },
133072
+ "headerFooterKind": {
133073
+ "oneOf": [
133074
+ {
133075
+ "const": "header"
133076
+ },
133077
+ {
133078
+ "const": "footer"
133079
+ }
133080
+ ]
133081
+ },
133082
+ "variant": {
133083
+ "oneOf": [
133084
+ {
133085
+ "const": "default"
133086
+ },
133087
+ {
133088
+ "const": "first"
133089
+ },
133090
+ {
133091
+ "const": "even"
133092
+ }
133093
+ ]
133094
+ },
133095
+ "resolution": {
133096
+ "oneOf": [
133097
+ {
133098
+ "const": "effective"
133099
+ },
133100
+ {
133101
+ "const": "explicit"
133102
+ }
133103
+ ]
133104
+ },
133105
+ "onWrite": {
133106
+ "oneOf": [
133107
+ {
133108
+ "const": "materializeIfInherited"
133109
+ },
133110
+ {
133111
+ "const": "editResolvedPart"
133112
+ },
133113
+ {
133114
+ "const": "error"
133115
+ }
133116
+ ]
133117
+ }
133118
+ },
133119
+ "required": [
133120
+ "kind",
133121
+ "storyType",
133122
+ "section",
133123
+ "headerFooterKind",
133124
+ "variant"
133125
+ ]
133126
+ },
133127
+ {
133128
+ "type": "object",
133129
+ "properties": {
133130
+ "kind": {
133131
+ "const": "story"
133132
+ },
133133
+ "storyType": {
133134
+ "const": "headerFooterPart"
133135
+ },
133136
+ "refId": {
133137
+ "type": "string"
133138
+ }
133139
+ },
133140
+ "required": [
133141
+ "kind",
133142
+ "storyType",
133143
+ "refId"
133144
+ ]
133145
+ },
133146
+ {
133147
+ "type": "object",
133148
+ "properties": {
133149
+ "kind": {
133150
+ "const": "story"
133151
+ },
133152
+ "storyType": {
133153
+ "const": "footnote"
133154
+ },
133155
+ "noteId": {
133156
+ "type": "string"
133157
+ }
133158
+ },
133159
+ "required": [
133160
+ "kind",
133161
+ "storyType",
133162
+ "noteId"
133163
+ ]
133164
+ },
133165
+ {
133166
+ "type": "object",
133167
+ "properties": {
133168
+ "kind": {
133169
+ "const": "story"
133170
+ },
133171
+ "storyType": {
133172
+ "const": "endnote"
133173
+ },
133174
+ "noteId": {
133175
+ "type": "string"
133176
+ }
133177
+ },
133178
+ "required": [
133179
+ "kind",
133180
+ "storyType",
133181
+ "noteId"
133182
+ ]
133183
+ }
133184
+ ],
133185
+ "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."
132203
133186
  }
132204
133187
  },
132205
133188
  "required": [
@@ -132229,6 +133212,9 @@ const CONTRACT = {
132229
133212
  },
132230
133213
  "name": {
132231
133214
  "type": "string"
133215
+ },
133216
+ "story": {
133217
+ "$ref": "#/$defs/StoryLocator"
132232
133218
  }
132233
133219
  },
132234
133220
  "additionalProperties": false,
@@ -132263,6 +133249,9 @@ const CONTRACT = {
132263
133249
  },
132264
133250
  "name": {
132265
133251
  "type": "string"
133252
+ },
133253
+ "story": {
133254
+ "$ref": "#/$defs/StoryLocator"
132266
133255
  }
132267
133256
  },
132268
133257
  "additionalProperties": false,
@@ -132328,6 +133317,9 @@ const CONTRACT = {
132328
133317
  },
132329
133318
  "name": {
132330
133319
  "type": "string"
133320
+ },
133321
+ "story": {
133322
+ "$ref": "#/$defs/StoryLocator"
132331
133323
  }
132332
133324
  },
132333
133325
  "additionalProperties": false,
@@ -132654,6 +133646,162 @@ const CONTRACT = {
132654
133646
  "range"
132655
133647
  ]
132656
133648
  }
133649
+ },
133650
+ "story": {
133651
+ "oneOf": [
133652
+ {
133653
+ "type": "object",
133654
+ "properties": {
133655
+ "kind": {
133656
+ "const": "story"
133657
+ },
133658
+ "storyType": {
133659
+ "const": "body"
133660
+ }
133661
+ },
133662
+ "required": [
133663
+ "kind",
133664
+ "storyType"
133665
+ ]
133666
+ },
133667
+ {
133668
+ "type": "object",
133669
+ "properties": {
133670
+ "kind": {
133671
+ "const": "story"
133672
+ },
133673
+ "storyType": {
133674
+ "const": "headerFooterSlot"
133675
+ },
133676
+ "section": {
133677
+ "type": "object",
133678
+ "properties": {
133679
+ "kind": {
133680
+ "const": "section"
133681
+ },
133682
+ "sectionId": {
133683
+ "type": "string"
133684
+ }
133685
+ },
133686
+ "required": [
133687
+ "kind",
133688
+ "sectionId"
133689
+ ]
133690
+ },
133691
+ "headerFooterKind": {
133692
+ "oneOf": [
133693
+ {
133694
+ "const": "header"
133695
+ },
133696
+ {
133697
+ "const": "footer"
133698
+ }
133699
+ ]
133700
+ },
133701
+ "variant": {
133702
+ "oneOf": [
133703
+ {
133704
+ "const": "default"
133705
+ },
133706
+ {
133707
+ "const": "first"
133708
+ },
133709
+ {
133710
+ "const": "even"
133711
+ }
133712
+ ]
133713
+ },
133714
+ "resolution": {
133715
+ "oneOf": [
133716
+ {
133717
+ "const": "effective"
133718
+ },
133719
+ {
133720
+ "const": "explicit"
133721
+ }
133722
+ ]
133723
+ },
133724
+ "onWrite": {
133725
+ "oneOf": [
133726
+ {
133727
+ "const": "materializeIfInherited"
133728
+ },
133729
+ {
133730
+ "const": "editResolvedPart"
133731
+ },
133732
+ {
133733
+ "const": "error"
133734
+ }
133735
+ ]
133736
+ }
133737
+ },
133738
+ "required": [
133739
+ "kind",
133740
+ "storyType",
133741
+ "section",
133742
+ "headerFooterKind",
133743
+ "variant"
133744
+ ]
133745
+ },
133746
+ {
133747
+ "type": "object",
133748
+ "properties": {
133749
+ "kind": {
133750
+ "const": "story"
133751
+ },
133752
+ "storyType": {
133753
+ "const": "headerFooterPart"
133754
+ },
133755
+ "refId": {
133756
+ "type": "string"
133757
+ }
133758
+ },
133759
+ "required": [
133760
+ "kind",
133761
+ "storyType",
133762
+ "refId"
133763
+ ]
133764
+ },
133765
+ {
133766
+ "type": "object",
133767
+ "properties": {
133768
+ "kind": {
133769
+ "const": "story"
133770
+ },
133771
+ "storyType": {
133772
+ "const": "footnote"
133773
+ },
133774
+ "noteId": {
133775
+ "type": "string"
133776
+ }
133777
+ },
133778
+ "required": [
133779
+ "kind",
133780
+ "storyType",
133781
+ "noteId"
133782
+ ]
133783
+ },
133784
+ {
133785
+ "type": "object",
133786
+ "properties": {
133787
+ "kind": {
133788
+ "const": "story"
133789
+ },
133790
+ "storyType": {
133791
+ "const": "endnote"
133792
+ },
133793
+ "noteId": {
133794
+ "type": "string"
133795
+ }
133796
+ },
133797
+ "required": [
133798
+ "kind",
133799
+ "storyType",
133800
+ "noteId"
133801
+ ]
133802
+ }
133803
+ ],
133804
+ "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."
132657
133805
  }
132658
133806
  },
132659
133807
  "required": [
@@ -134042,6 +135190,162 @@ const CONTRACT = {
134042
135190
  "range"
134043
135191
  ]
134044
135192
  }
135193
+ },
135194
+ "story": {
135195
+ "oneOf": [
135196
+ {
135197
+ "type": "object",
135198
+ "properties": {
135199
+ "kind": {
135200
+ "const": "story"
135201
+ },
135202
+ "storyType": {
135203
+ "const": "body"
135204
+ }
135205
+ },
135206
+ "required": [
135207
+ "kind",
135208
+ "storyType"
135209
+ ]
135210
+ },
135211
+ {
135212
+ "type": "object",
135213
+ "properties": {
135214
+ "kind": {
135215
+ "const": "story"
135216
+ },
135217
+ "storyType": {
135218
+ "const": "headerFooterSlot"
135219
+ },
135220
+ "section": {
135221
+ "type": "object",
135222
+ "properties": {
135223
+ "kind": {
135224
+ "const": "section"
135225
+ },
135226
+ "sectionId": {
135227
+ "type": "string"
135228
+ }
135229
+ },
135230
+ "required": [
135231
+ "kind",
135232
+ "sectionId"
135233
+ ]
135234
+ },
135235
+ "headerFooterKind": {
135236
+ "oneOf": [
135237
+ {
135238
+ "const": "header"
135239
+ },
135240
+ {
135241
+ "const": "footer"
135242
+ }
135243
+ ]
135244
+ },
135245
+ "variant": {
135246
+ "oneOf": [
135247
+ {
135248
+ "const": "default"
135249
+ },
135250
+ {
135251
+ "const": "first"
135252
+ },
135253
+ {
135254
+ "const": "even"
135255
+ }
135256
+ ]
135257
+ },
135258
+ "resolution": {
135259
+ "oneOf": [
135260
+ {
135261
+ "const": "effective"
135262
+ },
135263
+ {
135264
+ "const": "explicit"
135265
+ }
135266
+ ]
135267
+ },
135268
+ "onWrite": {
135269
+ "oneOf": [
135270
+ {
135271
+ "const": "materializeIfInherited"
135272
+ },
135273
+ {
135274
+ "const": "editResolvedPart"
135275
+ },
135276
+ {
135277
+ "const": "error"
135278
+ }
135279
+ ]
135280
+ }
135281
+ },
135282
+ "required": [
135283
+ "kind",
135284
+ "storyType",
135285
+ "section",
135286
+ "headerFooterKind",
135287
+ "variant"
135288
+ ]
135289
+ },
135290
+ {
135291
+ "type": "object",
135292
+ "properties": {
135293
+ "kind": {
135294
+ "const": "story"
135295
+ },
135296
+ "storyType": {
135297
+ "const": "headerFooterPart"
135298
+ },
135299
+ "refId": {
135300
+ "type": "string"
135301
+ }
135302
+ },
135303
+ "required": [
135304
+ "kind",
135305
+ "storyType",
135306
+ "refId"
135307
+ ]
135308
+ },
135309
+ {
135310
+ "type": "object",
135311
+ "properties": {
135312
+ "kind": {
135313
+ "const": "story"
135314
+ },
135315
+ "storyType": {
135316
+ "const": "footnote"
135317
+ },
135318
+ "noteId": {
135319
+ "type": "string"
135320
+ }
135321
+ },
135322
+ "required": [
135323
+ "kind",
135324
+ "storyType",
135325
+ "noteId"
135326
+ ]
135327
+ },
135328
+ {
135329
+ "type": "object",
135330
+ "properties": {
135331
+ "kind": {
135332
+ "const": "story"
135333
+ },
135334
+ "storyType": {
135335
+ "const": "endnote"
135336
+ },
135337
+ "noteId": {
135338
+ "type": "string"
135339
+ }
135340
+ },
135341
+ "required": [
135342
+ "kind",
135343
+ "storyType",
135344
+ "noteId"
135345
+ ]
135346
+ }
135347
+ ],
135348
+ "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."
134045
135349
  }
134046
135350
  },
134047
135351
  "required": [
@@ -136918,6 +138222,162 @@ const CONTRACT = {
136918
138222
  "range"
136919
138223
  ]
136920
138224
  }
138225
+ },
138226
+ "story": {
138227
+ "oneOf": [
138228
+ {
138229
+ "type": "object",
138230
+ "properties": {
138231
+ "kind": {
138232
+ "const": "story"
138233
+ },
138234
+ "storyType": {
138235
+ "const": "body"
138236
+ }
138237
+ },
138238
+ "required": [
138239
+ "kind",
138240
+ "storyType"
138241
+ ]
138242
+ },
138243
+ {
138244
+ "type": "object",
138245
+ "properties": {
138246
+ "kind": {
138247
+ "const": "story"
138248
+ },
138249
+ "storyType": {
138250
+ "const": "headerFooterSlot"
138251
+ },
138252
+ "section": {
138253
+ "type": "object",
138254
+ "properties": {
138255
+ "kind": {
138256
+ "const": "section"
138257
+ },
138258
+ "sectionId": {
138259
+ "type": "string"
138260
+ }
138261
+ },
138262
+ "required": [
138263
+ "kind",
138264
+ "sectionId"
138265
+ ]
138266
+ },
138267
+ "headerFooterKind": {
138268
+ "oneOf": [
138269
+ {
138270
+ "const": "header"
138271
+ },
138272
+ {
138273
+ "const": "footer"
138274
+ }
138275
+ ]
138276
+ },
138277
+ "variant": {
138278
+ "oneOf": [
138279
+ {
138280
+ "const": "default"
138281
+ },
138282
+ {
138283
+ "const": "first"
138284
+ },
138285
+ {
138286
+ "const": "even"
138287
+ }
138288
+ ]
138289
+ },
138290
+ "resolution": {
138291
+ "oneOf": [
138292
+ {
138293
+ "const": "effective"
138294
+ },
138295
+ {
138296
+ "const": "explicit"
138297
+ }
138298
+ ]
138299
+ },
138300
+ "onWrite": {
138301
+ "oneOf": [
138302
+ {
138303
+ "const": "materializeIfInherited"
138304
+ },
138305
+ {
138306
+ "const": "editResolvedPart"
138307
+ },
138308
+ {
138309
+ "const": "error"
138310
+ }
138311
+ ]
138312
+ }
138313
+ },
138314
+ "required": [
138315
+ "kind",
138316
+ "storyType",
138317
+ "section",
138318
+ "headerFooterKind",
138319
+ "variant"
138320
+ ]
138321
+ },
138322
+ {
138323
+ "type": "object",
138324
+ "properties": {
138325
+ "kind": {
138326
+ "const": "story"
138327
+ },
138328
+ "storyType": {
138329
+ "const": "headerFooterPart"
138330
+ },
138331
+ "refId": {
138332
+ "type": "string"
138333
+ }
138334
+ },
138335
+ "required": [
138336
+ "kind",
138337
+ "storyType",
138338
+ "refId"
138339
+ ]
138340
+ },
138341
+ {
138342
+ "type": "object",
138343
+ "properties": {
138344
+ "kind": {
138345
+ "const": "story"
138346
+ },
138347
+ "storyType": {
138348
+ "const": "footnote"
138349
+ },
138350
+ "noteId": {
138351
+ "type": "string"
138352
+ }
138353
+ },
138354
+ "required": [
138355
+ "kind",
138356
+ "storyType",
138357
+ "noteId"
138358
+ ]
138359
+ },
138360
+ {
138361
+ "type": "object",
138362
+ "properties": {
138363
+ "kind": {
138364
+ "const": "story"
138365
+ },
138366
+ "storyType": {
138367
+ "const": "endnote"
138368
+ },
138369
+ "noteId": {
138370
+ "type": "string"
138371
+ }
138372
+ },
138373
+ "required": [
138374
+ "kind",
138375
+ "storyType",
138376
+ "noteId"
138377
+ ]
138378
+ }
138379
+ ],
138380
+ "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."
136921
138381
  }
136922
138382
  },
136923
138383
  "required": [
@@ -139321,6 +140781,162 @@ const CONTRACT = {
139321
140781
  "range"
139322
140782
  ]
139323
140783
  }
140784
+ },
140785
+ "story": {
140786
+ "oneOf": [
140787
+ {
140788
+ "type": "object",
140789
+ "properties": {
140790
+ "kind": {
140791
+ "const": "story"
140792
+ },
140793
+ "storyType": {
140794
+ "const": "body"
140795
+ }
140796
+ },
140797
+ "required": [
140798
+ "kind",
140799
+ "storyType"
140800
+ ]
140801
+ },
140802
+ {
140803
+ "type": "object",
140804
+ "properties": {
140805
+ "kind": {
140806
+ "const": "story"
140807
+ },
140808
+ "storyType": {
140809
+ "const": "headerFooterSlot"
140810
+ },
140811
+ "section": {
140812
+ "type": "object",
140813
+ "properties": {
140814
+ "kind": {
140815
+ "const": "section"
140816
+ },
140817
+ "sectionId": {
140818
+ "type": "string"
140819
+ }
140820
+ },
140821
+ "required": [
140822
+ "kind",
140823
+ "sectionId"
140824
+ ]
140825
+ },
140826
+ "headerFooterKind": {
140827
+ "oneOf": [
140828
+ {
140829
+ "const": "header"
140830
+ },
140831
+ {
140832
+ "const": "footer"
140833
+ }
140834
+ ]
140835
+ },
140836
+ "variant": {
140837
+ "oneOf": [
140838
+ {
140839
+ "const": "default"
140840
+ },
140841
+ {
140842
+ "const": "first"
140843
+ },
140844
+ {
140845
+ "const": "even"
140846
+ }
140847
+ ]
140848
+ },
140849
+ "resolution": {
140850
+ "oneOf": [
140851
+ {
140852
+ "const": "effective"
140853
+ },
140854
+ {
140855
+ "const": "explicit"
140856
+ }
140857
+ ]
140858
+ },
140859
+ "onWrite": {
140860
+ "oneOf": [
140861
+ {
140862
+ "const": "materializeIfInherited"
140863
+ },
140864
+ {
140865
+ "const": "editResolvedPart"
140866
+ },
140867
+ {
140868
+ "const": "error"
140869
+ }
140870
+ ]
140871
+ }
140872
+ },
140873
+ "required": [
140874
+ "kind",
140875
+ "storyType",
140876
+ "section",
140877
+ "headerFooterKind",
140878
+ "variant"
140879
+ ]
140880
+ },
140881
+ {
140882
+ "type": "object",
140883
+ "properties": {
140884
+ "kind": {
140885
+ "const": "story"
140886
+ },
140887
+ "storyType": {
140888
+ "const": "headerFooterPart"
140889
+ },
140890
+ "refId": {
140891
+ "type": "string"
140892
+ }
140893
+ },
140894
+ "required": [
140895
+ "kind",
140896
+ "storyType",
140897
+ "refId"
140898
+ ]
140899
+ },
140900
+ {
140901
+ "type": "object",
140902
+ "properties": {
140903
+ "kind": {
140904
+ "const": "story"
140905
+ },
140906
+ "storyType": {
140907
+ "const": "footnote"
140908
+ },
140909
+ "noteId": {
140910
+ "type": "string"
140911
+ }
140912
+ },
140913
+ "required": [
140914
+ "kind",
140915
+ "storyType",
140916
+ "noteId"
140917
+ ]
140918
+ },
140919
+ {
140920
+ "type": "object",
140921
+ "properties": {
140922
+ "kind": {
140923
+ "const": "story"
140924
+ },
140925
+ "storyType": {
140926
+ "const": "endnote"
140927
+ },
140928
+ "noteId": {
140929
+ "type": "string"
140930
+ }
140931
+ },
140932
+ "required": [
140933
+ "kind",
140934
+ "storyType",
140935
+ "noteId"
140936
+ ]
140937
+ }
140938
+ ],
140939
+ "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."
139324
140940
  }
139325
140941
  },
139326
140942
  "required": [
@@ -140348,6 +141964,162 @@ const CONTRACT = {
140348
141964
  "range"
140349
141965
  ]
140350
141966
  }
141967
+ },
141968
+ "story": {
141969
+ "oneOf": [
141970
+ {
141971
+ "type": "object",
141972
+ "properties": {
141973
+ "kind": {
141974
+ "const": "story"
141975
+ },
141976
+ "storyType": {
141977
+ "const": "body"
141978
+ }
141979
+ },
141980
+ "required": [
141981
+ "kind",
141982
+ "storyType"
141983
+ ]
141984
+ },
141985
+ {
141986
+ "type": "object",
141987
+ "properties": {
141988
+ "kind": {
141989
+ "const": "story"
141990
+ },
141991
+ "storyType": {
141992
+ "const": "headerFooterSlot"
141993
+ },
141994
+ "section": {
141995
+ "type": "object",
141996
+ "properties": {
141997
+ "kind": {
141998
+ "const": "section"
141999
+ },
142000
+ "sectionId": {
142001
+ "type": "string"
142002
+ }
142003
+ },
142004
+ "required": [
142005
+ "kind",
142006
+ "sectionId"
142007
+ ]
142008
+ },
142009
+ "headerFooterKind": {
142010
+ "oneOf": [
142011
+ {
142012
+ "const": "header"
142013
+ },
142014
+ {
142015
+ "const": "footer"
142016
+ }
142017
+ ]
142018
+ },
142019
+ "variant": {
142020
+ "oneOf": [
142021
+ {
142022
+ "const": "default"
142023
+ },
142024
+ {
142025
+ "const": "first"
142026
+ },
142027
+ {
142028
+ "const": "even"
142029
+ }
142030
+ ]
142031
+ },
142032
+ "resolution": {
142033
+ "oneOf": [
142034
+ {
142035
+ "const": "effective"
142036
+ },
142037
+ {
142038
+ "const": "explicit"
142039
+ }
142040
+ ]
142041
+ },
142042
+ "onWrite": {
142043
+ "oneOf": [
142044
+ {
142045
+ "const": "materializeIfInherited"
142046
+ },
142047
+ {
142048
+ "const": "editResolvedPart"
142049
+ },
142050
+ {
142051
+ "const": "error"
142052
+ }
142053
+ ]
142054
+ }
142055
+ },
142056
+ "required": [
142057
+ "kind",
142058
+ "storyType",
142059
+ "section",
142060
+ "headerFooterKind",
142061
+ "variant"
142062
+ ]
142063
+ },
142064
+ {
142065
+ "type": "object",
142066
+ "properties": {
142067
+ "kind": {
142068
+ "const": "story"
142069
+ },
142070
+ "storyType": {
142071
+ "const": "headerFooterPart"
142072
+ },
142073
+ "refId": {
142074
+ "type": "string"
142075
+ }
142076
+ },
142077
+ "required": [
142078
+ "kind",
142079
+ "storyType",
142080
+ "refId"
142081
+ ]
142082
+ },
142083
+ {
142084
+ "type": "object",
142085
+ "properties": {
142086
+ "kind": {
142087
+ "const": "story"
142088
+ },
142089
+ "storyType": {
142090
+ "const": "footnote"
142091
+ },
142092
+ "noteId": {
142093
+ "type": "string"
142094
+ }
142095
+ },
142096
+ "required": [
142097
+ "kind",
142098
+ "storyType",
142099
+ "noteId"
142100
+ ]
142101
+ },
142102
+ {
142103
+ "type": "object",
142104
+ "properties": {
142105
+ "kind": {
142106
+ "const": "story"
142107
+ },
142108
+ "storyType": {
142109
+ "const": "endnote"
142110
+ },
142111
+ "noteId": {
142112
+ "type": "string"
142113
+ }
142114
+ },
142115
+ "required": [
142116
+ "kind",
142117
+ "storyType",
142118
+ "noteId"
142119
+ ]
142120
+ }
142121
+ ],
142122
+ "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."
140351
142123
  }
140352
142124
  },
140353
142125
  "required": [
@@ -145643,6 +147415,162 @@ const CONTRACT = {
145643
147415
  "range"
145644
147416
  ]
145645
147417
  }
147418
+ },
147419
+ "story": {
147420
+ "oneOf": [
147421
+ {
147422
+ "type": "object",
147423
+ "properties": {
147424
+ "kind": {
147425
+ "const": "story"
147426
+ },
147427
+ "storyType": {
147428
+ "const": "body"
147429
+ }
147430
+ },
147431
+ "required": [
147432
+ "kind",
147433
+ "storyType"
147434
+ ]
147435
+ },
147436
+ {
147437
+ "type": "object",
147438
+ "properties": {
147439
+ "kind": {
147440
+ "const": "story"
147441
+ },
147442
+ "storyType": {
147443
+ "const": "headerFooterSlot"
147444
+ },
147445
+ "section": {
147446
+ "type": "object",
147447
+ "properties": {
147448
+ "kind": {
147449
+ "const": "section"
147450
+ },
147451
+ "sectionId": {
147452
+ "type": "string"
147453
+ }
147454
+ },
147455
+ "required": [
147456
+ "kind",
147457
+ "sectionId"
147458
+ ]
147459
+ },
147460
+ "headerFooterKind": {
147461
+ "oneOf": [
147462
+ {
147463
+ "const": "header"
147464
+ },
147465
+ {
147466
+ "const": "footer"
147467
+ }
147468
+ ]
147469
+ },
147470
+ "variant": {
147471
+ "oneOf": [
147472
+ {
147473
+ "const": "default"
147474
+ },
147475
+ {
147476
+ "const": "first"
147477
+ },
147478
+ {
147479
+ "const": "even"
147480
+ }
147481
+ ]
147482
+ },
147483
+ "resolution": {
147484
+ "oneOf": [
147485
+ {
147486
+ "const": "effective"
147487
+ },
147488
+ {
147489
+ "const": "explicit"
147490
+ }
147491
+ ]
147492
+ },
147493
+ "onWrite": {
147494
+ "oneOf": [
147495
+ {
147496
+ "const": "materializeIfInherited"
147497
+ },
147498
+ {
147499
+ "const": "editResolvedPart"
147500
+ },
147501
+ {
147502
+ "const": "error"
147503
+ }
147504
+ ]
147505
+ }
147506
+ },
147507
+ "required": [
147508
+ "kind",
147509
+ "storyType",
147510
+ "section",
147511
+ "headerFooterKind",
147512
+ "variant"
147513
+ ]
147514
+ },
147515
+ {
147516
+ "type": "object",
147517
+ "properties": {
147518
+ "kind": {
147519
+ "const": "story"
147520
+ },
147521
+ "storyType": {
147522
+ "const": "headerFooterPart"
147523
+ },
147524
+ "refId": {
147525
+ "type": "string"
147526
+ }
147527
+ },
147528
+ "required": [
147529
+ "kind",
147530
+ "storyType",
147531
+ "refId"
147532
+ ]
147533
+ },
147534
+ {
147535
+ "type": "object",
147536
+ "properties": {
147537
+ "kind": {
147538
+ "const": "story"
147539
+ },
147540
+ "storyType": {
147541
+ "const": "footnote"
147542
+ },
147543
+ "noteId": {
147544
+ "type": "string"
147545
+ }
147546
+ },
147547
+ "required": [
147548
+ "kind",
147549
+ "storyType",
147550
+ "noteId"
147551
+ ]
147552
+ },
147553
+ {
147554
+ "type": "object",
147555
+ "properties": {
147556
+ "kind": {
147557
+ "const": "story"
147558
+ },
147559
+ "storyType": {
147560
+ "const": "endnote"
147561
+ },
147562
+ "noteId": {
147563
+ "type": "string"
147564
+ }
147565
+ },
147566
+ "required": [
147567
+ "kind",
147568
+ "storyType",
147569
+ "noteId"
147570
+ ]
147571
+ }
147572
+ ],
147573
+ "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."
145646
147574
  }
145647
147575
  },
145648
147576
  "required": [