@superdoc-dev/sdk 1.16.0-next.36 → 1.16.0-next.38

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.
@@ -2205,6 +2205,9 @@ export const CONTRACT = {
2205
2205
  },
2206
2206
  "wholeWord": {
2207
2207
  "type": "boolean"
2208
+ },
2209
+ "includeDeletedText": {
2210
+ "type": "boolean"
2208
2211
  }
2209
2212
  },
2210
2213
  "additionalProperties": false,
@@ -15275,6 +15278,19 @@ export const CONTRACT = {
15275
15278
  "type": "number",
15276
15279
  "description": "Heading level (1-6)."
15277
15280
  },
15281
+ "paragraphNumbering": {
15282
+ "type": "object",
15283
+ "description": "Numbering reference (numId + level) for numbered blocks, including numbered headings. Absent for non-numbered blocks.",
15284
+ "properties": {
15285
+ "numId": {
15286
+ "type": "number"
15287
+ },
15288
+ "level": {
15289
+ "type": "number"
15290
+ }
15291
+ },
15292
+ "additionalProperties": false
15293
+ },
15278
15294
  "ref": {
15279
15295
  "type": "string",
15280
15296
  "description": "Ref handle for this block. Pass directly to superdoc_format or superdoc_edit ref param. Only present for non-empty blocks."
@@ -113795,37 +113811,961 @@ export const CONTRACT = {
113795
113811
  "nodeType",
113796
113812
  "nodeId"
113797
113813
  ]
113798
- }
113799
- ]
113800
- }
113801
- },
113802
- {
113803
- "name": "direction",
113804
- "kind": "flag",
113805
- "type": "string",
113806
- "schema": {
113807
- "oneOf": [
113808
- {
113809
- "const": "ltr"
113810
- },
113811
- {
113812
- "const": "rtl"
113813
- }
113814
- ]
113815
- }
113816
- },
113817
- {
113818
- "name": "alignmentPolicy",
113819
- "kind": "flag",
113820
- "type": "string",
113821
- "flag": "alignment-policy",
113822
- "schema": {
113823
- "oneOf": [
113824
- {
113825
- "const": "preserve"
113814
+ }
113815
+ ]
113816
+ }
113817
+ },
113818
+ {
113819
+ "name": "direction",
113820
+ "kind": "flag",
113821
+ "type": "string",
113822
+ "schema": {
113823
+ "oneOf": [
113824
+ {
113825
+ "const": "ltr"
113826
+ },
113827
+ {
113828
+ "const": "rtl"
113829
+ }
113830
+ ]
113831
+ }
113832
+ },
113833
+ {
113834
+ "name": "alignmentPolicy",
113835
+ "kind": "flag",
113836
+ "type": "string",
113837
+ "flag": "alignment-policy",
113838
+ "schema": {
113839
+ "oneOf": [
113840
+ {
113841
+ "const": "preserve"
113842
+ },
113843
+ {
113844
+ "const": "matchDirection"
113845
+ }
113846
+ ]
113847
+ }
113848
+ },
113849
+ {
113850
+ "name": "blockId",
113851
+ "kind": "flag",
113852
+ "type": "string",
113853
+ "flag": "block-id",
113854
+ "description": "Block ID of the target paragraph. Shortcut for a paragraph block target.",
113855
+ "agentVisible": false
113856
+ }
113857
+ ],
113858
+ "constraints": null,
113859
+ "mutates": true,
113860
+ "idempotency": "conditional",
113861
+ "supportsTrackedMode": true,
113862
+ "supportsDryRun": true,
113863
+ "inputSchema": {
113864
+ "type": "object",
113865
+ "properties": {
113866
+ "target": {
113867
+ "oneOf": [
113868
+ {
113869
+ "$ref": "#/$defs/ParagraphAddress"
113870
+ },
113871
+ {
113872
+ "$ref": "#/$defs/HeadingAddress"
113873
+ },
113874
+ {
113875
+ "$ref": "#/$defs/ListItemAddress"
113876
+ }
113877
+ ]
113878
+ },
113879
+ "direction": {
113880
+ "type": "string",
113881
+ "enum": [
113882
+ "ltr",
113883
+ "rtl"
113884
+ ]
113885
+ },
113886
+ "alignmentPolicy": {
113887
+ "type": "string",
113888
+ "enum": [
113889
+ "preserve",
113890
+ "matchDirection"
113891
+ ]
113892
+ }
113893
+ },
113894
+ "additionalProperties": false,
113895
+ "required": [
113896
+ "target",
113897
+ "direction"
113898
+ ]
113899
+ },
113900
+ "outputSchema": {
113901
+ "oneOf": [
113902
+ {
113903
+ "type": "object",
113904
+ "properties": {
113905
+ "success": {
113906
+ "const": true
113907
+ },
113908
+ "target": {
113909
+ "oneOf": [
113910
+ {
113911
+ "$ref": "#/$defs/ParagraphAddress"
113912
+ },
113913
+ {
113914
+ "$ref": "#/$defs/HeadingAddress"
113915
+ },
113916
+ {
113917
+ "$ref": "#/$defs/ListItemAddress"
113918
+ }
113919
+ ]
113920
+ },
113921
+ "resolution": {
113922
+ "type": "object",
113923
+ "properties": {
113924
+ "target": {
113925
+ "oneOf": [
113926
+ {
113927
+ "$ref": "#/$defs/ParagraphAddress"
113928
+ },
113929
+ {
113930
+ "$ref": "#/$defs/HeadingAddress"
113931
+ },
113932
+ {
113933
+ "$ref": "#/$defs/ListItemAddress"
113934
+ }
113935
+ ]
113936
+ }
113937
+ },
113938
+ "additionalProperties": false,
113939
+ "required": [
113940
+ "target"
113941
+ ]
113942
+ }
113943
+ },
113944
+ "additionalProperties": false,
113945
+ "required": [
113946
+ "success",
113947
+ "target",
113948
+ "resolution"
113949
+ ]
113950
+ },
113951
+ {
113952
+ "type": "object",
113953
+ "properties": {
113954
+ "success": {
113955
+ "const": false
113956
+ },
113957
+ "failure": {
113958
+ "type": "object",
113959
+ "properties": {
113960
+ "code": {
113961
+ "enum": [
113962
+ "NO_OP"
113963
+ ]
113964
+ },
113965
+ "message": {
113966
+ "type": "string"
113967
+ },
113968
+ "details": {}
113969
+ },
113970
+ "additionalProperties": false,
113971
+ "required": [
113972
+ "code",
113973
+ "message"
113974
+ ]
113975
+ },
113976
+ "resolution": {
113977
+ "type": "object",
113978
+ "properties": {
113979
+ "target": {
113980
+ "oneOf": [
113981
+ {
113982
+ "$ref": "#/$defs/ParagraphAddress"
113983
+ },
113984
+ {
113985
+ "$ref": "#/$defs/HeadingAddress"
113986
+ },
113987
+ {
113988
+ "$ref": "#/$defs/ListItemAddress"
113989
+ }
113990
+ ]
113991
+ }
113992
+ },
113993
+ "additionalProperties": false,
113994
+ "required": [
113995
+ "target"
113996
+ ]
113997
+ }
113998
+ },
113999
+ "additionalProperties": false,
114000
+ "required": [
114001
+ "success",
114002
+ "failure"
114003
+ ]
114004
+ }
114005
+ ]
114006
+ },
114007
+ "successSchema": {
114008
+ "type": "object",
114009
+ "properties": {
114010
+ "success": {
114011
+ "const": true
114012
+ },
114013
+ "target": {
114014
+ "oneOf": [
114015
+ {
114016
+ "$ref": "#/$defs/ParagraphAddress"
114017
+ },
114018
+ {
114019
+ "$ref": "#/$defs/HeadingAddress"
114020
+ },
114021
+ {
114022
+ "$ref": "#/$defs/ListItemAddress"
114023
+ }
114024
+ ]
114025
+ },
114026
+ "resolution": {
114027
+ "type": "object",
114028
+ "properties": {
114029
+ "target": {
114030
+ "oneOf": [
114031
+ {
114032
+ "$ref": "#/$defs/ParagraphAddress"
114033
+ },
114034
+ {
114035
+ "$ref": "#/$defs/HeadingAddress"
114036
+ },
114037
+ {
114038
+ "$ref": "#/$defs/ListItemAddress"
114039
+ }
114040
+ ]
114041
+ }
114042
+ },
114043
+ "additionalProperties": false,
114044
+ "required": [
114045
+ "target"
114046
+ ]
114047
+ }
114048
+ },
114049
+ "additionalProperties": false,
114050
+ "required": [
114051
+ "success",
114052
+ "target",
114053
+ "resolution"
114054
+ ]
114055
+ },
114056
+ "failureSchema": {
114057
+ "type": "object",
114058
+ "properties": {
114059
+ "success": {
114060
+ "const": false
114061
+ },
114062
+ "failure": {
114063
+ "type": "object",
114064
+ "properties": {
114065
+ "code": {
114066
+ "enum": [
114067
+ "NO_OP"
114068
+ ]
114069
+ },
114070
+ "message": {
114071
+ "type": "string"
114072
+ },
114073
+ "details": {}
114074
+ },
114075
+ "additionalProperties": false,
114076
+ "required": [
114077
+ "code",
114078
+ "message"
114079
+ ]
114080
+ },
114081
+ "resolution": {
114082
+ "type": "object",
114083
+ "properties": {
114084
+ "target": {
114085
+ "oneOf": [
114086
+ {
114087
+ "$ref": "#/$defs/ParagraphAddress"
114088
+ },
114089
+ {
114090
+ "$ref": "#/$defs/HeadingAddress"
114091
+ },
114092
+ {
114093
+ "$ref": "#/$defs/ListItemAddress"
114094
+ }
114095
+ ]
114096
+ }
114097
+ },
114098
+ "additionalProperties": false,
114099
+ "required": [
114100
+ "target"
114101
+ ]
114102
+ }
114103
+ },
114104
+ "additionalProperties": false,
114105
+ "required": [
114106
+ "success",
114107
+ "failure"
114108
+ ]
114109
+ },
114110
+ "intentGroup": "format",
114111
+ "intentAction": "set_direction"
114112
+ },
114113
+ "doc.format.paragraph.clearDirection": {
114114
+ "operationId": "doc.format.paragraph.clearDirection",
114115
+ "sdkSurface": "document",
114116
+ "command": "format paragraph clear-direction",
114117
+ "commandTokens": [
114118
+ "format",
114119
+ "paragraph",
114120
+ "clear-direction"
114121
+ ],
114122
+ "category": "format",
114123
+ "description": "Remove explicit paragraph direction, reverting to inherited or default (LTR).",
114124
+ "requiresDocumentContext": true,
114125
+ "docRequirement": "optional",
114126
+ "responseEnvelopeKey": "result",
114127
+ "params": [
114128
+ {
114129
+ "name": "doc",
114130
+ "kind": "doc",
114131
+ "type": "string",
114132
+ "description": "Document path. Optional when a session is already open."
114133
+ },
114134
+ {
114135
+ "name": "sessionId",
114136
+ "kind": "flag",
114137
+ "type": "string",
114138
+ "flag": "session",
114139
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
114140
+ },
114141
+ {
114142
+ "name": "out",
114143
+ "kind": "flag",
114144
+ "type": "string",
114145
+ "agentVisible": false
114146
+ },
114147
+ {
114148
+ "name": "force",
114149
+ "kind": "flag",
114150
+ "type": "boolean",
114151
+ "description": "Bypass confirmation checks."
114152
+ },
114153
+ {
114154
+ "name": "expectedRevision",
114155
+ "kind": "flag",
114156
+ "type": "number",
114157
+ "flag": "expected-revision",
114158
+ "agentVisible": false
114159
+ },
114160
+ {
114161
+ "name": "changeMode",
114162
+ "kind": "flag",
114163
+ "type": "string",
114164
+ "flag": "change-mode",
114165
+ "schema": {
114166
+ "type": "string",
114167
+ "enum": [
114168
+ "direct",
114169
+ "tracked"
114170
+ ]
114171
+ },
114172
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
114173
+ },
114174
+ {
114175
+ "name": "dryRun",
114176
+ "kind": "flag",
114177
+ "type": "boolean",
114178
+ "flag": "dry-run",
114179
+ "description": "Preview the result without applying changes."
114180
+ },
114181
+ {
114182
+ "name": "target",
114183
+ "kind": "jsonFlag",
114184
+ "type": "json",
114185
+ "flag": "target-json",
114186
+ "schema": {
114187
+ "oneOf": [
114188
+ {
114189
+ "type": "object",
114190
+ "properties": {
114191
+ "kind": {
114192
+ "const": "block"
114193
+ },
114194
+ "nodeType": {
114195
+ "const": "paragraph"
114196
+ },
114197
+ "nodeId": {
114198
+ "type": "string"
114199
+ },
114200
+ "story": {
114201
+ "oneOf": [
114202
+ {
114203
+ "type": "object",
114204
+ "properties": {
114205
+ "kind": {
114206
+ "const": "story"
114207
+ },
114208
+ "storyType": {
114209
+ "const": "body"
114210
+ }
114211
+ },
114212
+ "required": [
114213
+ "kind",
114214
+ "storyType"
114215
+ ]
114216
+ },
114217
+ {
114218
+ "type": "object",
114219
+ "properties": {
114220
+ "kind": {
114221
+ "const": "story"
114222
+ },
114223
+ "storyType": {
114224
+ "const": "headerFooterSlot"
114225
+ },
114226
+ "section": {
114227
+ "type": "object",
114228
+ "properties": {
114229
+ "kind": {
114230
+ "const": "section"
114231
+ },
114232
+ "sectionId": {
114233
+ "type": "string"
114234
+ }
114235
+ },
114236
+ "required": [
114237
+ "kind",
114238
+ "sectionId"
114239
+ ]
114240
+ },
114241
+ "headerFooterKind": {
114242
+ "oneOf": [
114243
+ {
114244
+ "const": "header"
114245
+ },
114246
+ {
114247
+ "const": "footer"
114248
+ }
114249
+ ]
114250
+ },
114251
+ "variant": {
114252
+ "oneOf": [
114253
+ {
114254
+ "const": "default"
114255
+ },
114256
+ {
114257
+ "const": "first"
114258
+ },
114259
+ {
114260
+ "const": "even"
114261
+ }
114262
+ ]
114263
+ },
114264
+ "resolution": {
114265
+ "oneOf": [
114266
+ {
114267
+ "const": "effective"
114268
+ },
114269
+ {
114270
+ "const": "explicit"
114271
+ }
114272
+ ]
114273
+ },
114274
+ "onWrite": {
114275
+ "oneOf": [
114276
+ {
114277
+ "const": "materializeIfInherited"
114278
+ },
114279
+ {
114280
+ "const": "editResolvedPart"
114281
+ },
114282
+ {
114283
+ "const": "error"
114284
+ }
114285
+ ]
114286
+ }
114287
+ },
114288
+ "required": [
114289
+ "kind",
114290
+ "storyType",
114291
+ "section",
114292
+ "headerFooterKind",
114293
+ "variant"
114294
+ ]
114295
+ },
114296
+ {
114297
+ "type": "object",
114298
+ "properties": {
114299
+ "kind": {
114300
+ "const": "story"
114301
+ },
114302
+ "storyType": {
114303
+ "const": "headerFooterPart"
114304
+ },
114305
+ "refId": {
114306
+ "type": "string"
114307
+ }
114308
+ },
114309
+ "required": [
114310
+ "kind",
114311
+ "storyType",
114312
+ "refId"
114313
+ ]
114314
+ },
114315
+ {
114316
+ "type": "object",
114317
+ "properties": {
114318
+ "kind": {
114319
+ "const": "story"
114320
+ },
114321
+ "storyType": {
114322
+ "const": "footnote"
114323
+ },
114324
+ "noteId": {
114325
+ "type": "string"
114326
+ }
114327
+ },
114328
+ "required": [
114329
+ "kind",
114330
+ "storyType",
114331
+ "noteId"
114332
+ ]
114333
+ },
114334
+ {
114335
+ "type": "object",
114336
+ "properties": {
114337
+ "kind": {
114338
+ "const": "story"
114339
+ },
114340
+ "storyType": {
114341
+ "const": "endnote"
114342
+ },
114343
+ "noteId": {
114344
+ "type": "string"
114345
+ }
114346
+ },
114347
+ "required": [
114348
+ "kind",
114349
+ "storyType",
114350
+ "noteId"
114351
+ ]
114352
+ },
114353
+ {
114354
+ "type": "object",
114355
+ "properties": {
114356
+ "kind": {
114357
+ "const": "story"
114358
+ },
114359
+ "storyType": {
114360
+ "const": "textbox"
114361
+ },
114362
+ "textboxId": {
114363
+ "type": "string"
114364
+ }
114365
+ },
114366
+ "required": [
114367
+ "kind",
114368
+ "storyType",
114369
+ "textboxId"
114370
+ ]
114371
+ }
114372
+ ],
114373
+ "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."
114374
+ }
114375
+ },
114376
+ "required": [
114377
+ "kind",
114378
+ "nodeType",
114379
+ "nodeId"
114380
+ ]
114381
+ },
114382
+ {
114383
+ "type": "object",
114384
+ "properties": {
114385
+ "kind": {
114386
+ "const": "block"
114387
+ },
114388
+ "nodeType": {
114389
+ "const": "heading"
114390
+ },
114391
+ "nodeId": {
114392
+ "type": "string"
114393
+ },
114394
+ "story": {
114395
+ "oneOf": [
114396
+ {
114397
+ "type": "object",
114398
+ "properties": {
114399
+ "kind": {
114400
+ "const": "story"
114401
+ },
114402
+ "storyType": {
114403
+ "const": "body"
114404
+ }
114405
+ },
114406
+ "required": [
114407
+ "kind",
114408
+ "storyType"
114409
+ ]
114410
+ },
114411
+ {
114412
+ "type": "object",
114413
+ "properties": {
114414
+ "kind": {
114415
+ "const": "story"
114416
+ },
114417
+ "storyType": {
114418
+ "const": "headerFooterSlot"
114419
+ },
114420
+ "section": {
114421
+ "type": "object",
114422
+ "properties": {
114423
+ "kind": {
114424
+ "const": "section"
114425
+ },
114426
+ "sectionId": {
114427
+ "type": "string"
114428
+ }
114429
+ },
114430
+ "required": [
114431
+ "kind",
114432
+ "sectionId"
114433
+ ]
114434
+ },
114435
+ "headerFooterKind": {
114436
+ "oneOf": [
114437
+ {
114438
+ "const": "header"
114439
+ },
114440
+ {
114441
+ "const": "footer"
114442
+ }
114443
+ ]
114444
+ },
114445
+ "variant": {
114446
+ "oneOf": [
114447
+ {
114448
+ "const": "default"
114449
+ },
114450
+ {
114451
+ "const": "first"
114452
+ },
114453
+ {
114454
+ "const": "even"
114455
+ }
114456
+ ]
114457
+ },
114458
+ "resolution": {
114459
+ "oneOf": [
114460
+ {
114461
+ "const": "effective"
114462
+ },
114463
+ {
114464
+ "const": "explicit"
114465
+ }
114466
+ ]
114467
+ },
114468
+ "onWrite": {
114469
+ "oneOf": [
114470
+ {
114471
+ "const": "materializeIfInherited"
114472
+ },
114473
+ {
114474
+ "const": "editResolvedPart"
114475
+ },
114476
+ {
114477
+ "const": "error"
114478
+ }
114479
+ ]
114480
+ }
114481
+ },
114482
+ "required": [
114483
+ "kind",
114484
+ "storyType",
114485
+ "section",
114486
+ "headerFooterKind",
114487
+ "variant"
114488
+ ]
114489
+ },
114490
+ {
114491
+ "type": "object",
114492
+ "properties": {
114493
+ "kind": {
114494
+ "const": "story"
114495
+ },
114496
+ "storyType": {
114497
+ "const": "headerFooterPart"
114498
+ },
114499
+ "refId": {
114500
+ "type": "string"
114501
+ }
114502
+ },
114503
+ "required": [
114504
+ "kind",
114505
+ "storyType",
114506
+ "refId"
114507
+ ]
114508
+ },
114509
+ {
114510
+ "type": "object",
114511
+ "properties": {
114512
+ "kind": {
114513
+ "const": "story"
114514
+ },
114515
+ "storyType": {
114516
+ "const": "footnote"
114517
+ },
114518
+ "noteId": {
114519
+ "type": "string"
114520
+ }
114521
+ },
114522
+ "required": [
114523
+ "kind",
114524
+ "storyType",
114525
+ "noteId"
114526
+ ]
114527
+ },
114528
+ {
114529
+ "type": "object",
114530
+ "properties": {
114531
+ "kind": {
114532
+ "const": "story"
114533
+ },
114534
+ "storyType": {
114535
+ "const": "endnote"
114536
+ },
114537
+ "noteId": {
114538
+ "type": "string"
114539
+ }
114540
+ },
114541
+ "required": [
114542
+ "kind",
114543
+ "storyType",
114544
+ "noteId"
114545
+ ]
114546
+ },
114547
+ {
114548
+ "type": "object",
114549
+ "properties": {
114550
+ "kind": {
114551
+ "const": "story"
114552
+ },
114553
+ "storyType": {
114554
+ "const": "textbox"
114555
+ },
114556
+ "textboxId": {
114557
+ "type": "string"
114558
+ }
114559
+ },
114560
+ "required": [
114561
+ "kind",
114562
+ "storyType",
114563
+ "textboxId"
114564
+ ]
114565
+ }
114566
+ ],
114567
+ "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."
114568
+ }
114569
+ },
114570
+ "required": [
114571
+ "kind",
114572
+ "nodeType",
114573
+ "nodeId"
114574
+ ]
113826
114575
  },
113827
114576
  {
113828
- "const": "matchDirection"
114577
+ "type": "object",
114578
+ "properties": {
114579
+ "kind": {
114580
+ "const": "block"
114581
+ },
114582
+ "nodeType": {
114583
+ "const": "listItem"
114584
+ },
114585
+ "nodeId": {
114586
+ "type": "string"
114587
+ },
114588
+ "story": {
114589
+ "oneOf": [
114590
+ {
114591
+ "type": "object",
114592
+ "properties": {
114593
+ "kind": {
114594
+ "const": "story"
114595
+ },
114596
+ "storyType": {
114597
+ "const": "body"
114598
+ }
114599
+ },
114600
+ "required": [
114601
+ "kind",
114602
+ "storyType"
114603
+ ]
114604
+ },
114605
+ {
114606
+ "type": "object",
114607
+ "properties": {
114608
+ "kind": {
114609
+ "const": "story"
114610
+ },
114611
+ "storyType": {
114612
+ "const": "headerFooterSlot"
114613
+ },
114614
+ "section": {
114615
+ "type": "object",
114616
+ "properties": {
114617
+ "kind": {
114618
+ "const": "section"
114619
+ },
114620
+ "sectionId": {
114621
+ "type": "string"
114622
+ }
114623
+ },
114624
+ "required": [
114625
+ "kind",
114626
+ "sectionId"
114627
+ ]
114628
+ },
114629
+ "headerFooterKind": {
114630
+ "oneOf": [
114631
+ {
114632
+ "const": "header"
114633
+ },
114634
+ {
114635
+ "const": "footer"
114636
+ }
114637
+ ]
114638
+ },
114639
+ "variant": {
114640
+ "oneOf": [
114641
+ {
114642
+ "const": "default"
114643
+ },
114644
+ {
114645
+ "const": "first"
114646
+ },
114647
+ {
114648
+ "const": "even"
114649
+ }
114650
+ ]
114651
+ },
114652
+ "resolution": {
114653
+ "oneOf": [
114654
+ {
114655
+ "const": "effective"
114656
+ },
114657
+ {
114658
+ "const": "explicit"
114659
+ }
114660
+ ]
114661
+ },
114662
+ "onWrite": {
114663
+ "oneOf": [
114664
+ {
114665
+ "const": "materializeIfInherited"
114666
+ },
114667
+ {
114668
+ "const": "editResolvedPart"
114669
+ },
114670
+ {
114671
+ "const": "error"
114672
+ }
114673
+ ]
114674
+ }
114675
+ },
114676
+ "required": [
114677
+ "kind",
114678
+ "storyType",
114679
+ "section",
114680
+ "headerFooterKind",
114681
+ "variant"
114682
+ ]
114683
+ },
114684
+ {
114685
+ "type": "object",
114686
+ "properties": {
114687
+ "kind": {
114688
+ "const": "story"
114689
+ },
114690
+ "storyType": {
114691
+ "const": "headerFooterPart"
114692
+ },
114693
+ "refId": {
114694
+ "type": "string"
114695
+ }
114696
+ },
114697
+ "required": [
114698
+ "kind",
114699
+ "storyType",
114700
+ "refId"
114701
+ ]
114702
+ },
114703
+ {
114704
+ "type": "object",
114705
+ "properties": {
114706
+ "kind": {
114707
+ "const": "story"
114708
+ },
114709
+ "storyType": {
114710
+ "const": "footnote"
114711
+ },
114712
+ "noteId": {
114713
+ "type": "string"
114714
+ }
114715
+ },
114716
+ "required": [
114717
+ "kind",
114718
+ "storyType",
114719
+ "noteId"
114720
+ ]
114721
+ },
114722
+ {
114723
+ "type": "object",
114724
+ "properties": {
114725
+ "kind": {
114726
+ "const": "story"
114727
+ },
114728
+ "storyType": {
114729
+ "const": "endnote"
114730
+ },
114731
+ "noteId": {
114732
+ "type": "string"
114733
+ }
114734
+ },
114735
+ "required": [
114736
+ "kind",
114737
+ "storyType",
114738
+ "noteId"
114739
+ ]
114740
+ },
114741
+ {
114742
+ "type": "object",
114743
+ "properties": {
114744
+ "kind": {
114745
+ "const": "story"
114746
+ },
114747
+ "storyType": {
114748
+ "const": "textbox"
114749
+ },
114750
+ "textboxId": {
114751
+ "type": "string"
114752
+ }
114753
+ },
114754
+ "required": [
114755
+ "kind",
114756
+ "storyType",
114757
+ "textboxId"
114758
+ ]
114759
+ }
114760
+ ],
114761
+ "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."
114762
+ }
114763
+ },
114764
+ "required": [
114765
+ "kind",
114766
+ "nodeType",
114767
+ "nodeId"
114768
+ ]
113829
114769
  }
113830
114770
  ]
113831
114771
  }
@@ -113859,26 +114799,11 @@ export const CONTRACT = {
113859
114799
  "$ref": "#/$defs/ListItemAddress"
113860
114800
  }
113861
114801
  ]
113862
- },
113863
- "direction": {
113864
- "type": "string",
113865
- "enum": [
113866
- "ltr",
113867
- "rtl"
113868
- ]
113869
- },
113870
- "alignmentPolicy": {
113871
- "type": "string",
113872
- "enum": [
113873
- "preserve",
113874
- "matchDirection"
113875
- ]
113876
114802
  }
113877
114803
  },
113878
114804
  "additionalProperties": false,
113879
114805
  "required": [
113880
- "target",
113881
- "direction"
114806
+ "target"
113882
114807
  ]
113883
114808
  },
113884
114809
  "outputSchema": {
@@ -114090,21 +115015,19 @@ export const CONTRACT = {
114090
115015
  "success",
114091
115016
  "failure"
114092
115017
  ]
114093
- },
114094
- "intentGroup": "format",
114095
- "intentAction": "set_direction"
115018
+ }
114096
115019
  },
114097
- "doc.format.paragraph.clearDirection": {
114098
- "operationId": "doc.format.paragraph.clearDirection",
115020
+ "doc.format.paragraph.setNumbering": {
115021
+ "operationId": "doc.format.paragraph.setNumbering",
114099
115022
  "sdkSurface": "document",
114100
- "command": "format paragraph clear-direction",
115023
+ "command": "format paragraph set-numbering",
114101
115024
  "commandTokens": [
114102
115025
  "format",
114103
115026
  "paragraph",
114104
- "clear-direction"
115027
+ "set-numbering"
114105
115028
  ],
114106
115029
  "category": "format",
114107
- "description": "Remove explicit paragraph direction, reverting to inherited or default (LTR).",
115030
+ "description": "Attach numbering (numId + level) to an existing paragraph or heading so it joins a numbered sequence. Numbering is a paragraph property; the node and its style are otherwise unchanged, though any direct paragraph indent is cleared so the numbering level controls indentation. Direct edits only; tracked mode is unsupported.",
114108
115031
  "requiresDocumentContext": true,
114109
115032
  "docRequirement": "optional",
114110
115033
  "responseEnvelopeKey": "result",
@@ -114754,6 +115677,17 @@ export const CONTRACT = {
114754
115677
  ]
114755
115678
  }
114756
115679
  },
115680
+ {
115681
+ "name": "numId",
115682
+ "kind": "flag",
115683
+ "type": "number",
115684
+ "flag": "num-id"
115685
+ },
115686
+ {
115687
+ "name": "level",
115688
+ "kind": "flag",
115689
+ "type": "number"
115690
+ },
114757
115691
  {
114758
115692
  "name": "blockId",
114759
115693
  "kind": "flag",
@@ -114766,7 +115700,7 @@ export const CONTRACT = {
114766
115700
  "constraints": null,
114767
115701
  "mutates": true,
114768
115702
  "idempotency": "conditional",
114769
- "supportsTrackedMode": true,
115703
+ "supportsTrackedMode": false,
114770
115704
  "supportsDryRun": true,
114771
115705
  "inputSchema": {
114772
115706
  "type": "object",
@@ -114783,11 +115717,21 @@ export const CONTRACT = {
114783
115717
  "$ref": "#/$defs/ListItemAddress"
114784
115718
  }
114785
115719
  ]
115720
+ },
115721
+ "numId": {
115722
+ "type": "integer",
115723
+ "minimum": 1
115724
+ },
115725
+ "level": {
115726
+ "type": "integer",
115727
+ "minimum": 0,
115728
+ "maximum": 8
114786
115729
  }
114787
115730
  },
114788
115731
  "additionalProperties": false,
114789
115732
  "required": [
114790
- "target"
115733
+ "target",
115734
+ "numId"
114791
115735
  ]
114792
115736
  },
114793
115737
  "outputSchema": {
@@ -172105,6 +173049,41 @@ export const CONTRACT = {
172105
173049
  "dryRun"
172106
173050
  ]
172107
173051
  },
173052
+ "format.paragraph.setNumbering": {
173053
+ "type": "object",
173054
+ "properties": {
173055
+ "available": {
173056
+ "type": "boolean"
173057
+ },
173058
+ "tracked": {
173059
+ "type": "boolean"
173060
+ },
173061
+ "dryRun": {
173062
+ "type": "boolean"
173063
+ },
173064
+ "reasons": {
173065
+ "type": "array",
173066
+ "items": {
173067
+ "enum": [
173068
+ "COMMAND_UNAVAILABLE",
173069
+ "HELPER_UNAVAILABLE",
173070
+ "OPERATION_UNAVAILABLE",
173071
+ "TRACKED_MODE_UNAVAILABLE",
173072
+ "DRY_RUN_UNAVAILABLE",
173073
+ "NAMESPACE_UNAVAILABLE",
173074
+ "STYLES_PART_MISSING",
173075
+ "COLLABORATION_ACTIVE"
173076
+ ]
173077
+ }
173078
+ }
173079
+ },
173080
+ "additionalProperties": false,
173081
+ "required": [
173082
+ "available",
173083
+ "tracked",
173084
+ "dryRun"
173085
+ ]
173086
+ },
172108
173087
  "lists.list": {
172109
173088
  "type": "object",
172110
173089
  "properties": {
@@ -182928,6 +183907,7 @@ export const CONTRACT = {
182928
183907
  "format.paragraph.setMarkRunProps",
182929
183908
  "format.paragraph.setDirection",
182930
183909
  "format.paragraph.clearDirection",
183910
+ "format.paragraph.setNumbering",
182931
183911
  "lists.list",
182932
183912
  "lists.get",
182933
183913
  "lists.insert",