@superdoc-dev/sdk 1.6.0 → 1.8.0-next.1

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.
@@ -575,6 +575,9 @@ export const CONTRACT = {
575
575
  },
576
576
  "entityId": {
577
577
  "type": "string"
578
+ },
579
+ "story": {
580
+ "$ref": "#/$defs/StoryLocator"
578
581
  }
579
582
  },
580
583
  "additionalProperties": false,
@@ -3171,7 +3174,7 @@ export const CONTRACT = {
3171
3174
  },
3172
3175
  "type": {
3173
3176
  "type": "string",
3174
- "description": "Block type: paragraph, heading, listItem, table, image, etc."
3177
+ "description": "Block type: paragraph, heading, listItem, image, tableOfContents."
3175
3178
  },
3176
3179
  "text": {
3177
3180
  "type": "string",
@@ -3180,6 +3183,51 @@ export const CONTRACT = {
3180
3183
  "headingLevel": {
3181
3184
  "type": "integer",
3182
3185
  "description": "Heading level (1–6). Only present for headings."
3186
+ },
3187
+ "tableContext": {
3188
+ "type": "object",
3189
+ "properties": {
3190
+ "tableOrdinal": {
3191
+ "type": "integer",
3192
+ "description": "0-based table ordinal, unique within one extract() result."
3193
+ },
3194
+ "parentTableOrdinal": {
3195
+ "type": "integer",
3196
+ "description": "Ordinal of the parent table when the containing table is nested."
3197
+ },
3198
+ "parentRowIndex": {
3199
+ "type": "integer",
3200
+ "description": "Row index in the parent table. Set with parentTableOrdinal."
3201
+ },
3202
+ "parentColumnIndex": {
3203
+ "type": "integer",
3204
+ "description": "Column index in the parent table. Set with parentTableOrdinal."
3205
+ },
3206
+ "rowIndex": {
3207
+ "type": "integer",
3208
+ "description": "0-based row index of the containing cell."
3209
+ },
3210
+ "columnIndex": {
3211
+ "type": "integer",
3212
+ "description": "0-based logical grid column, not the row child order."
3213
+ },
3214
+ "rowspan": {
3215
+ "type": "integer",
3216
+ "description": "Number of rows the cell spans."
3217
+ },
3218
+ "colspan": {
3219
+ "type": "integer",
3220
+ "description": "Number of columns the cell spans."
3221
+ }
3222
+ },
3223
+ "additionalProperties": false,
3224
+ "required": [
3225
+ "tableOrdinal",
3226
+ "rowIndex",
3227
+ "columnIndex",
3228
+ "rowspan",
3229
+ "colspan"
3230
+ ]
3183
3231
  }
3184
3232
  },
3185
3233
  "additionalProperties": false,
@@ -61186,6 +61234,178 @@ export const CONTRACT = {
61186
61234
  "description": "Filter by change type: 'insert', 'delete', or 'format'."
61187
61235
  },
61188
61236
  "description": "Filter by change type: 'insert', 'delete', or 'format'."
61237
+ },
61238
+ {
61239
+ "name": "in",
61240
+ "kind": "jsonFlag",
61241
+ "type": "json",
61242
+ "flag": "in-json",
61243
+ "schema": {
61244
+ "oneOf": [
61245
+ {
61246
+ "oneOf": [
61247
+ {
61248
+ "type": "object",
61249
+ "properties": {
61250
+ "kind": {
61251
+ "const": "story"
61252
+ },
61253
+ "storyType": {
61254
+ "const": "body"
61255
+ }
61256
+ },
61257
+ "required": [
61258
+ "kind",
61259
+ "storyType"
61260
+ ]
61261
+ },
61262
+ {
61263
+ "type": "object",
61264
+ "properties": {
61265
+ "kind": {
61266
+ "const": "story"
61267
+ },
61268
+ "storyType": {
61269
+ "const": "headerFooterSlot"
61270
+ },
61271
+ "section": {
61272
+ "type": "object",
61273
+ "properties": {
61274
+ "kind": {
61275
+ "const": "section"
61276
+ },
61277
+ "sectionId": {
61278
+ "type": "string"
61279
+ }
61280
+ },
61281
+ "required": [
61282
+ "kind",
61283
+ "sectionId"
61284
+ ]
61285
+ },
61286
+ "headerFooterKind": {
61287
+ "oneOf": [
61288
+ {
61289
+ "const": "header"
61290
+ },
61291
+ {
61292
+ "const": "footer"
61293
+ }
61294
+ ]
61295
+ },
61296
+ "variant": {
61297
+ "oneOf": [
61298
+ {
61299
+ "const": "default"
61300
+ },
61301
+ {
61302
+ "const": "first"
61303
+ },
61304
+ {
61305
+ "const": "even"
61306
+ }
61307
+ ]
61308
+ },
61309
+ "resolution": {
61310
+ "oneOf": [
61311
+ {
61312
+ "const": "effective"
61313
+ },
61314
+ {
61315
+ "const": "explicit"
61316
+ }
61317
+ ]
61318
+ },
61319
+ "onWrite": {
61320
+ "oneOf": [
61321
+ {
61322
+ "const": "materializeIfInherited"
61323
+ },
61324
+ {
61325
+ "const": "editResolvedPart"
61326
+ },
61327
+ {
61328
+ "const": "error"
61329
+ }
61330
+ ]
61331
+ }
61332
+ },
61333
+ "required": [
61334
+ "kind",
61335
+ "storyType",
61336
+ "section",
61337
+ "headerFooterKind",
61338
+ "variant"
61339
+ ]
61340
+ },
61341
+ {
61342
+ "type": "object",
61343
+ "properties": {
61344
+ "kind": {
61345
+ "const": "story"
61346
+ },
61347
+ "storyType": {
61348
+ "const": "headerFooterPart"
61349
+ },
61350
+ "refId": {
61351
+ "type": "string"
61352
+ }
61353
+ },
61354
+ "required": [
61355
+ "kind",
61356
+ "storyType",
61357
+ "refId"
61358
+ ]
61359
+ },
61360
+ {
61361
+ "type": "object",
61362
+ "properties": {
61363
+ "kind": {
61364
+ "const": "story"
61365
+ },
61366
+ "storyType": {
61367
+ "const": "footnote"
61368
+ },
61369
+ "noteId": {
61370
+ "type": "string"
61371
+ }
61372
+ },
61373
+ "required": [
61374
+ "kind",
61375
+ "storyType",
61376
+ "noteId"
61377
+ ]
61378
+ },
61379
+ {
61380
+ "type": "object",
61381
+ "properties": {
61382
+ "kind": {
61383
+ "const": "story"
61384
+ },
61385
+ "storyType": {
61386
+ "const": "endnote"
61387
+ },
61388
+ "noteId": {
61389
+ "type": "string"
61390
+ }
61391
+ },
61392
+ "required": [
61393
+ "kind",
61394
+ "storyType",
61395
+ "noteId"
61396
+ ]
61397
+ }
61398
+ ],
61399
+ "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."
61400
+ },
61401
+ {
61402
+ "const": "all"
61403
+ }
61404
+ ],
61405
+ "description": "Story scope. Omit for body only, pass a StoryLocator for a single story, or 'all' for body + every revision-capable non-body story."
61406
+ },
61407
+ "description": "Story scope. Omit for body only, pass a StoryLocator for a single story, or 'all' for body + every revision-capable non-body story.",
61408
+ "agentVisible": false
61189
61409
  }
61190
61410
  ],
61191
61411
  "constraints": null,
@@ -61211,6 +61431,17 @@ export const CONTRACT = {
61211
61431
  "format"
61212
61432
  ],
61213
61433
  "description": "Filter by change type: 'insert', 'delete', or 'format'."
61434
+ },
61435
+ "in": {
61436
+ "oneOf": [
61437
+ {
61438
+ "$ref": "#/$defs/StoryLocator"
61439
+ },
61440
+ {
61441
+ "const": "all"
61442
+ }
61443
+ ],
61444
+ "description": "Story scope. Omit for body only, pass a StoryLocator for a single story, or 'all' for body + every revision-capable non-body story."
61214
61445
  }
61215
61446
  },
61216
61447
  "additionalProperties": false
@@ -61337,6 +61568,169 @@ export const CONTRACT = {
61337
61568
  "kind": "flag",
61338
61569
  "type": "string",
61339
61570
  "required": true
61571
+ },
61572
+ {
61573
+ "name": "story",
61574
+ "kind": "jsonFlag",
61575
+ "type": "json",
61576
+ "flag": "story-json",
61577
+ "schema": {
61578
+ "oneOf": [
61579
+ {
61580
+ "type": "object",
61581
+ "properties": {
61582
+ "kind": {
61583
+ "const": "story"
61584
+ },
61585
+ "storyType": {
61586
+ "const": "body"
61587
+ }
61588
+ },
61589
+ "required": [
61590
+ "kind",
61591
+ "storyType"
61592
+ ]
61593
+ },
61594
+ {
61595
+ "type": "object",
61596
+ "properties": {
61597
+ "kind": {
61598
+ "const": "story"
61599
+ },
61600
+ "storyType": {
61601
+ "const": "headerFooterSlot"
61602
+ },
61603
+ "section": {
61604
+ "type": "object",
61605
+ "properties": {
61606
+ "kind": {
61607
+ "const": "section"
61608
+ },
61609
+ "sectionId": {
61610
+ "type": "string"
61611
+ }
61612
+ },
61613
+ "required": [
61614
+ "kind",
61615
+ "sectionId"
61616
+ ]
61617
+ },
61618
+ "headerFooterKind": {
61619
+ "oneOf": [
61620
+ {
61621
+ "const": "header"
61622
+ },
61623
+ {
61624
+ "const": "footer"
61625
+ }
61626
+ ]
61627
+ },
61628
+ "variant": {
61629
+ "oneOf": [
61630
+ {
61631
+ "const": "default"
61632
+ },
61633
+ {
61634
+ "const": "first"
61635
+ },
61636
+ {
61637
+ "const": "even"
61638
+ }
61639
+ ]
61640
+ },
61641
+ "resolution": {
61642
+ "oneOf": [
61643
+ {
61644
+ "const": "effective"
61645
+ },
61646
+ {
61647
+ "const": "explicit"
61648
+ }
61649
+ ]
61650
+ },
61651
+ "onWrite": {
61652
+ "oneOf": [
61653
+ {
61654
+ "const": "materializeIfInherited"
61655
+ },
61656
+ {
61657
+ "const": "editResolvedPart"
61658
+ },
61659
+ {
61660
+ "const": "error"
61661
+ }
61662
+ ]
61663
+ }
61664
+ },
61665
+ "required": [
61666
+ "kind",
61667
+ "storyType",
61668
+ "section",
61669
+ "headerFooterKind",
61670
+ "variant"
61671
+ ]
61672
+ },
61673
+ {
61674
+ "type": "object",
61675
+ "properties": {
61676
+ "kind": {
61677
+ "const": "story"
61678
+ },
61679
+ "storyType": {
61680
+ "const": "headerFooterPart"
61681
+ },
61682
+ "refId": {
61683
+ "type": "string"
61684
+ }
61685
+ },
61686
+ "required": [
61687
+ "kind",
61688
+ "storyType",
61689
+ "refId"
61690
+ ]
61691
+ },
61692
+ {
61693
+ "type": "object",
61694
+ "properties": {
61695
+ "kind": {
61696
+ "const": "story"
61697
+ },
61698
+ "storyType": {
61699
+ "const": "footnote"
61700
+ },
61701
+ "noteId": {
61702
+ "type": "string"
61703
+ }
61704
+ },
61705
+ "required": [
61706
+ "kind",
61707
+ "storyType",
61708
+ "noteId"
61709
+ ]
61710
+ },
61711
+ {
61712
+ "type": "object",
61713
+ "properties": {
61714
+ "kind": {
61715
+ "const": "story"
61716
+ },
61717
+ "storyType": {
61718
+ "const": "endnote"
61719
+ },
61720
+ "noteId": {
61721
+ "type": "string"
61722
+ }
61723
+ },
61724
+ "required": [
61725
+ "kind",
61726
+ "storyType",
61727
+ "noteId"
61728
+ ]
61729
+ }
61730
+ ],
61731
+ "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."
61732
+ },
61733
+ "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."
61340
61734
  }
61341
61735
  ],
61342
61736
  "constraints": null,
@@ -61349,6 +61743,9 @@ export const CONTRACT = {
61349
61743
  "properties": {
61350
61744
  "id": {
61351
61745
  "type": "string"
61746
+ },
61747
+ "story": {
61748
+ "$ref": "#/$defs/StoryLocator"
61352
61749
  }
61353
61750
  },
61354
61751
  "additionalProperties": false,
@@ -61503,6 +61900,162 @@ export const CONTRACT = {
61503
61900
  "properties": {
61504
61901
  "id": {
61505
61902
  "type": "string"
61903
+ },
61904
+ "story": {
61905
+ "oneOf": [
61906
+ {
61907
+ "type": "object",
61908
+ "properties": {
61909
+ "kind": {
61910
+ "const": "story"
61911
+ },
61912
+ "storyType": {
61913
+ "const": "body"
61914
+ }
61915
+ },
61916
+ "required": [
61917
+ "kind",
61918
+ "storyType"
61919
+ ]
61920
+ },
61921
+ {
61922
+ "type": "object",
61923
+ "properties": {
61924
+ "kind": {
61925
+ "const": "story"
61926
+ },
61927
+ "storyType": {
61928
+ "const": "headerFooterSlot"
61929
+ },
61930
+ "section": {
61931
+ "type": "object",
61932
+ "properties": {
61933
+ "kind": {
61934
+ "const": "section"
61935
+ },
61936
+ "sectionId": {
61937
+ "type": "string"
61938
+ }
61939
+ },
61940
+ "required": [
61941
+ "kind",
61942
+ "sectionId"
61943
+ ]
61944
+ },
61945
+ "headerFooterKind": {
61946
+ "oneOf": [
61947
+ {
61948
+ "const": "header"
61949
+ },
61950
+ {
61951
+ "const": "footer"
61952
+ }
61953
+ ]
61954
+ },
61955
+ "variant": {
61956
+ "oneOf": [
61957
+ {
61958
+ "const": "default"
61959
+ },
61960
+ {
61961
+ "const": "first"
61962
+ },
61963
+ {
61964
+ "const": "even"
61965
+ }
61966
+ ]
61967
+ },
61968
+ "resolution": {
61969
+ "oneOf": [
61970
+ {
61971
+ "const": "effective"
61972
+ },
61973
+ {
61974
+ "const": "explicit"
61975
+ }
61976
+ ]
61977
+ },
61978
+ "onWrite": {
61979
+ "oneOf": [
61980
+ {
61981
+ "const": "materializeIfInherited"
61982
+ },
61983
+ {
61984
+ "const": "editResolvedPart"
61985
+ },
61986
+ {
61987
+ "const": "error"
61988
+ }
61989
+ ]
61990
+ }
61991
+ },
61992
+ "required": [
61993
+ "kind",
61994
+ "storyType",
61995
+ "section",
61996
+ "headerFooterKind",
61997
+ "variant"
61998
+ ]
61999
+ },
62000
+ {
62001
+ "type": "object",
62002
+ "properties": {
62003
+ "kind": {
62004
+ "const": "story"
62005
+ },
62006
+ "storyType": {
62007
+ "const": "headerFooterPart"
62008
+ },
62009
+ "refId": {
62010
+ "type": "string"
62011
+ }
62012
+ },
62013
+ "required": [
62014
+ "kind",
62015
+ "storyType",
62016
+ "refId"
62017
+ ]
62018
+ },
62019
+ {
62020
+ "type": "object",
62021
+ "properties": {
62022
+ "kind": {
62023
+ "const": "story"
62024
+ },
62025
+ "storyType": {
62026
+ "const": "footnote"
62027
+ },
62028
+ "noteId": {
62029
+ "type": "string"
62030
+ }
62031
+ },
62032
+ "required": [
62033
+ "kind",
62034
+ "storyType",
62035
+ "noteId"
62036
+ ]
62037
+ },
62038
+ {
62039
+ "type": "object",
62040
+ "properties": {
62041
+ "kind": {
62042
+ "const": "story"
62043
+ },
62044
+ "storyType": {
62045
+ "const": "endnote"
62046
+ },
62047
+ "noteId": {
62048
+ "type": "string"
62049
+ }
62050
+ },
62051
+ "required": [
62052
+ "kind",
62053
+ "storyType",
62054
+ "noteId"
62055
+ ]
62056
+ }
62057
+ ],
62058
+ "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."
61506
62059
  }
61507
62060
  },
61508
62061
  "required": [
@@ -61549,6 +62102,9 @@ export const CONTRACT = {
61549
62102
  "properties": {
61550
62103
  "id": {
61551
62104
  "type": "string"
62105
+ },
62106
+ "story": {
62107
+ "$ref": "#/$defs/StoryLocator"
61552
62108
  }
61553
62109
  },
61554
62110
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/sdk",
3
- "version": "1.6.0",
3
+ "version": "1.8.0-next.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -26,11 +26,11 @@
26
26
  "typescript": "^5.9.2"
27
27
  },
28
28
  "optionalDependencies": {
29
- "@superdoc-dev/sdk-darwin-arm64": "1.6.0",
30
- "@superdoc-dev/sdk-darwin-x64": "1.6.0",
31
- "@superdoc-dev/sdk-linux-arm64": "1.6.0",
32
- "@superdoc-dev/sdk-windows-x64": "1.6.0",
33
- "@superdoc-dev/sdk-linux-x64": "1.6.0"
29
+ "@superdoc-dev/sdk-darwin-arm64": "1.8.0-next.1",
30
+ "@superdoc-dev/sdk-linux-x64": "1.8.0-next.1",
31
+ "@superdoc-dev/sdk-darwin-x64": "1.8.0-next.1",
32
+ "@superdoc-dev/sdk-linux-arm64": "1.8.0-next.1",
33
+ "@superdoc-dev/sdk-windows-x64": "1.8.0-next.1"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"