@superdoc-dev/sdk 1.7.0 → 1.8.0-next.2

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.
@@ -2056,7 +2056,7 @@ const CONTRACT = {
2056
2056
  },
2057
2057
  "type": {
2058
2058
  "type": "string",
2059
- "description": "Block type: paragraph, heading, listItem, table, image, etc."
2059
+ "description": "Block type: paragraph, heading, listItem, image, tableOfContents."
2060
2060
  },
2061
2061
  "text": {
2062
2062
  "type": "string",
@@ -2065,6 +2065,51 @@ const CONTRACT = {
2065
2065
  "headingLevel": {
2066
2066
  "type": "integer",
2067
2067
  "description": "Heading level (1–6). Only present for headings."
2068
+ },
2069
+ "tableContext": {
2070
+ "type": "object",
2071
+ "properties": {
2072
+ "tableOrdinal": {
2073
+ "type": "integer",
2074
+ "description": "0-based table ordinal, unique within one extract() result."
2075
+ },
2076
+ "parentTableOrdinal": {
2077
+ "type": "integer",
2078
+ "description": "Ordinal of the parent table when the containing table is nested."
2079
+ },
2080
+ "parentRowIndex": {
2081
+ "type": "integer",
2082
+ "description": "Row index in the parent table. Set with parentTableOrdinal."
2083
+ },
2084
+ "parentColumnIndex": {
2085
+ "type": "integer",
2086
+ "description": "Column index in the parent table. Set with parentTableOrdinal."
2087
+ },
2088
+ "rowIndex": {
2089
+ "type": "integer",
2090
+ "description": "0-based row index of the containing cell."
2091
+ },
2092
+ "columnIndex": {
2093
+ "type": "integer",
2094
+ "description": "0-based logical grid column, not the row child order."
2095
+ },
2096
+ "rowspan": {
2097
+ "type": "integer",
2098
+ "description": "Number of rows the cell spans."
2099
+ },
2100
+ "colspan": {
2101
+ "type": "integer",
2102
+ "description": "Number of columns the cell spans."
2103
+ }
2104
+ },
2105
+ "additionalProperties": false,
2106
+ "required": [
2107
+ "tableOrdinal",
2108
+ "rowIndex",
2109
+ "columnIndex",
2110
+ "rowspan",
2111
+ "colspan"
2112
+ ]
2068
2113
  }
2069
2114
  },
2070
2115
  "additionalProperties": false,
@@ -60071,6 +60116,178 @@ const CONTRACT = {
60071
60116
  "description": "Filter by change type: 'insert', 'delete', or 'format'."
60072
60117
  },
60073
60118
  "description": "Filter by change type: 'insert', 'delete', or 'format'."
60119
+ },
60120
+ {
60121
+ "name": "in",
60122
+ "kind": "jsonFlag",
60123
+ "type": "json",
60124
+ "flag": "in-json",
60125
+ "schema": {
60126
+ "oneOf": [
60127
+ {
60128
+ "oneOf": [
60129
+ {
60130
+ "type": "object",
60131
+ "properties": {
60132
+ "kind": {
60133
+ "const": "story"
60134
+ },
60135
+ "storyType": {
60136
+ "const": "body"
60137
+ }
60138
+ },
60139
+ "required": [
60140
+ "kind",
60141
+ "storyType"
60142
+ ]
60143
+ },
60144
+ {
60145
+ "type": "object",
60146
+ "properties": {
60147
+ "kind": {
60148
+ "const": "story"
60149
+ },
60150
+ "storyType": {
60151
+ "const": "headerFooterSlot"
60152
+ },
60153
+ "section": {
60154
+ "type": "object",
60155
+ "properties": {
60156
+ "kind": {
60157
+ "const": "section"
60158
+ },
60159
+ "sectionId": {
60160
+ "type": "string"
60161
+ }
60162
+ },
60163
+ "required": [
60164
+ "kind",
60165
+ "sectionId"
60166
+ ]
60167
+ },
60168
+ "headerFooterKind": {
60169
+ "oneOf": [
60170
+ {
60171
+ "const": "header"
60172
+ },
60173
+ {
60174
+ "const": "footer"
60175
+ }
60176
+ ]
60177
+ },
60178
+ "variant": {
60179
+ "oneOf": [
60180
+ {
60181
+ "const": "default"
60182
+ },
60183
+ {
60184
+ "const": "first"
60185
+ },
60186
+ {
60187
+ "const": "even"
60188
+ }
60189
+ ]
60190
+ },
60191
+ "resolution": {
60192
+ "oneOf": [
60193
+ {
60194
+ "const": "effective"
60195
+ },
60196
+ {
60197
+ "const": "explicit"
60198
+ }
60199
+ ]
60200
+ },
60201
+ "onWrite": {
60202
+ "oneOf": [
60203
+ {
60204
+ "const": "materializeIfInherited"
60205
+ },
60206
+ {
60207
+ "const": "editResolvedPart"
60208
+ },
60209
+ {
60210
+ "const": "error"
60211
+ }
60212
+ ]
60213
+ }
60214
+ },
60215
+ "required": [
60216
+ "kind",
60217
+ "storyType",
60218
+ "section",
60219
+ "headerFooterKind",
60220
+ "variant"
60221
+ ]
60222
+ },
60223
+ {
60224
+ "type": "object",
60225
+ "properties": {
60226
+ "kind": {
60227
+ "const": "story"
60228
+ },
60229
+ "storyType": {
60230
+ "const": "headerFooterPart"
60231
+ },
60232
+ "refId": {
60233
+ "type": "string"
60234
+ }
60235
+ },
60236
+ "required": [
60237
+ "kind",
60238
+ "storyType",
60239
+ "refId"
60240
+ ]
60241
+ },
60242
+ {
60243
+ "type": "object",
60244
+ "properties": {
60245
+ "kind": {
60246
+ "const": "story"
60247
+ },
60248
+ "storyType": {
60249
+ "const": "footnote"
60250
+ },
60251
+ "noteId": {
60252
+ "type": "string"
60253
+ }
60254
+ },
60255
+ "required": [
60256
+ "kind",
60257
+ "storyType",
60258
+ "noteId"
60259
+ ]
60260
+ },
60261
+ {
60262
+ "type": "object",
60263
+ "properties": {
60264
+ "kind": {
60265
+ "const": "story"
60266
+ },
60267
+ "storyType": {
60268
+ "const": "endnote"
60269
+ },
60270
+ "noteId": {
60271
+ "type": "string"
60272
+ }
60273
+ },
60274
+ "required": [
60275
+ "kind",
60276
+ "storyType",
60277
+ "noteId"
60278
+ ]
60279
+ }
60280
+ ],
60281
+ "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."
60282
+ },
60283
+ {
60284
+ "const": "all"
60285
+ }
60286
+ ],
60287
+ "description": "Story scope. Omit for body only, pass a StoryLocator for a single story, or 'all' for body + every revision-capable non-body story."
60288
+ },
60289
+ "description": "Story scope. Omit for body only, pass a StoryLocator for a single story, or 'all' for body + every revision-capable non-body story.",
60290
+ "agentVisible": false
60074
60291
  }
60075
60292
  ],
60076
60293
  "constraints": null,
@@ -60096,6 +60313,17 @@ const CONTRACT = {
60096
60313
  "format"
60097
60314
  ],
60098
60315
  "description": "Filter by change type: 'insert', 'delete', or 'format'."
60316
+ },
60317
+ "in": {
60318
+ "oneOf": [
60319
+ {
60320
+ "$ref": "#/$defs/StoryLocator"
60321
+ },
60322
+ {
60323
+ "const": "all"
60324
+ }
60325
+ ],
60326
+ "description": "Story scope. Omit for body only, pass a StoryLocator for a single story, or 'all' for body + every revision-capable non-body story."
60099
60327
  }
60100
60328
  },
60101
60329
  "additionalProperties": false
@@ -60222,6 +60450,169 @@ const CONTRACT = {
60222
60450
  "kind": "flag",
60223
60451
  "type": "string",
60224
60452
  "required": true
60453
+ },
60454
+ {
60455
+ "name": "story",
60456
+ "kind": "jsonFlag",
60457
+ "type": "json",
60458
+ "flag": "story-json",
60459
+ "schema": {
60460
+ "oneOf": [
60461
+ {
60462
+ "type": "object",
60463
+ "properties": {
60464
+ "kind": {
60465
+ "const": "story"
60466
+ },
60467
+ "storyType": {
60468
+ "const": "body"
60469
+ }
60470
+ },
60471
+ "required": [
60472
+ "kind",
60473
+ "storyType"
60474
+ ]
60475
+ },
60476
+ {
60477
+ "type": "object",
60478
+ "properties": {
60479
+ "kind": {
60480
+ "const": "story"
60481
+ },
60482
+ "storyType": {
60483
+ "const": "headerFooterSlot"
60484
+ },
60485
+ "section": {
60486
+ "type": "object",
60487
+ "properties": {
60488
+ "kind": {
60489
+ "const": "section"
60490
+ },
60491
+ "sectionId": {
60492
+ "type": "string"
60493
+ }
60494
+ },
60495
+ "required": [
60496
+ "kind",
60497
+ "sectionId"
60498
+ ]
60499
+ },
60500
+ "headerFooterKind": {
60501
+ "oneOf": [
60502
+ {
60503
+ "const": "header"
60504
+ },
60505
+ {
60506
+ "const": "footer"
60507
+ }
60508
+ ]
60509
+ },
60510
+ "variant": {
60511
+ "oneOf": [
60512
+ {
60513
+ "const": "default"
60514
+ },
60515
+ {
60516
+ "const": "first"
60517
+ },
60518
+ {
60519
+ "const": "even"
60520
+ }
60521
+ ]
60522
+ },
60523
+ "resolution": {
60524
+ "oneOf": [
60525
+ {
60526
+ "const": "effective"
60527
+ },
60528
+ {
60529
+ "const": "explicit"
60530
+ }
60531
+ ]
60532
+ },
60533
+ "onWrite": {
60534
+ "oneOf": [
60535
+ {
60536
+ "const": "materializeIfInherited"
60537
+ },
60538
+ {
60539
+ "const": "editResolvedPart"
60540
+ },
60541
+ {
60542
+ "const": "error"
60543
+ }
60544
+ ]
60545
+ }
60546
+ },
60547
+ "required": [
60548
+ "kind",
60549
+ "storyType",
60550
+ "section",
60551
+ "headerFooterKind",
60552
+ "variant"
60553
+ ]
60554
+ },
60555
+ {
60556
+ "type": "object",
60557
+ "properties": {
60558
+ "kind": {
60559
+ "const": "story"
60560
+ },
60561
+ "storyType": {
60562
+ "const": "headerFooterPart"
60563
+ },
60564
+ "refId": {
60565
+ "type": "string"
60566
+ }
60567
+ },
60568
+ "required": [
60569
+ "kind",
60570
+ "storyType",
60571
+ "refId"
60572
+ ]
60573
+ },
60574
+ {
60575
+ "type": "object",
60576
+ "properties": {
60577
+ "kind": {
60578
+ "const": "story"
60579
+ },
60580
+ "storyType": {
60581
+ "const": "footnote"
60582
+ },
60583
+ "noteId": {
60584
+ "type": "string"
60585
+ }
60586
+ },
60587
+ "required": [
60588
+ "kind",
60589
+ "storyType",
60590
+ "noteId"
60591
+ ]
60592
+ },
60593
+ {
60594
+ "type": "object",
60595
+ "properties": {
60596
+ "kind": {
60597
+ "const": "story"
60598
+ },
60599
+ "storyType": {
60600
+ "const": "endnote"
60601
+ },
60602
+ "noteId": {
60603
+ "type": "string"
60604
+ }
60605
+ },
60606
+ "required": [
60607
+ "kind",
60608
+ "storyType",
60609
+ "noteId"
60610
+ ]
60611
+ }
60612
+ ],
60613
+ "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."
60614
+ },
60615
+ "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."
60225
60616
  }
60226
60617
  ],
60227
60618
  "constraints": null,
@@ -60234,6 +60625,9 @@ const CONTRACT = {
60234
60625
  "properties": {
60235
60626
  "id": {
60236
60627
  "type": "string"
60628
+ },
60629
+ "story": {
60630
+ "$ref": "#/$defs/StoryLocator"
60237
60631
  }
60238
60632
  },
60239
60633
  "additionalProperties": false,
@@ -60388,6 +60782,162 @@ const CONTRACT = {
60388
60782
  "properties": {
60389
60783
  "id": {
60390
60784
  "type": "string"
60785
+ },
60786
+ "story": {
60787
+ "oneOf": [
60788
+ {
60789
+ "type": "object",
60790
+ "properties": {
60791
+ "kind": {
60792
+ "const": "story"
60793
+ },
60794
+ "storyType": {
60795
+ "const": "body"
60796
+ }
60797
+ },
60798
+ "required": [
60799
+ "kind",
60800
+ "storyType"
60801
+ ]
60802
+ },
60803
+ {
60804
+ "type": "object",
60805
+ "properties": {
60806
+ "kind": {
60807
+ "const": "story"
60808
+ },
60809
+ "storyType": {
60810
+ "const": "headerFooterSlot"
60811
+ },
60812
+ "section": {
60813
+ "type": "object",
60814
+ "properties": {
60815
+ "kind": {
60816
+ "const": "section"
60817
+ },
60818
+ "sectionId": {
60819
+ "type": "string"
60820
+ }
60821
+ },
60822
+ "required": [
60823
+ "kind",
60824
+ "sectionId"
60825
+ ]
60826
+ },
60827
+ "headerFooterKind": {
60828
+ "oneOf": [
60829
+ {
60830
+ "const": "header"
60831
+ },
60832
+ {
60833
+ "const": "footer"
60834
+ }
60835
+ ]
60836
+ },
60837
+ "variant": {
60838
+ "oneOf": [
60839
+ {
60840
+ "const": "default"
60841
+ },
60842
+ {
60843
+ "const": "first"
60844
+ },
60845
+ {
60846
+ "const": "even"
60847
+ }
60848
+ ]
60849
+ },
60850
+ "resolution": {
60851
+ "oneOf": [
60852
+ {
60853
+ "const": "effective"
60854
+ },
60855
+ {
60856
+ "const": "explicit"
60857
+ }
60858
+ ]
60859
+ },
60860
+ "onWrite": {
60861
+ "oneOf": [
60862
+ {
60863
+ "const": "materializeIfInherited"
60864
+ },
60865
+ {
60866
+ "const": "editResolvedPart"
60867
+ },
60868
+ {
60869
+ "const": "error"
60870
+ }
60871
+ ]
60872
+ }
60873
+ },
60874
+ "required": [
60875
+ "kind",
60876
+ "storyType",
60877
+ "section",
60878
+ "headerFooterKind",
60879
+ "variant"
60880
+ ]
60881
+ },
60882
+ {
60883
+ "type": "object",
60884
+ "properties": {
60885
+ "kind": {
60886
+ "const": "story"
60887
+ },
60888
+ "storyType": {
60889
+ "const": "headerFooterPart"
60890
+ },
60891
+ "refId": {
60892
+ "type": "string"
60893
+ }
60894
+ },
60895
+ "required": [
60896
+ "kind",
60897
+ "storyType",
60898
+ "refId"
60899
+ ]
60900
+ },
60901
+ {
60902
+ "type": "object",
60903
+ "properties": {
60904
+ "kind": {
60905
+ "const": "story"
60906
+ },
60907
+ "storyType": {
60908
+ "const": "footnote"
60909
+ },
60910
+ "noteId": {
60911
+ "type": "string"
60912
+ }
60913
+ },
60914
+ "required": [
60915
+ "kind",
60916
+ "storyType",
60917
+ "noteId"
60918
+ ]
60919
+ },
60920
+ {
60921
+ "type": "object",
60922
+ "properties": {
60923
+ "kind": {
60924
+ "const": "story"
60925
+ },
60926
+ "storyType": {
60927
+ "const": "endnote"
60928
+ },
60929
+ "noteId": {
60930
+ "type": "string"
60931
+ }
60932
+ },
60933
+ "required": [
60934
+ "kind",
60935
+ "storyType",
60936
+ "noteId"
60937
+ ]
60938
+ }
60939
+ ],
60940
+ "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."
60391
60941
  }
60392
60942
  },
60393
60943
  "required": [
@@ -60434,6 +60984,9 @@ const CONTRACT = {
60434
60984
  "properties": {
60435
60985
  "id": {
60436
60986
  "type": "string"
60987
+ },
60988
+ "story": {
60989
+ "$ref": "#/$defs/StoryLocator"
60437
60990
  }
60438
60991
  },
60439
60992
  "additionalProperties": false,
@@ -105850,7 +106403,7 @@ const CONTRACT = {
105850
106403
  "get"
105851
106404
  ],
105852
106405
  "category": "history",
105853
- "description": "Query the current undo/redo history state of the active editor.",
106406
+ "description": "Query the current undo/redo history state of the document.",
105854
106407
  "requiresDocumentContext": true,
105855
106408
  "docRequirement": "optional",
105856
106409
  "responseEnvelopeKey": "result",
@@ -105922,7 +106475,7 @@ const CONTRACT = {
105922
106475
  "undo"
105923
106476
  ],
105924
106477
  "category": "history",
105925
- "description": "Undo the most recent history-safe mutation in the active editor.",
106478
+ "description": "Undo the most recent history-safe mutation in the document.",
105926
106479
  "requiresDocumentContext": true,
105927
106480
  "docRequirement": "optional",
105928
106481
  "responseEnvelopeKey": "result",
@@ -106085,7 +106638,7 @@ const CONTRACT = {
106085
106638
  "redo"
106086
106639
  ],
106087
106640
  "category": "history",
106088
- "description": "Redo the most recently undone action in the active editor.",
106641
+ "description": "Redo the most recently undone action in the document.",
106089
106642
  "requiresDocumentContext": true,
106090
106643
  "docRequirement": "optional",
106091
106644
  "responseEnvelopeKey": "result",
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,C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