@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.
@@ -51455,6 +51455,221 @@ const CONTRACT = {
51455
51455
  "intentGroup": "list",
51456
51456
  "intentAction": "detach"
51457
51457
  },
51458
+ "doc.lists.delete": {
51459
+ "operationId": "doc.lists.delete",
51460
+ "sdkSurface": "document",
51461
+ "command": "lists delete",
51462
+ "commandTokens": [
51463
+ "lists",
51464
+ "delete"
51465
+ ],
51466
+ "category": "lists",
51467
+ "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.",
51468
+ "requiresDocumentContext": true,
51469
+ "docRequirement": "optional",
51470
+ "responseEnvelopeKey": null,
51471
+ "params": [
51472
+ {
51473
+ "name": "doc",
51474
+ "kind": "doc",
51475
+ "type": "string",
51476
+ "description": "Document path. Optional when a session is already open."
51477
+ },
51478
+ {
51479
+ "name": "sessionId",
51480
+ "kind": "flag",
51481
+ "type": "string",
51482
+ "flag": "session",
51483
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
51484
+ },
51485
+ {
51486
+ "name": "out",
51487
+ "kind": "flag",
51488
+ "type": "string",
51489
+ "agentVisible": false
51490
+ },
51491
+ {
51492
+ "name": "force",
51493
+ "kind": "flag",
51494
+ "type": "boolean",
51495
+ "description": "Bypass confirmation checks."
51496
+ },
51497
+ {
51498
+ "name": "expectedRevision",
51499
+ "kind": "flag",
51500
+ "type": "number",
51501
+ "flag": "expected-revision",
51502
+ "agentVisible": false
51503
+ },
51504
+ {
51505
+ "name": "changeMode",
51506
+ "kind": "flag",
51507
+ "type": "string",
51508
+ "flag": "change-mode",
51509
+ "schema": {
51510
+ "enum": [
51511
+ "direct",
51512
+ "tracked"
51513
+ ]
51514
+ },
51515
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
51516
+ },
51517
+ {
51518
+ "name": "dryRun",
51519
+ "kind": "flag",
51520
+ "type": "boolean",
51521
+ "flag": "dry-run",
51522
+ "description": "Preview the result without applying changes."
51523
+ },
51524
+ {
51525
+ "name": "target",
51526
+ "kind": "jsonFlag",
51527
+ "type": "json",
51528
+ "flag": "target-json",
51529
+ "required": true,
51530
+ "schema": {
51531
+ "type": "object",
51532
+ "properties": {
51533
+ "kind": {
51534
+ "const": "block"
51535
+ },
51536
+ "nodeType": {
51537
+ "const": "listItem"
51538
+ },
51539
+ "nodeId": {
51540
+ "type": "string"
51541
+ }
51542
+ },
51543
+ "required": [
51544
+ "kind",
51545
+ "nodeType",
51546
+ "nodeId"
51547
+ ]
51548
+ }
51549
+ }
51550
+ ],
51551
+ "constraints": null,
51552
+ "mutates": true,
51553
+ "idempotency": "conditional",
51554
+ "supportsTrackedMode": false,
51555
+ "supportsDryRun": true,
51556
+ "inputSchema": {
51557
+ "type": "object",
51558
+ "properties": {
51559
+ "target": {
51560
+ "$ref": "#/$defs/ListItemAddress"
51561
+ }
51562
+ },
51563
+ "additionalProperties": false,
51564
+ "required": [
51565
+ "target"
51566
+ ]
51567
+ },
51568
+ "outputSchema": {
51569
+ "oneOf": [
51570
+ {
51571
+ "type": "object",
51572
+ "properties": {
51573
+ "success": {
51574
+ "const": true
51575
+ },
51576
+ "deletedCount": {
51577
+ "type": "integer",
51578
+ "minimum": 0
51579
+ }
51580
+ },
51581
+ "additionalProperties": false,
51582
+ "required": [
51583
+ "success",
51584
+ "deletedCount"
51585
+ ]
51586
+ },
51587
+ {
51588
+ "type": "object",
51589
+ "properties": {
51590
+ "success": {
51591
+ "const": false
51592
+ },
51593
+ "failure": {
51594
+ "type": "object",
51595
+ "properties": {
51596
+ "code": {
51597
+ "enum": [
51598
+ "INVALID_TARGET"
51599
+ ]
51600
+ },
51601
+ "message": {
51602
+ "type": "string"
51603
+ },
51604
+ "details": {}
51605
+ },
51606
+ "additionalProperties": false,
51607
+ "required": [
51608
+ "code",
51609
+ "message"
51610
+ ]
51611
+ }
51612
+ },
51613
+ "additionalProperties": false,
51614
+ "required": [
51615
+ "success",
51616
+ "failure"
51617
+ ]
51618
+ }
51619
+ ]
51620
+ },
51621
+ "successSchema": {
51622
+ "type": "object",
51623
+ "properties": {
51624
+ "success": {
51625
+ "const": true
51626
+ },
51627
+ "deletedCount": {
51628
+ "type": "integer",
51629
+ "minimum": 0
51630
+ }
51631
+ },
51632
+ "additionalProperties": false,
51633
+ "required": [
51634
+ "success",
51635
+ "deletedCount"
51636
+ ]
51637
+ },
51638
+ "failureSchema": {
51639
+ "type": "object",
51640
+ "properties": {
51641
+ "success": {
51642
+ "const": false
51643
+ },
51644
+ "failure": {
51645
+ "type": "object",
51646
+ "properties": {
51647
+ "code": {
51648
+ "enum": [
51649
+ "INVALID_TARGET"
51650
+ ]
51651
+ },
51652
+ "message": {
51653
+ "type": "string"
51654
+ },
51655
+ "details": {}
51656
+ },
51657
+ "additionalProperties": false,
51658
+ "required": [
51659
+ "code",
51660
+ "message"
51661
+ ]
51662
+ }
51663
+ },
51664
+ "additionalProperties": false,
51665
+ "required": [
51666
+ "success",
51667
+ "failure"
51668
+ ]
51669
+ },
51670
+ "intentGroup": "list",
51671
+ "intentAction": "delete"
51672
+ },
51458
51673
  "doc.lists.indent": {
51459
51674
  "operationId": "doc.lists.indent",
51460
51675
  "sdkSurface": "document",
@@ -80366,6 +80581,41 @@ const CONTRACT = {
80366
80581
  "dryRun"
80367
80582
  ]
80368
80583
  },
80584
+ "lists.delete": {
80585
+ "type": "object",
80586
+ "properties": {
80587
+ "available": {
80588
+ "type": "boolean"
80589
+ },
80590
+ "tracked": {
80591
+ "type": "boolean"
80592
+ },
80593
+ "dryRun": {
80594
+ "type": "boolean"
80595
+ },
80596
+ "reasons": {
80597
+ "type": "array",
80598
+ "items": {
80599
+ "enum": [
80600
+ "COMMAND_UNAVAILABLE",
80601
+ "HELPER_UNAVAILABLE",
80602
+ "OPERATION_UNAVAILABLE",
80603
+ "TRACKED_MODE_UNAVAILABLE",
80604
+ "DRY_RUN_UNAVAILABLE",
80605
+ "NAMESPACE_UNAVAILABLE",
80606
+ "STYLES_PART_MISSING",
80607
+ "COLLABORATION_ACTIVE"
80608
+ ]
80609
+ }
80610
+ }
80611
+ },
80612
+ "additionalProperties": false,
80613
+ "required": [
80614
+ "available",
80615
+ "tracked",
80616
+ "dryRun"
80617
+ ]
80618
+ },
80369
80619
  "lists.indent": {
80370
80620
  "type": "object",
80371
80621
  "properties": {
@@ -82781,7 +83031,7 @@ const CONTRACT = {
82781
83031
  "dryRun"
82782
83032
  ]
82783
83033
  },
82784
- "tables.sort": {
83034
+ "tables.setCellText": {
82785
83035
  "type": "object",
82786
83036
  "properties": {
82787
83037
  "available": {
@@ -82816,7 +83066,7 @@ const CONTRACT = {
82816
83066
  "dryRun"
82817
83067
  ]
82818
83068
  },
82819
- "tables.setAltText": {
83069
+ "tables.sort": {
82820
83070
  "type": "object",
82821
83071
  "properties": {
82822
83072
  "available": {
@@ -82851,7 +83101,7 @@ const CONTRACT = {
82851
83101
  "dryRun"
82852
83102
  ]
82853
83103
  },
82854
- "tables.setStyle": {
83104
+ "tables.setAltText": {
82855
83105
  "type": "object",
82856
83106
  "properties": {
82857
83107
  "available": {
@@ -82886,7 +83136,7 @@ const CONTRACT = {
82886
83136
  "dryRun"
82887
83137
  ]
82888
83138
  },
82889
- "tables.clearStyle": {
83139
+ "tables.setStyle": {
82890
83140
  "type": "object",
82891
83141
  "properties": {
82892
83142
  "available": {
@@ -82921,7 +83171,7 @@ const CONTRACT = {
82921
83171
  "dryRun"
82922
83172
  ]
82923
83173
  },
82924
- "tables.setStyleOption": {
83174
+ "tables.clearStyle": {
82925
83175
  "type": "object",
82926
83176
  "properties": {
82927
83177
  "available": {
@@ -82956,7 +83206,7 @@ const CONTRACT = {
82956
83206
  "dryRun"
82957
83207
  ]
82958
83208
  },
82959
- "tables.setBorder": {
83209
+ "tables.setStyleOption": {
82960
83210
  "type": "object",
82961
83211
  "properties": {
82962
83212
  "available": {
@@ -82991,7 +83241,7 @@ const CONTRACT = {
82991
83241
  "dryRun"
82992
83242
  ]
82993
83243
  },
82994
- "tables.clearBorder": {
83244
+ "tables.setBorder": {
82995
83245
  "type": "object",
82996
83246
  "properties": {
82997
83247
  "available": {
@@ -83026,7 +83276,42 @@ const CONTRACT = {
83026
83276
  "dryRun"
83027
83277
  ]
83028
83278
  },
83029
- "tables.applyBorderPreset": {
83279
+ "tables.clearBorder": {
83280
+ "type": "object",
83281
+ "properties": {
83282
+ "available": {
83283
+ "type": "boolean"
83284
+ },
83285
+ "tracked": {
83286
+ "type": "boolean"
83287
+ },
83288
+ "dryRun": {
83289
+ "type": "boolean"
83290
+ },
83291
+ "reasons": {
83292
+ "type": "array",
83293
+ "items": {
83294
+ "enum": [
83295
+ "COMMAND_UNAVAILABLE",
83296
+ "HELPER_UNAVAILABLE",
83297
+ "OPERATION_UNAVAILABLE",
83298
+ "TRACKED_MODE_UNAVAILABLE",
83299
+ "DRY_RUN_UNAVAILABLE",
83300
+ "NAMESPACE_UNAVAILABLE",
83301
+ "STYLES_PART_MISSING",
83302
+ "COLLABORATION_ACTIVE"
83303
+ ]
83304
+ }
83305
+ }
83306
+ },
83307
+ "additionalProperties": false,
83308
+ "required": [
83309
+ "available",
83310
+ "tracked",
83311
+ "dryRun"
83312
+ ]
83313
+ },
83314
+ "tables.applyBorderPreset": {
83030
83315
  "type": "object",
83031
83316
  "properties": {
83032
83317
  "available": {
@@ -83376,6 +83661,41 @@ const CONTRACT = {
83376
83661
  "dryRun"
83377
83662
  ]
83378
83663
  },
83664
+ "tables.applyPreset": {
83665
+ "type": "object",
83666
+ "properties": {
83667
+ "available": {
83668
+ "type": "boolean"
83669
+ },
83670
+ "tracked": {
83671
+ "type": "boolean"
83672
+ },
83673
+ "dryRun": {
83674
+ "type": "boolean"
83675
+ },
83676
+ "reasons": {
83677
+ "type": "array",
83678
+ "items": {
83679
+ "enum": [
83680
+ "COMMAND_UNAVAILABLE",
83681
+ "HELPER_UNAVAILABLE",
83682
+ "OPERATION_UNAVAILABLE",
83683
+ "TRACKED_MODE_UNAVAILABLE",
83684
+ "DRY_RUN_UNAVAILABLE",
83685
+ "NAMESPACE_UNAVAILABLE",
83686
+ "STYLES_PART_MISSING",
83687
+ "COLLABORATION_ACTIVE"
83688
+ ]
83689
+ }
83690
+ }
83691
+ },
83692
+ "additionalProperties": false,
83693
+ "required": [
83694
+ "available",
83695
+ "tracked",
83696
+ "dryRun"
83697
+ ]
83698
+ },
83379
83699
  "tables.get": {
83380
83700
  "type": "object",
83381
83701
  "properties": {
@@ -90130,6 +90450,181 @@ const CONTRACT = {
90130
90450
  "tracked",
90131
90451
  "dryRun"
90132
90452
  ]
90453
+ },
90454
+ "customXml.parts.list": {
90455
+ "type": "object",
90456
+ "properties": {
90457
+ "available": {
90458
+ "type": "boolean"
90459
+ },
90460
+ "tracked": {
90461
+ "type": "boolean"
90462
+ },
90463
+ "dryRun": {
90464
+ "type": "boolean"
90465
+ },
90466
+ "reasons": {
90467
+ "type": "array",
90468
+ "items": {
90469
+ "enum": [
90470
+ "COMMAND_UNAVAILABLE",
90471
+ "HELPER_UNAVAILABLE",
90472
+ "OPERATION_UNAVAILABLE",
90473
+ "TRACKED_MODE_UNAVAILABLE",
90474
+ "DRY_RUN_UNAVAILABLE",
90475
+ "NAMESPACE_UNAVAILABLE",
90476
+ "STYLES_PART_MISSING",
90477
+ "COLLABORATION_ACTIVE"
90478
+ ]
90479
+ }
90480
+ }
90481
+ },
90482
+ "additionalProperties": false,
90483
+ "required": [
90484
+ "available",
90485
+ "tracked",
90486
+ "dryRun"
90487
+ ]
90488
+ },
90489
+ "customXml.parts.get": {
90490
+ "type": "object",
90491
+ "properties": {
90492
+ "available": {
90493
+ "type": "boolean"
90494
+ },
90495
+ "tracked": {
90496
+ "type": "boolean"
90497
+ },
90498
+ "dryRun": {
90499
+ "type": "boolean"
90500
+ },
90501
+ "reasons": {
90502
+ "type": "array",
90503
+ "items": {
90504
+ "enum": [
90505
+ "COMMAND_UNAVAILABLE",
90506
+ "HELPER_UNAVAILABLE",
90507
+ "OPERATION_UNAVAILABLE",
90508
+ "TRACKED_MODE_UNAVAILABLE",
90509
+ "DRY_RUN_UNAVAILABLE",
90510
+ "NAMESPACE_UNAVAILABLE",
90511
+ "STYLES_PART_MISSING",
90512
+ "COLLABORATION_ACTIVE"
90513
+ ]
90514
+ }
90515
+ }
90516
+ },
90517
+ "additionalProperties": false,
90518
+ "required": [
90519
+ "available",
90520
+ "tracked",
90521
+ "dryRun"
90522
+ ]
90523
+ },
90524
+ "customXml.parts.create": {
90525
+ "type": "object",
90526
+ "properties": {
90527
+ "available": {
90528
+ "type": "boolean"
90529
+ },
90530
+ "tracked": {
90531
+ "type": "boolean"
90532
+ },
90533
+ "dryRun": {
90534
+ "type": "boolean"
90535
+ },
90536
+ "reasons": {
90537
+ "type": "array",
90538
+ "items": {
90539
+ "enum": [
90540
+ "COMMAND_UNAVAILABLE",
90541
+ "HELPER_UNAVAILABLE",
90542
+ "OPERATION_UNAVAILABLE",
90543
+ "TRACKED_MODE_UNAVAILABLE",
90544
+ "DRY_RUN_UNAVAILABLE",
90545
+ "NAMESPACE_UNAVAILABLE",
90546
+ "STYLES_PART_MISSING",
90547
+ "COLLABORATION_ACTIVE"
90548
+ ]
90549
+ }
90550
+ }
90551
+ },
90552
+ "additionalProperties": false,
90553
+ "required": [
90554
+ "available",
90555
+ "tracked",
90556
+ "dryRun"
90557
+ ]
90558
+ },
90559
+ "customXml.parts.patch": {
90560
+ "type": "object",
90561
+ "properties": {
90562
+ "available": {
90563
+ "type": "boolean"
90564
+ },
90565
+ "tracked": {
90566
+ "type": "boolean"
90567
+ },
90568
+ "dryRun": {
90569
+ "type": "boolean"
90570
+ },
90571
+ "reasons": {
90572
+ "type": "array",
90573
+ "items": {
90574
+ "enum": [
90575
+ "COMMAND_UNAVAILABLE",
90576
+ "HELPER_UNAVAILABLE",
90577
+ "OPERATION_UNAVAILABLE",
90578
+ "TRACKED_MODE_UNAVAILABLE",
90579
+ "DRY_RUN_UNAVAILABLE",
90580
+ "NAMESPACE_UNAVAILABLE",
90581
+ "STYLES_PART_MISSING",
90582
+ "COLLABORATION_ACTIVE"
90583
+ ]
90584
+ }
90585
+ }
90586
+ },
90587
+ "additionalProperties": false,
90588
+ "required": [
90589
+ "available",
90590
+ "tracked",
90591
+ "dryRun"
90592
+ ]
90593
+ },
90594
+ "customXml.parts.remove": {
90595
+ "type": "object",
90596
+ "properties": {
90597
+ "available": {
90598
+ "type": "boolean"
90599
+ },
90600
+ "tracked": {
90601
+ "type": "boolean"
90602
+ },
90603
+ "dryRun": {
90604
+ "type": "boolean"
90605
+ },
90606
+ "reasons": {
90607
+ "type": "array",
90608
+ "items": {
90609
+ "enum": [
90610
+ "COMMAND_UNAVAILABLE",
90611
+ "HELPER_UNAVAILABLE",
90612
+ "OPERATION_UNAVAILABLE",
90613
+ "TRACKED_MODE_UNAVAILABLE",
90614
+ "DRY_RUN_UNAVAILABLE",
90615
+ "NAMESPACE_UNAVAILABLE",
90616
+ "STYLES_PART_MISSING",
90617
+ "COLLABORATION_ACTIVE"
90618
+ ]
90619
+ }
90620
+ }
90621
+ },
90622
+ "additionalProperties": false,
90623
+ "required": [
90624
+ "available",
90625
+ "tracked",
90626
+ "dryRun"
90627
+ ]
90133
90628
  }
90134
90629
  },
90135
90630
  "additionalProperties": false,
@@ -90244,6 +90739,7 @@ const CONTRACT = {
90244
90739
  "lists.create",
90245
90740
  "lists.attach",
90246
90741
  "lists.detach",
90742
+ "lists.delete",
90247
90743
  "lists.indent",
90248
90744
  "lists.outdent",
90249
90745
  "lists.join",
@@ -90313,6 +90809,7 @@ const CONTRACT = {
90313
90809
  "tables.unmergeCells",
90314
90810
  "tables.splitCell",
90315
90811
  "tables.setCellProperties",
90812
+ "tables.setCellText",
90316
90813
  "tables.sort",
90317
90814
  "tables.setAltText",
90318
90815
  "tables.setStyle",
@@ -90330,6 +90827,7 @@ const CONTRACT = {
90330
90827
  "tables.applyStyle",
90331
90828
  "tables.setBorders",
90332
90829
  "tables.setTableOptions",
90830
+ "tables.applyPreset",
90333
90831
  "tables.get",
90334
90832
  "tables.getCells",
90335
90833
  "tables.getProperties",
@@ -90522,7 +91020,12 @@ const CONTRACT = {
90522
91020
  "permissionRanges.get",
90523
91021
  "permissionRanges.create",
90524
91022
  "permissionRanges.remove",
90525
- "permissionRanges.updatePrincipal"
91023
+ "permissionRanges.updatePrincipal",
91024
+ "customXml.parts.list",
91025
+ "customXml.parts.get",
91026
+ "customXml.parts.create",
91027
+ "customXml.parts.patch",
91028
+ "customXml.parts.remove"
90526
91029
  ]
90527
91030
  },
90528
91031
  "planEngine": {
@@ -91663,7 +92166,9 @@ const CONTRACT = {
91663
92166
  "success",
91664
92167
  "failure"
91665
92168
  ]
91666
- }
92169
+ },
92170
+ "intentGroup": "table",
92171
+ "intentAction": "delete"
91667
92172
  },
91668
92173
  "doc.tables.clearContents": {
91669
92174
  "operationId": "doc.tables.clearContents",
@@ -93289,7 +93794,9 @@ const CONTRACT = {
93289
93794
  "success",
93290
93795
  "failure"
93291
93796
  ]
93292
- }
93797
+ },
93798
+ "intentGroup": "table",
93799
+ "intentAction": "set_layout"
93293
93800
  },
93294
93801
  "doc.tables.insertRow": {
93295
93802
  "operationId": "doc.tables.insertRow",
@@ -93300,7 +93807,7 @@ const CONTRACT = {
93300
93807
  "insert-row"
93301
93808
  ],
93302
93809
  "category": "tables",
93303
- "description": "Insert a new row into the target table.",
93810
+ "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.",
93304
93811
  "requiresDocumentContext": true,
93305
93812
  "docRequirement": "optional",
93306
93813
  "responseEnvelopeKey": "result",
@@ -93409,7 +93916,6 @@ const CONTRACT = {
93409
93916
  "name": "position",
93410
93917
  "kind": "flag",
93411
93918
  "type": "string",
93412
- "required": true,
93413
93919
  "schema": {
93414
93920
  "oneOf": [
93415
93921
  {
@@ -93524,6 +94030,48 @@ const CONTRACT = {
93524
94030
  "rowIndex",
93525
94031
  "position"
93526
94032
  ]
94033
+ },
94034
+ {
94035
+ "type": "object",
94036
+ "properties": {
94037
+ "target": {
94038
+ "$ref": "#/$defs/TableAddress"
94039
+ },
94040
+ "nodeId": {
94041
+ "type": "string"
94042
+ },
94043
+ "count": {
94044
+ "type": "integer",
94045
+ "minimum": 1
94046
+ }
94047
+ },
94048
+ "additionalProperties": false,
94049
+ "oneOf": [
94050
+ {
94051
+ "required": [
94052
+ "target"
94053
+ ]
94054
+ },
94055
+ {
94056
+ "required": [
94057
+ "nodeId"
94058
+ ]
94059
+ }
94060
+ ],
94061
+ "not": {
94062
+ "anyOf": [
94063
+ {
94064
+ "required": [
94065
+ "rowIndex"
94066
+ ]
94067
+ },
94068
+ {
94069
+ "required": [
94070
+ "position"
94071
+ ]
94072
+ }
94073
+ ]
94074
+ }
93527
94075
  }
93528
94076
  ]
93529
94077
  },
@@ -93642,7 +94190,9 @@ const CONTRACT = {
93642
94190
  "success",
93643
94191
  "failure"
93644
94192
  ]
93645
- }
94193
+ },
94194
+ "intentGroup": "table",
94195
+ "intentAction": "insert_row"
93646
94196
  },
93647
94197
  "doc.tables.deleteRow": {
93648
94198
  "operationId": "doc.tables.deleteRow",
@@ -93941,7 +94491,9 @@ const CONTRACT = {
93941
94491
  "success",
93942
94492
  "failure"
93943
94493
  ]
93944
- }
94494
+ },
94495
+ "intentGroup": "table",
94496
+ "intentAction": "delete_row"
93945
94497
  },
93946
94498
  "doc.tables.setRowHeight": {
93947
94499
  "operationId": "doc.tables.setRowHeight",
@@ -94305,7 +94857,9 @@ const CONTRACT = {
94305
94857
  "success",
94306
94858
  "failure"
94307
94859
  ]
94308
- }
94860
+ },
94861
+ "intentGroup": "table",
94862
+ "intentAction": "set_row"
94309
94863
  },
94310
94864
  "doc.tables.distributeRows": {
94311
94865
  "operationId": "doc.tables.distributeRows",
@@ -94878,7 +95432,9 @@ const CONTRACT = {
94878
95432
  "success",
94879
95433
  "failure"
94880
95434
  ]
94881
- }
95435
+ },
95436
+ "intentGroup": "table",
95437
+ "intentAction": "set_row_options"
94882
95438
  },
94883
95439
  "doc.tables.insertColumn": {
94884
95440
  "operationId": "doc.tables.insertColumn",
@@ -94889,7 +95445,7 @@ const CONTRACT = {
94889
95445
  "insert-column"
94890
95446
  ],
94891
95447
  "category": "tables",
94892
- "description": "Insert a new column into the target table.",
95448
+ "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.",
94893
95449
  "requiresDocumentContext": true,
94894
95450
  "docRequirement": "optional",
94895
95451
  "responseEnvelopeKey": "result",
@@ -94981,8 +95537,7 @@ const CONTRACT = {
94981
95537
  "name": "columnIndex",
94982
95538
  "kind": "flag",
94983
95539
  "type": "number",
94984
- "flag": "column-index",
94985
- "required": true
95540
+ "flag": "column-index"
94986
95541
  },
94987
95542
  {
94988
95543
  "name": "position",
@@ -94996,6 +95551,12 @@ const CONTRACT = {
94996
95551
  },
94997
95552
  {
94998
95553
  "const": "right"
95554
+ },
95555
+ {
95556
+ "const": "first"
95557
+ },
95558
+ {
95559
+ "const": "last"
94999
95560
  }
95000
95561
  ]
95001
95562
  }
@@ -95027,7 +95588,9 @@ const CONTRACT = {
95027
95588
  "position": {
95028
95589
  "enum": [
95029
95590
  "left",
95030
- "right"
95591
+ "right",
95592
+ "first",
95593
+ "last"
95031
95594
  ]
95032
95595
  },
95033
95596
  "count": {
@@ -95037,7 +95600,6 @@ const CONTRACT = {
95037
95600
  },
95038
95601
  "additionalProperties": false,
95039
95602
  "required": [
95040
- "columnIndex",
95041
95603
  "position"
95042
95604
  ],
95043
95605
  "oneOf": [
@@ -95168,7 +95730,9 @@ const CONTRACT = {
95168
95730
  "success",
95169
95731
  "failure"
95170
95732
  ]
95171
- }
95733
+ },
95734
+ "intentGroup": "table",
95735
+ "intentAction": "insert_column"
95172
95736
  },
95173
95737
  "doc.tables.deleteColumn": {
95174
95738
  "operationId": "doc.tables.deleteColumn",
@@ -95426,7 +95990,9 @@ const CONTRACT = {
95426
95990
  "success",
95427
95991
  "failure"
95428
95992
  ]
95429
- }
95993
+ },
95994
+ "intentGroup": "table",
95995
+ "intentAction": "delete_column"
95430
95996
  },
95431
95997
  "doc.tables.setColumnWidth": {
95432
95998
  "operationId": "doc.tables.setColumnWidth",
@@ -95696,7 +96262,9 @@ const CONTRACT = {
95696
96262
  "success",
95697
96263
  "failure"
95698
96264
  ]
95699
- }
96265
+ },
96266
+ "intentGroup": "table",
96267
+ "intentAction": "set_column"
95700
96268
  },
95701
96269
  "doc.tables.distributeColumns": {
95702
96270
  "operationId": "doc.tables.distributeColumns",
@@ -96845,7 +97413,9 @@ const CONTRACT = {
96845
97413
  "success",
96846
97414
  "failure"
96847
97415
  ]
96848
- }
97416
+ },
97417
+ "intentGroup": "table",
97418
+ "intentAction": "merge_cells"
96849
97419
  },
96850
97420
  "doc.tables.unmergeCells": {
96851
97421
  "operationId": "doc.tables.unmergeCells",
@@ -97172,7 +97742,9 @@ const CONTRACT = {
97172
97742
  "success",
97173
97743
  "failure"
97174
97744
  ]
97175
- }
97745
+ },
97746
+ "intentGroup": "table",
97747
+ "intentAction": "unmerge_cells"
97176
97748
  },
97177
97749
  "doc.tables.splitCell": {
97178
97750
  "operationId": "doc.tables.splitCell",
@@ -97451,7 +98023,7 @@ const CONTRACT = {
97451
98023
  "set-cell-properties"
97452
98024
  ],
97453
98025
  "category": "tables",
97454
- "description": "Set properties on a table cell such as vertical alignment or text direction.",
98026
+ "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.",
97455
98027
  "requiresDocumentContext": true,
97456
98028
  "docRequirement": "optional",
97457
98029
  "responseEnvelopeKey": "result",
@@ -97737,21 +98309,23 @@ const CONTRACT = {
97737
98309
  "success",
97738
98310
  "failure"
97739
98311
  ]
97740
- }
98312
+ },
98313
+ "intentGroup": "table",
98314
+ "intentAction": "set_cell"
97741
98315
  },
97742
- "doc.tables.sort": {
97743
- "operationId": "doc.tables.sort",
98316
+ "doc.tables.setCellText": {
98317
+ "operationId": "doc.tables.setCellText",
97744
98318
  "sdkSurface": "document",
97745
- "command": "tables sort",
98319
+ "command": "tables set-cell-text",
97746
98320
  "commandTokens": [
97747
98321
  "tables",
97748
- "sort"
98322
+ "set-cell-text"
97749
98323
  ],
97750
98324
  "category": "tables",
97751
- "description": "Sort table rows by a column value.",
98325
+ "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.",
97752
98326
  "requiresDocumentContext": true,
97753
98327
  "docRequirement": "optional",
97754
- "responseEnvelopeKey": "result",
98328
+ "responseEnvelopeKey": null,
97755
98329
  "params": [
97756
98330
  {
97757
98331
  "name": "doc",
@@ -97811,25 +98385,54 @@ const CONTRACT = {
97811
98385
  "type": "json",
97812
98386
  "flag": "target-json",
97813
98387
  "schema": {
97814
- "type": "object",
97815
- "properties": {
97816
- "kind": {
97817
- "const": "block"
97818
- },
97819
- "nodeType": {
97820
- "const": "table"
98388
+ "oneOf": [
98389
+ {
98390
+ "type": "object",
98391
+ "properties": {
98392
+ "kind": {
98393
+ "const": "block"
98394
+ },
98395
+ "nodeType": {
98396
+ "const": "tableCell"
98397
+ },
98398
+ "nodeId": {
98399
+ "type": "string"
98400
+ }
98401
+ },
98402
+ "required": [
98403
+ "kind",
98404
+ "nodeType",
98405
+ "nodeId"
98406
+ ]
97821
98407
  },
97822
- "nodeId": {
97823
- "type": "string"
98408
+ {
98409
+ "type": "object",
98410
+ "properties": {
98411
+ "kind": {
98412
+ "const": "block"
98413
+ },
98414
+ "nodeType": {
98415
+ "const": "table"
98416
+ },
98417
+ "nodeId": {
98418
+ "type": "string"
98419
+ }
98420
+ },
98421
+ "required": [
98422
+ "kind",
98423
+ "nodeType",
98424
+ "nodeId"
98425
+ ]
97824
98426
  }
97825
- },
97826
- "required": [
97827
- "kind",
97828
- "nodeType",
97829
- "nodeId"
97830
98427
  ]
97831
98428
  }
97832
98429
  },
98430
+ {
98431
+ "name": "text",
98432
+ "kind": "flag",
98433
+ "type": "string",
98434
+ "required": true
98435
+ },
97833
98436
  {
97834
98437
  "name": "nodeId",
97835
98438
  "kind": "flag",
@@ -97837,111 +98440,107 @@ const CONTRACT = {
97837
98440
  "flag": "node-id"
97838
98441
  },
97839
98442
  {
97840
- "name": "keys",
97841
- "kind": "jsonFlag",
97842
- "type": "json",
97843
- "flag": "keys-json",
97844
- "required": true,
97845
- "schema": {
97846
- "type": "array",
97847
- "items": {
97848
- "type": "object",
97849
- "properties": {
97850
- "columnIndex": {
97851
- "type": "number"
97852
- },
97853
- "direction": {
97854
- "oneOf": [
97855
- {
97856
- "const": "ascending"
97857
- },
97858
- {
97859
- "const": "descending"
97860
- }
97861
- ]
97862
- },
97863
- "type": {
97864
- "oneOf": [
97865
- {
97866
- "const": "text"
97867
- },
97868
- {
97869
- "const": "number"
97870
- },
97871
- {
97872
- "const": "date"
97873
- }
97874
- ]
97875
- }
97876
- },
97877
- "required": [
97878
- "columnIndex",
97879
- "direction",
97880
- "type"
97881
- ]
97882
- }
97883
- }
98443
+ "name": "rowIndex",
98444
+ "kind": "flag",
98445
+ "type": "number",
98446
+ "flag": "row-index"
98447
+ },
98448
+ {
98449
+ "name": "columnIndex",
98450
+ "kind": "flag",
98451
+ "type": "number",
98452
+ "flag": "column-index"
97884
98453
  }
97885
98454
  ],
97886
98455
  "constraints": null,
97887
98456
  "mutates": true,
97888
- "idempotency": "non-idempotent",
98457
+ "idempotency": "idempotent",
97889
98458
  "supportsTrackedMode": false,
97890
98459
  "supportsDryRun": true,
97891
98460
  "inputSchema": {
97892
- "type": "object",
97893
- "properties": {
97894
- "target": {
97895
- "$ref": "#/$defs/TableAddress"
97896
- },
97897
- "nodeId": {
97898
- "type": "string"
98461
+ "oneOf": [
98462
+ {
98463
+ "type": "object",
98464
+ "properties": {
98465
+ "target": {
98466
+ "$ref": "#/$defs/TableCellAddress"
98467
+ },
98468
+ "text": {
98469
+ "type": "string"
98470
+ }
98471
+ },
98472
+ "additionalProperties": false,
98473
+ "required": [
98474
+ "target",
98475
+ "text"
98476
+ ]
97899
98477
  },
97900
- "keys": {
97901
- "type": "array",
97902
- "items": {
97903
- "type": "object",
97904
- "properties": {
97905
- "columnIndex": {
97906
- "type": "integer",
97907
- "minimum": 0
97908
- },
97909
- "direction": {
97910
- "enum": [
97911
- "ascending",
97912
- "descending"
97913
- ]
97914
- },
97915
- "type": {
97916
- "enum": [
97917
- "text",
97918
- "number",
97919
- "date"
97920
- ]
97921
- }
98478
+ {
98479
+ "type": "object",
98480
+ "properties": {
98481
+ "nodeId": {
98482
+ "type": "string"
97922
98483
  },
97923
- "additionalProperties": false,
97924
- "required": [
97925
- "columnIndex",
97926
- "direction",
97927
- "type"
97928
- ]
97929
- }
97930
- }
97931
- },
97932
- "additionalProperties": false,
97933
- "required": [
97934
- "keys"
97935
- ],
97936
- "oneOf": [
98484
+ "text": {
98485
+ "type": "string"
98486
+ }
98487
+ },
98488
+ "additionalProperties": false,
98489
+ "required": [
98490
+ "nodeId",
98491
+ "text"
98492
+ ]
98493
+ },
97937
98494
  {
98495
+ "type": "object",
98496
+ "properties": {
98497
+ "target": {
98498
+ "$ref": "#/$defs/TableAddress"
98499
+ },
98500
+ "rowIndex": {
98501
+ "type": "integer",
98502
+ "minimum": 0
98503
+ },
98504
+ "columnIndex": {
98505
+ "type": "integer",
98506
+ "minimum": 0
98507
+ },
98508
+ "text": {
98509
+ "type": "string"
98510
+ }
98511
+ },
98512
+ "additionalProperties": false,
97938
98513
  "required": [
97939
- "target"
98514
+ "target",
98515
+ "rowIndex",
98516
+ "columnIndex",
98517
+ "text"
97940
98518
  ]
97941
98519
  },
97942
98520
  {
98521
+ "type": "object",
98522
+ "properties": {
98523
+ "nodeId": {
98524
+ "type": "string"
98525
+ },
98526
+ "rowIndex": {
98527
+ "type": "integer",
98528
+ "minimum": 0
98529
+ },
98530
+ "columnIndex": {
98531
+ "type": "integer",
98532
+ "minimum": 0
98533
+ },
98534
+ "text": {
98535
+ "type": "string"
98536
+ }
98537
+ },
98538
+ "additionalProperties": false,
97943
98539
  "required": [
97944
- "nodeId"
98540
+ "nodeId",
98541
+ "rowIndex",
98542
+ "columnIndex",
98543
+ "text"
97945
98544
  ]
97946
98545
  }
97947
98546
  ]
@@ -98061,18 +98660,20 @@ const CONTRACT = {
98061
98660
  "success",
98062
98661
  "failure"
98063
98662
  ]
98064
- }
98663
+ },
98664
+ "intentGroup": "table",
98665
+ "intentAction": "set_cell_text"
98065
98666
  },
98066
- "doc.tables.setAltText": {
98067
- "operationId": "doc.tables.setAltText",
98667
+ "doc.tables.sort": {
98668
+ "operationId": "doc.tables.sort",
98068
98669
  "sdkSurface": "document",
98069
- "command": "tables set-alt-text",
98670
+ "command": "tables sort",
98070
98671
  "commandTokens": [
98071
98672
  "tables",
98072
- "set-alt-text"
98673
+ "sort"
98073
98674
  ],
98074
98675
  "category": "tables",
98075
- "description": "Set the alternative text description for a table.",
98676
+ "description": "Sort table rows by a column value.",
98076
98677
  "requiresDocumentContext": true,
98077
98678
  "docRequirement": "optional",
98078
98679
  "responseEnvelopeKey": "result",
@@ -98161,19 +98762,55 @@ const CONTRACT = {
98161
98762
  "flag": "node-id"
98162
98763
  },
98163
98764
  {
98164
- "name": "title",
98165
- "kind": "flag",
98166
- "type": "string"
98167
- },
98168
- {
98169
- "name": "description",
98170
- "kind": "flag",
98171
- "type": "string"
98765
+ "name": "keys",
98766
+ "kind": "jsonFlag",
98767
+ "type": "json",
98768
+ "flag": "keys-json",
98769
+ "required": true,
98770
+ "schema": {
98771
+ "type": "array",
98772
+ "items": {
98773
+ "type": "object",
98774
+ "properties": {
98775
+ "columnIndex": {
98776
+ "type": "number"
98777
+ },
98778
+ "direction": {
98779
+ "oneOf": [
98780
+ {
98781
+ "const": "ascending"
98782
+ },
98783
+ {
98784
+ "const": "descending"
98785
+ }
98786
+ ]
98787
+ },
98788
+ "type": {
98789
+ "oneOf": [
98790
+ {
98791
+ "const": "text"
98792
+ },
98793
+ {
98794
+ "const": "number"
98795
+ },
98796
+ {
98797
+ "const": "date"
98798
+ }
98799
+ ]
98800
+ }
98801
+ },
98802
+ "required": [
98803
+ "columnIndex",
98804
+ "direction",
98805
+ "type"
98806
+ ]
98807
+ }
98808
+ }
98172
98809
  }
98173
98810
  ],
98174
98811
  "constraints": null,
98175
98812
  "mutates": true,
98176
- "idempotency": "idempotent",
98813
+ "idempotency": "non-idempotent",
98177
98814
  "supportsTrackedMode": false,
98178
98815
  "supportsDryRun": true,
98179
98816
  "inputSchema": {
@@ -98185,14 +98822,42 @@ const CONTRACT = {
98185
98822
  "nodeId": {
98186
98823
  "type": "string"
98187
98824
  },
98188
- "title": {
98189
- "type": "string"
98190
- },
98191
- "description": {
98192
- "type": "string"
98825
+ "keys": {
98826
+ "type": "array",
98827
+ "items": {
98828
+ "type": "object",
98829
+ "properties": {
98830
+ "columnIndex": {
98831
+ "type": "integer",
98832
+ "minimum": 0
98833
+ },
98834
+ "direction": {
98835
+ "enum": [
98836
+ "ascending",
98837
+ "descending"
98838
+ ]
98839
+ },
98840
+ "type": {
98841
+ "enum": [
98842
+ "text",
98843
+ "number",
98844
+ "date"
98845
+ ]
98846
+ }
98847
+ },
98848
+ "additionalProperties": false,
98849
+ "required": [
98850
+ "columnIndex",
98851
+ "direction",
98852
+ "type"
98853
+ ]
98854
+ }
98193
98855
  }
98194
98856
  },
98195
98857
  "additionalProperties": false,
98858
+ "required": [
98859
+ "keys"
98860
+ ],
98196
98861
  "oneOf": [
98197
98862
  {
98198
98863
  "required": [
@@ -98323,16 +98988,16 @@ const CONTRACT = {
98323
98988
  ]
98324
98989
  }
98325
98990
  },
98326
- "doc.tables.setStyle": {
98327
- "operationId": "doc.tables.setStyle",
98991
+ "doc.tables.setAltText": {
98992
+ "operationId": "doc.tables.setAltText",
98328
98993
  "sdkSurface": "document",
98329
- "command": "tables set-style",
98994
+ "command": "tables set-alt-text",
98330
98995
  "commandTokens": [
98331
98996
  "tables",
98332
- "set-style"
98997
+ "set-alt-text"
98333
98998
  ],
98334
98999
  "category": "tables",
98335
- "description": "Apply a named table style to the target table.",
99000
+ "description": "Set the alternative text description for a table.",
98336
99001
  "requiresDocumentContext": true,
98337
99002
  "docRequirement": "optional",
98338
99003
  "responseEnvelopeKey": "result",
@@ -98421,11 +99086,14 @@ const CONTRACT = {
98421
99086
  "flag": "node-id"
98422
99087
  },
98423
99088
  {
98424
- "name": "styleId",
99089
+ "name": "title",
98425
99090
  "kind": "flag",
98426
- "type": "string",
98427
- "flag": "style-id",
98428
- "required": true
99091
+ "type": "string"
99092
+ },
99093
+ {
99094
+ "name": "description",
99095
+ "kind": "flag",
99096
+ "type": "string"
98429
99097
  }
98430
99098
  ],
98431
99099
  "constraints": null,
@@ -98442,14 +99110,14 @@ const CONTRACT = {
98442
99110
  "nodeId": {
98443
99111
  "type": "string"
98444
99112
  },
98445
- "styleId": {
99113
+ "title": {
99114
+ "type": "string"
99115
+ },
99116
+ "description": {
98446
99117
  "type": "string"
98447
99118
  }
98448
99119
  },
98449
99120
  "additionalProperties": false,
98450
- "required": [
98451
- "styleId"
98452
- ],
98453
99121
  "oneOf": [
98454
99122
  {
98455
99123
  "required": [
@@ -98580,16 +99248,16 @@ const CONTRACT = {
98580
99248
  ]
98581
99249
  }
98582
99250
  },
98583
- "doc.tables.clearStyle": {
98584
- "operationId": "doc.tables.clearStyle",
99251
+ "doc.tables.setStyle": {
99252
+ "operationId": "doc.tables.setStyle",
98585
99253
  "sdkSurface": "document",
98586
- "command": "tables clear-style",
99254
+ "command": "tables set-style",
98587
99255
  "commandTokens": [
98588
99256
  "tables",
98589
- "clear-style"
99257
+ "set-style"
98590
99258
  ],
98591
99259
  "category": "tables",
98592
- "description": "Remove the applied table style, reverting to defaults.",
99260
+ "description": "Apply a named table style to the target table.",
98593
99261
  "requiresDocumentContext": true,
98594
99262
  "docRequirement": "optional",
98595
99263
  "responseEnvelopeKey": "result",
@@ -98676,11 +99344,18 @@ const CONTRACT = {
98676
99344
  "kind": "flag",
98677
99345
  "type": "string",
98678
99346
  "flag": "node-id"
99347
+ },
99348
+ {
99349
+ "name": "styleId",
99350
+ "kind": "flag",
99351
+ "type": "string",
99352
+ "flag": "style-id",
99353
+ "required": true
98679
99354
  }
98680
99355
  ],
98681
99356
  "constraints": null,
98682
99357
  "mutates": true,
98683
- "idempotency": "conditional",
99358
+ "idempotency": "idempotent",
98684
99359
  "supportsTrackedMode": false,
98685
99360
  "supportsDryRun": true,
98686
99361
  "inputSchema": {
@@ -98691,9 +99366,15 @@ const CONTRACT = {
98691
99366
  },
98692
99367
  "nodeId": {
98693
99368
  "type": "string"
99369
+ },
99370
+ "styleId": {
99371
+ "type": "string"
98694
99372
  }
98695
99373
  },
98696
99374
  "additionalProperties": false,
99375
+ "required": [
99376
+ "styleId"
99377
+ ],
98697
99378
  "oneOf": [
98698
99379
  {
98699
99380
  "required": [
@@ -98824,16 +99505,16 @@ const CONTRACT = {
98824
99505
  ]
98825
99506
  }
98826
99507
  },
98827
- "doc.tables.setStyleOption": {
98828
- "operationId": "doc.tables.setStyleOption",
99508
+ "doc.tables.clearStyle": {
99509
+ "operationId": "doc.tables.clearStyle",
98829
99510
  "sdkSurface": "document",
98830
- "command": "tables set-style-option",
99511
+ "command": "tables clear-style",
98831
99512
  "commandTokens": [
98832
99513
  "tables",
98833
- "set-style-option"
99514
+ "clear-style"
98834
99515
  ],
98835
99516
  "category": "tables",
98836
- "description": "Toggle a conditional style option such as banded rows or first column.",
99517
+ "description": "Remove the applied table style, reverting to defaults.",
98837
99518
  "requiresDocumentContext": true,
98838
99519
  "docRequirement": "optional",
98839
99520
  "responseEnvelopeKey": "result",
@@ -98920,48 +99601,11 @@ const CONTRACT = {
98920
99601
  "kind": "flag",
98921
99602
  "type": "string",
98922
99603
  "flag": "node-id"
98923
- },
98924
- {
98925
- "name": "flag",
98926
- "kind": "flag",
98927
- "type": "string",
98928
- "required": true,
98929
- "schema": {
98930
- "oneOf": [
98931
- {
98932
- "const": "headerRow"
98933
- },
98934
- {
98935
- "const": "lastRow"
98936
- },
98937
- {
98938
- "const": "totalRow"
98939
- },
98940
- {
98941
- "const": "firstColumn"
98942
- },
98943
- {
98944
- "const": "lastColumn"
98945
- },
98946
- {
98947
- "const": "bandedRows"
98948
- },
98949
- {
98950
- "const": "bandedColumns"
98951
- }
98952
- ]
98953
- }
98954
- },
98955
- {
98956
- "name": "enabled",
98957
- "kind": "flag",
98958
- "type": "boolean",
98959
- "required": true
98960
99604
  }
98961
99605
  ],
98962
99606
  "constraints": null,
98963
99607
  "mutates": true,
98964
- "idempotency": "idempotent",
99608
+ "idempotency": "conditional",
98965
99609
  "supportsTrackedMode": false,
98966
99610
  "supportsDryRun": true,
98967
99611
  "inputSchema": {
@@ -98972,27 +99616,9 @@ const CONTRACT = {
98972
99616
  },
98973
99617
  "nodeId": {
98974
99618
  "type": "string"
98975
- },
98976
- "flag": {
98977
- "enum": [
98978
- "headerRow",
98979
- "lastRow",
98980
- "totalRow",
98981
- "firstColumn",
98982
- "lastColumn",
98983
- "bandedRows",
98984
- "bandedColumns"
98985
- ]
98986
- },
98987
- "enabled": {
98988
- "type": "boolean"
98989
99619
  }
98990
99620
  },
98991
99621
  "additionalProperties": false,
98992
- "required": [
98993
- "flag",
98994
- "enabled"
98995
- ],
98996
99622
  "oneOf": [
98997
99623
  {
98998
99624
  "required": [
@@ -99123,16 +99749,16 @@ const CONTRACT = {
99123
99749
  ]
99124
99750
  }
99125
99751
  },
99126
- "doc.tables.setBorder": {
99127
- "operationId": "doc.tables.setBorder",
99752
+ "doc.tables.setStyleOption": {
99753
+ "operationId": "doc.tables.setStyleOption",
99128
99754
  "sdkSurface": "document",
99129
- "command": "tables set-border",
99755
+ "command": "tables set-style-option",
99130
99756
  "commandTokens": [
99131
99757
  "tables",
99132
- "set-border"
99758
+ "set-style-option"
99133
99759
  ],
99134
99760
  "category": "tables",
99135
- "description": "Set border properties on a table or cell range.",
99761
+ "description": "Toggle a conditional style option such as banded rows or first column.",
99136
99762
  "requiresDocumentContext": true,
99137
99763
  "docRequirement": "optional",
99138
99764
  "responseEnvelopeKey": "result",
@@ -99201,14 +99827,7 @@ const CONTRACT = {
99201
99827
  "const": "block"
99202
99828
  },
99203
99829
  "nodeType": {
99204
- "oneOf": [
99205
- {
99206
- "const": "table"
99207
- },
99208
- {
99209
- "const": "tableCell"
99210
- }
99211
- ]
99830
+ "const": "table"
99212
99831
  },
99213
99832
  "nodeId": {
99214
99833
  "type": "string"
@@ -99228,57 +99847,40 @@ const CONTRACT = {
99228
99847
  "flag": "node-id"
99229
99848
  },
99230
99849
  {
99231
- "name": "edge",
99850
+ "name": "flag",
99232
99851
  "kind": "flag",
99233
99852
  "type": "string",
99234
99853
  "required": true,
99235
99854
  "schema": {
99236
99855
  "oneOf": [
99237
99856
  {
99238
- "const": "top"
99239
- },
99240
- {
99241
- "const": "bottom"
99857
+ "const": "headerRow"
99242
99858
  },
99243
99859
  {
99244
- "const": "left"
99860
+ "const": "lastRow"
99245
99861
  },
99246
99862
  {
99247
- "const": "right"
99863
+ "const": "totalRow"
99248
99864
  },
99249
99865
  {
99250
- "const": "insideH"
99866
+ "const": "firstColumn"
99251
99867
  },
99252
99868
  {
99253
- "const": "insideV"
99869
+ "const": "lastColumn"
99254
99870
  },
99255
99871
  {
99256
- "const": "diagonalDown"
99872
+ "const": "bandedRows"
99257
99873
  },
99258
99874
  {
99259
- "const": "diagonalUp"
99875
+ "const": "bandedColumns"
99260
99876
  }
99261
99877
  ]
99262
99878
  }
99263
99879
  },
99264
99880
  {
99265
- "name": "lineStyle",
99266
- "kind": "flag",
99267
- "type": "string",
99268
- "flag": "line-style",
99269
- "required": true
99270
- },
99271
- {
99272
- "name": "lineWeightPt",
99273
- "kind": "flag",
99274
- "type": "number",
99275
- "flag": "line-weight-pt",
99276
- "required": true
99277
- },
99278
- {
99279
- "name": "color",
99881
+ "name": "enabled",
99280
99882
  "kind": "flag",
99281
- "type": "string",
99883
+ "type": "boolean",
99282
99884
  "required": true
99283
99885
  }
99284
99886
  ],
@@ -99291,41 +99893,30 @@ const CONTRACT = {
99291
99893
  "type": "object",
99292
99894
  "properties": {
99293
99895
  "target": {
99294
- "$ref": "#/$defs/TableOrCellAddress"
99896
+ "$ref": "#/$defs/TableAddress"
99295
99897
  },
99296
99898
  "nodeId": {
99297
99899
  "type": "string"
99298
99900
  },
99299
- "edge": {
99901
+ "flag": {
99300
99902
  "enum": [
99301
- "top",
99302
- "bottom",
99303
- "left",
99304
- "right",
99305
- "insideH",
99306
- "insideV",
99307
- "diagonalDown",
99308
- "diagonalUp"
99903
+ "headerRow",
99904
+ "lastRow",
99905
+ "totalRow",
99906
+ "firstColumn",
99907
+ "lastColumn",
99908
+ "bandedRows",
99909
+ "bandedColumns"
99309
99910
  ]
99310
99911
  },
99311
- "lineStyle": {
99312
- "type": "string"
99313
- },
99314
- "lineWeightPt": {
99315
- "type": "number",
99316
- "exclusiveMinimum": 0
99317
- },
99318
- "color": {
99319
- "type": "string",
99320
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
99912
+ "enabled": {
99913
+ "type": "boolean"
99321
99914
  }
99322
99915
  },
99323
99916
  "additionalProperties": false,
99324
99917
  "required": [
99325
- "edge",
99326
- "lineStyle",
99327
- "lineWeightPt",
99328
- "color"
99918
+ "flag",
99919
+ "enabled"
99329
99920
  ],
99330
99921
  "oneOf": [
99331
99922
  {
@@ -99457,16 +100048,16 @@ const CONTRACT = {
99457
100048
  ]
99458
100049
  }
99459
100050
  },
99460
- "doc.tables.clearBorder": {
99461
- "operationId": "doc.tables.clearBorder",
100051
+ "doc.tables.setBorder": {
100052
+ "operationId": "doc.tables.setBorder",
99462
100053
  "sdkSurface": "document",
99463
- "command": "tables clear-border",
100054
+ "command": "tables set-border",
99464
100055
  "commandTokens": [
99465
100056
  "tables",
99466
- "clear-border"
100057
+ "set-border"
99467
100058
  ],
99468
100059
  "category": "tables",
99469
- "description": "Remove border formatting from a table or cell range.",
100060
+ "description": "Set border properties on a table or cell range.",
99470
100061
  "requiresDocumentContext": true,
99471
100062
  "docRequirement": "optional",
99472
100063
  "responseEnvelopeKey": "result",
@@ -99594,11 +100185,31 @@ const CONTRACT = {
99594
100185
  }
99595
100186
  ]
99596
100187
  }
100188
+ },
100189
+ {
100190
+ "name": "lineStyle",
100191
+ "kind": "flag",
100192
+ "type": "string",
100193
+ "flag": "line-style",
100194
+ "required": true
100195
+ },
100196
+ {
100197
+ "name": "lineWeightPt",
100198
+ "kind": "flag",
100199
+ "type": "number",
100200
+ "flag": "line-weight-pt",
100201
+ "required": true
100202
+ },
100203
+ {
100204
+ "name": "color",
100205
+ "kind": "flag",
100206
+ "type": "string",
100207
+ "required": true
99597
100208
  }
99598
100209
  ],
99599
100210
  "constraints": null,
99600
100211
  "mutates": true,
99601
- "idempotency": "conditional",
100212
+ "idempotency": "idempotent",
99602
100213
  "supportsTrackedMode": false,
99603
100214
  "supportsDryRun": true,
99604
100215
  "inputSchema": {
@@ -99621,11 +100232,25 @@ const CONTRACT = {
99621
100232
  "diagonalDown",
99622
100233
  "diagonalUp"
99623
100234
  ]
100235
+ },
100236
+ "lineStyle": {
100237
+ "type": "string"
100238
+ },
100239
+ "lineWeightPt": {
100240
+ "type": "number",
100241
+ "exclusiveMinimum": 0
100242
+ },
100243
+ "color": {
100244
+ "type": "string",
100245
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
99624
100246
  }
99625
100247
  },
99626
100248
  "additionalProperties": false,
99627
100249
  "required": [
99628
- "edge"
100250
+ "edge",
100251
+ "lineStyle",
100252
+ "lineWeightPt",
100253
+ "color"
99629
100254
  ],
99630
100255
  "oneOf": [
99631
100256
  {
@@ -99757,16 +100382,16 @@ const CONTRACT = {
99757
100382
  ]
99758
100383
  }
99759
100384
  },
99760
- "doc.tables.applyBorderPreset": {
99761
- "operationId": "doc.tables.applyBorderPreset",
100385
+ "doc.tables.clearBorder": {
100386
+ "operationId": "doc.tables.clearBorder",
99762
100387
  "sdkSurface": "document",
99763
- "command": "tables apply-border-preset",
100388
+ "command": "tables clear-border",
99764
100389
  "commandTokens": [
99765
100390
  "tables",
99766
- "apply-border-preset"
100391
+ "clear-border"
99767
100392
  ],
99768
100393
  "category": "tables",
99769
- "description": "Apply a border preset (e.g. all borders, outside only) to a table.",
100394
+ "description": "Remove border formatting from a table or cell range.",
99770
100395
  "requiresDocumentContext": true,
99771
100396
  "docRequirement": "optional",
99772
100397
  "responseEnvelopeKey": "result",
@@ -99835,7 +100460,14 @@ const CONTRACT = {
99835
100460
  "const": "block"
99836
100461
  },
99837
100462
  "nodeType": {
99838
- "const": "table"
100463
+ "oneOf": [
100464
+ {
100465
+ "const": "table"
100466
+ },
100467
+ {
100468
+ "const": "tableCell"
100469
+ }
100470
+ ]
99839
100471
  },
99840
100472
  "nodeId": {
99841
100473
  "type": "string"
@@ -99855,26 +100487,35 @@ const CONTRACT = {
99855
100487
  "flag": "node-id"
99856
100488
  },
99857
100489
  {
99858
- "name": "preset",
100490
+ "name": "edge",
99859
100491
  "kind": "flag",
99860
100492
  "type": "string",
99861
100493
  "required": true,
99862
100494
  "schema": {
99863
100495
  "oneOf": [
99864
100496
  {
99865
- "const": "box"
100497
+ "const": "top"
99866
100498
  },
99867
100499
  {
99868
- "const": "all"
100500
+ "const": "bottom"
99869
100501
  },
99870
100502
  {
99871
- "const": "none"
100503
+ "const": "left"
99872
100504
  },
99873
100505
  {
99874
- "const": "grid"
100506
+ "const": "right"
99875
100507
  },
99876
100508
  {
99877
- "const": "custom"
100509
+ "const": "insideH"
100510
+ },
100511
+ {
100512
+ "const": "insideV"
100513
+ },
100514
+ {
100515
+ "const": "diagonalDown"
100516
+ },
100517
+ {
100518
+ "const": "diagonalUp"
99878
100519
  }
99879
100520
  ]
99880
100521
  }
@@ -99882,31 +100523,34 @@ const CONTRACT = {
99882
100523
  ],
99883
100524
  "constraints": null,
99884
100525
  "mutates": true,
99885
- "idempotency": "idempotent",
100526
+ "idempotency": "conditional",
99886
100527
  "supportsTrackedMode": false,
99887
100528
  "supportsDryRun": true,
99888
100529
  "inputSchema": {
99889
100530
  "type": "object",
99890
100531
  "properties": {
99891
100532
  "target": {
99892
- "$ref": "#/$defs/TableAddress"
100533
+ "$ref": "#/$defs/TableOrCellAddress"
99893
100534
  },
99894
100535
  "nodeId": {
99895
100536
  "type": "string"
99896
100537
  },
99897
- "preset": {
100538
+ "edge": {
99898
100539
  "enum": [
99899
- "box",
99900
- "all",
99901
- "none",
99902
- "grid",
99903
- "custom"
100540
+ "top",
100541
+ "bottom",
100542
+ "left",
100543
+ "right",
100544
+ "insideH",
100545
+ "insideV",
100546
+ "diagonalDown",
100547
+ "diagonalUp"
99904
100548
  ]
99905
100549
  }
99906
100550
  },
99907
100551
  "additionalProperties": false,
99908
100552
  "required": [
99909
- "preset"
100553
+ "edge"
99910
100554
  ],
99911
100555
  "oneOf": [
99912
100556
  {
@@ -100038,16 +100682,16 @@ const CONTRACT = {
100038
100682
  ]
100039
100683
  }
100040
100684
  },
100041
- "doc.tables.setShading": {
100042
- "operationId": "doc.tables.setShading",
100685
+ "doc.tables.applyBorderPreset": {
100686
+ "operationId": "doc.tables.applyBorderPreset",
100043
100687
  "sdkSurface": "document",
100044
- "command": "tables set-shading",
100688
+ "command": "tables apply-border-preset",
100045
100689
  "commandTokens": [
100046
100690
  "tables",
100047
- "set-shading"
100691
+ "apply-border-preset"
100048
100692
  ],
100049
100693
  "category": "tables",
100050
- "description": "Set the background shading color on a table or cell range.",
100694
+ "description": "Apply a border preset (e.g. all borders, outside only) to a table.",
100051
100695
  "requiresDocumentContext": true,
100052
100696
  "docRequirement": "optional",
100053
100697
  "responseEnvelopeKey": "result",
@@ -100116,14 +100760,7 @@ const CONTRACT = {
100116
100760
  "const": "block"
100117
100761
  },
100118
100762
  "nodeType": {
100119
- "oneOf": [
100120
- {
100121
- "const": "table"
100122
- },
100123
- {
100124
- "const": "tableCell"
100125
- }
100126
- ]
100763
+ "const": "table"
100127
100764
  },
100128
100765
  "nodeId": {
100129
100766
  "type": "string"
@@ -100143,10 +100780,29 @@ const CONTRACT = {
100143
100780
  "flag": "node-id"
100144
100781
  },
100145
100782
  {
100146
- "name": "color",
100783
+ "name": "preset",
100147
100784
  "kind": "flag",
100148
100785
  "type": "string",
100149
- "required": true
100786
+ "required": true,
100787
+ "schema": {
100788
+ "oneOf": [
100789
+ {
100790
+ "const": "box"
100791
+ },
100792
+ {
100793
+ "const": "all"
100794
+ },
100795
+ {
100796
+ "const": "none"
100797
+ },
100798
+ {
100799
+ "const": "grid"
100800
+ },
100801
+ {
100802
+ "const": "custom"
100803
+ }
100804
+ ]
100805
+ }
100150
100806
  }
100151
100807
  ],
100152
100808
  "constraints": null,
@@ -100158,19 +100814,24 @@ const CONTRACT = {
100158
100814
  "type": "object",
100159
100815
  "properties": {
100160
100816
  "target": {
100161
- "$ref": "#/$defs/TableOrCellAddress"
100817
+ "$ref": "#/$defs/TableAddress"
100162
100818
  },
100163
100819
  "nodeId": {
100164
100820
  "type": "string"
100165
100821
  },
100166
- "color": {
100167
- "type": "string",
100168
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
100822
+ "preset": {
100823
+ "enum": [
100824
+ "box",
100825
+ "all",
100826
+ "none",
100827
+ "grid",
100828
+ "custom"
100829
+ ]
100169
100830
  }
100170
100831
  },
100171
100832
  "additionalProperties": false,
100172
100833
  "required": [
100173
- "color"
100834
+ "preset"
100174
100835
  ],
100175
100836
  "oneOf": [
100176
100837
  {
@@ -100302,16 +100963,16 @@ const CONTRACT = {
100302
100963
  ]
100303
100964
  }
100304
100965
  },
100305
- "doc.tables.clearShading": {
100306
- "operationId": "doc.tables.clearShading",
100966
+ "doc.tables.setShading": {
100967
+ "operationId": "doc.tables.setShading",
100307
100968
  "sdkSurface": "document",
100308
- "command": "tables clear-shading",
100969
+ "command": "tables set-shading",
100309
100970
  "commandTokens": [
100310
100971
  "tables",
100311
- "clear-shading"
100972
+ "set-shading"
100312
100973
  ],
100313
100974
  "category": "tables",
100314
- "description": "Remove shading from a table or cell range.",
100975
+ "description": "Set the background shading color on a table or cell range.",
100315
100976
  "requiresDocumentContext": true,
100316
100977
  "docRequirement": "optional",
100317
100978
  "responseEnvelopeKey": "result",
@@ -100405,11 +101066,28 @@ const CONTRACT = {
100405
101066
  "kind": "flag",
100406
101067
  "type": "string",
100407
101068
  "flag": "node-id"
101069
+ },
101070
+ {
101071
+ "name": "color",
101072
+ "kind": "jsonFlag",
101073
+ "type": "json",
101074
+ "flag": "color-json",
101075
+ "required": true,
101076
+ "schema": {
101077
+ "oneOf": [
101078
+ {
101079
+ "type": "string"
101080
+ },
101081
+ {
101082
+ "type": "json"
101083
+ }
101084
+ ]
101085
+ }
100408
101086
  }
100409
101087
  ],
100410
101088
  "constraints": null,
100411
101089
  "mutates": true,
100412
- "idempotency": "conditional",
101090
+ "idempotency": "idempotent",
100413
101091
  "supportsTrackedMode": false,
100414
101092
  "supportsDryRun": true,
100415
101093
  "inputSchema": {
@@ -100420,9 +101098,23 @@ const CONTRACT = {
100420
101098
  },
100421
101099
  "nodeId": {
100422
101100
  "type": "string"
101101
+ },
101102
+ "color": {
101103
+ "oneOf": [
101104
+ {
101105
+ "type": "string",
101106
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
101107
+ },
101108
+ {
101109
+ "type": "null"
101110
+ }
101111
+ ]
100423
101112
  }
100424
101113
  },
100425
101114
  "additionalProperties": false,
101115
+ "required": [
101116
+ "color"
101117
+ ],
100426
101118
  "oneOf": [
100427
101119
  {
100428
101120
  "required": [
@@ -100551,18 +101243,20 @@ const CONTRACT = {
100551
101243
  "success",
100552
101244
  "failure"
100553
101245
  ]
100554
- }
101246
+ },
101247
+ "intentGroup": "table",
101248
+ "intentAction": "set_shading"
100555
101249
  },
100556
- "doc.tables.setTablePadding": {
100557
- "operationId": "doc.tables.setTablePadding",
101250
+ "doc.tables.clearShading": {
101251
+ "operationId": "doc.tables.clearShading",
100558
101252
  "sdkSurface": "document",
100559
- "command": "tables set-table-padding",
101253
+ "command": "tables clear-shading",
100560
101254
  "commandTokens": [
100561
101255
  "tables",
100562
- "set-table-padding"
101256
+ "clear-shading"
100563
101257
  ],
100564
101258
  "category": "tables",
100565
- "description": "Set default cell padding for the entire table.",
101259
+ "description": "Remove shading from a table or cell range.",
100566
101260
  "requiresDocumentContext": true,
100567
101261
  "docRequirement": "optional",
100568
101262
  "responseEnvelopeKey": "result",
@@ -100631,7 +101325,14 @@ const CONTRACT = {
100631
101325
  "const": "block"
100632
101326
  },
100633
101327
  "nodeType": {
100634
- "const": "table"
101328
+ "oneOf": [
101329
+ {
101330
+ "const": "table"
101331
+ },
101332
+ {
101333
+ "const": "tableCell"
101334
+ }
101335
+ ]
100635
101336
  },
100636
101337
  "nodeId": {
100637
101338
  "type": "string"
@@ -100649,74 +101350,318 @@ const CONTRACT = {
100649
101350
  "kind": "flag",
100650
101351
  "type": "string",
100651
101352
  "flag": "node-id"
100652
- },
100653
- {
100654
- "name": "topPt",
100655
- "kind": "flag",
100656
- "type": "number",
100657
- "flag": "top-pt",
100658
- "required": true
100659
- },
100660
- {
100661
- "name": "rightPt",
100662
- "kind": "flag",
100663
- "type": "number",
100664
- "flag": "right-pt",
100665
- "required": true
100666
- },
100667
- {
100668
- "name": "bottomPt",
100669
- "kind": "flag",
100670
- "type": "number",
100671
- "flag": "bottom-pt",
100672
- "required": true
100673
- },
100674
- {
100675
- "name": "leftPt",
100676
- "kind": "flag",
100677
- "type": "number",
100678
- "flag": "left-pt",
100679
- "required": true
100680
101353
  }
100681
101354
  ],
100682
101355
  "constraints": null,
100683
101356
  "mutates": true,
100684
- "idempotency": "idempotent",
101357
+ "idempotency": "conditional",
100685
101358
  "supportsTrackedMode": false,
100686
101359
  "supportsDryRun": true,
100687
101360
  "inputSchema": {
100688
101361
  "type": "object",
100689
101362
  "properties": {
100690
101363
  "target": {
100691
- "$ref": "#/$defs/TableAddress"
101364
+ "$ref": "#/$defs/TableOrCellAddress"
100692
101365
  },
100693
101366
  "nodeId": {
100694
101367
  "type": "string"
100695
- },
100696
- "topPt": {
100697
- "type": "number",
100698
- "minimum": 0
100699
- },
100700
- "rightPt": {
100701
- "type": "number",
100702
- "minimum": 0
100703
- },
100704
- "bottomPt": {
100705
- "type": "number",
100706
- "minimum": 0
100707
- },
100708
- "leftPt": {
100709
- "type": "number",
100710
- "minimum": 0
100711
101368
  }
100712
101369
  },
100713
101370
  "additionalProperties": false,
100714
- "required": [
100715
- "topPt",
100716
- "rightPt",
100717
- "bottomPt",
100718
- "leftPt"
100719
- ],
101371
+ "oneOf": [
101372
+ {
101373
+ "required": [
101374
+ "target"
101375
+ ]
101376
+ },
101377
+ {
101378
+ "required": [
101379
+ "nodeId"
101380
+ ]
101381
+ }
101382
+ ]
101383
+ },
101384
+ "outputSchema": {
101385
+ "oneOf": [
101386
+ {
101387
+ "type": "object",
101388
+ "properties": {
101389
+ "success": {
101390
+ "const": true
101391
+ },
101392
+ "table": {
101393
+ "$ref": "#/$defs/TableAddress"
101394
+ },
101395
+ "trackedChangeRefs": {
101396
+ "type": "array",
101397
+ "items": {
101398
+ "$ref": "#/$defs/EntityAddress"
101399
+ }
101400
+ }
101401
+ },
101402
+ "additionalProperties": false,
101403
+ "required": [
101404
+ "success"
101405
+ ]
101406
+ },
101407
+ {
101408
+ "type": "object",
101409
+ "properties": {
101410
+ "success": {
101411
+ "const": false
101412
+ },
101413
+ "failure": {
101414
+ "type": "object",
101415
+ "properties": {
101416
+ "code": {
101417
+ "enum": [
101418
+ "NO_OP",
101419
+ "INVALID_TARGET",
101420
+ "TARGET_NOT_FOUND",
101421
+ "CAPABILITY_UNAVAILABLE"
101422
+ ]
101423
+ },
101424
+ "message": {
101425
+ "type": "string"
101426
+ },
101427
+ "details": {}
101428
+ },
101429
+ "additionalProperties": false,
101430
+ "required": [
101431
+ "code",
101432
+ "message"
101433
+ ]
101434
+ }
101435
+ },
101436
+ "additionalProperties": false,
101437
+ "required": [
101438
+ "success",
101439
+ "failure"
101440
+ ]
101441
+ }
101442
+ ]
101443
+ },
101444
+ "successSchema": {
101445
+ "type": "object",
101446
+ "properties": {
101447
+ "success": {
101448
+ "const": true
101449
+ },
101450
+ "table": {
101451
+ "$ref": "#/$defs/TableAddress"
101452
+ },
101453
+ "trackedChangeRefs": {
101454
+ "type": "array",
101455
+ "items": {
101456
+ "$ref": "#/$defs/EntityAddress"
101457
+ }
101458
+ }
101459
+ },
101460
+ "additionalProperties": false,
101461
+ "required": [
101462
+ "success"
101463
+ ]
101464
+ },
101465
+ "failureSchema": {
101466
+ "type": "object",
101467
+ "properties": {
101468
+ "success": {
101469
+ "const": false
101470
+ },
101471
+ "failure": {
101472
+ "type": "object",
101473
+ "properties": {
101474
+ "code": {
101475
+ "enum": [
101476
+ "NO_OP",
101477
+ "INVALID_TARGET",
101478
+ "TARGET_NOT_FOUND",
101479
+ "CAPABILITY_UNAVAILABLE"
101480
+ ]
101481
+ },
101482
+ "message": {
101483
+ "type": "string"
101484
+ },
101485
+ "details": {}
101486
+ },
101487
+ "additionalProperties": false,
101488
+ "required": [
101489
+ "code",
101490
+ "message"
101491
+ ]
101492
+ }
101493
+ },
101494
+ "additionalProperties": false,
101495
+ "required": [
101496
+ "success",
101497
+ "failure"
101498
+ ]
101499
+ }
101500
+ },
101501
+ "doc.tables.setTablePadding": {
101502
+ "operationId": "doc.tables.setTablePadding",
101503
+ "sdkSurface": "document",
101504
+ "command": "tables set-table-padding",
101505
+ "commandTokens": [
101506
+ "tables",
101507
+ "set-table-padding"
101508
+ ],
101509
+ "category": "tables",
101510
+ "description": "Set default cell padding for the entire table.",
101511
+ "requiresDocumentContext": true,
101512
+ "docRequirement": "optional",
101513
+ "responseEnvelopeKey": "result",
101514
+ "params": [
101515
+ {
101516
+ "name": "doc",
101517
+ "kind": "doc",
101518
+ "type": "string",
101519
+ "description": "Document path. Optional when a session is already open."
101520
+ },
101521
+ {
101522
+ "name": "sessionId",
101523
+ "kind": "flag",
101524
+ "type": "string",
101525
+ "flag": "session",
101526
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
101527
+ },
101528
+ {
101529
+ "name": "out",
101530
+ "kind": "flag",
101531
+ "type": "string",
101532
+ "agentVisible": false
101533
+ },
101534
+ {
101535
+ "name": "force",
101536
+ "kind": "flag",
101537
+ "type": "boolean",
101538
+ "description": "Bypass confirmation checks."
101539
+ },
101540
+ {
101541
+ "name": "expectedRevision",
101542
+ "kind": "flag",
101543
+ "type": "number",
101544
+ "flag": "expected-revision",
101545
+ "agentVisible": false
101546
+ },
101547
+ {
101548
+ "name": "changeMode",
101549
+ "kind": "flag",
101550
+ "type": "string",
101551
+ "flag": "change-mode",
101552
+ "schema": {
101553
+ "enum": [
101554
+ "direct",
101555
+ "tracked"
101556
+ ]
101557
+ },
101558
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
101559
+ },
101560
+ {
101561
+ "name": "dryRun",
101562
+ "kind": "flag",
101563
+ "type": "boolean",
101564
+ "flag": "dry-run",
101565
+ "description": "Preview the result without applying changes."
101566
+ },
101567
+ {
101568
+ "name": "target",
101569
+ "kind": "jsonFlag",
101570
+ "type": "json",
101571
+ "flag": "target-json",
101572
+ "schema": {
101573
+ "type": "object",
101574
+ "properties": {
101575
+ "kind": {
101576
+ "const": "block"
101577
+ },
101578
+ "nodeType": {
101579
+ "const": "table"
101580
+ },
101581
+ "nodeId": {
101582
+ "type": "string"
101583
+ }
101584
+ },
101585
+ "required": [
101586
+ "kind",
101587
+ "nodeType",
101588
+ "nodeId"
101589
+ ]
101590
+ }
101591
+ },
101592
+ {
101593
+ "name": "nodeId",
101594
+ "kind": "flag",
101595
+ "type": "string",
101596
+ "flag": "node-id"
101597
+ },
101598
+ {
101599
+ "name": "topPt",
101600
+ "kind": "flag",
101601
+ "type": "number",
101602
+ "flag": "top-pt",
101603
+ "required": true
101604
+ },
101605
+ {
101606
+ "name": "rightPt",
101607
+ "kind": "flag",
101608
+ "type": "number",
101609
+ "flag": "right-pt",
101610
+ "required": true
101611
+ },
101612
+ {
101613
+ "name": "bottomPt",
101614
+ "kind": "flag",
101615
+ "type": "number",
101616
+ "flag": "bottom-pt",
101617
+ "required": true
101618
+ },
101619
+ {
101620
+ "name": "leftPt",
101621
+ "kind": "flag",
101622
+ "type": "number",
101623
+ "flag": "left-pt",
101624
+ "required": true
101625
+ }
101626
+ ],
101627
+ "constraints": null,
101628
+ "mutates": true,
101629
+ "idempotency": "idempotent",
101630
+ "supportsTrackedMode": false,
101631
+ "supportsDryRun": true,
101632
+ "inputSchema": {
101633
+ "type": "object",
101634
+ "properties": {
101635
+ "target": {
101636
+ "$ref": "#/$defs/TableAddress"
101637
+ },
101638
+ "nodeId": {
101639
+ "type": "string"
101640
+ },
101641
+ "topPt": {
101642
+ "type": "number",
101643
+ "minimum": 0
101644
+ },
101645
+ "rightPt": {
101646
+ "type": "number",
101647
+ "minimum": 0
101648
+ },
101649
+ "bottomPt": {
101650
+ "type": "number",
101651
+ "minimum": 0
101652
+ },
101653
+ "leftPt": {
101654
+ "type": "number",
101655
+ "minimum": 0
101656
+ }
101657
+ },
101658
+ "additionalProperties": false,
101659
+ "required": [
101660
+ "topPt",
101661
+ "rightPt",
101662
+ "bottomPt",
101663
+ "leftPt"
101664
+ ],
100720
101665
  "oneOf": [
100721
101666
  {
100722
101667
  "required": [
@@ -101652,7 +102597,7 @@ const CONTRACT = {
101652
102597
  "apply-style"
101653
102598
  ],
101654
102599
  "category": "tables",
101655
- "description": "Apply a table style and/or style options in one call.",
102600
+ "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).",
101656
102601
  "requiresDocumentContext": true,
101657
102602
  "docRequirement": "optional",
101658
102603
  "responseEnvelopeKey": null,
@@ -101981,7 +102926,9 @@ const CONTRACT = {
101981
102926
  "success",
101982
102927
  "failure"
101983
102928
  ]
101984
- }
102929
+ },
102930
+ "intentGroup": "table",
102931
+ "intentAction": "set_style_options"
101985
102932
  },
101986
102933
  "doc.tables.setBorders": {
101987
102934
  "operationId": "doc.tables.setBorders",
@@ -102407,7 +103354,7 @@ const CONTRACT = {
102407
103354
  },
102408
103355
  "color": {
102409
103356
  "type": "string",
102410
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
103357
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102411
103358
  }
102412
103359
  },
102413
103360
  "additionalProperties": false,
@@ -102471,7 +103418,7 @@ const CONTRACT = {
102471
103418
  },
102472
103419
  "color": {
102473
103420
  "type": "string",
102474
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
103421
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102475
103422
  }
102476
103423
  },
102477
103424
  "additionalProperties": false,
@@ -102500,7 +103447,7 @@ const CONTRACT = {
102500
103447
  },
102501
103448
  "color": {
102502
103449
  "type": "string",
102503
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
103450
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102504
103451
  }
102505
103452
  },
102506
103453
  "additionalProperties": false,
@@ -102529,7 +103476,7 @@ const CONTRACT = {
102529
103476
  },
102530
103477
  "color": {
102531
103478
  "type": "string",
102532
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
103479
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102533
103480
  }
102534
103481
  },
102535
103482
  "additionalProperties": false,
@@ -102558,7 +103505,7 @@ const CONTRACT = {
102558
103505
  },
102559
103506
  "color": {
102560
103507
  "type": "string",
102561
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
103508
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102562
103509
  }
102563
103510
  },
102564
103511
  "additionalProperties": false,
@@ -102587,7 +103534,7 @@ const CONTRACT = {
102587
103534
  },
102588
103535
  "color": {
102589
103536
  "type": "string",
102590
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
103537
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102591
103538
  }
102592
103539
  },
102593
103540
  "additionalProperties": false,
@@ -102616,7 +103563,7 @@ const CONTRACT = {
102616
103563
  },
102617
103564
  "color": {
102618
103565
  "type": "string",
102619
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
103566
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
102620
103567
  }
102621
103568
  },
102622
103569
  "additionalProperties": false,
@@ -102770,7 +103717,9 @@ const CONTRACT = {
102770
103717
  "success",
102771
103718
  "failure"
102772
103719
  ]
102773
- }
103720
+ },
103721
+ "intentGroup": "table",
103722
+ "intentAction": "set_borders"
102774
103723
  },
102775
103724
  "doc.tables.setTableOptions": {
102776
103725
  "operationId": "doc.tables.setTableOptions",
@@ -103126,21 +104075,23 @@ const CONTRACT = {
103126
104075
  "success",
103127
104076
  "failure"
103128
104077
  ]
103129
- }
104078
+ },
104079
+ "intentGroup": "table",
104080
+ "intentAction": "set_options"
103130
104081
  },
103131
- "doc.tables.get": {
103132
- "operationId": "doc.tables.get",
104082
+ "doc.tables.applyPreset": {
104083
+ "operationId": "doc.tables.applyPreset",
103133
104084
  "sdkSurface": "document",
103134
- "command": "tables get",
104085
+ "command": "tables apply-preset",
103135
104086
  "commandTokens": [
103136
104087
  "tables",
103137
- "get"
104088
+ "apply-preset"
103138
104089
  ],
103139
104090
  "category": "tables",
103140
- "description": "Retrieve table structure and dimensions by locator.",
104091
+ "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).",
103141
104092
  "requiresDocumentContext": true,
103142
104093
  "docRequirement": "optional",
103143
- "responseEnvelopeKey": "result",
104094
+ "responseEnvelopeKey": null,
103144
104095
  "params": [
103145
104096
  {
103146
104097
  "name": "doc",
@@ -103155,6 +104106,45 @@ const CONTRACT = {
103155
104106
  "flag": "session",
103156
104107
  "description": "Session ID for multi-session workflows. Optional when only one session is open."
103157
104108
  },
104109
+ {
104110
+ "name": "out",
104111
+ "kind": "flag",
104112
+ "type": "string",
104113
+ "agentVisible": false
104114
+ },
104115
+ {
104116
+ "name": "force",
104117
+ "kind": "flag",
104118
+ "type": "boolean",
104119
+ "description": "Bypass confirmation checks."
104120
+ },
104121
+ {
104122
+ "name": "expectedRevision",
104123
+ "kind": "flag",
104124
+ "type": "number",
104125
+ "flag": "expected-revision",
104126
+ "agentVisible": false
104127
+ },
104128
+ {
104129
+ "name": "changeMode",
104130
+ "kind": "flag",
104131
+ "type": "string",
104132
+ "flag": "change-mode",
104133
+ "schema": {
104134
+ "enum": [
104135
+ "direct",
104136
+ "tracked"
104137
+ ]
104138
+ },
104139
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
104140
+ },
104141
+ {
104142
+ "name": "dryRun",
104143
+ "kind": "flag",
104144
+ "type": "boolean",
104145
+ "flag": "dry-run",
104146
+ "description": "Preview the result without applying changes."
104147
+ },
103158
104148
  {
103159
104149
  "name": "target",
103160
104150
  "kind": "jsonFlag",
@@ -103185,13 +104175,41 @@ const CONTRACT = {
103185
104175
  "kind": "flag",
103186
104176
  "type": "string",
103187
104177
  "flag": "node-id"
104178
+ },
104179
+ {
104180
+ "name": "preset",
104181
+ "kind": "flag",
104182
+ "type": "string",
104183
+ "required": true,
104184
+ "schema": {
104185
+ "oneOf": [
104186
+ {
104187
+ "const": "grid"
104188
+ },
104189
+ {
104190
+ "const": "minimal"
104191
+ },
104192
+ {
104193
+ "const": "striped"
104194
+ },
104195
+ {
104196
+ "const": "accent"
104197
+ }
104198
+ ]
104199
+ }
104200
+ },
104201
+ {
104202
+ "name": "accentColor",
104203
+ "kind": "flag",
104204
+ "type": "string",
104205
+ "flag": "accent-color"
103188
104206
  }
103189
104207
  ],
103190
104208
  "constraints": null,
103191
- "mutates": false,
104209
+ "mutates": true,
103192
104210
  "idempotency": "idempotent",
103193
104211
  "supportsTrackedMode": false,
103194
- "supportsDryRun": false,
104212
+ "supportsDryRun": true,
103195
104213
  "inputSchema": {
103196
104214
  "type": "object",
103197
104215
  "properties": {
@@ -103200,9 +104218,24 @@ const CONTRACT = {
103200
104218
  },
103201
104219
  "nodeId": {
103202
104220
  "type": "string"
104221
+ },
104222
+ "preset": {
104223
+ "enum": [
104224
+ "grid",
104225
+ "minimal",
104226
+ "striped",
104227
+ "accent"
104228
+ ]
104229
+ },
104230
+ "accentColor": {
104231
+ "type": "string",
104232
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103203
104233
  }
103204
104234
  },
103205
104235
  "additionalProperties": false,
104236
+ "required": [
104237
+ "preset"
104238
+ ],
103206
104239
  "oneOf": [
103207
104240
  {
103208
104241
  "required": [
@@ -103217,42 +104250,132 @@ const CONTRACT = {
103217
104250
  ]
103218
104251
  },
103219
104252
  "outputSchema": {
104253
+ "oneOf": [
104254
+ {
104255
+ "type": "object",
104256
+ "properties": {
104257
+ "success": {
104258
+ "const": true
104259
+ },
104260
+ "table": {
104261
+ "$ref": "#/$defs/TableAddress"
104262
+ },
104263
+ "trackedChangeRefs": {
104264
+ "type": "array",
104265
+ "items": {
104266
+ "$ref": "#/$defs/EntityAddress"
104267
+ }
104268
+ }
104269
+ },
104270
+ "additionalProperties": false,
104271
+ "required": [
104272
+ "success"
104273
+ ]
104274
+ },
104275
+ {
104276
+ "type": "object",
104277
+ "properties": {
104278
+ "success": {
104279
+ "const": false
104280
+ },
104281
+ "failure": {
104282
+ "type": "object",
104283
+ "properties": {
104284
+ "code": {
104285
+ "enum": [
104286
+ "NO_OP",
104287
+ "INVALID_TARGET",
104288
+ "TARGET_NOT_FOUND",
104289
+ "CAPABILITY_UNAVAILABLE"
104290
+ ]
104291
+ },
104292
+ "message": {
104293
+ "type": "string"
104294
+ },
104295
+ "details": {}
104296
+ },
104297
+ "additionalProperties": false,
104298
+ "required": [
104299
+ "code",
104300
+ "message"
104301
+ ]
104302
+ }
104303
+ },
104304
+ "additionalProperties": false,
104305
+ "required": [
104306
+ "success",
104307
+ "failure"
104308
+ ]
104309
+ }
104310
+ ]
104311
+ },
104312
+ "successSchema": {
103220
104313
  "type": "object",
103221
104314
  "properties": {
103222
- "nodeId": {
103223
- "type": "string"
104315
+ "success": {
104316
+ "const": true
103224
104317
  },
103225
- "address": {
104318
+ "table": {
103226
104319
  "$ref": "#/$defs/TableAddress"
103227
104320
  },
103228
- "rows": {
103229
- "type": "integer",
103230
- "minimum": 0
104321
+ "trackedChangeRefs": {
104322
+ "type": "array",
104323
+ "items": {
104324
+ "$ref": "#/$defs/EntityAddress"
104325
+ }
104326
+ }
104327
+ },
104328
+ "additionalProperties": false,
104329
+ "required": [
104330
+ "success"
104331
+ ]
104332
+ },
104333
+ "failureSchema": {
104334
+ "type": "object",
104335
+ "properties": {
104336
+ "success": {
104337
+ "const": false
103231
104338
  },
103232
- "columns": {
103233
- "type": "integer",
103234
- "minimum": 0
104339
+ "failure": {
104340
+ "type": "object",
104341
+ "properties": {
104342
+ "code": {
104343
+ "enum": [
104344
+ "NO_OP",
104345
+ "INVALID_TARGET",
104346
+ "TARGET_NOT_FOUND",
104347
+ "CAPABILITY_UNAVAILABLE"
104348
+ ]
104349
+ },
104350
+ "message": {
104351
+ "type": "string"
104352
+ },
104353
+ "details": {}
104354
+ },
104355
+ "additionalProperties": false,
104356
+ "required": [
104357
+ "code",
104358
+ "message"
104359
+ ]
103235
104360
  }
103236
104361
  },
103237
104362
  "additionalProperties": false,
103238
104363
  "required": [
103239
- "nodeId",
103240
- "address",
103241
- "rows",
103242
- "columns"
104364
+ "success",
104365
+ "failure"
103243
104366
  ]
103244
104367
  }
103245
104368
  },
103246
- "doc.tables.getCells": {
103247
- "operationId": "doc.tables.getCells",
104369
+ "doc.tables.get": {
104370
+ "operationId": "doc.tables.get",
103248
104371
  "sdkSurface": "document",
103249
- "command": "tables get-cells",
104372
+ "command": "tables get",
103250
104373
  "commandTokens": [
103251
104374
  "tables",
103252
- "get-cells"
104375
+ "get"
103253
104376
  ],
103254
104377
  "category": "tables",
103255
- "description": "Retrieve cell information for a table, optionally filtered by row or column.",
104378
+ "description": "Retrieve table structure and dimensions by locator.",
103256
104379
  "requiresDocumentContext": true,
103257
104380
  "docRequirement": "optional",
103258
104381
  "responseEnvelopeKey": "result",
@@ -103300,18 +104423,6 @@ const CONTRACT = {
103300
104423
  "kind": "flag",
103301
104424
  "type": "string",
103302
104425
  "flag": "node-id"
103303
- },
103304
- {
103305
- "name": "rowIndex",
103306
- "kind": "flag",
103307
- "type": "number",
103308
- "flag": "row-index"
103309
- },
103310
- {
103311
- "name": "columnIndex",
103312
- "kind": "flag",
103313
- "type": "number",
103314
- "flag": "column-index"
103315
104426
  }
103316
104427
  ],
103317
104428
  "constraints": null,
@@ -103327,14 +104438,6 @@ const CONTRACT = {
103327
104438
  },
103328
104439
  "nodeId": {
103329
104440
  "type": "string"
103330
- },
103331
- "rowIndex": {
103332
- "type": "integer",
103333
- "minimum": 0
103334
- },
103335
- "columnIndex": {
103336
- "type": "integer",
103337
- "minimum": 0
103338
104441
  }
103339
104442
  },
103340
104443
  "additionalProperties": false,
@@ -103360,64 +104463,199 @@ const CONTRACT = {
103360
104463
  "address": {
103361
104464
  "$ref": "#/$defs/TableAddress"
103362
104465
  },
103363
- "cells": {
103364
- "type": "array",
103365
- "items": {
103366
- "type": "object",
103367
- "properties": {
103368
- "nodeId": {
103369
- "type": "string"
103370
- },
103371
- "address": {
103372
- "$ref": "#/$defs/TableCellAddress"
103373
- },
103374
- "rowIndex": {
103375
- "type": "integer",
103376
- "minimum": 0
103377
- },
103378
- "columnIndex": {
103379
- "type": "integer",
103380
- "minimum": 0
103381
- },
103382
- "colspan": {
103383
- "type": "integer",
103384
- "minimum": 1
103385
- },
103386
- "rowspan": {
103387
- "type": "integer",
103388
- "minimum": 1
103389
- }
103390
- },
103391
- "additionalProperties": false,
103392
- "required": [
103393
- "nodeId",
103394
- "address",
103395
- "rowIndex",
103396
- "columnIndex",
103397
- "colspan",
103398
- "rowspan"
103399
- ]
103400
- }
104466
+ "rows": {
104467
+ "type": "integer",
104468
+ "minimum": 0
104469
+ },
104470
+ "columns": {
104471
+ "type": "integer",
104472
+ "minimum": 0
103401
104473
  }
103402
104474
  },
103403
104475
  "additionalProperties": false,
103404
104476
  "required": [
103405
104477
  "nodeId",
103406
104478
  "address",
103407
- "cells"
104479
+ "rows",
104480
+ "columns"
103408
104481
  ]
103409
104482
  }
103410
104483
  },
103411
- "doc.tables.getProperties": {
103412
- "operationId": "doc.tables.getProperties",
104484
+ "doc.tables.getCells": {
104485
+ "operationId": "doc.tables.getCells",
103413
104486
  "sdkSurface": "document",
103414
- "command": "tables get-properties",
104487
+ "command": "tables get-cells",
103415
104488
  "commandTokens": [
103416
104489
  "tables",
103417
- "get-properties"
104490
+ "get-cells"
103418
104491
  ],
103419
104492
  "category": "tables",
103420
- "description": "Retrieve layout and style properties of a table.",
104493
+ "description": "Retrieve cell information for a table, optionally filtered by row or column.",
104494
+ "requiresDocumentContext": true,
104495
+ "docRequirement": "optional",
104496
+ "responseEnvelopeKey": "result",
104497
+ "params": [
104498
+ {
104499
+ "name": "doc",
104500
+ "kind": "doc",
104501
+ "type": "string",
104502
+ "description": "Document path. Optional when a session is already open."
104503
+ },
104504
+ {
104505
+ "name": "sessionId",
104506
+ "kind": "flag",
104507
+ "type": "string",
104508
+ "flag": "session",
104509
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
104510
+ },
104511
+ {
104512
+ "name": "target",
104513
+ "kind": "jsonFlag",
104514
+ "type": "json",
104515
+ "flag": "target-json",
104516
+ "schema": {
104517
+ "type": "object",
104518
+ "properties": {
104519
+ "kind": {
104520
+ "const": "block"
104521
+ },
104522
+ "nodeType": {
104523
+ "const": "table"
104524
+ },
104525
+ "nodeId": {
104526
+ "type": "string"
104527
+ }
104528
+ },
104529
+ "required": [
104530
+ "kind",
104531
+ "nodeType",
104532
+ "nodeId"
104533
+ ]
104534
+ }
104535
+ },
104536
+ {
104537
+ "name": "nodeId",
104538
+ "kind": "flag",
104539
+ "type": "string",
104540
+ "flag": "node-id"
104541
+ },
104542
+ {
104543
+ "name": "rowIndex",
104544
+ "kind": "flag",
104545
+ "type": "number",
104546
+ "flag": "row-index"
104547
+ },
104548
+ {
104549
+ "name": "columnIndex",
104550
+ "kind": "flag",
104551
+ "type": "number",
104552
+ "flag": "column-index"
104553
+ }
104554
+ ],
104555
+ "constraints": null,
104556
+ "mutates": false,
104557
+ "idempotency": "idempotent",
104558
+ "supportsTrackedMode": false,
104559
+ "supportsDryRun": false,
104560
+ "inputSchema": {
104561
+ "type": "object",
104562
+ "properties": {
104563
+ "target": {
104564
+ "$ref": "#/$defs/TableAddress"
104565
+ },
104566
+ "nodeId": {
104567
+ "type": "string"
104568
+ },
104569
+ "rowIndex": {
104570
+ "type": "integer",
104571
+ "minimum": 0
104572
+ },
104573
+ "columnIndex": {
104574
+ "type": "integer",
104575
+ "minimum": 0
104576
+ }
104577
+ },
104578
+ "additionalProperties": false,
104579
+ "oneOf": [
104580
+ {
104581
+ "required": [
104582
+ "target"
104583
+ ]
104584
+ },
104585
+ {
104586
+ "required": [
104587
+ "nodeId"
104588
+ ]
104589
+ }
104590
+ ]
104591
+ },
104592
+ "outputSchema": {
104593
+ "type": "object",
104594
+ "properties": {
104595
+ "nodeId": {
104596
+ "type": "string"
104597
+ },
104598
+ "address": {
104599
+ "$ref": "#/$defs/TableAddress"
104600
+ },
104601
+ "cells": {
104602
+ "type": "array",
104603
+ "items": {
104604
+ "type": "object",
104605
+ "properties": {
104606
+ "nodeId": {
104607
+ "type": "string"
104608
+ },
104609
+ "address": {
104610
+ "$ref": "#/$defs/TableCellAddress"
104611
+ },
104612
+ "rowIndex": {
104613
+ "type": "integer",
104614
+ "minimum": 0
104615
+ },
104616
+ "columnIndex": {
104617
+ "type": "integer",
104618
+ "minimum": 0
104619
+ },
104620
+ "colspan": {
104621
+ "type": "integer",
104622
+ "minimum": 1
104623
+ },
104624
+ "rowspan": {
104625
+ "type": "integer",
104626
+ "minimum": 1
104627
+ }
104628
+ },
104629
+ "additionalProperties": false,
104630
+ "required": [
104631
+ "nodeId",
104632
+ "address",
104633
+ "rowIndex",
104634
+ "columnIndex",
104635
+ "colspan",
104636
+ "rowspan"
104637
+ ]
104638
+ }
104639
+ }
104640
+ },
104641
+ "additionalProperties": false,
104642
+ "required": [
104643
+ "nodeId",
104644
+ "address",
104645
+ "cells"
104646
+ ]
104647
+ }
104648
+ },
104649
+ "doc.tables.getProperties": {
104650
+ "operationId": "doc.tables.getProperties",
104651
+ "sdkSurface": "document",
104652
+ "command": "tables get-properties",
104653
+ "commandTokens": [
104654
+ "tables",
104655
+ "get-properties"
104656
+ ],
104657
+ "category": "tables",
104658
+ "description": "Retrieve layout and style properties of a table.",
103421
104659
  "requiresDocumentContext": true,
103422
104660
  "docRequirement": "optional",
103423
104661
  "responseEnvelopeKey": "result",
@@ -103572,7 +104810,7 @@ const CONTRACT = {
103572
104810
  },
103573
104811
  "color": {
103574
104812
  "type": "string",
103575
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104813
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103576
104814
  }
103577
104815
  },
103578
104816
  "additionalProperties": false,
@@ -103601,7 +104839,7 @@ const CONTRACT = {
103601
104839
  },
103602
104840
  "color": {
103603
104841
  "type": "string",
103604
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104842
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103605
104843
  }
103606
104844
  },
103607
104845
  "additionalProperties": false,
@@ -103630,7 +104868,7 @@ const CONTRACT = {
103630
104868
  },
103631
104869
  "color": {
103632
104870
  "type": "string",
103633
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104871
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103634
104872
  }
103635
104873
  },
103636
104874
  "additionalProperties": false,
@@ -103659,7 +104897,7 @@ const CONTRACT = {
103659
104897
  },
103660
104898
  "color": {
103661
104899
  "type": "string",
103662
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104900
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103663
104901
  }
103664
104902
  },
103665
104903
  "additionalProperties": false,
@@ -103688,7 +104926,7 @@ const CONTRACT = {
103688
104926
  },
103689
104927
  "color": {
103690
104928
  "type": "string",
103691
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104929
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103692
104930
  }
103693
104931
  },
103694
104932
  "additionalProperties": false,
@@ -103717,7 +104955,7 @@ const CONTRACT = {
103717
104955
  },
103718
104956
  "color": {
103719
104957
  "type": "string",
103720
- "pattern": "^([0-9A-Fa-f]{6}|auto)$"
104958
+ "pattern": "^(#?([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})|auto)$"
103721
104959
  }
103722
104960
  },
103723
104961
  "additionalProperties": false,
@@ -150687,6 +151925,1075 @@ const CONTRACT = {
150687
151925
  },
150688
151926
  "skipAsATool": true
150689
151927
  },
151928
+ "doc.customXml.parts.list": {
151929
+ "operationId": "doc.customXml.parts.list",
151930
+ "sdkSurface": "document",
151931
+ "command": "custom-xml parts list",
151932
+ "commandTokens": [
151933
+ "custom-xml",
151934
+ "parts",
151935
+ "list"
151936
+ ],
151937
+ "category": "core",
151938
+ "description": "List Custom XML Data Storage Parts in the document, optionally filtered by root namespace or schema reference.",
151939
+ "requiresDocumentContext": true,
151940
+ "docRequirement": "optional",
151941
+ "responseEnvelopeKey": null,
151942
+ "params": [
151943
+ {
151944
+ "name": "doc",
151945
+ "kind": "doc",
151946
+ "type": "string",
151947
+ "description": "Document path. Optional when a session is already open."
151948
+ },
151949
+ {
151950
+ "name": "sessionId",
151951
+ "kind": "flag",
151952
+ "type": "string",
151953
+ "flag": "session",
151954
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
151955
+ },
151956
+ {
151957
+ "name": "limit",
151958
+ "kind": "flag",
151959
+ "type": "number"
151960
+ },
151961
+ {
151962
+ "name": "offset",
151963
+ "kind": "flag",
151964
+ "type": "number"
151965
+ },
151966
+ {
151967
+ "name": "rootNamespace",
151968
+ "kind": "flag",
151969
+ "type": "string",
151970
+ "flag": "root-namespace"
151971
+ },
151972
+ {
151973
+ "name": "schemaRef",
151974
+ "kind": "flag",
151975
+ "type": "string",
151976
+ "flag": "schema-ref"
151977
+ }
151978
+ ],
151979
+ "constraints": null,
151980
+ "mutates": false,
151981
+ "idempotency": "idempotent",
151982
+ "supportsTrackedMode": false,
151983
+ "supportsDryRun": false,
151984
+ "inputSchema": {
151985
+ "type": "object",
151986
+ "properties": {
151987
+ "limit": {
151988
+ "type": "integer",
151989
+ "minimum": 1
151990
+ },
151991
+ "offset": {
151992
+ "type": "integer",
151993
+ "minimum": 0
151994
+ },
151995
+ "rootNamespace": {
151996
+ "type": "string"
151997
+ },
151998
+ "schemaRef": {
151999
+ "type": "string"
152000
+ }
152001
+ },
152002
+ "additionalProperties": false
152003
+ },
152004
+ "outputSchema": {
152005
+ "type": "object"
152006
+ }
152007
+ },
152008
+ "doc.customXml.parts.get": {
152009
+ "operationId": "doc.customXml.parts.get",
152010
+ "sdkSurface": "document",
152011
+ "command": "custom-xml parts get",
152012
+ "commandTokens": [
152013
+ "custom-xml",
152014
+ "parts",
152015
+ "get"
152016
+ ],
152017
+ "category": "core",
152018
+ "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.",
152019
+ "requiresDocumentContext": true,
152020
+ "docRequirement": "optional",
152021
+ "responseEnvelopeKey": null,
152022
+ "params": [
152023
+ {
152024
+ "name": "doc",
152025
+ "kind": "doc",
152026
+ "type": "string",
152027
+ "description": "Document path. Optional when a session is already open."
152028
+ },
152029
+ {
152030
+ "name": "sessionId",
152031
+ "kind": "flag",
152032
+ "type": "string",
152033
+ "flag": "session",
152034
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
152035
+ },
152036
+ {
152037
+ "name": "target",
152038
+ "kind": "jsonFlag",
152039
+ "type": "json",
152040
+ "flag": "target-json",
152041
+ "required": true,
152042
+ "schema": {
152043
+ "oneOf": [
152044
+ {
152045
+ "type": "object",
152046
+ "properties": {
152047
+ "id": {
152048
+ "type": "string"
152049
+ }
152050
+ },
152051
+ "required": [
152052
+ "id"
152053
+ ]
152054
+ },
152055
+ {
152056
+ "type": "object",
152057
+ "properties": {
152058
+ "partName": {
152059
+ "type": "string"
152060
+ }
152061
+ },
152062
+ "required": [
152063
+ "partName"
152064
+ ]
152065
+ }
152066
+ ]
152067
+ }
152068
+ }
152069
+ ],
152070
+ "constraints": null,
152071
+ "mutates": false,
152072
+ "idempotency": "idempotent",
152073
+ "supportsTrackedMode": false,
152074
+ "supportsDryRun": false,
152075
+ "inputSchema": {
152076
+ "type": "object",
152077
+ "properties": {
152078
+ "target": {
152079
+ "oneOf": [
152080
+ {
152081
+ "type": "object",
152082
+ "properties": {
152083
+ "id": {
152084
+ "type": "string",
152085
+ "minLength": 1
152086
+ }
152087
+ },
152088
+ "additionalProperties": false,
152089
+ "required": [
152090
+ "id"
152091
+ ]
152092
+ },
152093
+ {
152094
+ "type": "object",
152095
+ "properties": {
152096
+ "partName": {
152097
+ "type": "string",
152098
+ "minLength": 1
152099
+ }
152100
+ },
152101
+ "additionalProperties": false,
152102
+ "required": [
152103
+ "partName"
152104
+ ]
152105
+ }
152106
+ ]
152107
+ }
152108
+ },
152109
+ "additionalProperties": false,
152110
+ "required": [
152111
+ "target"
152112
+ ]
152113
+ },
152114
+ "outputSchema": {
152115
+ "oneOf": [
152116
+ {
152117
+ "type": "object"
152118
+ },
152119
+ {
152120
+ "type": "null"
152121
+ }
152122
+ ]
152123
+ }
152124
+ },
152125
+ "doc.customXml.parts.create": {
152126
+ "operationId": "doc.customXml.parts.create",
152127
+ "sdkSurface": "document",
152128
+ "command": "custom-xml parts create",
152129
+ "commandTokens": [
152130
+ "custom-xml",
152131
+ "parts",
152132
+ "create"
152133
+ ],
152134
+ "category": "core",
152135
+ "description": "Add a new Custom XML Data Storage Part to the document. Generates a fresh itemID GUID and emits the Properties Part.",
152136
+ "requiresDocumentContext": true,
152137
+ "docRequirement": "optional",
152138
+ "responseEnvelopeKey": null,
152139
+ "params": [
152140
+ {
152141
+ "name": "doc",
152142
+ "kind": "doc",
152143
+ "type": "string",
152144
+ "description": "Document path. Optional when a session is already open."
152145
+ },
152146
+ {
152147
+ "name": "sessionId",
152148
+ "kind": "flag",
152149
+ "type": "string",
152150
+ "flag": "session",
152151
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
152152
+ },
152153
+ {
152154
+ "name": "out",
152155
+ "kind": "flag",
152156
+ "type": "string",
152157
+ "agentVisible": false
152158
+ },
152159
+ {
152160
+ "name": "force",
152161
+ "kind": "flag",
152162
+ "type": "boolean",
152163
+ "description": "Bypass confirmation checks."
152164
+ },
152165
+ {
152166
+ "name": "expectedRevision",
152167
+ "kind": "flag",
152168
+ "type": "number",
152169
+ "flag": "expected-revision",
152170
+ "agentVisible": false
152171
+ },
152172
+ {
152173
+ "name": "changeMode",
152174
+ "kind": "flag",
152175
+ "type": "string",
152176
+ "flag": "change-mode",
152177
+ "schema": {
152178
+ "enum": [
152179
+ "direct",
152180
+ "tracked"
152181
+ ]
152182
+ },
152183
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
152184
+ },
152185
+ {
152186
+ "name": "dryRun",
152187
+ "kind": "flag",
152188
+ "type": "boolean",
152189
+ "flag": "dry-run",
152190
+ "description": "Preview the result without applying changes."
152191
+ },
152192
+ {
152193
+ "name": "content",
152194
+ "kind": "flag",
152195
+ "type": "string",
152196
+ "required": true
152197
+ },
152198
+ {
152199
+ "name": "schemaRefs",
152200
+ "kind": "flag",
152201
+ "type": "string[]",
152202
+ "flag": "schema-refs",
152203
+ "schema": {
152204
+ "type": "array",
152205
+ "items": {
152206
+ "type": "string"
152207
+ }
152208
+ }
152209
+ }
152210
+ ],
152211
+ "constraints": null,
152212
+ "mutates": true,
152213
+ "idempotency": "non-idempotent",
152214
+ "supportsTrackedMode": false,
152215
+ "supportsDryRun": true,
152216
+ "inputSchema": {
152217
+ "type": "object",
152218
+ "properties": {
152219
+ "content": {
152220
+ "type": "string",
152221
+ "minLength": 1
152222
+ },
152223
+ "schemaRefs": {
152224
+ "type": "array",
152225
+ "items": {
152226
+ "type": "string",
152227
+ "minLength": 1
152228
+ }
152229
+ }
152230
+ },
152231
+ "additionalProperties": false,
152232
+ "required": [
152233
+ "content"
152234
+ ]
152235
+ },
152236
+ "outputSchema": {
152237
+ "oneOf": [
152238
+ {
152239
+ "type": "object",
152240
+ "properties": {
152241
+ "success": {
152242
+ "const": true
152243
+ },
152244
+ "id": {
152245
+ "type": "string"
152246
+ },
152247
+ "partName": {
152248
+ "type": "string"
152249
+ },
152250
+ "propsPartName": {
152251
+ "type": "string"
152252
+ }
152253
+ },
152254
+ "additionalProperties": false,
152255
+ "required": [
152256
+ "success",
152257
+ "id",
152258
+ "partName",
152259
+ "propsPartName"
152260
+ ]
152261
+ },
152262
+ {
152263
+ "type": "object",
152264
+ "properties": {
152265
+ "success": {
152266
+ "const": false
152267
+ },
152268
+ "failure": {
152269
+ "type": "object",
152270
+ "properties": {
152271
+ "code": {
152272
+ "type": "string"
152273
+ },
152274
+ "message": {
152275
+ "type": "string"
152276
+ },
152277
+ "details": {}
152278
+ },
152279
+ "additionalProperties": false,
152280
+ "required": [
152281
+ "code",
152282
+ "message"
152283
+ ]
152284
+ }
152285
+ },
152286
+ "additionalProperties": false,
152287
+ "required": [
152288
+ "success",
152289
+ "failure"
152290
+ ]
152291
+ }
152292
+ ]
152293
+ },
152294
+ "successSchema": {
152295
+ "type": "object",
152296
+ "properties": {
152297
+ "success": {
152298
+ "const": true
152299
+ },
152300
+ "id": {
152301
+ "type": "string"
152302
+ },
152303
+ "partName": {
152304
+ "type": "string"
152305
+ },
152306
+ "propsPartName": {
152307
+ "type": "string"
152308
+ }
152309
+ },
152310
+ "additionalProperties": false,
152311
+ "required": [
152312
+ "success",
152313
+ "id",
152314
+ "partName",
152315
+ "propsPartName"
152316
+ ]
152317
+ },
152318
+ "failureSchema": {
152319
+ "type": "object",
152320
+ "properties": {
152321
+ "success": {
152322
+ "const": false
152323
+ },
152324
+ "failure": {
152325
+ "type": "object",
152326
+ "properties": {
152327
+ "code": {
152328
+ "type": "string"
152329
+ },
152330
+ "message": {
152331
+ "type": "string"
152332
+ },
152333
+ "details": {}
152334
+ },
152335
+ "additionalProperties": false,
152336
+ "required": [
152337
+ "code",
152338
+ "message"
152339
+ ]
152340
+ }
152341
+ },
152342
+ "additionalProperties": false,
152343
+ "required": [
152344
+ "success",
152345
+ "failure"
152346
+ ]
152347
+ }
152348
+ },
152349
+ "doc.customXml.parts.patch": {
152350
+ "operationId": "doc.customXml.parts.patch",
152351
+ "sdkSurface": "document",
152352
+ "command": "custom-xml parts patch",
152353
+ "commandTokens": [
152354
+ "custom-xml",
152355
+ "parts",
152356
+ "patch"
152357
+ ],
152358
+ "category": "core",
152359
+ "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.",
152360
+ "requiresDocumentContext": true,
152361
+ "docRequirement": "optional",
152362
+ "responseEnvelopeKey": null,
152363
+ "params": [
152364
+ {
152365
+ "name": "doc",
152366
+ "kind": "doc",
152367
+ "type": "string",
152368
+ "description": "Document path. Optional when a session is already open."
152369
+ },
152370
+ {
152371
+ "name": "sessionId",
152372
+ "kind": "flag",
152373
+ "type": "string",
152374
+ "flag": "session",
152375
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
152376
+ },
152377
+ {
152378
+ "name": "out",
152379
+ "kind": "flag",
152380
+ "type": "string",
152381
+ "agentVisible": false
152382
+ },
152383
+ {
152384
+ "name": "force",
152385
+ "kind": "flag",
152386
+ "type": "boolean",
152387
+ "description": "Bypass confirmation checks."
152388
+ },
152389
+ {
152390
+ "name": "expectedRevision",
152391
+ "kind": "flag",
152392
+ "type": "number",
152393
+ "flag": "expected-revision",
152394
+ "agentVisible": false
152395
+ },
152396
+ {
152397
+ "name": "changeMode",
152398
+ "kind": "flag",
152399
+ "type": "string",
152400
+ "flag": "change-mode",
152401
+ "schema": {
152402
+ "enum": [
152403
+ "direct",
152404
+ "tracked"
152405
+ ]
152406
+ },
152407
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
152408
+ },
152409
+ {
152410
+ "name": "dryRun",
152411
+ "kind": "flag",
152412
+ "type": "boolean",
152413
+ "flag": "dry-run",
152414
+ "description": "Preview the result without applying changes."
152415
+ },
152416
+ {
152417
+ "name": "target",
152418
+ "kind": "jsonFlag",
152419
+ "type": "json",
152420
+ "flag": "target-json",
152421
+ "required": true,
152422
+ "schema": {
152423
+ "oneOf": [
152424
+ {
152425
+ "type": "object",
152426
+ "properties": {
152427
+ "id": {
152428
+ "type": "string"
152429
+ }
152430
+ },
152431
+ "required": [
152432
+ "id"
152433
+ ]
152434
+ },
152435
+ {
152436
+ "type": "object",
152437
+ "properties": {
152438
+ "partName": {
152439
+ "type": "string"
152440
+ }
152441
+ },
152442
+ "required": [
152443
+ "partName"
152444
+ ]
152445
+ }
152446
+ ]
152447
+ }
152448
+ },
152449
+ {
152450
+ "name": "content",
152451
+ "kind": "flag",
152452
+ "type": "string"
152453
+ },
152454
+ {
152455
+ "name": "schemaRefs",
152456
+ "kind": "flag",
152457
+ "type": "string[]",
152458
+ "flag": "schema-refs",
152459
+ "schema": {
152460
+ "type": "array",
152461
+ "items": {
152462
+ "type": "string"
152463
+ }
152464
+ }
152465
+ }
152466
+ ],
152467
+ "constraints": null,
152468
+ "mutates": true,
152469
+ "idempotency": "idempotent",
152470
+ "supportsTrackedMode": false,
152471
+ "supportsDryRun": true,
152472
+ "inputSchema": {
152473
+ "type": "object",
152474
+ "properties": {
152475
+ "target": {
152476
+ "oneOf": [
152477
+ {
152478
+ "type": "object",
152479
+ "properties": {
152480
+ "id": {
152481
+ "type": "string",
152482
+ "minLength": 1
152483
+ }
152484
+ },
152485
+ "additionalProperties": false,
152486
+ "required": [
152487
+ "id"
152488
+ ]
152489
+ },
152490
+ {
152491
+ "type": "object",
152492
+ "properties": {
152493
+ "partName": {
152494
+ "type": "string",
152495
+ "minLength": 1
152496
+ }
152497
+ },
152498
+ "additionalProperties": false,
152499
+ "required": [
152500
+ "partName"
152501
+ ]
152502
+ }
152503
+ ]
152504
+ },
152505
+ "content": {
152506
+ "type": "string",
152507
+ "minLength": 1
152508
+ },
152509
+ "schemaRefs": {
152510
+ "type": "array",
152511
+ "items": {
152512
+ "type": "string",
152513
+ "minLength": 1
152514
+ }
152515
+ }
152516
+ },
152517
+ "required": [
152518
+ "target"
152519
+ ],
152520
+ "anyOf": [
152521
+ {
152522
+ "required": [
152523
+ "content"
152524
+ ]
152525
+ },
152526
+ {
152527
+ "required": [
152528
+ "schemaRefs"
152529
+ ]
152530
+ }
152531
+ ],
152532
+ "additionalProperties": false
152533
+ },
152534
+ "outputSchema": {
152535
+ "oneOf": [
152536
+ {
152537
+ "type": "object",
152538
+ "properties": {
152539
+ "success": {
152540
+ "const": true
152541
+ },
152542
+ "target": {
152543
+ "oneOf": [
152544
+ {
152545
+ "type": "object",
152546
+ "properties": {
152547
+ "id": {
152548
+ "type": "string",
152549
+ "minLength": 1
152550
+ }
152551
+ },
152552
+ "additionalProperties": false,
152553
+ "required": [
152554
+ "id"
152555
+ ]
152556
+ },
152557
+ {
152558
+ "type": "object",
152559
+ "properties": {
152560
+ "partName": {
152561
+ "type": "string",
152562
+ "minLength": 1
152563
+ }
152564
+ },
152565
+ "additionalProperties": false,
152566
+ "required": [
152567
+ "partName"
152568
+ ]
152569
+ }
152570
+ ]
152571
+ },
152572
+ "id": {
152573
+ "type": "string",
152574
+ "minLength": 1
152575
+ }
152576
+ },
152577
+ "additionalProperties": false,
152578
+ "required": [
152579
+ "success",
152580
+ "target"
152581
+ ]
152582
+ },
152583
+ {
152584
+ "type": "object",
152585
+ "properties": {
152586
+ "success": {
152587
+ "const": false
152588
+ },
152589
+ "failure": {
152590
+ "type": "object",
152591
+ "properties": {
152592
+ "code": {
152593
+ "type": "string"
152594
+ },
152595
+ "message": {
152596
+ "type": "string"
152597
+ },
152598
+ "details": {}
152599
+ },
152600
+ "additionalProperties": false,
152601
+ "required": [
152602
+ "code",
152603
+ "message"
152604
+ ]
152605
+ }
152606
+ },
152607
+ "additionalProperties": false,
152608
+ "required": [
152609
+ "success",
152610
+ "failure"
152611
+ ]
152612
+ }
152613
+ ]
152614
+ },
152615
+ "successSchema": {
152616
+ "type": "object",
152617
+ "properties": {
152618
+ "success": {
152619
+ "const": true
152620
+ },
152621
+ "target": {
152622
+ "oneOf": [
152623
+ {
152624
+ "type": "object",
152625
+ "properties": {
152626
+ "id": {
152627
+ "type": "string",
152628
+ "minLength": 1
152629
+ }
152630
+ },
152631
+ "additionalProperties": false,
152632
+ "required": [
152633
+ "id"
152634
+ ]
152635
+ },
152636
+ {
152637
+ "type": "object",
152638
+ "properties": {
152639
+ "partName": {
152640
+ "type": "string",
152641
+ "minLength": 1
152642
+ }
152643
+ },
152644
+ "additionalProperties": false,
152645
+ "required": [
152646
+ "partName"
152647
+ ]
152648
+ }
152649
+ ]
152650
+ },
152651
+ "id": {
152652
+ "type": "string",
152653
+ "minLength": 1
152654
+ }
152655
+ },
152656
+ "additionalProperties": false,
152657
+ "required": [
152658
+ "success",
152659
+ "target"
152660
+ ]
152661
+ },
152662
+ "failureSchema": {
152663
+ "type": "object",
152664
+ "properties": {
152665
+ "success": {
152666
+ "const": false
152667
+ },
152668
+ "failure": {
152669
+ "type": "object",
152670
+ "properties": {
152671
+ "code": {
152672
+ "type": "string"
152673
+ },
152674
+ "message": {
152675
+ "type": "string"
152676
+ },
152677
+ "details": {}
152678
+ },
152679
+ "additionalProperties": false,
152680
+ "required": [
152681
+ "code",
152682
+ "message"
152683
+ ]
152684
+ }
152685
+ },
152686
+ "additionalProperties": false,
152687
+ "required": [
152688
+ "success",
152689
+ "failure"
152690
+ ]
152691
+ }
152692
+ },
152693
+ "doc.customXml.parts.remove": {
152694
+ "operationId": "doc.customXml.parts.remove",
152695
+ "sdkSurface": "document",
152696
+ "command": "custom-xml parts remove",
152697
+ "commandTokens": [
152698
+ "custom-xml",
152699
+ "parts",
152700
+ "remove"
152701
+ ],
152702
+ "category": "core",
152703
+ "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.",
152704
+ "requiresDocumentContext": true,
152705
+ "docRequirement": "optional",
152706
+ "responseEnvelopeKey": null,
152707
+ "params": [
152708
+ {
152709
+ "name": "doc",
152710
+ "kind": "doc",
152711
+ "type": "string",
152712
+ "description": "Document path. Optional when a session is already open."
152713
+ },
152714
+ {
152715
+ "name": "sessionId",
152716
+ "kind": "flag",
152717
+ "type": "string",
152718
+ "flag": "session",
152719
+ "description": "Session ID for multi-session workflows. Optional when only one session is open."
152720
+ },
152721
+ {
152722
+ "name": "out",
152723
+ "kind": "flag",
152724
+ "type": "string",
152725
+ "agentVisible": false
152726
+ },
152727
+ {
152728
+ "name": "force",
152729
+ "kind": "flag",
152730
+ "type": "boolean",
152731
+ "description": "Bypass confirmation checks."
152732
+ },
152733
+ {
152734
+ "name": "expectedRevision",
152735
+ "kind": "flag",
152736
+ "type": "number",
152737
+ "flag": "expected-revision",
152738
+ "agentVisible": false
152739
+ },
152740
+ {
152741
+ "name": "changeMode",
152742
+ "kind": "flag",
152743
+ "type": "string",
152744
+ "flag": "change-mode",
152745
+ "schema": {
152746
+ "enum": [
152747
+ "direct",
152748
+ "tracked"
152749
+ ]
152750
+ },
152751
+ "description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
152752
+ },
152753
+ {
152754
+ "name": "dryRun",
152755
+ "kind": "flag",
152756
+ "type": "boolean",
152757
+ "flag": "dry-run",
152758
+ "description": "Preview the result without applying changes."
152759
+ },
152760
+ {
152761
+ "name": "target",
152762
+ "kind": "jsonFlag",
152763
+ "type": "json",
152764
+ "flag": "target-json",
152765
+ "required": true,
152766
+ "schema": {
152767
+ "oneOf": [
152768
+ {
152769
+ "type": "object",
152770
+ "properties": {
152771
+ "id": {
152772
+ "type": "string"
152773
+ }
152774
+ },
152775
+ "required": [
152776
+ "id"
152777
+ ]
152778
+ },
152779
+ {
152780
+ "type": "object",
152781
+ "properties": {
152782
+ "partName": {
152783
+ "type": "string"
152784
+ }
152785
+ },
152786
+ "required": [
152787
+ "partName"
152788
+ ]
152789
+ }
152790
+ ]
152791
+ }
152792
+ }
152793
+ ],
152794
+ "constraints": null,
152795
+ "mutates": true,
152796
+ "idempotency": "non-idempotent",
152797
+ "supportsTrackedMode": false,
152798
+ "supportsDryRun": true,
152799
+ "inputSchema": {
152800
+ "type": "object",
152801
+ "properties": {
152802
+ "target": {
152803
+ "oneOf": [
152804
+ {
152805
+ "type": "object",
152806
+ "properties": {
152807
+ "id": {
152808
+ "type": "string",
152809
+ "minLength": 1
152810
+ }
152811
+ },
152812
+ "additionalProperties": false,
152813
+ "required": [
152814
+ "id"
152815
+ ]
152816
+ },
152817
+ {
152818
+ "type": "object",
152819
+ "properties": {
152820
+ "partName": {
152821
+ "type": "string",
152822
+ "minLength": 1
152823
+ }
152824
+ },
152825
+ "additionalProperties": false,
152826
+ "required": [
152827
+ "partName"
152828
+ ]
152829
+ }
152830
+ ]
152831
+ }
152832
+ },
152833
+ "additionalProperties": false,
152834
+ "required": [
152835
+ "target"
152836
+ ]
152837
+ },
152838
+ "outputSchema": {
152839
+ "oneOf": [
152840
+ {
152841
+ "type": "object",
152842
+ "properties": {
152843
+ "success": {
152844
+ "const": true
152845
+ },
152846
+ "target": {
152847
+ "oneOf": [
152848
+ {
152849
+ "type": "object",
152850
+ "properties": {
152851
+ "id": {
152852
+ "type": "string",
152853
+ "minLength": 1
152854
+ }
152855
+ },
152856
+ "additionalProperties": false,
152857
+ "required": [
152858
+ "id"
152859
+ ]
152860
+ },
152861
+ {
152862
+ "type": "object",
152863
+ "properties": {
152864
+ "partName": {
152865
+ "type": "string",
152866
+ "minLength": 1
152867
+ }
152868
+ },
152869
+ "additionalProperties": false,
152870
+ "required": [
152871
+ "partName"
152872
+ ]
152873
+ }
152874
+ ]
152875
+ },
152876
+ "id": {
152877
+ "type": "string",
152878
+ "minLength": 1
152879
+ }
152880
+ },
152881
+ "additionalProperties": false,
152882
+ "required": [
152883
+ "success",
152884
+ "target"
152885
+ ]
152886
+ },
152887
+ {
152888
+ "type": "object",
152889
+ "properties": {
152890
+ "success": {
152891
+ "const": false
152892
+ },
152893
+ "failure": {
152894
+ "type": "object",
152895
+ "properties": {
152896
+ "code": {
152897
+ "type": "string"
152898
+ },
152899
+ "message": {
152900
+ "type": "string"
152901
+ },
152902
+ "details": {}
152903
+ },
152904
+ "additionalProperties": false,
152905
+ "required": [
152906
+ "code",
152907
+ "message"
152908
+ ]
152909
+ }
152910
+ },
152911
+ "additionalProperties": false,
152912
+ "required": [
152913
+ "success",
152914
+ "failure"
152915
+ ]
152916
+ }
152917
+ ]
152918
+ },
152919
+ "successSchema": {
152920
+ "type": "object",
152921
+ "properties": {
152922
+ "success": {
152923
+ "const": true
152924
+ },
152925
+ "target": {
152926
+ "oneOf": [
152927
+ {
152928
+ "type": "object",
152929
+ "properties": {
152930
+ "id": {
152931
+ "type": "string",
152932
+ "minLength": 1
152933
+ }
152934
+ },
152935
+ "additionalProperties": false,
152936
+ "required": [
152937
+ "id"
152938
+ ]
152939
+ },
152940
+ {
152941
+ "type": "object",
152942
+ "properties": {
152943
+ "partName": {
152944
+ "type": "string",
152945
+ "minLength": 1
152946
+ }
152947
+ },
152948
+ "additionalProperties": false,
152949
+ "required": [
152950
+ "partName"
152951
+ ]
152952
+ }
152953
+ ]
152954
+ },
152955
+ "id": {
152956
+ "type": "string",
152957
+ "minLength": 1
152958
+ }
152959
+ },
152960
+ "additionalProperties": false,
152961
+ "required": [
152962
+ "success",
152963
+ "target"
152964
+ ]
152965
+ },
152966
+ "failureSchema": {
152967
+ "type": "object",
152968
+ "properties": {
152969
+ "success": {
152970
+ "const": false
152971
+ },
152972
+ "failure": {
152973
+ "type": "object",
152974
+ "properties": {
152975
+ "code": {
152976
+ "type": "string"
152977
+ },
152978
+ "message": {
152979
+ "type": "string"
152980
+ },
152981
+ "details": {}
152982
+ },
152983
+ "additionalProperties": false,
152984
+ "required": [
152985
+ "code",
152986
+ "message"
152987
+ ]
152988
+ }
152989
+ },
152990
+ "additionalProperties": false,
152991
+ "required": [
152992
+ "success",
152993
+ "failure"
152994
+ ]
152995
+ }
152996
+ },
150690
152997
  "doc.open": {
150691
152998
  "operationId": "doc.open",
150692
152999
  "sdkSurface": "client",