@superdoc-dev/sdk 1.8.0 → 1.9.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.
@@ -52576,6 +52576,221 @@ export const CONTRACT = {
52576
52576
  "intentGroup": "list",
52577
52577
  "intentAction": "detach"
52578
52578
  },
52579
+ "doc.lists.delete": {
52580
+ "operationId": "doc.lists.delete",
52581
+ "sdkSurface": "document",
52582
+ "command": "lists delete",
52583
+ "commandTokens": [
52584
+ "lists",
52585
+ "delete"
52586
+ ],
52587
+ "category": "lists",
52588
+ "description": "Delete the entire list that contains the targeted list item. Removes ALL items in the same numbered sequence (the contiguous run of list items sharing the target's numbering) AND their text content from the document. Pass any single list item from the list as `target`; the op walks adjacent siblings to find the full list. Use this for \"remove the list\" / \"delete this list\" intents and for the cleanup step of a list-to-table conversion.",
52589
+ "requiresDocumentContext": true,
52590
+ "docRequirement": "optional",
52591
+ "responseEnvelopeKey": null,
52592
+ "params": [
52593
+ {
52594
+ "name": "doc",
52595
+ "kind": "doc",
52596
+ "type": "string",
52597
+ "description": "Document path. Optional when a session is already open."
52598
+ },
52599
+ {
52600
+ "name": "sessionId",
52601
+ "kind": "flag",
52602
+ "type": "string",
52603
+ "flag": "session",
52604
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
52605
+ },
52606
+ {
52607
+ "name": "out",
52608
+ "kind": "flag",
52609
+ "type": "string",
52610
+ "agentVisible": false
52611
+ },
52612
+ {
52613
+ "name": "force",
52614
+ "kind": "flag",
52615
+ "type": "boolean",
52616
+ "description": "Bypass confirmation checks."
52617
+ },
52618
+ {
52619
+ "name": "expectedRevision",
52620
+ "kind": "flag",
52621
+ "type": "number",
52622
+ "flag": "expected-revision",
52623
+ "agentVisible": false
52624
+ },
52625
+ {
52626
+ "name": "changeMode",
52627
+ "kind": "flag",
52628
+ "type": "string",
52629
+ "flag": "change-mode",
52630
+ "schema": {
52631
+ "enum": [
52632
+ "direct",
52633
+ "tracked"
52634
+ ]
52635
+ },
52636
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
52637
+ },
52638
+ {
52639
+ "name": "dryRun",
52640
+ "kind": "flag",
52641
+ "type": "boolean",
52642
+ "flag": "dry-run",
52643
+ "description": "Preview the result without applying changes."
52644
+ },
52645
+ {
52646
+ "name": "target",
52647
+ "kind": "jsonFlag",
52648
+ "type": "json",
52649
+ "flag": "target-json",
52650
+ "required": true,
52651
+ "schema": {
52652
+ "type": "object",
52653
+ "properties": {
52654
+ "kind": {
52655
+ "const": "block"
52656
+ },
52657
+ "nodeType": {
52658
+ "const": "listItem"
52659
+ },
52660
+ "nodeId": {
52661
+ "type": "string"
52662
+ }
52663
+ },
52664
+ "required": [
52665
+ "kind",
52666
+ "nodeType",
52667
+ "nodeId"
52668
+ ]
52669
+ }
52670
+ }
52671
+ ],
52672
+ "constraints": null,
52673
+ "mutates": true,
52674
+ "idempotency": "conditional",
52675
+ "supportsTrackedMode": false,
52676
+ "supportsDryRun": true,
52677
+ "inputSchema": {
52678
+ "type": "object",
52679
+ "properties": {
52680
+ "target": {
52681
+ "$ref": "#/$defs/ListItemAddress"
52682
+ }
52683
+ },
52684
+ "additionalProperties": false,
52685
+ "required": [
52686
+ "target"
52687
+ ]
52688
+ },
52689
+ "outputSchema": {
52690
+ "oneOf": [
52691
+ {
52692
+ "type": "object",
52693
+ "properties": {
52694
+ "success": {
52695
+ "const": true
52696
+ },
52697
+ "deletedCount": {
52698
+ "type": "integer",
52699
+ "minimum": 0
52700
+ }
52701
+ },
52702
+ "additionalProperties": false,
52703
+ "required": [
52704
+ "success",
52705
+ "deletedCount"
52706
+ ]
52707
+ },
52708
+ {
52709
+ "type": "object",
52710
+ "properties": {
52711
+ "success": {
52712
+ "const": false
52713
+ },
52714
+ "failure": {
52715
+ "type": "object",
52716
+ "properties": {
52717
+ "code": {
52718
+ "enum": [
52719
+ "INVALID_TARGET"
52720
+ ]
52721
+ },
52722
+ "message": {
52723
+ "type": "string"
52724
+ },
52725
+ "details": {}
52726
+ },
52727
+ "additionalProperties": false,
52728
+ "required": [
52729
+ "code",
52730
+ "message"
52731
+ ]
52732
+ }
52733
+ },
52734
+ "additionalProperties": false,
52735
+ "required": [
52736
+ "success",
52737
+ "failure"
52738
+ ]
52739
+ }
52740
+ ]
52741
+ },
52742
+ "successSchema": {
52743
+ "type": "object",
52744
+ "properties": {
52745
+ "success": {
52746
+ "const": true
52747
+ },
52748
+ "deletedCount": {
52749
+ "type": "integer",
52750
+ "minimum": 0
52751
+ }
52752
+ },
52753
+ "additionalProperties": false,
52754
+ "required": [
52755
+ "success",
52756
+ "deletedCount"
52757
+ ]
52758
+ },
52759
+ "failureSchema": {
52760
+ "type": "object",
52761
+ "properties": {
52762
+ "success": {
52763
+ "const": false
52764
+ },
52765
+ "failure": {
52766
+ "type": "object",
52767
+ "properties": {
52768
+ "code": {
52769
+ "enum": [
52770
+ "INVALID_TARGET"
52771
+ ]
52772
+ },
52773
+ "message": {
52774
+ "type": "string"
52775
+ },
52776
+ "details": {}
52777
+ },
52778
+ "additionalProperties": false,
52779
+ "required": [
52780
+ "code",
52781
+ "message"
52782
+ ]
52783
+ }
52784
+ },
52785
+ "additionalProperties": false,
52786
+ "required": [
52787
+ "success",
52788
+ "failure"
52789
+ ]
52790
+ },
52791
+ "intentGroup": "list",
52792
+ "intentAction": "delete"
52793
+ },
52579
52794
  "doc.lists.indent": {
52580
52795
  "operationId": "doc.lists.indent",
52581
52796
  "sdkSurface": "document",
@@ -81487,6 +81702,41 @@ export const CONTRACT = {
81487
81702
  "dryRun"
81488
81703
  ]
81489
81704
  },
81705
+ "lists.delete": {
81706
+ "type": "object",
81707
+ "properties": {
81708
+ "available": {
81709
+ "type": "boolean"
81710
+ },
81711
+ "tracked": {
81712
+ "type": "boolean"
81713
+ },
81714
+ "dryRun": {
81715
+ "type": "boolean"
81716
+ },
81717
+ "reasons": {
81718
+ "type": "array",
81719
+ "items": {
81720
+ "enum": [
81721
+ "COMMAND_UNAVAILABLE",
81722
+ "HELPER_UNAVAILABLE",
81723
+ "OPERATION_UNAVAILABLE",
81724
+ "TRACKED_MODE_UNAVAILABLE",
81725
+ "DRY_RUN_UNAVAILABLE",
81726
+ "NAMESPACE_UNAVAILABLE",
81727
+ "STYLES_PART_MISSING",
81728
+ "COLLABORATION_ACTIVE"
81729
+ ]
81730
+ }
81731
+ }
81732
+ },
81733
+ "additionalProperties": false,
81734
+ "required": [
81735
+ "available",
81736
+ "tracked",
81737
+ "dryRun"
81738
+ ]
81739
+ },
81490
81740
  "lists.indent": {
81491
81741
  "type": "object",
81492
81742
  "properties": {
@@ -83902,7 +84152,7 @@ export const CONTRACT = {
83902
84152
  "dryRun"
83903
84153
  ]
83904
84154
  },
83905
- "tables.sort": {
84155
+ "tables.setCellText": {
83906
84156
  "type": "object",
83907
84157
  "properties": {
83908
84158
  "available": {
@@ -83937,7 +84187,7 @@ export const CONTRACT = {
83937
84187
  "dryRun"
83938
84188
  ]
83939
84189
  },
83940
- "tables.setAltText": {
84190
+ "tables.sort": {
83941
84191
  "type": "object",
83942
84192
  "properties": {
83943
84193
  "available": {
@@ -83972,7 +84222,7 @@ export const CONTRACT = {
83972
84222
  "dryRun"
83973
84223
  ]
83974
84224
  },
83975
- "tables.setStyle": {
84225
+ "tables.setAltText": {
83976
84226
  "type": "object",
83977
84227
  "properties": {
83978
84228
  "available": {
@@ -84007,7 +84257,7 @@ export const CONTRACT = {
84007
84257
  "dryRun"
84008
84258
  ]
84009
84259
  },
84010
- "tables.clearStyle": {
84260
+ "tables.setStyle": {
84011
84261
  "type": "object",
84012
84262
  "properties": {
84013
84263
  "available": {
@@ -84042,7 +84292,7 @@ export const CONTRACT = {
84042
84292
  "dryRun"
84043
84293
  ]
84044
84294
  },
84045
- "tables.setStyleOption": {
84295
+ "tables.clearStyle": {
84046
84296
  "type": "object",
84047
84297
  "properties": {
84048
84298
  "available": {
@@ -84077,7 +84327,7 @@ export const CONTRACT = {
84077
84327
  "dryRun"
84078
84328
  ]
84079
84329
  },
84080
- "tables.setBorder": {
84330
+ "tables.setStyleOption": {
84081
84331
  "type": "object",
84082
84332
  "properties": {
84083
84333
  "available": {
@@ -84112,7 +84362,7 @@ export const CONTRACT = {
84112
84362
  "dryRun"
84113
84363
  ]
84114
84364
  },
84115
- "tables.clearBorder": {
84365
+ "tables.setBorder": {
84116
84366
  "type": "object",
84117
84367
  "properties": {
84118
84368
  "available": {
@@ -84147,7 +84397,42 @@ export const CONTRACT = {
84147
84397
  "dryRun"
84148
84398
  ]
84149
84399
  },
84150
- "tables.applyBorderPreset": {
84400
+ "tables.clearBorder": {
84401
+ "type": "object",
84402
+ "properties": {
84403
+ "available": {
84404
+ "type": "boolean"
84405
+ },
84406
+ "tracked": {
84407
+ "type": "boolean"
84408
+ },
84409
+ "dryRun": {
84410
+ "type": "boolean"
84411
+ },
84412
+ "reasons": {
84413
+ "type": "array",
84414
+ "items": {
84415
+ "enum": [
84416
+ "COMMAND_UNAVAILABLE",
84417
+ "HELPER_UNAVAILABLE",
84418
+ "OPERATION_UNAVAILABLE",
84419
+ "TRACKED_MODE_UNAVAILABLE",
84420
+ "DRY_RUN_UNAVAILABLE",
84421
+ "NAMESPACE_UNAVAILABLE",
84422
+ "STYLES_PART_MISSING",
84423
+ "COLLABORATION_ACTIVE"
84424
+ ]
84425
+ }
84426
+ }
84427
+ },
84428
+ "additionalProperties": false,
84429
+ "required": [
84430
+ "available",
84431
+ "tracked",
84432
+ "dryRun"
84433
+ ]
84434
+ },
84435
+ "tables.applyBorderPreset": {
84151
84436
  "type": "object",
84152
84437
  "properties": {
84153
84438
  "available": {
@@ -84497,6 +84782,41 @@ export const CONTRACT = {
84497
84782
  "dryRun"
84498
84783
  ]
84499
84784
  },
84785
+ "tables.applyPreset": {
84786
+ "type": "object",
84787
+ "properties": {
84788
+ "available": {
84789
+ "type": "boolean"
84790
+ },
84791
+ "tracked": {
84792
+ "type": "boolean"
84793
+ },
84794
+ "dryRun": {
84795
+ "type": "boolean"
84796
+ },
84797
+ "reasons": {
84798
+ "type": "array",
84799
+ "items": {
84800
+ "enum": [
84801
+ "COMMAND_UNAVAILABLE",
84802
+ "HELPER_UNAVAILABLE",
84803
+ "OPERATION_UNAVAILABLE",
84804
+ "TRACKED_MODE_UNAVAILABLE",
84805
+ "DRY_RUN_UNAVAILABLE",
84806
+ "NAMESPACE_UNAVAILABLE",
84807
+ "STYLES_PART_MISSING",
84808
+ "COLLABORATION_ACTIVE"
84809
+ ]
84810
+ }
84811
+ }
84812
+ },
84813
+ "additionalProperties": false,
84814
+ "required": [
84815
+ "available",
84816
+ "tracked",
84817
+ "dryRun"
84818
+ ]
84819
+ },
84500
84820
  "tables.get": {
84501
84821
  "type": "object",
84502
84822
  "properties": {
@@ -91251,6 +91571,181 @@ export const CONTRACT = {
91251
91571
  "tracked",
91252
91572
  "dryRun"
91253
91573
  ]
91574
+ },
91575
+ "customXml.parts.list": {
91576
+ "type": "object",
91577
+ "properties": {
91578
+ "available": {
91579
+ "type": "boolean"
91580
+ },
91581
+ "tracked": {
91582
+ "type": "boolean"
91583
+ },
91584
+ "dryRun": {
91585
+ "type": "boolean"
91586
+ },
91587
+ "reasons": {
91588
+ "type": "array",
91589
+ "items": {
91590
+ "enum": [
91591
+ "COMMAND_UNAVAILABLE",
91592
+ "HELPER_UNAVAILABLE",
91593
+ "OPERATION_UNAVAILABLE",
91594
+ "TRACKED_MODE_UNAVAILABLE",
91595
+ "DRY_RUN_UNAVAILABLE",
91596
+ "NAMESPACE_UNAVAILABLE",
91597
+ "STYLES_PART_MISSING",
91598
+ "COLLABORATION_ACTIVE"
91599
+ ]
91600
+ }
91601
+ }
91602
+ },
91603
+ "additionalProperties": false,
91604
+ "required": [
91605
+ "available",
91606
+ "tracked",
91607
+ "dryRun"
91608
+ ]
91609
+ },
91610
+ "customXml.parts.get": {
91611
+ "type": "object",
91612
+ "properties": {
91613
+ "available": {
91614
+ "type": "boolean"
91615
+ },
91616
+ "tracked": {
91617
+ "type": "boolean"
91618
+ },
91619
+ "dryRun": {
91620
+ "type": "boolean"
91621
+ },
91622
+ "reasons": {
91623
+ "type": "array",
91624
+ "items": {
91625
+ "enum": [
91626
+ "COMMAND_UNAVAILABLE",
91627
+ "HELPER_UNAVAILABLE",
91628
+ "OPERATION_UNAVAILABLE",
91629
+ "TRACKED_MODE_UNAVAILABLE",
91630
+ "DRY_RUN_UNAVAILABLE",
91631
+ "NAMESPACE_UNAVAILABLE",
91632
+ "STYLES_PART_MISSING",
91633
+ "COLLABORATION_ACTIVE"
91634
+ ]
91635
+ }
91636
+ }
91637
+ },
91638
+ "additionalProperties": false,
91639
+ "required": [
91640
+ "available",
91641
+ "tracked",
91642
+ "dryRun"
91643
+ ]
91644
+ },
91645
+ "customXml.parts.create": {
91646
+ "type": "object",
91647
+ "properties": {
91648
+ "available": {
91649
+ "type": "boolean"
91650
+ },
91651
+ "tracked": {
91652
+ "type": "boolean"
91653
+ },
91654
+ "dryRun": {
91655
+ "type": "boolean"
91656
+ },
91657
+ "reasons": {
91658
+ "type": "array",
91659
+ "items": {
91660
+ "enum": [
91661
+ "COMMAND_UNAVAILABLE",
91662
+ "HELPER_UNAVAILABLE",
91663
+ "OPERATION_UNAVAILABLE",
91664
+ "TRACKED_MODE_UNAVAILABLE",
91665
+ "DRY_RUN_UNAVAILABLE",
91666
+ "NAMESPACE_UNAVAILABLE",
91667
+ "STYLES_PART_MISSING",
91668
+ "COLLABORATION_ACTIVE"
91669
+ ]
91670
+ }
91671
+ }
91672
+ },
91673
+ "additionalProperties": false,
91674
+ "required": [
91675
+ "available",
91676
+ "tracked",
91677
+ "dryRun"
91678
+ ]
91679
+ },
91680
+ "customXml.parts.patch": {
91681
+ "type": "object",
91682
+ "properties": {
91683
+ "available": {
91684
+ "type": "boolean"
91685
+ },
91686
+ "tracked": {
91687
+ "type": "boolean"
91688
+ },
91689
+ "dryRun": {
91690
+ "type": "boolean"
91691
+ },
91692
+ "reasons": {
91693
+ "type": "array",
91694
+ "items": {
91695
+ "enum": [
91696
+ "COMMAND_UNAVAILABLE",
91697
+ "HELPER_UNAVAILABLE",
91698
+ "OPERATION_UNAVAILABLE",
91699
+ "TRACKED_MODE_UNAVAILABLE",
91700
+ "DRY_RUN_UNAVAILABLE",
91701
+ "NAMESPACE_UNAVAILABLE",
91702
+ "STYLES_PART_MISSING",
91703
+ "COLLABORATION_ACTIVE"
91704
+ ]
91705
+ }
91706
+ }
91707
+ },
91708
+ "additionalProperties": false,
91709
+ "required": [
91710
+ "available",
91711
+ "tracked",
91712
+ "dryRun"
91713
+ ]
91714
+ },
91715
+ "customXml.parts.remove": {
91716
+ "type": "object",
91717
+ "properties": {
91718
+ "available": {
91719
+ "type": "boolean"
91720
+ },
91721
+ "tracked": {
91722
+ "type": "boolean"
91723
+ },
91724
+ "dryRun": {
91725
+ "type": "boolean"
91726
+ },
91727
+ "reasons": {
91728
+ "type": "array",
91729
+ "items": {
91730
+ "enum": [
91731
+ "COMMAND_UNAVAILABLE",
91732
+ "HELPER_UNAVAILABLE",
91733
+ "OPERATION_UNAVAILABLE",
91734
+ "TRACKED_MODE_UNAVAILABLE",
91735
+ "DRY_RUN_UNAVAILABLE",
91736
+ "NAMESPACE_UNAVAILABLE",
91737
+ "STYLES_PART_MISSING",
91738
+ "COLLABORATION_ACTIVE"
91739
+ ]
91740
+ }
91741
+ }
91742
+ },
91743
+ "additionalProperties": false,
91744
+ "required": [
91745
+ "available",
91746
+ "tracked",
91747
+ "dryRun"
91748
+ ]
91254
91749
  }
91255
91750
  },
91256
91751
  "additionalProperties": false,
@@ -91365,6 +91860,7 @@ export const CONTRACT = {
91365
91860
  "lists.create",
91366
91861
  "lists.attach",
91367
91862
  "lists.detach",
91863
+ "lists.delete",
91368
91864
  "lists.indent",
91369
91865
  "lists.outdent",
91370
91866
  "lists.join",
@@ -91434,6 +91930,7 @@ export const CONTRACT = {
91434
91930
  "tables.unmergeCells",
91435
91931
  "tables.splitCell",
91436
91932
  "tables.setCellProperties",
91933
+ "tables.setCellText",
91437
91934
  "tables.sort",
91438
91935
  "tables.setAltText",
91439
91936
  "tables.setStyle",
@@ -91451,6 +91948,7 @@ export const CONTRACT = {
91451
91948
  "tables.applyStyle",
91452
91949
  "tables.setBorders",
91453
91950
  "tables.setTableOptions",
91951
+ "tables.applyPreset",
91454
91952
  "tables.get",
91455
91953
  "tables.getCells",
91456
91954
  "tables.getProperties",
@@ -91643,7 +92141,12 @@ export const CONTRACT = {
91643
92141
  "permissionRanges.get",
91644
92142
  "permissionRanges.create",
91645
92143
  "permissionRanges.remove",
91646
- "permissionRanges.updatePrincipal"
92144
+ "permissionRanges.updatePrincipal",
92145
+ "customXml.parts.list",
92146
+ "customXml.parts.get",
92147
+ "customXml.parts.create",
92148
+ "customXml.parts.patch",
92149
+ "customXml.parts.remove"
91647
92150
  ]
91648
92151
  },
91649
92152
  "planEngine": {
@@ -92784,7 +93287,9 @@ export const CONTRACT = {
92784
93287
  "success",
92785
93288
  "failure"
92786
93289
  ]
92787
- }
93290
+ },
93291
+ "intentGroup": "table",
93292
+ "intentAction": "delete"
92788
93293
  },
92789
93294
  "doc.tables.clearContents": {
92790
93295
  "operationId": "doc.tables.clearContents",
@@ -94410,7 +94915,9 @@ export const CONTRACT = {
94410
94915
  "success",
94411
94916
  "failure"
94412
94917
  ]
94413
- }
94918
+ },
94919
+ "intentGroup": "table",
94920
+ "intentAction": "set_layout"
94414
94921
  },
94415
94922
  "doc.tables.insertRow": {
94416
94923
  "operationId": "doc.tables.insertRow",
@@ -94421,7 +94928,7 @@ export const CONTRACT = {
94421
94928
  "insert-row"
94422
94929
  ],
94423
94930
  "category": "tables",
94424
- "description": "Insert a new row into the target table.",
94931
+ "description": "Insert a new row into the target table. The new row is cloned from an adjacent row, so it inherits the existing cell shading, borders, alignment, and padding. No follow-up styling call is needed unless the new row should look different from the rest of the table.",
94425
94932
  "requiresDocumentContext": true,
94426
94933
  "docRequirement": "optional",
94427
94934
  "responseEnvelopeKey": "result",
@@ -94530,7 +95037,6 @@ export const CONTRACT = {
94530
95037
  "name": "position",
94531
95038
  "kind": "flag",
94532
95039
  "type": "string",
94533
- "required": true,
94534
95040
  "schema": {
94535
95041
  "oneOf": [
94536
95042
  {
@@ -94645,6 +95151,48 @@ export const CONTRACT = {
94645
95151
  "rowIndex",
94646
95152
  "position"
94647
95153
  ]
95154
+ },
95155
+ {
95156
+ "type": "object",
95157
+ "properties": {
95158
+ "target": {
95159
+ "$ref": "#/$defs/TableAddress"
95160
+ },
95161
+ "nodeId": {
95162
+ "type": "string"
95163
+ },
95164
+ "count": {
95165
+ "type": "integer",
95166
+ "minimum": 1
95167
+ }
95168
+ },
95169
+ "additionalProperties": false,
95170
+ "oneOf": [
95171
+ {
95172
+ "required": [
95173
+ "target"
95174
+ ]
95175
+ },
95176
+ {
95177
+ "required": [
95178
+ "nodeId"
95179
+ ]
95180
+ }
95181
+ ],
95182
+ "not": {
95183
+ "anyOf": [
95184
+ {
95185
+ "required": [
95186
+ "rowIndex"
95187
+ ]
95188
+ },
95189
+ {
95190
+ "required": [
95191
+ "position"
95192
+ ]
95193
+ }
95194
+ ]
95195
+ }
94648
95196
  }
94649
95197
  ]
94650
95198
  },
@@ -94763,7 +95311,9 @@ export const CONTRACT = {
94763
95311
  "success",
94764
95312
  "failure"
94765
95313
  ]
94766
- }
95314
+ },
95315
+ "intentGroup": "table",
95316
+ "intentAction": "insert_row"
94767
95317
  },
94768
95318
  "doc.tables.deleteRow": {
94769
95319
  "operationId": "doc.tables.deleteRow",
@@ -95062,7 +95612,9 @@ export const CONTRACT = {
95062
95612
  "success",
95063
95613
  "failure"
95064
95614
  ]
95065
- }
95615
+ },
95616
+ "intentGroup": "table",
95617
+ "intentAction": "delete_row"
95066
95618
  },
95067
95619
  "doc.tables.setRowHeight": {
95068
95620
  "operationId": "doc.tables.setRowHeight",
@@ -95426,7 +95978,9 @@ export const CONTRACT = {
95426
95978
  "success",
95427
95979
  "failure"
95428
95980
  ]
95429
- }
95981
+ },
95982
+ "intentGroup": "table",
95983
+ "intentAction": "set_row"
95430
95984
  },
95431
95985
  "doc.tables.distributeRows": {
95432
95986
  "operationId": "doc.tables.distributeRows",
@@ -95999,7 +96553,9 @@ export const CONTRACT = {
95999
96553
  "success",
96000
96554
  "failure"
96001
96555
  ]
96002
- }
96556
+ },
96557
+ "intentGroup": "table",
96558
+ "intentAction": "set_row_options"
96003
96559
  },
96004
96560
  "doc.tables.insertColumn": {
96005
96561
  "operationId": "doc.tables.insertColumn",
@@ -96010,7 +96566,7 @@ export const CONTRACT = {
96010
96566
  "insert-column"
96011
96567
  ],
96012
96568
  "category": "tables",
96013
- "description": "Insert a new column into the target table.",
96569
+ "description": "Insert a new column into the target table. The new column is cloned from an adjacent column, so it inherits the existing cell shading, borders, alignment, and width. No follow-up styling call is needed unless the new column should look different from the rest of the table.",
96014
96570
  "requiresDocumentContext": true,
96015
96571
  "docRequirement": "optional",
96016
96572
  "responseEnvelopeKey": "result",
@@ -96102,8 +96658,7 @@ export const CONTRACT = {
96102
96658
  "name": "columnIndex",
96103
96659
  "kind": "flag",
96104
96660
  "type": "number",
96105
- "flag": "column-index",
96106
- "required": true
96661
+ "flag": "column-index"
96107
96662
  },
96108
96663
  {
96109
96664
  "name": "position",
@@ -96117,6 +96672,12 @@ export const CONTRACT = {
96117
96672
  },
96118
96673
  {
96119
96674
  "const": "right"
96675
+ },
96676
+ {
96677
+ "const": "first"
96678
+ },
96679
+ {
96680
+ "const": "last"
96120
96681
  }
96121
96682
  ]
96122
96683
  }
@@ -96148,7 +96709,9 @@ export const CONTRACT = {
96148
96709
  "position": {
96149
96710
  "enum": [
96150
96711
  "left",
96151
- "right"
96712
+ "right",
96713
+ "first",
96714
+ "last"
96152
96715
  ]
96153
96716
  },
96154
96717
  "count": {
@@ -96158,7 +96721,6 @@ export const CONTRACT = {
96158
96721
  },
96159
96722
  "additionalProperties": false,
96160
96723
  "required": [
96161
- "columnIndex",
96162
96724
  "position"
96163
96725
  ],
96164
96726
  "oneOf": [
@@ -96289,7 +96851,9 @@ export const CONTRACT = {
96289
96851
  "success",
96290
96852
  "failure"
96291
96853
  ]
96292
- }
96854
+ },
96855
+ "intentGroup": "table",
96856
+ "intentAction": "insert_column"
96293
96857
  },
96294
96858
  "doc.tables.deleteColumn": {
96295
96859
  "operationId": "doc.tables.deleteColumn",
@@ -96547,7 +97111,9 @@ export const CONTRACT = {
96547
97111
  "success",
96548
97112
  "failure"
96549
97113
  ]
96550
- }
97114
+ },
97115
+ "intentGroup": "table",
97116
+ "intentAction": "delete_column"
96551
97117
  },
96552
97118
  "doc.tables.setColumnWidth": {
96553
97119
  "operationId": "doc.tables.setColumnWidth",
@@ -96817,7 +97383,9 @@ export const CONTRACT = {
96817
97383
  "success",
96818
97384
  "failure"
96819
97385
  ]
96820
- }
97386
+ },
97387
+ "intentGroup": "table",
97388
+ "intentAction": "set_column"
96821
97389
  },
96822
97390
  "doc.tables.distributeColumns": {
96823
97391
  "operationId": "doc.tables.distributeColumns",
@@ -97966,7 +98534,9 @@ export const CONTRACT = {
97966
98534
  "success",
97967
98535
  "failure"
97968
98536
  ]
97969
- }
98537
+ },
98538
+ "intentGroup": "table",
98539
+ "intentAction": "merge_cells"
97970
98540
  },
97971
98541
  "doc.tables.unmergeCells": {
97972
98542
  "operationId": "doc.tables.unmergeCells",
@@ -98293,7 +98863,9 @@ export const CONTRACT = {
98293
98863
  "success",
98294
98864
  "failure"
98295
98865
  ]
98296
- }
98866
+ },
98867
+ "intentGroup": "table",
98868
+ "intentAction": "unmerge_cells"
98297
98869
  },
98298
98870
  "doc.tables.splitCell": {
98299
98871
  "operationId": "doc.tables.splitCell",
@@ -98572,7 +99144,7 @@ export const CONTRACT = {
98572
99144
  "set-cell-properties"
98573
99145
  ],
98574
99146
  "category": "tables",
98575
- "description": "Set properties on a table cell such as vertical alignment or text direction.",
99147
+ "description": "Set non-text properties on a single table cell: vertical alignment, text wrapping, fit-text, or preferred width. Requires a cell-level target (a tableCell block address with kind, nodeType, nodeId). Does NOT accept a table target with rowIndex/columnIndex. To set the text content of a cell, use action \"set_cell_text\" instead.",
98576
99148
  "requiresDocumentContext": true,
98577
99149
  "docRequirement": "optional",
98578
99150
  "responseEnvelopeKey": "result",
@@ -98858,21 +99430,23 @@ export const CONTRACT = {
98858
99430
  "success",
98859
99431
  "failure"
98860
99432
  ]
98861
- }
99433
+ },
99434
+ "intentGroup": "table",
99435
+ "intentAction": "set_cell"
98862
99436
  },
98863
- "doc.tables.sort": {
98864
- "operationId": "doc.tables.sort",
99437
+ "doc.tables.setCellText": {
99438
+ "operationId": "doc.tables.setCellText",
98865
99439
  "sdkSurface": "document",
98866
- "command": "tables sort",
99440
+ "command": "tables set-cell-text",
98867
99441
  "commandTokens": [
98868
99442
  "tables",
98869
- "sort"
99443
+ "set-cell-text"
98870
99444
  ],
98871
99445
  "category": "tables",
98872
- "description": "Sort table rows by a column value.",
99446
+ "description": "Replace the text content of a single table cell with plain text (one paragraph). Accepts either a direct cell locator (a tableCell block address with kind, nodeType, nodeId) OR a table target with rowIndex + columnIndex. Cell properties (vertical alignment, shading, borders, colspan/rowspan) are preserved. Use this for filling cells with values, replacing cell text, or populating empty tables. Much simpler than walking paragraphs and runs through superdoc_edit.",
98873
99447
  "requiresDocumentContext": true,
98874
99448
  "docRequirement": "optional",
98875
- "responseEnvelopeKey": "result",
99449
+ "responseEnvelopeKey": null,
98876
99450
  "params": [
98877
99451
  {
98878
99452
  "name": "doc",
@@ -98932,25 +99506,54 @@ export const CONTRACT = {
98932
99506
  "type": "json",
98933
99507
  "flag": "target-json",
98934
99508
  "schema": {
98935
- "type": "object",
98936
- "properties": {
98937
- "kind": {
98938
- "const": "block"
98939
- },
98940
- "nodeType": {
98941
- "const": "table"
99509
+ "oneOf": [
99510
+ {
99511
+ "type": "object",
99512
+ "properties": {
99513
+ "kind": {
99514
+ "const": "block"
99515
+ },
99516
+ "nodeType": {
99517
+ "const": "tableCell"
99518
+ },
99519
+ "nodeId": {
99520
+ "type": "string"
99521
+ }
99522
+ },
99523
+ "required": [
99524
+ "kind",
99525
+ "nodeType",
99526
+ "nodeId"
99527
+ ]
98942
99528
  },
98943
- "nodeId": {
98944
- "type": "string"
99529
+ {
99530
+ "type": "object",
99531
+ "properties": {
99532
+ "kind": {
99533
+ "const": "block"
99534
+ },
99535
+ "nodeType": {
99536
+ "const": "table"
99537
+ },
99538
+ "nodeId": {
99539
+ "type": "string"
99540
+ }
99541
+ },
99542
+ "required": [
99543
+ "kind",
99544
+ "nodeType",
99545
+ "nodeId"
99546
+ ]
98945
99547
  }
98946
- },
98947
- "required": [
98948
- "kind",
98949
- "nodeType",
98950
- "nodeId"
98951
99548
  ]
98952
99549
  }
98953
99550
  },
99551
+ {
99552
+ "name": "text",
99553
+ "kind": "flag",
99554
+ "type": "string",
99555
+ "required": true
99556
+ },
98954
99557
  {
98955
99558
  "name": "nodeId",
98956
99559
  "kind": "flag",
@@ -98958,111 +99561,107 @@ export const CONTRACT = {
98958
99561
  "flag": "node-id"
98959
99562
  },
98960
99563
  {
98961
- "name": "keys",
98962
- "kind": "jsonFlag",
98963
- "type": "json",
98964
- "flag": "keys-json",
98965
- "required": true,
98966
- "schema": {
98967
- "type": "array",
98968
- "items": {
98969
- "type": "object",
98970
- "properties": {
98971
- "columnIndex": {
98972
- "type": "number"
98973
- },
98974
- "direction": {
98975
- "oneOf": [
98976
- {
98977
- "const": "ascending"
98978
- },
98979
- {
98980
- "const": "descending"
98981
- }
98982
- ]
98983
- },
98984
- "type": {
98985
- "oneOf": [
98986
- {
98987
- "const": "text"
98988
- },
98989
- {
98990
- "const": "number"
98991
- },
98992
- {
98993
- "const": "date"
98994
- }
98995
- ]
98996
- }
98997
- },
98998
- "required": [
98999
- "columnIndex",
99000
- "direction",
99001
- "type"
99002
- ]
99003
- }
99004
- }
99564
+ "name": "rowIndex",
99565
+ "kind": "flag",
99566
+ "type": "number",
99567
+ "flag": "row-index"
99568
+ },
99569
+ {
99570
+ "name": "columnIndex",
99571
+ "kind": "flag",
99572
+ "type": "number",
99573
+ "flag": "column-index"
99005
99574
  }
99006
99575
  ],
99007
99576
  "constraints": null,
99008
99577
  "mutates": true,
99009
- "idempotency": "non-idempotent",
99578
+ "idempotency": "idempotent",
99010
99579
  "supportsTrackedMode": false,
99011
99580
  "supportsDryRun": true,
99012
99581
  "inputSchema": {
99013
- "type": "object",
99014
- "properties": {
99015
- "target": {
99016
- "$ref": "#/$defs/TableAddress"
99017
- },
99018
- "nodeId": {
99019
- "type": "string"
99582
+ "oneOf": [
99583
+ {
99584
+ "type": "object",
99585
+ "properties": {
99586
+ "target": {
99587
+ "$ref": "#/$defs/TableCellAddress"
99588
+ },
99589
+ "text": {
99590
+ "type": "string"
99591
+ }
99592
+ },
99593
+ "additionalProperties": false,
99594
+ "required": [
99595
+ "target",
99596
+ "text"
99597
+ ]
99020
99598
  },
99021
- "keys": {
99022
- "type": "array",
99023
- "items": {
99024
- "type": "object",
99025
- "properties": {
99026
- "columnIndex": {
99027
- "type": "integer",
99028
- "minimum": 0
99029
- },
99030
- "direction": {
99031
- "enum": [
99032
- "ascending",
99033
- "descending"
99034
- ]
99035
- },
99036
- "type": {
99037
- "enum": [
99038
- "text",
99039
- "number",
99040
- "date"
99041
- ]
99042
- }
99599
+ {
99600
+ "type": "object",
99601
+ "properties": {
99602
+ "nodeId": {
99603
+ "type": "string"
99043
99604
  },
99044
- "additionalProperties": false,
99045
- "required": [
99046
- "columnIndex",
99047
- "direction",
99048
- "type"
99049
- ]
99050
- }
99051
- }
99052
- },
99053
- "additionalProperties": false,
99054
- "required": [
99055
- "keys"
99056
- ],
99057
- "oneOf": [
99605
+ "text": {
99606
+ "type": "string"
99607
+ }
99608
+ },
99609
+ "additionalProperties": false,
99610
+ "required": [
99611
+ "nodeId",
99612
+ "text"
99613
+ ]
99614
+ },
99058
99615
  {
99616
+ "type": "object",
99617
+ "properties": {
99618
+ "target": {
99619
+ "$ref": "#/$defs/TableAddress"
99620
+ },
99621
+ "rowIndex": {
99622
+ "type": "integer",
99623
+ "minimum": 0
99624
+ },
99625
+ "columnIndex": {
99626
+ "type": "integer",
99627
+ "minimum": 0
99628
+ },
99629
+ "text": {
99630
+ "type": "string"
99631
+ }
99632
+ },
99633
+ "additionalProperties": false,
99059
99634
  "required": [
99060
- "target"
99635
+ "target",
99636
+ "rowIndex",
99637
+ "columnIndex",
99638
+ "text"
99061
99639
  ]
99062
99640
  },
99063
99641
  {
99642
+ "type": "object",
99643
+ "properties": {
99644
+ "nodeId": {
99645
+ "type": "string"
99646
+ },
99647
+ "rowIndex": {
99648
+ "type": "integer",
99649
+ "minimum": 0
99650
+ },
99651
+ "columnIndex": {
99652
+ "type": "integer",
99653
+ "minimum": 0
99654
+ },
99655
+ "text": {
99656
+ "type": "string"
99657
+ }
99658
+ },
99659
+ "additionalProperties": false,
99064
99660
  "required": [
99065
- "nodeId"
99661
+ "nodeId",
99662
+ "rowIndex",
99663
+ "columnIndex",
99664
+ "text"
99066
99665
  ]
99067
99666
  }
99068
99667
  ]
@@ -99182,18 +99781,20 @@ export const CONTRACT = {
99182
99781
  "success",
99183
99782
  "failure"
99184
99783
  ]
99185
- }
99784
+ },
99785
+ "intentGroup": "table",
99786
+ "intentAction": "set_cell_text"
99186
99787
  },
99187
- "doc.tables.setAltText": {
99188
- "operationId": "doc.tables.setAltText",
99788
+ "doc.tables.sort": {
99789
+ "operationId": "doc.tables.sort",
99189
99790
  "sdkSurface": "document",
99190
- "command": "tables set-alt-text",
99791
+ "command": "tables sort",
99191
99792
  "commandTokens": [
99192
99793
  "tables",
99193
- "set-alt-text"
99794
+ "sort"
99194
99795
  ],
99195
99796
  "category": "tables",
99196
- "description": "Set the alternative text description for a table.",
99797
+ "description": "Sort table rows by a column value.",
99197
99798
  "requiresDocumentContext": true,
99198
99799
  "docRequirement": "optional",
99199
99800
  "responseEnvelopeKey": "result",
@@ -99282,19 +99883,55 @@ export const CONTRACT = {
99282
99883
  "flag": "node-id"
99283
99884
  },
99284
99885
  {
99285
- "name": "title",
99286
- "kind": "flag",
99287
- "type": "string"
99288
- },
99289
- {
99290
- "name": "description",
99291
- "kind": "flag",
99292
- "type": "string"
99886
+ "name": "keys",
99887
+ "kind": "jsonFlag",
99888
+ "type": "json",
99889
+ "flag": "keys-json",
99890
+ "required": true,
99891
+ "schema": {
99892
+ "type": "array",
99893
+ "items": {
99894
+ "type": "object",
99895
+ "properties": {
99896
+ "columnIndex": {
99897
+ "type": "number"
99898
+ },
99899
+ "direction": {
99900
+ "oneOf": [
99901
+ {
99902
+ "const": "ascending"
99903
+ },
99904
+ {
99905
+ "const": "descending"
99906
+ }
99907
+ ]
99908
+ },
99909
+ "type": {
99910
+ "oneOf": [
99911
+ {
99912
+ "const": "text"
99913
+ },
99914
+ {
99915
+ "const": "number"
99916
+ },
99917
+ {
99918
+ "const": "date"
99919
+ }
99920
+ ]
99921
+ }
99922
+ },
99923
+ "required": [
99924
+ "columnIndex",
99925
+ "direction",
99926
+ "type"
99927
+ ]
99928
+ }
99929
+ }
99293
99930
  }
99294
99931
  ],
99295
99932
  "constraints": null,
99296
99933
  "mutates": true,
99297
- "idempotency": "idempotent",
99934
+ "idempotency": "non-idempotent",
99298
99935
  "supportsTrackedMode": false,
99299
99936
  "supportsDryRun": true,
99300
99937
  "inputSchema": {
@@ -99306,14 +99943,42 @@ export const CONTRACT = {
99306
99943
  "nodeId": {
99307
99944
  "type": "string"
99308
99945
  },
99309
- "title": {
99310
- "type": "string"
99311
- },
99312
- "description": {
99313
- "type": "string"
99946
+ "keys": {
99947
+ "type": "array",
99948
+ "items": {
99949
+ "type": "object",
99950
+ "properties": {
99951
+ "columnIndex": {
99952
+ "type": "integer",
99953
+ "minimum": 0
99954
+ },
99955
+ "direction": {
99956
+ "enum": [
99957
+ "ascending",
99958
+ "descending"
99959
+ ]
99960
+ },
99961
+ "type": {
99962
+ "enum": [
99963
+ "text",
99964
+ "number",
99965
+ "date"
99966
+ ]
99967
+ }
99968
+ },
99969
+ "additionalProperties": false,
99970
+ "required": [
99971
+ "columnIndex",
99972
+ "direction",
99973
+ "type"
99974
+ ]
99975
+ }
99314
99976
  }
99315
99977
  },
99316
99978
  "additionalProperties": false,
99979
+ "required": [
99980
+ "keys"
99981
+ ],
99317
99982
  "oneOf": [
99318
99983
  {
99319
99984
  "required": [
@@ -99444,16 +100109,16 @@ export const CONTRACT = {
99444
100109
  ]
99445
100110
  }
99446
100111
  },
99447
- "doc.tables.setStyle": {
99448
- "operationId": "doc.tables.setStyle",
100112
+ "doc.tables.setAltText": {
100113
+ "operationId": "doc.tables.setAltText",
99449
100114
  "sdkSurface": "document",
99450
- "command": "tables set-style",
100115
+ "command": "tables set-alt-text",
99451
100116
  "commandTokens": [
99452
100117
  "tables",
99453
- "set-style"
100118
+ "set-alt-text"
99454
100119
  ],
99455
100120
  "category": "tables",
99456
- "description": "Apply a named table style to the target table.",
100121
+ "description": "Set the alternative text description for a table.",
99457
100122
  "requiresDocumentContext": true,
99458
100123
  "docRequirement": "optional",
99459
100124
  "responseEnvelopeKey": "result",
@@ -99542,11 +100207,14 @@ export const CONTRACT = {
99542
100207
  "flag": "node-id"
99543
100208
  },
99544
100209
  {
99545
- "name": "styleId",
100210
+ "name": "title",
99546
100211
  "kind": "flag",
99547
- "type": "string",
99548
- "flag": "style-id",
99549
- "required": true
100212
+ "type": "string"
100213
+ },
100214
+ {
100215
+ "name": "description",
100216
+ "kind": "flag",
100217
+ "type": "string"
99550
100218
  }
99551
100219
  ],
99552
100220
  "constraints": null,
@@ -99563,14 +100231,14 @@ export const CONTRACT = {
99563
100231
  "nodeId": {
99564
100232
  "type": "string"
99565
100233
  },
99566
- "styleId": {
100234
+ "title": {
100235
+ "type": "string"
100236
+ },
100237
+ "description": {
99567
100238
  "type": "string"
99568
100239
  }
99569
100240
  },
99570
100241
  "additionalProperties": false,
99571
- "required": [
99572
- "styleId"
99573
- ],
99574
100242
  "oneOf": [
99575
100243
  {
99576
100244
  "required": [
@@ -99701,16 +100369,16 @@ export const CONTRACT = {
99701
100369
  ]
99702
100370
  }
99703
100371
  },
99704
- "doc.tables.clearStyle": {
99705
- "operationId": "doc.tables.clearStyle",
100372
+ "doc.tables.setStyle": {
100373
+ "operationId": "doc.tables.setStyle",
99706
100374
  "sdkSurface": "document",
99707
- "command": "tables clear-style",
100375
+ "command": "tables set-style",
99708
100376
  "commandTokens": [
99709
100377
  "tables",
99710
- "clear-style"
100378
+ "set-style"
99711
100379
  ],
99712
100380
  "category": "tables",
99713
- "description": "Remove the applied table style, reverting to defaults.",
100381
+ "description": "Apply a named table style to the target table.",
99714
100382
  "requiresDocumentContext": true,
99715
100383
  "docRequirement": "optional",
99716
100384
  "responseEnvelopeKey": "result",
@@ -99797,11 +100465,18 @@ export const CONTRACT = {
99797
100465
  "kind": "flag",
99798
100466
  "type": "string",
99799
100467
  "flag": "node-id"
100468
+ },
100469
+ {
100470
+ "name": "styleId",
100471
+ "kind": "flag",
100472
+ "type": "string",
100473
+ "flag": "style-id",
100474
+ "required": true
99800
100475
  }
99801
100476
  ],
99802
100477
  "constraints": null,
99803
100478
  "mutates": true,
99804
- "idempotency": "conditional",
100479
+ "idempotency": "idempotent",
99805
100480
  "supportsTrackedMode": false,
99806
100481
  "supportsDryRun": true,
99807
100482
  "inputSchema": {
@@ -99812,9 +100487,15 @@ export const CONTRACT = {
99812
100487
  },
99813
100488
  "nodeId": {
99814
100489
  "type": "string"
100490
+ },
100491
+ "styleId": {
100492
+ "type": "string"
99815
100493
  }
99816
100494
  },
99817
100495
  "additionalProperties": false,
100496
+ "required": [
100497
+ "styleId"
100498
+ ],
99818
100499
  "oneOf": [
99819
100500
  {
99820
100501
  "required": [
@@ -99945,16 +100626,16 @@ export const CONTRACT = {
99945
100626
  ]
99946
100627
  }
99947
100628
  },
99948
- "doc.tables.setStyleOption": {
99949
- "operationId": "doc.tables.setStyleOption",
100629
+ "doc.tables.clearStyle": {
100630
+ "operationId": "doc.tables.clearStyle",
99950
100631
  "sdkSurface": "document",
99951
- "command": "tables set-style-option",
100632
+ "command": "tables clear-style",
99952
100633
  "commandTokens": [
99953
100634
  "tables",
99954
- "set-style-option"
100635
+ "clear-style"
99955
100636
  ],
99956
100637
  "category": "tables",
99957
- "description": "Toggle a conditional style option such as banded rows or first column.",
100638
+ "description": "Remove the applied table style, reverting to defaults.",
99958
100639
  "requiresDocumentContext": true,
99959
100640
  "docRequirement": "optional",
99960
100641
  "responseEnvelopeKey": "result",
@@ -100041,48 +100722,11 @@ export const CONTRACT = {
100041
100722
  "kind": "flag",
100042
100723
  "type": "string",
100043
100724
  "flag": "node-id"
100044
- },
100045
- {
100046
- "name": "flag",
100047
- "kind": "flag",
100048
- "type": "string",
100049
- "required": true,
100050
- "schema": {
100051
- "oneOf": [
100052
- {
100053
- "const": "headerRow"
100054
- },
100055
- {
100056
- "const": "lastRow"
100057
- },
100058
- {
100059
- "const": "totalRow"
100060
- },
100061
- {
100062
- "const": "firstColumn"
100063
- },
100064
- {
100065
- "const": "lastColumn"
100066
- },
100067
- {
100068
- "const": "bandedRows"
100069
- },
100070
- {
100071
- "const": "bandedColumns"
100072
- }
100073
- ]
100074
- }
100075
- },
100076
- {
100077
- "name": "enabled",
100078
- "kind": "flag",
100079
- "type": "boolean",
100080
- "required": true
100081
100725
  }
100082
100726
  ],
100083
100727
  "constraints": null,
100084
100728
  "mutates": true,
100085
- "idempotency": "idempotent",
100729
+ "idempotency": "conditional",
100086
100730
  "supportsTrackedMode": false,
100087
100731
  "supportsDryRun": true,
100088
100732
  "inputSchema": {
@@ -100093,27 +100737,9 @@ export const CONTRACT = {
100093
100737
  },
100094
100738
  "nodeId": {
100095
100739
  "type": "string"
100096
- },
100097
- "flag": {
100098
- "enum": [
100099
- "headerRow",
100100
- "lastRow",
100101
- "totalRow",
100102
- "firstColumn",
100103
- "lastColumn",
100104
- "bandedRows",
100105
- "bandedColumns"
100106
- ]
100107
- },
100108
- "enabled": {
100109
- "type": "boolean"
100110
100740
  }
100111
100741
  },
100112
100742
  "additionalProperties": false,
100113
- "required": [
100114
- "flag",
100115
- "enabled"
100116
- ],
100117
100743
  "oneOf": [
100118
100744
  {
100119
100745
  "required": [
@@ -100244,16 +100870,16 @@ export const CONTRACT = {
100244
100870
  ]
100245
100871
  }
100246
100872
  },
100247
- "doc.tables.setBorder": {
100248
- "operationId": "doc.tables.setBorder",
100873
+ "doc.tables.setStyleOption": {
100874
+ "operationId": "doc.tables.setStyleOption",
100249
100875
  "sdkSurface": "document",
100250
- "command": "tables set-border",
100876
+ "command": "tables set-style-option",
100251
100877
  "commandTokens": [
100252
100878
  "tables",
100253
- "set-border"
100879
+ "set-style-option"
100254
100880
  ],
100255
100881
  "category": "tables",
100256
- "description": "Set border properties on a table or cell range.",
100882
+ "description": "Toggle a conditional style option such as banded rows or first column.",
100257
100883
  "requiresDocumentContext": true,
100258
100884
  "docRequirement": "optional",
100259
100885
  "responseEnvelopeKey": "result",
@@ -100322,14 +100948,7 @@ export const CONTRACT = {
100322
100948
  "const": "block"
100323
100949
  },
100324
100950
  "nodeType": {
100325
- "oneOf": [
100326
- {
100327
- "const": "table"
100328
- },
100329
- {
100330
- "const": "tableCell"
100331
- }
100332
- ]
100951
+ "const": "table"
100333
100952
  },
100334
100953
  "nodeId": {
100335
100954
  "type": "string"
@@ -100349,57 +100968,40 @@ export const CONTRACT = {
100349
100968
  "flag": "node-id"
100350
100969
  },
100351
100970
  {
100352
- "name": "edge",
100971
+ "name": "flag",
100353
100972
  "kind": "flag",
100354
100973
  "type": "string",
100355
100974
  "required": true,
100356
100975
  "schema": {
100357
100976
  "oneOf": [
100358
100977
  {
100359
- "const": "top"
100360
- },
100361
- {
100362
- "const": "bottom"
100978
+ "const": "headerRow"
100363
100979
  },
100364
100980
  {
100365
- "const": "left"
100981
+ "const": "lastRow"
100366
100982
  },
100367
100983
  {
100368
- "const": "right"
100984
+ "const": "totalRow"
100369
100985
  },
100370
100986
  {
100371
- "const": "insideH"
100987
+ "const": "firstColumn"
100372
100988
  },
100373
100989
  {
100374
- "const": "insideV"
100990
+ "const": "lastColumn"
100375
100991
  },
100376
100992
  {
100377
- "const": "diagonalDown"
100993
+ "const": "bandedRows"
100378
100994
  },
100379
100995
  {
100380
- "const": "diagonalUp"
100996
+ "const": "bandedColumns"
100381
100997
  }
100382
100998
  ]
100383
100999
  }
100384
101000
  },
100385
101001
  {
100386
- "name": "lineStyle",
100387
- "kind": "flag",
100388
- "type": "string",
100389
- "flag": "line-style",
100390
- "required": true
100391
- },
100392
- {
100393
- "name": "lineWeightPt",
100394
- "kind": "flag",
100395
- "type": "number",
100396
- "flag": "line-weight-pt",
100397
- "required": true
100398
- },
100399
- {
100400
- "name": "color",
101002
+ "name": "enabled",
100401
101003
  "kind": "flag",
100402
- "type": "string",
101004
+ "type": "boolean",
100403
101005
  "required": true
100404
101006
  }
100405
101007
  ],
@@ -100412,41 +101014,30 @@ export const CONTRACT = {
100412
101014
  "type": "object",
100413
101015
  "properties": {
100414
101016
  "target": {
100415
- "$ref": "#/$defs/TableOrCellAddress"
101017
+ "$ref": "#/$defs/TableAddress"
100416
101018
  },
100417
101019
  "nodeId": {
100418
101020
  "type": "string"
100419
101021
  },
100420
- "edge": {
101022
+ "flag": {
100421
101023
  "enum": [
100422
- "top",
100423
- "bottom",
100424
- "left",
100425
- "right",
100426
- "insideH",
100427
- "insideV",
100428
- "diagonalDown",
100429
- "diagonalUp"
101024
+ "headerRow",
101025
+ "lastRow",
101026
+ "totalRow",
101027
+ "firstColumn",
101028
+ "lastColumn",
101029
+ "bandedRows",
101030
+ "bandedColumns"
100430
101031
  ]
100431
101032
  },
100432
- "lineStyle": {
100433
- "type": "string"
100434
- },
100435
- "lineWeightPt": {
100436
- "type": "number",
100437
- "exclusiveMinimum": 0
100438
- },
100439
- "color": {
100440
- "type": "string",
100441
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
101033
+ "enabled": {
101034
+ "type": "boolean"
100442
101035
  }
100443
101036
  },
100444
101037
  "additionalProperties": false,
100445
101038
  "required": [
100446
- "edge",
100447
- "lineStyle",
100448
- "lineWeightPt",
100449
- "color"
101039
+ "flag",
101040
+ "enabled"
100450
101041
  ],
100451
101042
  "oneOf": [
100452
101043
  {
@@ -100578,16 +101169,16 @@ export const CONTRACT = {
100578
101169
  ]
100579
101170
  }
100580
101171
  },
100581
- "doc.tables.clearBorder": {
100582
- "operationId": "doc.tables.clearBorder",
101172
+ "doc.tables.setBorder": {
101173
+ "operationId": "doc.tables.setBorder",
100583
101174
  "sdkSurface": "document",
100584
- "command": "tables clear-border",
101175
+ "command": "tables set-border",
100585
101176
  "commandTokens": [
100586
101177
  "tables",
100587
- "clear-border"
101178
+ "set-border"
100588
101179
  ],
100589
101180
  "category": "tables",
100590
- "description": "Remove border formatting from a table or cell range.",
101181
+ "description": "Set border properties on a table or cell range.",
100591
101182
  "requiresDocumentContext": true,
100592
101183
  "docRequirement": "optional",
100593
101184
  "responseEnvelopeKey": "result",
@@ -100715,11 +101306,31 @@ export const CONTRACT = {
100715
101306
  }
100716
101307
  ]
100717
101308
  }
101309
+ },
101310
+ {
101311
+ "name": "lineStyle",
101312
+ "kind": "flag",
101313
+ "type": "string",
101314
+ "flag": "line-style",
101315
+ "required": true
101316
+ },
101317
+ {
101318
+ "name": "lineWeightPt",
101319
+ "kind": "flag",
101320
+ "type": "number",
101321
+ "flag": "line-weight-pt",
101322
+ "required": true
101323
+ },
101324
+ {
101325
+ "name": "color",
101326
+ "kind": "flag",
101327
+ "type": "string",
101328
+ "required": true
100718
101329
  }
100719
101330
  ],
100720
101331
  "constraints": null,
100721
101332
  "mutates": true,
100722
- "idempotency": "conditional",
101333
+ "idempotency": "idempotent",
100723
101334
  "supportsTrackedMode": false,
100724
101335
  "supportsDryRun": true,
100725
101336
  "inputSchema": {
@@ -100742,11 +101353,25 @@ export const CONTRACT = {
100742
101353
  "diagonalDown",
100743
101354
  "diagonalUp"
100744
101355
  ]
101356
+ },
101357
+ "lineStyle": {
101358
+ "type": "string"
101359
+ },
101360
+ "lineWeightPt": {
101361
+ "type": "number",
101362
+ "exclusiveMinimum": 0
101363
+ },
101364
+ "color": {
101365
+ "type": "string",
101366
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
100745
101367
  }
100746
101368
  },
100747
101369
  "additionalProperties": false,
100748
101370
  "required": [
100749
- "edge"
101371
+ "edge",
101372
+ "lineStyle",
101373
+ "lineWeightPt",
101374
+ "color"
100750
101375
  ],
100751
101376
  "oneOf": [
100752
101377
  {
@@ -100878,16 +101503,16 @@ export const CONTRACT = {
100878
101503
  ]
100879
101504
  }
100880
101505
  },
100881
- "doc.tables.applyBorderPreset": {
100882
- "operationId": "doc.tables.applyBorderPreset",
101506
+ "doc.tables.clearBorder": {
101507
+ "operationId": "doc.tables.clearBorder",
100883
101508
  "sdkSurface": "document",
100884
- "command": "tables apply-border-preset",
101509
+ "command": "tables clear-border",
100885
101510
  "commandTokens": [
100886
101511
  "tables",
100887
- "apply-border-preset"
101512
+ "clear-border"
100888
101513
  ],
100889
101514
  "category": "tables",
100890
- "description": "Apply a border preset (e.g. all borders, outside only) to a table.",
101515
+ "description": "Remove border formatting from a table or cell range.",
100891
101516
  "requiresDocumentContext": true,
100892
101517
  "docRequirement": "optional",
100893
101518
  "responseEnvelopeKey": "result",
@@ -100956,7 +101581,14 @@ export const CONTRACT = {
100956
101581
  "const": "block"
100957
101582
  },
100958
101583
  "nodeType": {
100959
- "const": "table"
101584
+ "oneOf": [
101585
+ {
101586
+ "const": "table"
101587
+ },
101588
+ {
101589
+ "const": "tableCell"
101590
+ }
101591
+ ]
100960
101592
  },
100961
101593
  "nodeId": {
100962
101594
  "type": "string"
@@ -100976,26 +101608,35 @@ export const CONTRACT = {
100976
101608
  "flag": "node-id"
100977
101609
  },
100978
101610
  {
100979
- "name": "preset",
101611
+ "name": "edge",
100980
101612
  "kind": "flag",
100981
101613
  "type": "string",
100982
101614
  "required": true,
100983
101615
  "schema": {
100984
101616
  "oneOf": [
100985
101617
  {
100986
- "const": "box"
101618
+ "const": "top"
100987
101619
  },
100988
101620
  {
100989
- "const": "all"
101621
+ "const": "bottom"
100990
101622
  },
100991
101623
  {
100992
- "const": "none"
101624
+ "const": "left"
100993
101625
  },
100994
101626
  {
100995
- "const": "grid"
101627
+ "const": "right"
100996
101628
  },
100997
101629
  {
100998
- "const": "custom"
101630
+ "const": "insideH"
101631
+ },
101632
+ {
101633
+ "const": "insideV"
101634
+ },
101635
+ {
101636
+ "const": "diagonalDown"
101637
+ },
101638
+ {
101639
+ "const": "diagonalUp"
100999
101640
  }
101000
101641
  ]
101001
101642
  }
@@ -101003,31 +101644,34 @@ export const CONTRACT = {
101003
101644
  ],
101004
101645
  "constraints": null,
101005
101646
  "mutates": true,
101006
- "idempotency": "idempotent",
101647
+ "idempotency": "conditional",
101007
101648
  "supportsTrackedMode": false,
101008
101649
  "supportsDryRun": true,
101009
101650
  "inputSchema": {
101010
101651
  "type": "object",
101011
101652
  "properties": {
101012
101653
  "target": {
101013
- "$ref": "#/$defs/TableAddress"
101654
+ "$ref": "#/$defs/TableOrCellAddress"
101014
101655
  },
101015
101656
  "nodeId": {
101016
101657
  "type": "string"
101017
101658
  },
101018
- "preset": {
101659
+ "edge": {
101019
101660
  "enum": [
101020
- "box",
101021
- "all",
101022
- "none",
101023
- "grid",
101024
- "custom"
101661
+ "top",
101662
+ "bottom",
101663
+ "left",
101664
+ "right",
101665
+ "insideH",
101666
+ "insideV",
101667
+ "diagonalDown",
101668
+ "diagonalUp"
101025
101669
  ]
101026
101670
  }
101027
101671
  },
101028
101672
  "additionalProperties": false,
101029
101673
  "required": [
101030
- "preset"
101674
+ "edge"
101031
101675
  ],
101032
101676
  "oneOf": [
101033
101677
  {
@@ -101159,16 +101803,16 @@ export const CONTRACT = {
101159
101803
  ]
101160
101804
  }
101161
101805
  },
101162
- "doc.tables.setShading": {
101163
- "operationId": "doc.tables.setShading",
101806
+ "doc.tables.applyBorderPreset": {
101807
+ "operationId": "doc.tables.applyBorderPreset",
101164
101808
  "sdkSurface": "document",
101165
- "command": "tables set-shading",
101809
+ "command": "tables apply-border-preset",
101166
101810
  "commandTokens": [
101167
101811
  "tables",
101168
- "set-shading"
101812
+ "apply-border-preset"
101169
101813
  ],
101170
101814
  "category": "tables",
101171
- "description": "Set the background shading color on a table or cell range.",
101815
+ "description": "Apply a border preset (e.g. all borders, outside only) to a table.",
101172
101816
  "requiresDocumentContext": true,
101173
101817
  "docRequirement": "optional",
101174
101818
  "responseEnvelopeKey": "result",
@@ -101237,14 +101881,7 @@ export const CONTRACT = {
101237
101881
  "const": "block"
101238
101882
  },
101239
101883
  "nodeType": {
101240
- "oneOf": [
101241
- {
101242
- "const": "table"
101243
- },
101244
- {
101245
- "const": "tableCell"
101246
- }
101247
- ]
101884
+ "const": "table"
101248
101885
  },
101249
101886
  "nodeId": {
101250
101887
  "type": "string"
@@ -101264,10 +101901,29 @@ export const CONTRACT = {
101264
101901
  "flag": "node-id"
101265
101902
  },
101266
101903
  {
101267
- "name": "color",
101904
+ "name": "preset",
101268
101905
  "kind": "flag",
101269
101906
  "type": "string",
101270
- "required": true
101907
+ "required": true,
101908
+ "schema": {
101909
+ "oneOf": [
101910
+ {
101911
+ "const": "box"
101912
+ },
101913
+ {
101914
+ "const": "all"
101915
+ },
101916
+ {
101917
+ "const": "none"
101918
+ },
101919
+ {
101920
+ "const": "grid"
101921
+ },
101922
+ {
101923
+ "const": "custom"
101924
+ }
101925
+ ]
101926
+ }
101271
101927
  }
101272
101928
  ],
101273
101929
  "constraints": null,
@@ -101279,19 +101935,24 @@ export const CONTRACT = {
101279
101935
  "type": "object",
101280
101936
  "properties": {
101281
101937
  "target": {
101282
- "$ref": "#/$defs/TableOrCellAddress"
101938
+ "$ref": "#/$defs/TableAddress"
101283
101939
  },
101284
101940
  "nodeId": {
101285
101941
  "type": "string"
101286
101942
  },
101287
- "color": {
101288
- "type": "string",
101289
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
101943
+ "preset": {
101944
+ "enum": [
101945
+ "box",
101946
+ "all",
101947
+ "none",
101948
+ "grid",
101949
+ "custom"
101950
+ ]
101290
101951
  }
101291
101952
  },
101292
101953
  "additionalProperties": false,
101293
101954
  "required": [
101294
- "color"
101955
+ "preset"
101295
101956
  ],
101296
101957
  "oneOf": [
101297
101958
  {
@@ -101423,16 +102084,16 @@ export const CONTRACT = {
101423
102084
  ]
101424
102085
  }
101425
102086
  },
101426
- "doc.tables.clearShading": {
101427
- "operationId": "doc.tables.clearShading",
102087
+ "doc.tables.setShading": {
102088
+ "operationId": "doc.tables.setShading",
101428
102089
  "sdkSurface": "document",
101429
- "command": "tables clear-shading",
102090
+ "command": "tables set-shading",
101430
102091
  "commandTokens": [
101431
102092
  "tables",
101432
- "clear-shading"
102093
+ "set-shading"
101433
102094
  ],
101434
102095
  "category": "tables",
101435
- "description": "Remove shading from a table or cell range.",
102096
+ "description": "Set the background shading color on a table or cell range.",
101436
102097
  "requiresDocumentContext": true,
101437
102098
  "docRequirement": "optional",
101438
102099
  "responseEnvelopeKey": "result",
@@ -101526,11 +102187,28 @@ export const CONTRACT = {
101526
102187
  "kind": "flag",
101527
102188
  "type": "string",
101528
102189
  "flag": "node-id"
102190
+ },
102191
+ {
102192
+ "name": "color",
102193
+ "kind": "jsonFlag",
102194
+ "type": "json",
102195
+ "flag": "color-json",
102196
+ "required": true,
102197
+ "schema": {
102198
+ "oneOf": [
102199
+ {
102200
+ "type": "string"
102201
+ },
102202
+ {
102203
+ "type": "json"
102204
+ }
102205
+ ]
102206
+ }
101529
102207
  }
101530
102208
  ],
101531
102209
  "constraints": null,
101532
102210
  "mutates": true,
101533
- "idempotency": "conditional",
102211
+ "idempotency": "idempotent",
101534
102212
  "supportsTrackedMode": false,
101535
102213
  "supportsDryRun": true,
101536
102214
  "inputSchema": {
@@ -101541,9 +102219,23 @@ export const CONTRACT = {
101541
102219
  },
101542
102220
  "nodeId": {
101543
102221
  "type": "string"
102222
+ },
102223
+ "color": {
102224
+ "oneOf": [
102225
+ {
102226
+ "type": "string",
102227
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102228
+ },
102229
+ {
102230
+ "type": "null"
102231
+ }
102232
+ ]
101544
102233
  }
101545
102234
  },
101546
102235
  "additionalProperties": false,
102236
+ "required": [
102237
+ "color"
102238
+ ],
101547
102239
  "oneOf": [
101548
102240
  {
101549
102241
  "required": [
@@ -101672,18 +102364,20 @@ export const CONTRACT = {
101672
102364
  "success",
101673
102365
  "failure"
101674
102366
  ]
101675
- }
102367
+ },
102368
+ "intentGroup": "table",
102369
+ "intentAction": "set_shading"
101676
102370
  },
101677
- "doc.tables.setTablePadding": {
101678
- "operationId": "doc.tables.setTablePadding",
102371
+ "doc.tables.clearShading": {
102372
+ "operationId": "doc.tables.clearShading",
101679
102373
  "sdkSurface": "document",
101680
- "command": "tables set-table-padding",
102374
+ "command": "tables clear-shading",
101681
102375
  "commandTokens": [
101682
102376
  "tables",
101683
- "set-table-padding"
102377
+ "clear-shading"
101684
102378
  ],
101685
102379
  "category": "tables",
101686
- "description": "Set default cell padding for the entire table.",
102380
+ "description": "Remove shading from a table or cell range.",
101687
102381
  "requiresDocumentContext": true,
101688
102382
  "docRequirement": "optional",
101689
102383
  "responseEnvelopeKey": "result",
@@ -101752,7 +102446,14 @@ export const CONTRACT = {
101752
102446
  "const": "block"
101753
102447
  },
101754
102448
  "nodeType": {
101755
- "const": "table"
102449
+ "oneOf": [
102450
+ {
102451
+ "const": "table"
102452
+ },
102453
+ {
102454
+ "const": "tableCell"
102455
+ }
102456
+ ]
101756
102457
  },
101757
102458
  "nodeId": {
101758
102459
  "type": "string"
@@ -101770,74 +102471,318 @@ export const CONTRACT = {
101770
102471
  "kind": "flag",
101771
102472
  "type": "string",
101772
102473
  "flag": "node-id"
101773
- },
101774
- {
101775
- "name": "topPt",
101776
- "kind": "flag",
101777
- "type": "number",
101778
- "flag": "top-pt",
101779
- "required": true
101780
- },
101781
- {
101782
- "name": "rightPt",
101783
- "kind": "flag",
101784
- "type": "number",
101785
- "flag": "right-pt",
101786
- "required": true
101787
- },
101788
- {
101789
- "name": "bottomPt",
101790
- "kind": "flag",
101791
- "type": "number",
101792
- "flag": "bottom-pt",
101793
- "required": true
101794
- },
101795
- {
101796
- "name": "leftPt",
101797
- "kind": "flag",
101798
- "type": "number",
101799
- "flag": "left-pt",
101800
- "required": true
101801
102474
  }
101802
102475
  ],
101803
102476
  "constraints": null,
101804
102477
  "mutates": true,
101805
- "idempotency": "idempotent",
102478
+ "idempotency": "conditional",
101806
102479
  "supportsTrackedMode": false,
101807
102480
  "supportsDryRun": true,
101808
102481
  "inputSchema": {
101809
102482
  "type": "object",
101810
102483
  "properties": {
101811
102484
  "target": {
101812
- "$ref": "#/$defs/TableAddress"
102485
+ "$ref": "#/$defs/TableOrCellAddress"
101813
102486
  },
101814
102487
  "nodeId": {
101815
102488
  "type": "string"
101816
- },
101817
- "topPt": {
101818
- "type": "number",
101819
- "minimum": 0
101820
- },
101821
- "rightPt": {
101822
- "type": "number",
101823
- "minimum": 0
101824
- },
101825
- "bottomPt": {
101826
- "type": "number",
101827
- "minimum": 0
101828
- },
101829
- "leftPt": {
101830
- "type": "number",
101831
- "minimum": 0
101832
102489
  }
101833
102490
  },
101834
102491
  "additionalProperties": false,
101835
- "required": [
101836
- "topPt",
101837
- "rightPt",
101838
- "bottomPt",
101839
- "leftPt"
101840
- ],
102492
+ "oneOf": [
102493
+ {
102494
+ "required": [
102495
+ "target"
102496
+ ]
102497
+ },
102498
+ {
102499
+ "required": [
102500
+ "nodeId"
102501
+ ]
102502
+ }
102503
+ ]
102504
+ },
102505
+ "outputSchema": {
102506
+ "oneOf": [
102507
+ {
102508
+ "type": "object",
102509
+ "properties": {
102510
+ "success": {
102511
+ "const": true
102512
+ },
102513
+ "table": {
102514
+ "$ref": "#/$defs/TableAddress"
102515
+ },
102516
+ "trackedChangeRefs": {
102517
+ "type": "array",
102518
+ "items": {
102519
+ "$ref": "#/$defs/EntityAddress"
102520
+ }
102521
+ }
102522
+ },
102523
+ "additionalProperties": false,
102524
+ "required": [
102525
+ "success"
102526
+ ]
102527
+ },
102528
+ {
102529
+ "type": "object",
102530
+ "properties": {
102531
+ "success": {
102532
+ "const": false
102533
+ },
102534
+ "failure": {
102535
+ "type": "object",
102536
+ "properties": {
102537
+ "code": {
102538
+ "enum": [
102539
+ "NO_OP",
102540
+ "INVALID_TARGET",
102541
+ "TARGET_NOT_FOUND",
102542
+ "CAPABILITY_UNAVAILABLE"
102543
+ ]
102544
+ },
102545
+ "message": {
102546
+ "type": "string"
102547
+ },
102548
+ "details": {}
102549
+ },
102550
+ "additionalProperties": false,
102551
+ "required": [
102552
+ "code",
102553
+ "message"
102554
+ ]
102555
+ }
102556
+ },
102557
+ "additionalProperties": false,
102558
+ "required": [
102559
+ "success",
102560
+ "failure"
102561
+ ]
102562
+ }
102563
+ ]
102564
+ },
102565
+ "successSchema": {
102566
+ "type": "object",
102567
+ "properties": {
102568
+ "success": {
102569
+ "const": true
102570
+ },
102571
+ "table": {
102572
+ "$ref": "#/$defs/TableAddress"
102573
+ },
102574
+ "trackedChangeRefs": {
102575
+ "type": "array",
102576
+ "items": {
102577
+ "$ref": "#/$defs/EntityAddress"
102578
+ }
102579
+ }
102580
+ },
102581
+ "additionalProperties": false,
102582
+ "required": [
102583
+ "success"
102584
+ ]
102585
+ },
102586
+ "failureSchema": {
102587
+ "type": "object",
102588
+ "properties": {
102589
+ "success": {
102590
+ "const": false
102591
+ },
102592
+ "failure": {
102593
+ "type": "object",
102594
+ "properties": {
102595
+ "code": {
102596
+ "enum": [
102597
+ "NO_OP",
102598
+ "INVALID_TARGET",
102599
+ "TARGET_NOT_FOUND",
102600
+ "CAPABILITY_UNAVAILABLE"
102601
+ ]
102602
+ },
102603
+ "message": {
102604
+ "type": "string"
102605
+ },
102606
+ "details": {}
102607
+ },
102608
+ "additionalProperties": false,
102609
+ "required": [
102610
+ "code",
102611
+ "message"
102612
+ ]
102613
+ }
102614
+ },
102615
+ "additionalProperties": false,
102616
+ "required": [
102617
+ "success",
102618
+ "failure"
102619
+ ]
102620
+ }
102621
+ },
102622
+ "doc.tables.setTablePadding": {
102623
+ "operationId": "doc.tables.setTablePadding",
102624
+ "sdkSurface": "document",
102625
+ "command": "tables set-table-padding",
102626
+ "commandTokens": [
102627
+ "tables",
102628
+ "set-table-padding"
102629
+ ],
102630
+ "category": "tables",
102631
+ "description": "Set default cell padding for the entire table.",
102632
+ "requiresDocumentContext": true,
102633
+ "docRequirement": "optional",
102634
+ "responseEnvelopeKey": "result",
102635
+ "params": [
102636
+ {
102637
+ "name": "doc",
102638
+ "kind": "doc",
102639
+ "type": "string",
102640
+ "description": "Document path. Optional when a session is already open."
102641
+ },
102642
+ {
102643
+ "name": "sessionId",
102644
+ "kind": "flag",
102645
+ "type": "string",
102646
+ "flag": "session",
102647
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
102648
+ },
102649
+ {
102650
+ "name": "out",
102651
+ "kind": "flag",
102652
+ "type": "string",
102653
+ "agentVisible": false
102654
+ },
102655
+ {
102656
+ "name": "force",
102657
+ "kind": "flag",
102658
+ "type": "boolean",
102659
+ "description": "Bypass confirmation checks."
102660
+ },
102661
+ {
102662
+ "name": "expectedRevision",
102663
+ "kind": "flag",
102664
+ "type": "number",
102665
+ "flag": "expected-revision",
102666
+ "agentVisible": false
102667
+ },
102668
+ {
102669
+ "name": "changeMode",
102670
+ "kind": "flag",
102671
+ "type": "string",
102672
+ "flag": "change-mode",
102673
+ "schema": {
102674
+ "enum": [
102675
+ "direct",
102676
+ "tracked"
102677
+ ]
102678
+ },
102679
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
102680
+ },
102681
+ {
102682
+ "name": "dryRun",
102683
+ "kind": "flag",
102684
+ "type": "boolean",
102685
+ "flag": "dry-run",
102686
+ "description": "Preview the result without applying changes."
102687
+ },
102688
+ {
102689
+ "name": "target",
102690
+ "kind": "jsonFlag",
102691
+ "type": "json",
102692
+ "flag": "target-json",
102693
+ "schema": {
102694
+ "type": "object",
102695
+ "properties": {
102696
+ "kind": {
102697
+ "const": "block"
102698
+ },
102699
+ "nodeType": {
102700
+ "const": "table"
102701
+ },
102702
+ "nodeId": {
102703
+ "type": "string"
102704
+ }
102705
+ },
102706
+ "required": [
102707
+ "kind",
102708
+ "nodeType",
102709
+ "nodeId"
102710
+ ]
102711
+ }
102712
+ },
102713
+ {
102714
+ "name": "nodeId",
102715
+ "kind": "flag",
102716
+ "type": "string",
102717
+ "flag": "node-id"
102718
+ },
102719
+ {
102720
+ "name": "topPt",
102721
+ "kind": "flag",
102722
+ "type": "number",
102723
+ "flag": "top-pt",
102724
+ "required": true
102725
+ },
102726
+ {
102727
+ "name": "rightPt",
102728
+ "kind": "flag",
102729
+ "type": "number",
102730
+ "flag": "right-pt",
102731
+ "required": true
102732
+ },
102733
+ {
102734
+ "name": "bottomPt",
102735
+ "kind": "flag",
102736
+ "type": "number",
102737
+ "flag": "bottom-pt",
102738
+ "required": true
102739
+ },
102740
+ {
102741
+ "name": "leftPt",
102742
+ "kind": "flag",
102743
+ "type": "number",
102744
+ "flag": "left-pt",
102745
+ "required": true
102746
+ }
102747
+ ],
102748
+ "constraints": null,
102749
+ "mutates": true,
102750
+ "idempotency": "idempotent",
102751
+ "supportsTrackedMode": false,
102752
+ "supportsDryRun": true,
102753
+ "inputSchema": {
102754
+ "type": "object",
102755
+ "properties": {
102756
+ "target": {
102757
+ "$ref": "#/$defs/TableAddress"
102758
+ },
102759
+ "nodeId": {
102760
+ "type": "string"
102761
+ },
102762
+ "topPt": {
102763
+ "type": "number",
102764
+ "minimum": 0
102765
+ },
102766
+ "rightPt": {
102767
+ "type": "number",
102768
+ "minimum": 0
102769
+ },
102770
+ "bottomPt": {
102771
+ "type": "number",
102772
+ "minimum": 0
102773
+ },
102774
+ "leftPt": {
102775
+ "type": "number",
102776
+ "minimum": 0
102777
+ }
102778
+ },
102779
+ "additionalProperties": false,
102780
+ "required": [
102781
+ "topPt",
102782
+ "rightPt",
102783
+ "bottomPt",
102784
+ "leftPt"
102785
+ ],
101841
102786
  "oneOf": [
101842
102787
  {
101843
102788
  "required": [
@@ -102773,7 +103718,7 @@ export const CONTRACT = {
102773
103718
  "apply-style"
102774
103719
  ],
102775
103720
  "category": "tables",
102776
- "description": "Apply a table style and/or style options in one call.",
103721
+ "description": "Toggle conditional-format flags (header row, banded rows/columns, first/last column, last row) on a table. Pass `styleOptions` with the flags you want to set or clear (omitted flags stay unchanged). For \"format the first row as a header\" use `styleOptions: { headerRow: true }`. Optional `styleId` applies a named table style. Leave it unset unless you have a styleId from `superdoc_get_content` (no need to invent one).",
102777
103722
  "requiresDocumentContext": true,
102778
103723
  "docRequirement": "optional",
102779
103724
  "responseEnvelopeKey": null,
@@ -103102,7 +104047,9 @@ export const CONTRACT = {
103102
104047
  "success",
103103
104048
  "failure"
103104
104049
  ]
103105
- }
104050
+ },
104051
+ "intentGroup": "table",
104052
+ "intentAction": "set_style_options"
103106
104053
  },
103107
104054
  "doc.tables.setBorders": {
103108
104055
  "operationId": "doc.tables.setBorders",
@@ -103528,7 +104475,7 @@ export const CONTRACT = {
103528
104475
  },
103529
104476
  "color": {
103530
104477
  "type": "string",
103531
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104478
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103532
104479
  }
103533
104480
  },
103534
104481
  "additionalProperties": false,
@@ -103592,7 +104539,7 @@ export const CONTRACT = {
103592
104539
  },
103593
104540
  "color": {
103594
104541
  "type": "string",
103595
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104542
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103596
104543
  }
103597
104544
  },
103598
104545
  "additionalProperties": false,
@@ -103621,7 +104568,7 @@ export const CONTRACT = {
103621
104568
  },
103622
104569
  "color": {
103623
104570
  "type": "string",
103624
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104571
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103625
104572
  }
103626
104573
  },
103627
104574
  "additionalProperties": false,
@@ -103650,7 +104597,7 @@ export const CONTRACT = {
103650
104597
  },
103651
104598
  "color": {
103652
104599
  "type": "string",
103653
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104600
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103654
104601
  }
103655
104602
  },
103656
104603
  "additionalProperties": false,
@@ -103679,7 +104626,7 @@ export const CONTRACT = {
103679
104626
  },
103680
104627
  "color": {
103681
104628
  "type": "string",
103682
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104629
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103683
104630
  }
103684
104631
  },
103685
104632
  "additionalProperties": false,
@@ -103708,7 +104655,7 @@ export const CONTRACT = {
103708
104655
  },
103709
104656
  "color": {
103710
104657
  "type": "string",
103711
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104658
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103712
104659
  }
103713
104660
  },
103714
104661
  "additionalProperties": false,
@@ -103737,7 +104684,7 @@ export const CONTRACT = {
103737
104684
  },
103738
104685
  "color": {
103739
104686
  "type": "string",
103740
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104687
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103741
104688
  }
103742
104689
  },
103743
104690
  "additionalProperties": false,
@@ -103891,7 +104838,9 @@ export const CONTRACT = {
103891
104838
  "success",
103892
104839
  "failure"
103893
104840
  ]
103894
- }
104841
+ },
104842
+ "intentGroup": "table",
104843
+ "intentAction": "set_borders"
103895
104844
  },
103896
104845
  "doc.tables.setTableOptions": {
103897
104846
  "operationId": "doc.tables.setTableOptions",
@@ -104247,21 +105196,23 @@ export const CONTRACT = {
104247
105196
  "success",
104248
105197
  "failure"
104249
105198
  ]
104250
- }
105199
+ },
105200
+ "intentGroup": "table",
105201
+ "intentAction": "set_options"
104251
105202
  },
104252
- "doc.tables.get": {
104253
- "operationId": "doc.tables.get",
105203
+ "doc.tables.applyPreset": {
105204
+ "operationId": "doc.tables.applyPreset",
104254
105205
  "sdkSurface": "document",
104255
- "command": "tables get",
105206
+ "command": "tables apply-preset",
104256
105207
  "commandTokens": [
104257
105208
  "tables",
104258
- "get"
105209
+ "apply-preset"
104259
105210
  ],
104260
105211
  "category": "tables",
104261
- "description": "Retrieve table structure and dimensions by locator.",
105212
+ "description": "Apply a named visual preset to a table. Presets: \"grid\" (1pt black borders all around), \"minimal\" (no outer borders, hairline grey row separators + thicker bottom), \"striped\" (banded rows on, 0.5pt grey borders), \"accent\" (filled header row + thick accent top/bottom; defaults to dark blue, override with `accentColor`). Composes set_borders + set_style_options + header-row shading in one call. Available via the document API and `superdoc_mutations` (intentionally NOT exposed as a top-level action on `superdoc_table`. Agents should compose explicit set_borders / set_shading / set_style_options calls so they always pick concrete colors that match the document context).",
104262
105213
  "requiresDocumentContext": true,
104263
105214
  "docRequirement": "optional",
104264
- "responseEnvelopeKey": "result",
105215
+ "responseEnvelopeKey": null,
104265
105216
  "params": [
104266
105217
  {
104267
105218
  "name": "doc",
@@ -104276,6 +105227,45 @@ export const CONTRACT = {
104276
105227
  "flag": "session",
104277
105228
  "description": "Session ID for multi-session workflows. Optional when only one session is open."
104278
105229
  },
105230
+ {
105231
+ "name": "out",
105232
+ "kind": "flag",
105233
+ "type": "string",
105234
+ "agentVisible": false
105235
+ },
105236
+ {
105237
+ "name": "force",
105238
+ "kind": "flag",
105239
+ "type": "boolean",
105240
+ "description": "Bypass confirmation checks."
105241
+ },
105242
+ {
105243
+ "name": "expectedRevision",
105244
+ "kind": "flag",
105245
+ "type": "number",
105246
+ "flag": "expected-revision",
105247
+ "agentVisible": false
105248
+ },
105249
+ {
105250
+ "name": "changeMode",
105251
+ "kind": "flag",
105252
+ "type": "string",
105253
+ "flag": "change-mode",
105254
+ "schema": {
105255
+ "enum": [
105256
+ "direct",
105257
+ "tracked"
105258
+ ]
105259
+ },
105260
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
105261
+ },
105262
+ {
105263
+ "name": "dryRun",
105264
+ "kind": "flag",
105265
+ "type": "boolean",
105266
+ "flag": "dry-run",
105267
+ "description": "Preview the result without applying changes."
105268
+ },
104279
105269
  {
104280
105270
  "name": "target",
104281
105271
  "kind": "jsonFlag",
@@ -104306,13 +105296,41 @@ export const CONTRACT = {
104306
105296
  "kind": "flag",
104307
105297
  "type": "string",
104308
105298
  "flag": "node-id"
105299
+ },
105300
+ {
105301
+ "name": "preset",
105302
+ "kind": "flag",
105303
+ "type": "string",
105304
+ "required": true,
105305
+ "schema": {
105306
+ "oneOf": [
105307
+ {
105308
+ "const": "grid"
105309
+ },
105310
+ {
105311
+ "const": "minimal"
105312
+ },
105313
+ {
105314
+ "const": "striped"
105315
+ },
105316
+ {
105317
+ "const": "accent"
105318
+ }
105319
+ ]
105320
+ }
105321
+ },
105322
+ {
105323
+ "name": "accentColor",
105324
+ "kind": "flag",
105325
+ "type": "string",
105326
+ "flag": "accent-color"
104309
105327
  }
104310
105328
  ],
104311
105329
  "constraints": null,
104312
- "mutates": false,
105330
+ "mutates": true,
104313
105331
  "idempotency": "idempotent",
104314
105332
  "supportsTrackedMode": false,
104315
- "supportsDryRun": false,
105333
+ "supportsDryRun": true,
104316
105334
  "inputSchema": {
104317
105335
  "type": "object",
104318
105336
  "properties": {
@@ -104321,9 +105339,24 @@ export const CONTRACT = {
104321
105339
  },
104322
105340
  "nodeId": {
104323
105341
  "type": "string"
105342
+ },
105343
+ "preset": {
105344
+ "enum": [
105345
+ "grid",
105346
+ "minimal",
105347
+ "striped",
105348
+ "accent"
105349
+ ]
105350
+ },
105351
+ "accentColor": {
105352
+ "type": "string",
105353
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
104324
105354
  }
104325
105355
  },
104326
105356
  "additionalProperties": false,
105357
+ "required": [
105358
+ "preset"
105359
+ ],
104327
105360
  "oneOf": [
104328
105361
  {
104329
105362
  "required": [
@@ -104338,42 +105371,132 @@ export const CONTRACT = {
104338
105371
  ]
104339
105372
  },
104340
105373
  "outputSchema": {
105374
+ "oneOf": [
105375
+ {
105376
+ "type": "object",
105377
+ "properties": {
105378
+ "success": {
105379
+ "const": true
105380
+ },
105381
+ "table": {
105382
+ "$ref": "#/$defs/TableAddress"
105383
+ },
105384
+ "trackedChangeRefs": {
105385
+ "type": "array",
105386
+ "items": {
105387
+ "$ref": "#/$defs/EntityAddress"
105388
+ }
105389
+ }
105390
+ },
105391
+ "additionalProperties": false,
105392
+ "required": [
105393
+ "success"
105394
+ ]
105395
+ },
105396
+ {
105397
+ "type": "object",
105398
+ "properties": {
105399
+ "success": {
105400
+ "const": false
105401
+ },
105402
+ "failure": {
105403
+ "type": "object",
105404
+ "properties": {
105405
+ "code": {
105406
+ "enum": [
105407
+ "NO_OP",
105408
+ "INVALID_TARGET",
105409
+ "TARGET_NOT_FOUND",
105410
+ "CAPABILITY_UNAVAILABLE"
105411
+ ]
105412
+ },
105413
+ "message": {
105414
+ "type": "string"
105415
+ },
105416
+ "details": {}
105417
+ },
105418
+ "additionalProperties": false,
105419
+ "required": [
105420
+ "code",
105421
+ "message"
105422
+ ]
105423
+ }
105424
+ },
105425
+ "additionalProperties": false,
105426
+ "required": [
105427
+ "success",
105428
+ "failure"
105429
+ ]
105430
+ }
105431
+ ]
105432
+ },
105433
+ "successSchema": {
104341
105434
  "type": "object",
104342
105435
  "properties": {
104343
- "nodeId": {
104344
- "type": "string"
105436
+ "success": {
105437
+ "const": true
104345
105438
  },
104346
- "address": {
105439
+ "table": {
104347
105440
  "$ref": "#/$defs/TableAddress"
104348
105441
  },
104349
- "rows": {
104350
- "type": "integer",
104351
- "minimum": 0
105442
+ "trackedChangeRefs": {
105443
+ "type": "array",
105444
+ "items": {
105445
+ "$ref": "#/$defs/EntityAddress"
105446
+ }
105447
+ }
105448
+ },
105449
+ "additionalProperties": false,
105450
+ "required": [
105451
+ "success"
105452
+ ]
105453
+ },
105454
+ "failureSchema": {
105455
+ "type": "object",
105456
+ "properties": {
105457
+ "success": {
105458
+ "const": false
104352
105459
  },
104353
- "columns": {
104354
- "type": "integer",
104355
- "minimum": 0
105460
+ "failure": {
105461
+ "type": "object",
105462
+ "properties": {
105463
+ "code": {
105464
+ "enum": [
105465
+ "NO_OP",
105466
+ "INVALID_TARGET",
105467
+ "TARGET_NOT_FOUND",
105468
+ "CAPABILITY_UNAVAILABLE"
105469
+ ]
105470
+ },
105471
+ "message": {
105472
+ "type": "string"
105473
+ },
105474
+ "details": {}
105475
+ },
105476
+ "additionalProperties": false,
105477
+ "required": [
105478
+ "code",
105479
+ "message"
105480
+ ]
104356
105481
  }
104357
105482
  },
104358
105483
  "additionalProperties": false,
104359
105484
  "required": [
104360
- "nodeId",
104361
- "address",
104362
- "rows",
104363
- "columns"
105485
+ "success",
105486
+ "failure"
104364
105487
  ]
104365
105488
  }
104366
105489
  },
104367
- "doc.tables.getCells": {
104368
- "operationId": "doc.tables.getCells",
105490
+ "doc.tables.get": {
105491
+ "operationId": "doc.tables.get",
104369
105492
  "sdkSurface": "document",
104370
- "command": "tables get-cells",
105493
+ "command": "tables get",
104371
105494
  "commandTokens": [
104372
105495
  "tables",
104373
- "get-cells"
105496
+ "get"
104374
105497
  ],
104375
105498
  "category": "tables",
104376
- "description": "Retrieve cell information for a table, optionally filtered by row or column.",
105499
+ "description": "Retrieve table structure and dimensions by locator.",
104377
105500
  "requiresDocumentContext": true,
104378
105501
  "docRequirement": "optional",
104379
105502
  "responseEnvelopeKey": "result",
@@ -104421,18 +105544,6 @@ export const CONTRACT = {
104421
105544
  "kind": "flag",
104422
105545
  "type": "string",
104423
105546
  "flag": "node-id"
104424
- },
104425
- {
104426
- "name": "rowIndex",
104427
- "kind": "flag",
104428
- "type": "number",
104429
- "flag": "row-index"
104430
- },
104431
- {
104432
- "name": "columnIndex",
104433
- "kind": "flag",
104434
- "type": "number",
104435
- "flag": "column-index"
104436
105547
  }
104437
105548
  ],
104438
105549
  "constraints": null,
@@ -104448,14 +105559,6 @@ export const CONTRACT = {
104448
105559
  },
104449
105560
  "nodeId": {
104450
105561
  "type": "string"
104451
- },
104452
- "rowIndex": {
104453
- "type": "integer",
104454
- "minimum": 0
104455
- },
104456
- "columnIndex": {
104457
- "type": "integer",
104458
- "minimum": 0
104459
105562
  }
104460
105563
  },
104461
105564
  "additionalProperties": false,
@@ -104481,64 +105584,199 @@ export const CONTRACT = {
104481
105584
  "address": {
104482
105585
  "$ref": "#/$defs/TableAddress"
104483
105586
  },
104484
- "cells": {
104485
- "type": "array",
104486
- "items": {
104487
- "type": "object",
104488
- "properties": {
104489
- "nodeId": {
104490
- "type": "string"
104491
- },
104492
- "address": {
104493
- "$ref": "#/$defs/TableCellAddress"
104494
- },
104495
- "rowIndex": {
104496
- "type": "integer",
104497
- "minimum": 0
104498
- },
104499
- "columnIndex": {
104500
- "type": "integer",
104501
- "minimum": 0
104502
- },
104503
- "colspan": {
104504
- "type": "integer",
104505
- "minimum": 1
104506
- },
104507
- "rowspan": {
104508
- "type": "integer",
104509
- "minimum": 1
104510
- }
104511
- },
104512
- "additionalProperties": false,
104513
- "required": [
104514
- "nodeId",
104515
- "address",
104516
- "rowIndex",
104517
- "columnIndex",
104518
- "colspan",
104519
- "rowspan"
104520
- ]
104521
- }
105587
+ "rows": {
105588
+ "type": "integer",
105589
+ "minimum": 0
105590
+ },
105591
+ "columns": {
105592
+ "type": "integer",
105593
+ "minimum": 0
104522
105594
  }
104523
105595
  },
104524
105596
  "additionalProperties": false,
104525
105597
  "required": [
104526
105598
  "nodeId",
104527
105599
  "address",
104528
- "cells"
105600
+ "rows",
105601
+ "columns"
104529
105602
  ]
104530
105603
  }
104531
105604
  },
104532
- "doc.tables.getProperties": {
104533
- "operationId": "doc.tables.getProperties",
105605
+ "doc.tables.getCells": {
105606
+ "operationId": "doc.tables.getCells",
104534
105607
  "sdkSurface": "document",
104535
- "command": "tables get-properties",
105608
+ "command": "tables get-cells",
104536
105609
  "commandTokens": [
104537
105610
  "tables",
104538
- "get-properties"
105611
+ "get-cells"
104539
105612
  ],
104540
105613
  "category": "tables",
104541
- "description": "Retrieve layout and style properties of a table.",
105614
+ "description": "Retrieve cell information for a table, optionally filtered by row or column.",
105615
+ "requiresDocumentContext": true,
105616
+ "docRequirement": "optional",
105617
+ "responseEnvelopeKey": "result",
105618
+ "params": [
105619
+ {
105620
+ "name": "doc",
105621
+ "kind": "doc",
105622
+ "type": "string",
105623
+ "description": "Document path. Optional when a session is already open."
105624
+ },
105625
+ {
105626
+ "name": "sessionId",
105627
+ "kind": "flag",
105628
+ "type": "string",
105629
+ "flag": "session",
105630
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
105631
+ },
105632
+ {
105633
+ "name": "target",
105634
+ "kind": "jsonFlag",
105635
+ "type": "json",
105636
+ "flag": "target-json",
105637
+ "schema": {
105638
+ "type": "object",
105639
+ "properties": {
105640
+ "kind": {
105641
+ "const": "block"
105642
+ },
105643
+ "nodeType": {
105644
+ "const": "table"
105645
+ },
105646
+ "nodeId": {
105647
+ "type": "string"
105648
+ }
105649
+ },
105650
+ "required": [
105651
+ "kind",
105652
+ "nodeType",
105653
+ "nodeId"
105654
+ ]
105655
+ }
105656
+ },
105657
+ {
105658
+ "name": "nodeId",
105659
+ "kind": "flag",
105660
+ "type": "string",
105661
+ "flag": "node-id"
105662
+ },
105663
+ {
105664
+ "name": "rowIndex",
105665
+ "kind": "flag",
105666
+ "type": "number",
105667
+ "flag": "row-index"
105668
+ },
105669
+ {
105670
+ "name": "columnIndex",
105671
+ "kind": "flag",
105672
+ "type": "number",
105673
+ "flag": "column-index"
105674
+ }
105675
+ ],
105676
+ "constraints": null,
105677
+ "mutates": false,
105678
+ "idempotency": "idempotent",
105679
+ "supportsTrackedMode": false,
105680
+ "supportsDryRun": false,
105681
+ "inputSchema": {
105682
+ "type": "object",
105683
+ "properties": {
105684
+ "target": {
105685
+ "$ref": "#/$defs/TableAddress"
105686
+ },
105687
+ "nodeId": {
105688
+ "type": "string"
105689
+ },
105690
+ "rowIndex": {
105691
+ "type": "integer",
105692
+ "minimum": 0
105693
+ },
105694
+ "columnIndex": {
105695
+ "type": "integer",
105696
+ "minimum": 0
105697
+ }
105698
+ },
105699
+ "additionalProperties": false,
105700
+ "oneOf": [
105701
+ {
105702
+ "required": [
105703
+ "target"
105704
+ ]
105705
+ },
105706
+ {
105707
+ "required": [
105708
+ "nodeId"
105709
+ ]
105710
+ }
105711
+ ]
105712
+ },
105713
+ "outputSchema": {
105714
+ "type": "object",
105715
+ "properties": {
105716
+ "nodeId": {
105717
+ "type": "string"
105718
+ },
105719
+ "address": {
105720
+ "$ref": "#/$defs/TableAddress"
105721
+ },
105722
+ "cells": {
105723
+ "type": "array",
105724
+ "items": {
105725
+ "type": "object",
105726
+ "properties": {
105727
+ "nodeId": {
105728
+ "type": "string"
105729
+ },
105730
+ "address": {
105731
+ "$ref": "#/$defs/TableCellAddress"
105732
+ },
105733
+ "rowIndex": {
105734
+ "type": "integer",
105735
+ "minimum": 0
105736
+ },
105737
+ "columnIndex": {
105738
+ "type": "integer",
105739
+ "minimum": 0
105740
+ },
105741
+ "colspan": {
105742
+ "type": "integer",
105743
+ "minimum": 1
105744
+ },
105745
+ "rowspan": {
105746
+ "type": "integer",
105747
+ "minimum": 1
105748
+ }
105749
+ },
105750
+ "additionalProperties": false,
105751
+ "required": [
105752
+ "nodeId",
105753
+ "address",
105754
+ "rowIndex",
105755
+ "columnIndex",
105756
+ "colspan",
105757
+ "rowspan"
105758
+ ]
105759
+ }
105760
+ }
105761
+ },
105762
+ "additionalProperties": false,
105763
+ "required": [
105764
+ "nodeId",
105765
+ "address",
105766
+ "cells"
105767
+ ]
105768
+ }
105769
+ },
105770
+ "doc.tables.getProperties": {
105771
+ "operationId": "doc.tables.getProperties",
105772
+ "sdkSurface": "document",
105773
+ "command": "tables get-properties",
105774
+ "commandTokens": [
105775
+ "tables",
105776
+ "get-properties"
105777
+ ],
105778
+ "category": "tables",
105779
+ "description": "Retrieve layout and style properties of a table.",
104542
105780
  "requiresDocumentContext": true,
104543
105781
  "docRequirement": "optional",
104544
105782
  "responseEnvelopeKey": "result",
@@ -104693,7 +105931,7 @@ export const CONTRACT = {
104693
105931
  },
104694
105932
  "color": {
104695
105933
  "type": "string",
104696
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
105934
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
104697
105935
  }
104698
105936
  },
104699
105937
  "additionalProperties": false,
@@ -104722,7 +105960,7 @@ export const CONTRACT = {
104722
105960
  },
104723
105961
  "color": {
104724
105962
  "type": "string",
104725
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
105963
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
104726
105964
  }
104727
105965
  },
104728
105966
  "additionalProperties": false,
@@ -104751,7 +105989,7 @@ export const CONTRACT = {
104751
105989
  },
104752
105990
  "color": {
104753
105991
  "type": "string",
104754
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
105992
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
104755
105993
  }
104756
105994
  },
104757
105995
  "additionalProperties": false,
@@ -104780,7 +106018,7 @@ export const CONTRACT = {
104780
106018
  },
104781
106019
  "color": {
104782
106020
  "type": "string",
104783
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
106021
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
104784
106022
  }
104785
106023
  },
104786
106024
  "additionalProperties": false,
@@ -104809,7 +106047,7 @@ export const CONTRACT = {
104809
106047
  },
104810
106048
  "color": {
104811
106049
  "type": "string",
104812
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
106050
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
104813
106051
  }
104814
106052
  },
104815
106053
  "additionalProperties": false,
@@ -104838,7 +106076,7 @@ export const CONTRACT = {
104838
106076
  },
104839
106077
  "color": {
104840
106078
  "type": "string",
104841
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
106079
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
104842
106080
  }
104843
106081
  },
104844
106082
  "additionalProperties": false,
@@ -151808,6 +153046,1075 @@ export const CONTRACT = {
151808
153046
  },
151809
153047
  "skipAsATool": true
151810
153048
  },
153049
+ "doc.customXml.parts.list": {
153050
+ "operationId": "doc.customXml.parts.list",
153051
+ "sdkSurface": "document",
153052
+ "command": "custom-xml parts list",
153053
+ "commandTokens": [
153054
+ "custom-xml",
153055
+ "parts",
153056
+ "list"
153057
+ ],
153058
+ "category": "core",
153059
+ "description": "List Custom XML Data Storage Parts in the document, optionally filtered by root namespace or schema reference.",
153060
+ "requiresDocumentContext": true,
153061
+ "docRequirement": "optional",
153062
+ "responseEnvelopeKey": null,
153063
+ "params": [
153064
+ {
153065
+ "name": "doc",
153066
+ "kind": "doc",
153067
+ "type": "string",
153068
+ "description": "Document path. Optional when a session is already open."
153069
+ },
153070
+ {
153071
+ "name": "sessionId",
153072
+ "kind": "flag",
153073
+ "type": "string",
153074
+ "flag": "session",
153075
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
153076
+ },
153077
+ {
153078
+ "name": "limit",
153079
+ "kind": "flag",
153080
+ "type": "number"
153081
+ },
153082
+ {
153083
+ "name": "offset",
153084
+ "kind": "flag",
153085
+ "type": "number"
153086
+ },
153087
+ {
153088
+ "name": "rootNamespace",
153089
+ "kind": "flag",
153090
+ "type": "string",
153091
+ "flag": "root-namespace"
153092
+ },
153093
+ {
153094
+ "name": "schemaRef",
153095
+ "kind": "flag",
153096
+ "type": "string",
153097
+ "flag": "schema-ref"
153098
+ }
153099
+ ],
153100
+ "constraints": null,
153101
+ "mutates": false,
153102
+ "idempotency": "idempotent",
153103
+ "supportsTrackedMode": false,
153104
+ "supportsDryRun": false,
153105
+ "inputSchema": {
153106
+ "type": "object",
153107
+ "properties": {
153108
+ "limit": {
153109
+ "type": "integer",
153110
+ "minimum": 1
153111
+ },
153112
+ "offset": {
153113
+ "type": "integer",
153114
+ "minimum": 0
153115
+ },
153116
+ "rootNamespace": {
153117
+ "type": "string"
153118
+ },
153119
+ "schemaRef": {
153120
+ "type": "string"
153121
+ }
153122
+ },
153123
+ "additionalProperties": false
153124
+ },
153125
+ "outputSchema": {
153126
+ "type": "object"
153127
+ }
153128
+ },
153129
+ "doc.customXml.parts.get": {
153130
+ "operationId": "doc.customXml.parts.get",
153131
+ "sdkSurface": "document",
153132
+ "command": "custom-xml parts get",
153133
+ "commandTokens": [
153134
+ "custom-xml",
153135
+ "parts",
153136
+ "get"
153137
+ ],
153138
+ "category": "core",
153139
+ "description": "Get a single Custom XML Data Storage Part by itemID or package part name, including its full content. v1 partName targeting is limited to Word-style customXml/itemN.xml paths.",
153140
+ "requiresDocumentContext": true,
153141
+ "docRequirement": "optional",
153142
+ "responseEnvelopeKey": null,
153143
+ "params": [
153144
+ {
153145
+ "name": "doc",
153146
+ "kind": "doc",
153147
+ "type": "string",
153148
+ "description": "Document path. Optional when a session is already open."
153149
+ },
153150
+ {
153151
+ "name": "sessionId",
153152
+ "kind": "flag",
153153
+ "type": "string",
153154
+ "flag": "session",
153155
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
153156
+ },
153157
+ {
153158
+ "name": "target",
153159
+ "kind": "jsonFlag",
153160
+ "type": "json",
153161
+ "flag": "target-json",
153162
+ "required": true,
153163
+ "schema": {
153164
+ "oneOf": [
153165
+ {
153166
+ "type": "object",
153167
+ "properties": {
153168
+ "id": {
153169
+ "type": "string"
153170
+ }
153171
+ },
153172
+ "required": [
153173
+ "id"
153174
+ ]
153175
+ },
153176
+ {
153177
+ "type": "object",
153178
+ "properties": {
153179
+ "partName": {
153180
+ "type": "string"
153181
+ }
153182
+ },
153183
+ "required": [
153184
+ "partName"
153185
+ ]
153186
+ }
153187
+ ]
153188
+ }
153189
+ }
153190
+ ],
153191
+ "constraints": null,
153192
+ "mutates": false,
153193
+ "idempotency": "idempotent",
153194
+ "supportsTrackedMode": false,
153195
+ "supportsDryRun": false,
153196
+ "inputSchema": {
153197
+ "type": "object",
153198
+ "properties": {
153199
+ "target": {
153200
+ "oneOf": [
153201
+ {
153202
+ "type": "object",
153203
+ "properties": {
153204
+ "id": {
153205
+ "type": "string",
153206
+ "minLength": 1
153207
+ }
153208
+ },
153209
+ "additionalProperties": false,
153210
+ "required": [
153211
+ "id"
153212
+ ]
153213
+ },
153214
+ {
153215
+ "type": "object",
153216
+ "properties": {
153217
+ "partName": {
153218
+ "type": "string",
153219
+ "minLength": 1
153220
+ }
153221
+ },
153222
+ "additionalProperties": false,
153223
+ "required": [
153224
+ "partName"
153225
+ ]
153226
+ }
153227
+ ]
153228
+ }
153229
+ },
153230
+ "additionalProperties": false,
153231
+ "required": [
153232
+ "target"
153233
+ ]
153234
+ },
153235
+ "outputSchema": {
153236
+ "oneOf": [
153237
+ {
153238
+ "type": "object"
153239
+ },
153240
+ {
153241
+ "type": "null"
153242
+ }
153243
+ ]
153244
+ }
153245
+ },
153246
+ "doc.customXml.parts.create": {
153247
+ "operationId": "doc.customXml.parts.create",
153248
+ "sdkSurface": "document",
153249
+ "command": "custom-xml parts create",
153250
+ "commandTokens": [
153251
+ "custom-xml",
153252
+ "parts",
153253
+ "create"
153254
+ ],
153255
+ "category": "core",
153256
+ "description": "Add a new Custom XML Data Storage Part to the document. Generates a fresh itemID GUID and emits the Properties Part.",
153257
+ "requiresDocumentContext": true,
153258
+ "docRequirement": "optional",
153259
+ "responseEnvelopeKey": null,
153260
+ "params": [
153261
+ {
153262
+ "name": "doc",
153263
+ "kind": "doc",
153264
+ "type": "string",
153265
+ "description": "Document path. Optional when a session is already open."
153266
+ },
153267
+ {
153268
+ "name": "sessionId",
153269
+ "kind": "flag",
153270
+ "type": "string",
153271
+ "flag": "session",
153272
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
153273
+ },
153274
+ {
153275
+ "name": "out",
153276
+ "kind": "flag",
153277
+ "type": "string",
153278
+ "agentVisible": false
153279
+ },
153280
+ {
153281
+ "name": "force",
153282
+ "kind": "flag",
153283
+ "type": "boolean",
153284
+ "description": "Bypass confirmation checks."
153285
+ },
153286
+ {
153287
+ "name": "expectedRevision",
153288
+ "kind": "flag",
153289
+ "type": "number",
153290
+ "flag": "expected-revision",
153291
+ "agentVisible": false
153292
+ },
153293
+ {
153294
+ "name": "changeMode",
153295
+ "kind": "flag",
153296
+ "type": "string",
153297
+ "flag": "change-mode",
153298
+ "schema": {
153299
+ "enum": [
153300
+ "direct",
153301
+ "tracked"
153302
+ ]
153303
+ },
153304
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
153305
+ },
153306
+ {
153307
+ "name": "dryRun",
153308
+ "kind": "flag",
153309
+ "type": "boolean",
153310
+ "flag": "dry-run",
153311
+ "description": "Preview the result without applying changes."
153312
+ },
153313
+ {
153314
+ "name": "content",
153315
+ "kind": "flag",
153316
+ "type": "string",
153317
+ "required": true
153318
+ },
153319
+ {
153320
+ "name": "schemaRefs",
153321
+ "kind": "flag",
153322
+ "type": "string[]",
153323
+ "flag": "schema-refs",
153324
+ "schema": {
153325
+ "type": "array",
153326
+ "items": {
153327
+ "type": "string"
153328
+ }
153329
+ }
153330
+ }
153331
+ ],
153332
+ "constraints": null,
153333
+ "mutates": true,
153334
+ "idempotency": "non-idempotent",
153335
+ "supportsTrackedMode": false,
153336
+ "supportsDryRun": true,
153337
+ "inputSchema": {
153338
+ "type": "object",
153339
+ "properties": {
153340
+ "content": {
153341
+ "type": "string",
153342
+ "minLength": 1
153343
+ },
153344
+ "schemaRefs": {
153345
+ "type": "array",
153346
+ "items": {
153347
+ "type": "string",
153348
+ "minLength": 1
153349
+ }
153350
+ }
153351
+ },
153352
+ "additionalProperties": false,
153353
+ "required": [
153354
+ "content"
153355
+ ]
153356
+ },
153357
+ "outputSchema": {
153358
+ "oneOf": [
153359
+ {
153360
+ "type": "object",
153361
+ "properties": {
153362
+ "success": {
153363
+ "const": true
153364
+ },
153365
+ "id": {
153366
+ "type": "string"
153367
+ },
153368
+ "partName": {
153369
+ "type": "string"
153370
+ },
153371
+ "propsPartName": {
153372
+ "type": "string"
153373
+ }
153374
+ },
153375
+ "additionalProperties": false,
153376
+ "required": [
153377
+ "success",
153378
+ "id",
153379
+ "partName",
153380
+ "propsPartName"
153381
+ ]
153382
+ },
153383
+ {
153384
+ "type": "object",
153385
+ "properties": {
153386
+ "success": {
153387
+ "const": false
153388
+ },
153389
+ "failure": {
153390
+ "type": "object",
153391
+ "properties": {
153392
+ "code": {
153393
+ "type": "string"
153394
+ },
153395
+ "message": {
153396
+ "type": "string"
153397
+ },
153398
+ "details": {}
153399
+ },
153400
+ "additionalProperties": false,
153401
+ "required": [
153402
+ "code",
153403
+ "message"
153404
+ ]
153405
+ }
153406
+ },
153407
+ "additionalProperties": false,
153408
+ "required": [
153409
+ "success",
153410
+ "failure"
153411
+ ]
153412
+ }
153413
+ ]
153414
+ },
153415
+ "successSchema": {
153416
+ "type": "object",
153417
+ "properties": {
153418
+ "success": {
153419
+ "const": true
153420
+ },
153421
+ "id": {
153422
+ "type": "string"
153423
+ },
153424
+ "partName": {
153425
+ "type": "string"
153426
+ },
153427
+ "propsPartName": {
153428
+ "type": "string"
153429
+ }
153430
+ },
153431
+ "additionalProperties": false,
153432
+ "required": [
153433
+ "success",
153434
+ "id",
153435
+ "partName",
153436
+ "propsPartName"
153437
+ ]
153438
+ },
153439
+ "failureSchema": {
153440
+ "type": "object",
153441
+ "properties": {
153442
+ "success": {
153443
+ "const": false
153444
+ },
153445
+ "failure": {
153446
+ "type": "object",
153447
+ "properties": {
153448
+ "code": {
153449
+ "type": "string"
153450
+ },
153451
+ "message": {
153452
+ "type": "string"
153453
+ },
153454
+ "details": {}
153455
+ },
153456
+ "additionalProperties": false,
153457
+ "required": [
153458
+ "code",
153459
+ "message"
153460
+ ]
153461
+ }
153462
+ },
153463
+ "additionalProperties": false,
153464
+ "required": [
153465
+ "success",
153466
+ "failure"
153467
+ ]
153468
+ }
153469
+ },
153470
+ "doc.customXml.parts.patch": {
153471
+ "operationId": "doc.customXml.parts.patch",
153472
+ "sdkSurface": "document",
153473
+ "command": "custom-xml parts patch",
153474
+ "commandTokens": [
153475
+ "custom-xml",
153476
+ "parts",
153477
+ "patch"
153478
+ ],
153479
+ "category": "core",
153480
+ "description": "Replace the content and/or schemaRefs of an existing Custom XML Data Storage Part. At least one of content or schemaRefs is required. v1 partName targeting is limited to Word-style customXml/itemN.xml paths.",
153481
+ "requiresDocumentContext": true,
153482
+ "docRequirement": "optional",
153483
+ "responseEnvelopeKey": null,
153484
+ "params": [
153485
+ {
153486
+ "name": "doc",
153487
+ "kind": "doc",
153488
+ "type": "string",
153489
+ "description": "Document path. Optional when a session is already open."
153490
+ },
153491
+ {
153492
+ "name": "sessionId",
153493
+ "kind": "flag",
153494
+ "type": "string",
153495
+ "flag": "session",
153496
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
153497
+ },
153498
+ {
153499
+ "name": "out",
153500
+ "kind": "flag",
153501
+ "type": "string",
153502
+ "agentVisible": false
153503
+ },
153504
+ {
153505
+ "name": "force",
153506
+ "kind": "flag",
153507
+ "type": "boolean",
153508
+ "description": "Bypass confirmation checks."
153509
+ },
153510
+ {
153511
+ "name": "expectedRevision",
153512
+ "kind": "flag",
153513
+ "type": "number",
153514
+ "flag": "expected-revision",
153515
+ "agentVisible": false
153516
+ },
153517
+ {
153518
+ "name": "changeMode",
153519
+ "kind": "flag",
153520
+ "type": "string",
153521
+ "flag": "change-mode",
153522
+ "schema": {
153523
+ "enum": [
153524
+ "direct",
153525
+ "tracked"
153526
+ ]
153527
+ },
153528
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
153529
+ },
153530
+ {
153531
+ "name": "dryRun",
153532
+ "kind": "flag",
153533
+ "type": "boolean",
153534
+ "flag": "dry-run",
153535
+ "description": "Preview the result without applying changes."
153536
+ },
153537
+ {
153538
+ "name": "target",
153539
+ "kind": "jsonFlag",
153540
+ "type": "json",
153541
+ "flag": "target-json",
153542
+ "required": true,
153543
+ "schema": {
153544
+ "oneOf": [
153545
+ {
153546
+ "type": "object",
153547
+ "properties": {
153548
+ "id": {
153549
+ "type": "string"
153550
+ }
153551
+ },
153552
+ "required": [
153553
+ "id"
153554
+ ]
153555
+ },
153556
+ {
153557
+ "type": "object",
153558
+ "properties": {
153559
+ "partName": {
153560
+ "type": "string"
153561
+ }
153562
+ },
153563
+ "required": [
153564
+ "partName"
153565
+ ]
153566
+ }
153567
+ ]
153568
+ }
153569
+ },
153570
+ {
153571
+ "name": "content",
153572
+ "kind": "flag",
153573
+ "type": "string"
153574
+ },
153575
+ {
153576
+ "name": "schemaRefs",
153577
+ "kind": "flag",
153578
+ "type": "string[]",
153579
+ "flag": "schema-refs",
153580
+ "schema": {
153581
+ "type": "array",
153582
+ "items": {
153583
+ "type": "string"
153584
+ }
153585
+ }
153586
+ }
153587
+ ],
153588
+ "constraints": null,
153589
+ "mutates": true,
153590
+ "idempotency": "idempotent",
153591
+ "supportsTrackedMode": false,
153592
+ "supportsDryRun": true,
153593
+ "inputSchema": {
153594
+ "type": "object",
153595
+ "properties": {
153596
+ "target": {
153597
+ "oneOf": [
153598
+ {
153599
+ "type": "object",
153600
+ "properties": {
153601
+ "id": {
153602
+ "type": "string",
153603
+ "minLength": 1
153604
+ }
153605
+ },
153606
+ "additionalProperties": false,
153607
+ "required": [
153608
+ "id"
153609
+ ]
153610
+ },
153611
+ {
153612
+ "type": "object",
153613
+ "properties": {
153614
+ "partName": {
153615
+ "type": "string",
153616
+ "minLength": 1
153617
+ }
153618
+ },
153619
+ "additionalProperties": false,
153620
+ "required": [
153621
+ "partName"
153622
+ ]
153623
+ }
153624
+ ]
153625
+ },
153626
+ "content": {
153627
+ "type": "string",
153628
+ "minLength": 1
153629
+ },
153630
+ "schemaRefs": {
153631
+ "type": "array",
153632
+ "items": {
153633
+ "type": "string",
153634
+ "minLength": 1
153635
+ }
153636
+ }
153637
+ },
153638
+ "required": [
153639
+ "target"
153640
+ ],
153641
+ "anyOf": [
153642
+ {
153643
+ "required": [
153644
+ "content"
153645
+ ]
153646
+ },
153647
+ {
153648
+ "required": [
153649
+ "schemaRefs"
153650
+ ]
153651
+ }
153652
+ ],
153653
+ "additionalProperties": false
153654
+ },
153655
+ "outputSchema": {
153656
+ "oneOf": [
153657
+ {
153658
+ "type": "object",
153659
+ "properties": {
153660
+ "success": {
153661
+ "const": true
153662
+ },
153663
+ "target": {
153664
+ "oneOf": [
153665
+ {
153666
+ "type": "object",
153667
+ "properties": {
153668
+ "id": {
153669
+ "type": "string",
153670
+ "minLength": 1
153671
+ }
153672
+ },
153673
+ "additionalProperties": false,
153674
+ "required": [
153675
+ "id"
153676
+ ]
153677
+ },
153678
+ {
153679
+ "type": "object",
153680
+ "properties": {
153681
+ "partName": {
153682
+ "type": "string",
153683
+ "minLength": 1
153684
+ }
153685
+ },
153686
+ "additionalProperties": false,
153687
+ "required": [
153688
+ "partName"
153689
+ ]
153690
+ }
153691
+ ]
153692
+ },
153693
+ "id": {
153694
+ "type": "string",
153695
+ "minLength": 1
153696
+ }
153697
+ },
153698
+ "additionalProperties": false,
153699
+ "required": [
153700
+ "success",
153701
+ "target"
153702
+ ]
153703
+ },
153704
+ {
153705
+ "type": "object",
153706
+ "properties": {
153707
+ "success": {
153708
+ "const": false
153709
+ },
153710
+ "failure": {
153711
+ "type": "object",
153712
+ "properties": {
153713
+ "code": {
153714
+ "type": "string"
153715
+ },
153716
+ "message": {
153717
+ "type": "string"
153718
+ },
153719
+ "details": {}
153720
+ },
153721
+ "additionalProperties": false,
153722
+ "required": [
153723
+ "code",
153724
+ "message"
153725
+ ]
153726
+ }
153727
+ },
153728
+ "additionalProperties": false,
153729
+ "required": [
153730
+ "success",
153731
+ "failure"
153732
+ ]
153733
+ }
153734
+ ]
153735
+ },
153736
+ "successSchema": {
153737
+ "type": "object",
153738
+ "properties": {
153739
+ "success": {
153740
+ "const": true
153741
+ },
153742
+ "target": {
153743
+ "oneOf": [
153744
+ {
153745
+ "type": "object",
153746
+ "properties": {
153747
+ "id": {
153748
+ "type": "string",
153749
+ "minLength": 1
153750
+ }
153751
+ },
153752
+ "additionalProperties": false,
153753
+ "required": [
153754
+ "id"
153755
+ ]
153756
+ },
153757
+ {
153758
+ "type": "object",
153759
+ "properties": {
153760
+ "partName": {
153761
+ "type": "string",
153762
+ "minLength": 1
153763
+ }
153764
+ },
153765
+ "additionalProperties": false,
153766
+ "required": [
153767
+ "partName"
153768
+ ]
153769
+ }
153770
+ ]
153771
+ },
153772
+ "id": {
153773
+ "type": "string",
153774
+ "minLength": 1
153775
+ }
153776
+ },
153777
+ "additionalProperties": false,
153778
+ "required": [
153779
+ "success",
153780
+ "target"
153781
+ ]
153782
+ },
153783
+ "failureSchema": {
153784
+ "type": "object",
153785
+ "properties": {
153786
+ "success": {
153787
+ "const": false
153788
+ },
153789
+ "failure": {
153790
+ "type": "object",
153791
+ "properties": {
153792
+ "code": {
153793
+ "type": "string"
153794
+ },
153795
+ "message": {
153796
+ "type": "string"
153797
+ },
153798
+ "details": {}
153799
+ },
153800
+ "additionalProperties": false,
153801
+ "required": [
153802
+ "code",
153803
+ "message"
153804
+ ]
153805
+ }
153806
+ },
153807
+ "additionalProperties": false,
153808
+ "required": [
153809
+ "success",
153810
+ "failure"
153811
+ ]
153812
+ }
153813
+ },
153814
+ "doc.customXml.parts.remove": {
153815
+ "operationId": "doc.customXml.parts.remove",
153816
+ "sdkSurface": "document",
153817
+ "command": "custom-xml parts remove",
153818
+ "commandTokens": [
153819
+ "custom-xml",
153820
+ "parts",
153821
+ "remove"
153822
+ ],
153823
+ "category": "core",
153824
+ "description": "Remove a Custom XML Data Storage Part and clean up all linked package files (item, props, rels, content-types entry). v1 partName targeting is limited to Word-style customXml/itemN.xml paths.",
153825
+ "requiresDocumentContext": true,
153826
+ "docRequirement": "optional",
153827
+ "responseEnvelopeKey": null,
153828
+ "params": [
153829
+ {
153830
+ "name": "doc",
153831
+ "kind": "doc",
153832
+ "type": "string",
153833
+ "description": "Document path. Optional when a session is already open."
153834
+ },
153835
+ {
153836
+ "name": "sessionId",
153837
+ "kind": "flag",
153838
+ "type": "string",
153839
+ "flag": "session",
153840
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
153841
+ },
153842
+ {
153843
+ "name": "out",
153844
+ "kind": "flag",
153845
+ "type": "string",
153846
+ "agentVisible": false
153847
+ },
153848
+ {
153849
+ "name": "force",
153850
+ "kind": "flag",
153851
+ "type": "boolean",
153852
+ "description": "Bypass confirmation checks."
153853
+ },
153854
+ {
153855
+ "name": "expectedRevision",
153856
+ "kind": "flag",
153857
+ "type": "number",
153858
+ "flag": "expected-revision",
153859
+ "agentVisible": false
153860
+ },
153861
+ {
153862
+ "name": "changeMode",
153863
+ "kind": "flag",
153864
+ "type": "string",
153865
+ "flag": "change-mode",
153866
+ "schema": {
153867
+ "enum": [
153868
+ "direct",
153869
+ "tracked"
153870
+ ]
153871
+ },
153872
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
153873
+ },
153874
+ {
153875
+ "name": "dryRun",
153876
+ "kind": "flag",
153877
+ "type": "boolean",
153878
+ "flag": "dry-run",
153879
+ "description": "Preview the result without applying changes."
153880
+ },
153881
+ {
153882
+ "name": "target",
153883
+ "kind": "jsonFlag",
153884
+ "type": "json",
153885
+ "flag": "target-json",
153886
+ "required": true,
153887
+ "schema": {
153888
+ "oneOf": [
153889
+ {
153890
+ "type": "object",
153891
+ "properties": {
153892
+ "id": {
153893
+ "type": "string"
153894
+ }
153895
+ },
153896
+ "required": [
153897
+ "id"
153898
+ ]
153899
+ },
153900
+ {
153901
+ "type": "object",
153902
+ "properties": {
153903
+ "partName": {
153904
+ "type": "string"
153905
+ }
153906
+ },
153907
+ "required": [
153908
+ "partName"
153909
+ ]
153910
+ }
153911
+ ]
153912
+ }
153913
+ }
153914
+ ],
153915
+ "constraints": null,
153916
+ "mutates": true,
153917
+ "idempotency": "non-idempotent",
153918
+ "supportsTrackedMode": false,
153919
+ "supportsDryRun": true,
153920
+ "inputSchema": {
153921
+ "type": "object",
153922
+ "properties": {
153923
+ "target": {
153924
+ "oneOf": [
153925
+ {
153926
+ "type": "object",
153927
+ "properties": {
153928
+ "id": {
153929
+ "type": "string",
153930
+ "minLength": 1
153931
+ }
153932
+ },
153933
+ "additionalProperties": false,
153934
+ "required": [
153935
+ "id"
153936
+ ]
153937
+ },
153938
+ {
153939
+ "type": "object",
153940
+ "properties": {
153941
+ "partName": {
153942
+ "type": "string",
153943
+ "minLength": 1
153944
+ }
153945
+ },
153946
+ "additionalProperties": false,
153947
+ "required": [
153948
+ "partName"
153949
+ ]
153950
+ }
153951
+ ]
153952
+ }
153953
+ },
153954
+ "additionalProperties": false,
153955
+ "required": [
153956
+ "target"
153957
+ ]
153958
+ },
153959
+ "outputSchema": {
153960
+ "oneOf": [
153961
+ {
153962
+ "type": "object",
153963
+ "properties": {
153964
+ "success": {
153965
+ "const": true
153966
+ },
153967
+ "target": {
153968
+ "oneOf": [
153969
+ {
153970
+ "type": "object",
153971
+ "properties": {
153972
+ "id": {
153973
+ "type": "string",
153974
+ "minLength": 1
153975
+ }
153976
+ },
153977
+ "additionalProperties": false,
153978
+ "required": [
153979
+ "id"
153980
+ ]
153981
+ },
153982
+ {
153983
+ "type": "object",
153984
+ "properties": {
153985
+ "partName": {
153986
+ "type": "string",
153987
+ "minLength": 1
153988
+ }
153989
+ },
153990
+ "additionalProperties": false,
153991
+ "required": [
153992
+ "partName"
153993
+ ]
153994
+ }
153995
+ ]
153996
+ },
153997
+ "id": {
153998
+ "type": "string",
153999
+ "minLength": 1
154000
+ }
154001
+ },
154002
+ "additionalProperties": false,
154003
+ "required": [
154004
+ "success",
154005
+ "target"
154006
+ ]
154007
+ },
154008
+ {
154009
+ "type": "object",
154010
+ "properties": {
154011
+ "success": {
154012
+ "const": false
154013
+ },
154014
+ "failure": {
154015
+ "type": "object",
154016
+ "properties": {
154017
+ "code": {
154018
+ "type": "string"
154019
+ },
154020
+ "message": {
154021
+ "type": "string"
154022
+ },
154023
+ "details": {}
154024
+ },
154025
+ "additionalProperties": false,
154026
+ "required": [
154027
+ "code",
154028
+ "message"
154029
+ ]
154030
+ }
154031
+ },
154032
+ "additionalProperties": false,
154033
+ "required": [
154034
+ "success",
154035
+ "failure"
154036
+ ]
154037
+ }
154038
+ ]
154039
+ },
154040
+ "successSchema": {
154041
+ "type": "object",
154042
+ "properties": {
154043
+ "success": {
154044
+ "const": true
154045
+ },
154046
+ "target": {
154047
+ "oneOf": [
154048
+ {
154049
+ "type": "object",
154050
+ "properties": {
154051
+ "id": {
154052
+ "type": "string",
154053
+ "minLength": 1
154054
+ }
154055
+ },
154056
+ "additionalProperties": false,
154057
+ "required": [
154058
+ "id"
154059
+ ]
154060
+ },
154061
+ {
154062
+ "type": "object",
154063
+ "properties": {
154064
+ "partName": {
154065
+ "type": "string",
154066
+ "minLength": 1
154067
+ }
154068
+ },
154069
+ "additionalProperties": false,
154070
+ "required": [
154071
+ "partName"
154072
+ ]
154073
+ }
154074
+ ]
154075
+ },
154076
+ "id": {
154077
+ "type": "string",
154078
+ "minLength": 1
154079
+ }
154080
+ },
154081
+ "additionalProperties": false,
154082
+ "required": [
154083
+ "success",
154084
+ "target"
154085
+ ]
154086
+ },
154087
+ "failureSchema": {
154088
+ "type": "object",
154089
+ "properties": {
154090
+ "success": {
154091
+ "const": false
154092
+ },
154093
+ "failure": {
154094
+ "type": "object",
154095
+ "properties": {
154096
+ "code": {
154097
+ "type": "string"
154098
+ },
154099
+ "message": {
154100
+ "type": "string"
154101
+ },
154102
+ "details": {}
154103
+ },
154104
+ "additionalProperties": false,
154105
+ "required": [
154106
+ "code",
154107
+ "message"
154108
+ ]
154109
+ }
154110
+ },
154111
+ "additionalProperties": false,
154112
+ "required": [
154113
+ "success",
154114
+ "failure"
154115
+ ]
154116
+ }
154117
+ },
151811
154118
  "doc.open": {
151812
154119
  "operationId": "doc.open",
151813
154120
  "sdkSurface": "client",