@superdoc-dev/sdk 1.8.0-next.5 → 1.8.0-next.7
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.
- package/dist/generated/client.cjs +4 -0
- package/dist/generated/client.d.ts +97 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +4 -0
- package/dist/generated/contract.cjs +875 -226
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +875 -226
- package/dist/generated/intent-dispatch.generated.cjs +5 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +5 -0
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/catalog.json +85 -4
- package/tools/intent_dispatch_generated.py +10 -0
- package/tools/prompt-templates/system-prompt-core.md +88 -0
- package/tools/system-prompt-mcp.md +88 -0
- package/tools/system-prompt.md +88 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +47 -4
- package/tools/tools.generic.json +53 -5
- package/tools/tools.openai.json +47 -4
- package/tools/tools.vercel.json +47 -4
|
@@ -3180,9 +3180,52 @@ export const CONTRACT = {
|
|
|
3180
3180
|
"type": "string",
|
|
3181
3181
|
"description": "Full plain text content of the block."
|
|
3182
3182
|
},
|
|
3183
|
+
"textSpans": {
|
|
3184
|
+
"type": "array",
|
|
3185
|
+
"description": "Block text broken into runs with tracked-change marks preserved per run. Present only when the block contains at least one tracked change. Concatenating span text yields `text`.",
|
|
3186
|
+
"items": {
|
|
3187
|
+
"type": "object",
|
|
3188
|
+
"properties": {
|
|
3189
|
+
"text": {
|
|
3190
|
+
"type": "string",
|
|
3191
|
+
"description": "Raw text of the run."
|
|
3192
|
+
},
|
|
3193
|
+
"trackedChanges": {
|
|
3194
|
+
"type": "array",
|
|
3195
|
+
"description": "Tracked-change marks applied to this run.",
|
|
3196
|
+
"items": {
|
|
3197
|
+
"type": "object",
|
|
3198
|
+
"properties": {
|
|
3199
|
+
"entityId": {
|
|
3200
|
+
"type": "string",
|
|
3201
|
+
"description": "Tracked change entity ID matching an entry in trackedChanges[]."
|
|
3202
|
+
},
|
|
3203
|
+
"type": {
|
|
3204
|
+
"type": "string",
|
|
3205
|
+
"enum": [
|
|
3206
|
+
"insert",
|
|
3207
|
+
"delete",
|
|
3208
|
+
"format"
|
|
3209
|
+
]
|
|
3210
|
+
}
|
|
3211
|
+
},
|
|
3212
|
+
"additionalProperties": false,
|
|
3213
|
+
"required": [
|
|
3214
|
+
"entityId",
|
|
3215
|
+
"type"
|
|
3216
|
+
]
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
},
|
|
3220
|
+
"additionalProperties": false,
|
|
3221
|
+
"required": [
|
|
3222
|
+
"text"
|
|
3223
|
+
]
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3183
3226
|
"headingLevel": {
|
|
3184
3227
|
"type": "integer",
|
|
3185
|
-
"description": "Heading level (1
|
|
3228
|
+
"description": "Heading level (1-6). Only present for headings."
|
|
3186
3229
|
},
|
|
3187
3230
|
"tableContext": {
|
|
3188
3231
|
"type": "object",
|
|
@@ -3285,7 +3328,7 @@ export const CONTRACT = {
|
|
|
3285
3328
|
"properties": {
|
|
3286
3329
|
"entityId": {
|
|
3287
3330
|
"type": "string",
|
|
3288
|
-
"description": "Tracked change entity ID
|
|
3331
|
+
"description": "Tracked change entity ID. Pass to scrollToElement() for navigation."
|
|
3289
3332
|
},
|
|
3290
3333
|
"type": {
|
|
3291
3334
|
"type": "string",
|
|
@@ -3293,11 +3336,37 @@ export const CONTRACT = {
|
|
|
3293
3336
|
"insert",
|
|
3294
3337
|
"delete",
|
|
3295
3338
|
"format"
|
|
3296
|
-
]
|
|
3339
|
+
],
|
|
3340
|
+
"description": "Aggregate type at the entity level. In paired replacement mode, a delete+insert pair shares one entity and this collapses to 'insert'; per-half type lives on block.textSpans[].trackedChanges[]."
|
|
3341
|
+
},
|
|
3342
|
+
"blockIds": {
|
|
3343
|
+
"type": "array",
|
|
3344
|
+
"description": "Block IDs whose textSpans carry this change.",
|
|
3345
|
+
"items": {
|
|
3346
|
+
"type": "string"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"wordRevisionIds": {
|
|
3350
|
+
"type": "object",
|
|
3351
|
+
"properties": {
|
|
3352
|
+
"insert": {
|
|
3353
|
+
"type": "string",
|
|
3354
|
+
"description": "Original OOXML w:id from a w:ins mark."
|
|
3355
|
+
},
|
|
3356
|
+
"delete": {
|
|
3357
|
+
"type": "string",
|
|
3358
|
+
"description": "Original OOXML w:id from a w:del mark."
|
|
3359
|
+
},
|
|
3360
|
+
"format": {
|
|
3361
|
+
"type": "string",
|
|
3362
|
+
"description": "Original OOXML w:id from a w:rPrChange mark."
|
|
3363
|
+
}
|
|
3364
|
+
},
|
|
3365
|
+
"additionalProperties": false
|
|
3297
3366
|
},
|
|
3298
3367
|
"excerpt": {
|
|
3299
3368
|
"type": "string",
|
|
3300
|
-
"description": "Short text excerpt of the changed content."
|
|
3369
|
+
"description": "Short text excerpt of the changed content. Omitted for paired replacements; read block.textSpans for the per-half text."
|
|
3301
3370
|
},
|
|
3302
3371
|
"author": {
|
|
3303
3372
|
"type": "string",
|
|
@@ -52274,7 +52343,9 @@ export const CONTRACT = {
|
|
|
52274
52343
|
"success",
|
|
52275
52344
|
"failure"
|
|
52276
52345
|
]
|
|
52277
|
-
}
|
|
52346
|
+
},
|
|
52347
|
+
"intentGroup": "list",
|
|
52348
|
+
"intentAction": "attach"
|
|
52278
52349
|
},
|
|
52279
52350
|
"doc.lists.detach": {
|
|
52280
52351
|
"operationId": "doc.lists.detach",
|
|
@@ -52407,14 +52478,470 @@ export const CONTRACT = {
|
|
|
52407
52478
|
"success": {
|
|
52408
52479
|
"const": true
|
|
52409
52480
|
},
|
|
52410
|
-
"paragraph": {
|
|
52411
|
-
"$ref": "#/$defs/ParagraphAddress"
|
|
52481
|
+
"paragraph": {
|
|
52482
|
+
"$ref": "#/$defs/ParagraphAddress"
|
|
52483
|
+
}
|
|
52484
|
+
},
|
|
52485
|
+
"additionalProperties": false,
|
|
52486
|
+
"required": [
|
|
52487
|
+
"success",
|
|
52488
|
+
"paragraph"
|
|
52489
|
+
]
|
|
52490
|
+
},
|
|
52491
|
+
{
|
|
52492
|
+
"type": "object",
|
|
52493
|
+
"properties": {
|
|
52494
|
+
"success": {
|
|
52495
|
+
"const": false
|
|
52496
|
+
},
|
|
52497
|
+
"failure": {
|
|
52498
|
+
"type": "object",
|
|
52499
|
+
"properties": {
|
|
52500
|
+
"code": {
|
|
52501
|
+
"enum": [
|
|
52502
|
+
"INVALID_TARGET"
|
|
52503
|
+
]
|
|
52504
|
+
},
|
|
52505
|
+
"message": {
|
|
52506
|
+
"type": "string"
|
|
52507
|
+
},
|
|
52508
|
+
"details": {}
|
|
52509
|
+
},
|
|
52510
|
+
"additionalProperties": false,
|
|
52511
|
+
"required": [
|
|
52512
|
+
"code",
|
|
52513
|
+
"message"
|
|
52514
|
+
]
|
|
52515
|
+
}
|
|
52516
|
+
},
|
|
52517
|
+
"additionalProperties": false,
|
|
52518
|
+
"required": [
|
|
52519
|
+
"success",
|
|
52520
|
+
"failure"
|
|
52521
|
+
]
|
|
52522
|
+
}
|
|
52523
|
+
]
|
|
52524
|
+
},
|
|
52525
|
+
"successSchema": {
|
|
52526
|
+
"type": "object",
|
|
52527
|
+
"properties": {
|
|
52528
|
+
"success": {
|
|
52529
|
+
"const": true
|
|
52530
|
+
},
|
|
52531
|
+
"paragraph": {
|
|
52532
|
+
"$ref": "#/$defs/ParagraphAddress"
|
|
52533
|
+
}
|
|
52534
|
+
},
|
|
52535
|
+
"additionalProperties": false,
|
|
52536
|
+
"required": [
|
|
52537
|
+
"success",
|
|
52538
|
+
"paragraph"
|
|
52539
|
+
]
|
|
52540
|
+
},
|
|
52541
|
+
"failureSchema": {
|
|
52542
|
+
"type": "object",
|
|
52543
|
+
"properties": {
|
|
52544
|
+
"success": {
|
|
52545
|
+
"const": false
|
|
52546
|
+
},
|
|
52547
|
+
"failure": {
|
|
52548
|
+
"type": "object",
|
|
52549
|
+
"properties": {
|
|
52550
|
+
"code": {
|
|
52551
|
+
"enum": [
|
|
52552
|
+
"INVALID_TARGET"
|
|
52553
|
+
]
|
|
52554
|
+
},
|
|
52555
|
+
"message": {
|
|
52556
|
+
"type": "string"
|
|
52557
|
+
},
|
|
52558
|
+
"details": {}
|
|
52559
|
+
},
|
|
52560
|
+
"additionalProperties": false,
|
|
52561
|
+
"required": [
|
|
52562
|
+
"code",
|
|
52563
|
+
"message"
|
|
52564
|
+
]
|
|
52565
|
+
}
|
|
52566
|
+
},
|
|
52567
|
+
"additionalProperties": false,
|
|
52568
|
+
"required": [
|
|
52569
|
+
"success",
|
|
52570
|
+
"failure"
|
|
52571
|
+
]
|
|
52572
|
+
},
|
|
52573
|
+
"intentGroup": "list",
|
|
52574
|
+
"intentAction": "detach"
|
|
52575
|
+
},
|
|
52576
|
+
"doc.lists.indent": {
|
|
52577
|
+
"operationId": "doc.lists.indent",
|
|
52578
|
+
"sdkSurface": "document",
|
|
52579
|
+
"command": "lists indent",
|
|
52580
|
+
"commandTokens": [
|
|
52581
|
+
"lists",
|
|
52582
|
+
"indent"
|
|
52583
|
+
],
|
|
52584
|
+
"category": "lists",
|
|
52585
|
+
"description": "Increase the indentation level of a list item.",
|
|
52586
|
+
"requiresDocumentContext": true,
|
|
52587
|
+
"docRequirement": "optional",
|
|
52588
|
+
"responseEnvelopeKey": "result",
|
|
52589
|
+
"params": [
|
|
52590
|
+
{
|
|
52591
|
+
"name": "doc",
|
|
52592
|
+
"kind": "doc",
|
|
52593
|
+
"type": "string",
|
|
52594
|
+
"description": "Document path. Optional when a session is already open."
|
|
52595
|
+
},
|
|
52596
|
+
{
|
|
52597
|
+
"name": "sessionId",
|
|
52598
|
+
"kind": "flag",
|
|
52599
|
+
"type": "string",
|
|
52600
|
+
"flag": "session",
|
|
52601
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
52602
|
+
},
|
|
52603
|
+
{
|
|
52604
|
+
"name": "out",
|
|
52605
|
+
"kind": "flag",
|
|
52606
|
+
"type": "string",
|
|
52607
|
+
"agentVisible": false
|
|
52608
|
+
},
|
|
52609
|
+
{
|
|
52610
|
+
"name": "force",
|
|
52611
|
+
"kind": "flag",
|
|
52612
|
+
"type": "boolean",
|
|
52613
|
+
"description": "Bypass confirmation checks."
|
|
52614
|
+
},
|
|
52615
|
+
{
|
|
52616
|
+
"name": "expectedRevision",
|
|
52617
|
+
"kind": "flag",
|
|
52618
|
+
"type": "number",
|
|
52619
|
+
"flag": "expected-revision",
|
|
52620
|
+
"agentVisible": false
|
|
52621
|
+
},
|
|
52622
|
+
{
|
|
52623
|
+
"name": "changeMode",
|
|
52624
|
+
"kind": "flag",
|
|
52625
|
+
"type": "string",
|
|
52626
|
+
"flag": "change-mode",
|
|
52627
|
+
"schema": {
|
|
52628
|
+
"enum": [
|
|
52629
|
+
"direct",
|
|
52630
|
+
"tracked"
|
|
52631
|
+
]
|
|
52632
|
+
},
|
|
52633
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
52634
|
+
},
|
|
52635
|
+
{
|
|
52636
|
+
"name": "dryRun",
|
|
52637
|
+
"kind": "flag",
|
|
52638
|
+
"type": "boolean",
|
|
52639
|
+
"flag": "dry-run",
|
|
52640
|
+
"description": "Preview the result without applying changes."
|
|
52641
|
+
},
|
|
52642
|
+
{
|
|
52643
|
+
"name": "target",
|
|
52644
|
+
"kind": "jsonFlag",
|
|
52645
|
+
"type": "json",
|
|
52646
|
+
"flag": "target-json",
|
|
52647
|
+
"schema": {
|
|
52648
|
+
"type": "object",
|
|
52649
|
+
"properties": {
|
|
52650
|
+
"kind": {
|
|
52651
|
+
"const": "block"
|
|
52652
|
+
},
|
|
52653
|
+
"nodeType": {
|
|
52654
|
+
"const": "listItem"
|
|
52655
|
+
},
|
|
52656
|
+
"nodeId": {
|
|
52657
|
+
"type": "string"
|
|
52658
|
+
}
|
|
52659
|
+
},
|
|
52660
|
+
"required": [
|
|
52661
|
+
"kind",
|
|
52662
|
+
"nodeType",
|
|
52663
|
+
"nodeId"
|
|
52664
|
+
]
|
|
52665
|
+
}
|
|
52666
|
+
},
|
|
52667
|
+
{
|
|
52668
|
+
"name": "input",
|
|
52669
|
+
"kind": "jsonFlag",
|
|
52670
|
+
"type": "json",
|
|
52671
|
+
"flag": "input-json",
|
|
52672
|
+
"description": "Operation input as JSON object."
|
|
52673
|
+
},
|
|
52674
|
+
{
|
|
52675
|
+
"name": "nodeId",
|
|
52676
|
+
"kind": "flag",
|
|
52677
|
+
"type": "string",
|
|
52678
|
+
"flag": "node-id",
|
|
52679
|
+
"description": "Node ID of the target list item."
|
|
52680
|
+
}
|
|
52681
|
+
],
|
|
52682
|
+
"constraints": null,
|
|
52683
|
+
"mutates": true,
|
|
52684
|
+
"idempotency": "conditional",
|
|
52685
|
+
"supportsTrackedMode": false,
|
|
52686
|
+
"supportsDryRun": true,
|
|
52687
|
+
"inputSchema": {
|
|
52688
|
+
"type": "object",
|
|
52689
|
+
"properties": {
|
|
52690
|
+
"target": {
|
|
52691
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52692
|
+
}
|
|
52693
|
+
},
|
|
52694
|
+
"additionalProperties": false,
|
|
52695
|
+
"required": [
|
|
52696
|
+
"target"
|
|
52697
|
+
]
|
|
52698
|
+
},
|
|
52699
|
+
"outputSchema": {
|
|
52700
|
+
"oneOf": [
|
|
52701
|
+
{
|
|
52702
|
+
"type": "object",
|
|
52703
|
+
"properties": {
|
|
52704
|
+
"success": {
|
|
52705
|
+
"const": true
|
|
52706
|
+
},
|
|
52707
|
+
"item": {
|
|
52708
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52709
|
+
}
|
|
52710
|
+
},
|
|
52711
|
+
"additionalProperties": false,
|
|
52712
|
+
"required": [
|
|
52713
|
+
"success",
|
|
52714
|
+
"item"
|
|
52715
|
+
]
|
|
52716
|
+
},
|
|
52717
|
+
{
|
|
52718
|
+
"type": "object",
|
|
52719
|
+
"properties": {
|
|
52720
|
+
"success": {
|
|
52721
|
+
"const": false
|
|
52722
|
+
},
|
|
52723
|
+
"failure": {
|
|
52724
|
+
"type": "object",
|
|
52725
|
+
"properties": {
|
|
52726
|
+
"code": {
|
|
52727
|
+
"enum": [
|
|
52728
|
+
"NO_OP",
|
|
52729
|
+
"INVALID_TARGET",
|
|
52730
|
+
"LEVEL_OUT_OF_RANGE"
|
|
52731
|
+
]
|
|
52732
|
+
},
|
|
52733
|
+
"message": {
|
|
52734
|
+
"type": "string"
|
|
52735
|
+
},
|
|
52736
|
+
"details": {}
|
|
52737
|
+
},
|
|
52738
|
+
"additionalProperties": false,
|
|
52739
|
+
"required": [
|
|
52740
|
+
"code",
|
|
52741
|
+
"message"
|
|
52742
|
+
]
|
|
52743
|
+
}
|
|
52744
|
+
},
|
|
52745
|
+
"additionalProperties": false,
|
|
52746
|
+
"required": [
|
|
52747
|
+
"success",
|
|
52748
|
+
"failure"
|
|
52749
|
+
]
|
|
52750
|
+
}
|
|
52751
|
+
]
|
|
52752
|
+
},
|
|
52753
|
+
"successSchema": {
|
|
52754
|
+
"type": "object",
|
|
52755
|
+
"properties": {
|
|
52756
|
+
"success": {
|
|
52757
|
+
"const": true
|
|
52758
|
+
},
|
|
52759
|
+
"item": {
|
|
52760
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52761
|
+
}
|
|
52762
|
+
},
|
|
52763
|
+
"additionalProperties": false,
|
|
52764
|
+
"required": [
|
|
52765
|
+
"success",
|
|
52766
|
+
"item"
|
|
52767
|
+
]
|
|
52768
|
+
},
|
|
52769
|
+
"failureSchema": {
|
|
52770
|
+
"type": "object",
|
|
52771
|
+
"properties": {
|
|
52772
|
+
"success": {
|
|
52773
|
+
"const": false
|
|
52774
|
+
},
|
|
52775
|
+
"failure": {
|
|
52776
|
+
"type": "object",
|
|
52777
|
+
"properties": {
|
|
52778
|
+
"code": {
|
|
52779
|
+
"enum": [
|
|
52780
|
+
"NO_OP",
|
|
52781
|
+
"INVALID_TARGET",
|
|
52782
|
+
"LEVEL_OUT_OF_RANGE"
|
|
52783
|
+
]
|
|
52784
|
+
},
|
|
52785
|
+
"message": {
|
|
52786
|
+
"type": "string"
|
|
52787
|
+
},
|
|
52788
|
+
"details": {}
|
|
52789
|
+
},
|
|
52790
|
+
"additionalProperties": false,
|
|
52791
|
+
"required": [
|
|
52792
|
+
"code",
|
|
52793
|
+
"message"
|
|
52794
|
+
]
|
|
52795
|
+
}
|
|
52796
|
+
},
|
|
52797
|
+
"additionalProperties": false,
|
|
52798
|
+
"required": [
|
|
52799
|
+
"success",
|
|
52800
|
+
"failure"
|
|
52801
|
+
]
|
|
52802
|
+
},
|
|
52803
|
+
"intentGroup": "list",
|
|
52804
|
+
"intentAction": "indent"
|
|
52805
|
+
},
|
|
52806
|
+
"doc.lists.outdent": {
|
|
52807
|
+
"operationId": "doc.lists.outdent",
|
|
52808
|
+
"sdkSurface": "document",
|
|
52809
|
+
"command": "lists outdent",
|
|
52810
|
+
"commandTokens": [
|
|
52811
|
+
"lists",
|
|
52812
|
+
"outdent"
|
|
52813
|
+
],
|
|
52814
|
+
"category": "lists",
|
|
52815
|
+
"description": "Decrease the indentation level of a list item.",
|
|
52816
|
+
"requiresDocumentContext": true,
|
|
52817
|
+
"docRequirement": "optional",
|
|
52818
|
+
"responseEnvelopeKey": "result",
|
|
52819
|
+
"params": [
|
|
52820
|
+
{
|
|
52821
|
+
"name": "doc",
|
|
52822
|
+
"kind": "doc",
|
|
52823
|
+
"type": "string",
|
|
52824
|
+
"description": "Document path. Optional when a session is already open."
|
|
52825
|
+
},
|
|
52826
|
+
{
|
|
52827
|
+
"name": "sessionId",
|
|
52828
|
+
"kind": "flag",
|
|
52829
|
+
"type": "string",
|
|
52830
|
+
"flag": "session",
|
|
52831
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
52832
|
+
},
|
|
52833
|
+
{
|
|
52834
|
+
"name": "out",
|
|
52835
|
+
"kind": "flag",
|
|
52836
|
+
"type": "string",
|
|
52837
|
+
"agentVisible": false
|
|
52838
|
+
},
|
|
52839
|
+
{
|
|
52840
|
+
"name": "force",
|
|
52841
|
+
"kind": "flag",
|
|
52842
|
+
"type": "boolean",
|
|
52843
|
+
"description": "Bypass confirmation checks."
|
|
52844
|
+
},
|
|
52845
|
+
{
|
|
52846
|
+
"name": "expectedRevision",
|
|
52847
|
+
"kind": "flag",
|
|
52848
|
+
"type": "number",
|
|
52849
|
+
"flag": "expected-revision",
|
|
52850
|
+
"agentVisible": false
|
|
52851
|
+
},
|
|
52852
|
+
{
|
|
52853
|
+
"name": "changeMode",
|
|
52854
|
+
"kind": "flag",
|
|
52855
|
+
"type": "string",
|
|
52856
|
+
"flag": "change-mode",
|
|
52857
|
+
"schema": {
|
|
52858
|
+
"enum": [
|
|
52859
|
+
"direct",
|
|
52860
|
+
"tracked"
|
|
52861
|
+
]
|
|
52862
|
+
},
|
|
52863
|
+
"description": "Edit mode: \"direct\" applies changes immediately, \"tracked\" records as suggestions."
|
|
52864
|
+
},
|
|
52865
|
+
{
|
|
52866
|
+
"name": "dryRun",
|
|
52867
|
+
"kind": "flag",
|
|
52868
|
+
"type": "boolean",
|
|
52869
|
+
"flag": "dry-run",
|
|
52870
|
+
"description": "Preview the result without applying changes."
|
|
52871
|
+
},
|
|
52872
|
+
{
|
|
52873
|
+
"name": "target",
|
|
52874
|
+
"kind": "jsonFlag",
|
|
52875
|
+
"type": "json",
|
|
52876
|
+
"flag": "target-json",
|
|
52877
|
+
"schema": {
|
|
52878
|
+
"type": "object",
|
|
52879
|
+
"properties": {
|
|
52880
|
+
"kind": {
|
|
52881
|
+
"const": "block"
|
|
52882
|
+
},
|
|
52883
|
+
"nodeType": {
|
|
52884
|
+
"const": "listItem"
|
|
52885
|
+
},
|
|
52886
|
+
"nodeId": {
|
|
52887
|
+
"type": "string"
|
|
52888
|
+
}
|
|
52889
|
+
},
|
|
52890
|
+
"required": [
|
|
52891
|
+
"kind",
|
|
52892
|
+
"nodeType",
|
|
52893
|
+
"nodeId"
|
|
52894
|
+
]
|
|
52895
|
+
}
|
|
52896
|
+
},
|
|
52897
|
+
{
|
|
52898
|
+
"name": "input",
|
|
52899
|
+
"kind": "jsonFlag",
|
|
52900
|
+
"type": "json",
|
|
52901
|
+
"flag": "input-json",
|
|
52902
|
+
"description": "Operation input as JSON object."
|
|
52903
|
+
},
|
|
52904
|
+
{
|
|
52905
|
+
"name": "nodeId",
|
|
52906
|
+
"kind": "flag",
|
|
52907
|
+
"type": "string",
|
|
52908
|
+
"flag": "node-id",
|
|
52909
|
+
"description": "Node ID of the target list item."
|
|
52910
|
+
}
|
|
52911
|
+
],
|
|
52912
|
+
"constraints": null,
|
|
52913
|
+
"mutates": true,
|
|
52914
|
+
"idempotency": "conditional",
|
|
52915
|
+
"supportsTrackedMode": false,
|
|
52916
|
+
"supportsDryRun": true,
|
|
52917
|
+
"inputSchema": {
|
|
52918
|
+
"type": "object",
|
|
52919
|
+
"properties": {
|
|
52920
|
+
"target": {
|
|
52921
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52922
|
+
}
|
|
52923
|
+
},
|
|
52924
|
+
"additionalProperties": false,
|
|
52925
|
+
"required": [
|
|
52926
|
+
"target"
|
|
52927
|
+
]
|
|
52928
|
+
},
|
|
52929
|
+
"outputSchema": {
|
|
52930
|
+
"oneOf": [
|
|
52931
|
+
{
|
|
52932
|
+
"type": "object",
|
|
52933
|
+
"properties": {
|
|
52934
|
+
"success": {
|
|
52935
|
+
"const": true
|
|
52936
|
+
},
|
|
52937
|
+
"item": {
|
|
52938
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52412
52939
|
}
|
|
52413
52940
|
},
|
|
52414
52941
|
"additionalProperties": false,
|
|
52415
52942
|
"required": [
|
|
52416
52943
|
"success",
|
|
52417
|
-
"
|
|
52944
|
+
"item"
|
|
52418
52945
|
]
|
|
52419
52946
|
},
|
|
52420
52947
|
{
|
|
@@ -52428,7 +52955,9 @@ export const CONTRACT = {
|
|
|
52428
52955
|
"properties": {
|
|
52429
52956
|
"code": {
|
|
52430
52957
|
"enum": [
|
|
52431
|
-
"
|
|
52958
|
+
"NO_OP",
|
|
52959
|
+
"INVALID_TARGET",
|
|
52960
|
+
"LEVEL_OUT_OF_RANGE"
|
|
52432
52961
|
]
|
|
52433
52962
|
},
|
|
52434
52963
|
"message": {
|
|
@@ -52457,14 +52986,14 @@ export const CONTRACT = {
|
|
|
52457
52986
|
"success": {
|
|
52458
52987
|
"const": true
|
|
52459
52988
|
},
|
|
52460
|
-
"
|
|
52461
|
-
"$ref": "#/$defs/
|
|
52989
|
+
"item": {
|
|
52990
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
52462
52991
|
}
|
|
52463
52992
|
},
|
|
52464
52993
|
"additionalProperties": false,
|
|
52465
52994
|
"required": [
|
|
52466
52995
|
"success",
|
|
52467
|
-
"
|
|
52996
|
+
"item"
|
|
52468
52997
|
]
|
|
52469
52998
|
},
|
|
52470
52999
|
"failureSchema": {
|
|
@@ -52478,7 +53007,9 @@ export const CONTRACT = {
|
|
|
52478
53007
|
"properties": {
|
|
52479
53008
|
"code": {
|
|
52480
53009
|
"enum": [
|
|
52481
|
-
"
|
|
53010
|
+
"NO_OP",
|
|
53011
|
+
"INVALID_TARGET",
|
|
53012
|
+
"LEVEL_OUT_OF_RANGE"
|
|
52482
53013
|
]
|
|
52483
53014
|
},
|
|
52484
53015
|
"message": {
|
|
@@ -52500,18 +53031,18 @@ export const CONTRACT = {
|
|
|
52500
53031
|
]
|
|
52501
53032
|
},
|
|
52502
53033
|
"intentGroup": "list",
|
|
52503
|
-
"intentAction": "
|
|
53034
|
+
"intentAction": "outdent"
|
|
52504
53035
|
},
|
|
52505
|
-
"doc.lists.
|
|
52506
|
-
"operationId": "doc.lists.
|
|
53036
|
+
"doc.lists.join": {
|
|
53037
|
+
"operationId": "doc.lists.join",
|
|
52507
53038
|
"sdkSurface": "document",
|
|
52508
|
-
"command": "lists
|
|
53039
|
+
"command": "lists join",
|
|
52509
53040
|
"commandTokens": [
|
|
52510
53041
|
"lists",
|
|
52511
|
-
"
|
|
53042
|
+
"join"
|
|
52512
53043
|
],
|
|
52513
53044
|
"category": "lists",
|
|
52514
|
-
"description": "
|
|
53045
|
+
"description": "Merge two adjacent list sequences into one.",
|
|
52515
53046
|
"requiresDocumentContext": true,
|
|
52516
53047
|
"docRequirement": "optional",
|
|
52517
53048
|
"responseEnvelopeKey": "result",
|
|
@@ -52593,19 +53124,27 @@ export const CONTRACT = {
|
|
|
52593
53124
|
]
|
|
52594
53125
|
}
|
|
52595
53126
|
},
|
|
53127
|
+
{
|
|
53128
|
+
"name": "direction",
|
|
53129
|
+
"kind": "flag",
|
|
53130
|
+
"type": "string",
|
|
53131
|
+
"schema": {
|
|
53132
|
+
"oneOf": [
|
|
53133
|
+
{
|
|
53134
|
+
"const": "withPrevious"
|
|
53135
|
+
},
|
|
53136
|
+
{
|
|
53137
|
+
"const": "withNext"
|
|
53138
|
+
}
|
|
53139
|
+
]
|
|
53140
|
+
}
|
|
53141
|
+
},
|
|
52596
53142
|
{
|
|
52597
53143
|
"name": "input",
|
|
52598
53144
|
"kind": "jsonFlag",
|
|
52599
53145
|
"type": "json",
|
|
52600
53146
|
"flag": "input-json",
|
|
52601
53147
|
"description": "Operation input as JSON object."
|
|
52602
|
-
},
|
|
52603
|
-
{
|
|
52604
|
-
"name": "nodeId",
|
|
52605
|
-
"kind": "flag",
|
|
52606
|
-
"type": "string",
|
|
52607
|
-
"flag": "node-id",
|
|
52608
|
-
"description": "Node ID of the target list item."
|
|
52609
53148
|
}
|
|
52610
53149
|
],
|
|
52611
53150
|
"constraints": null,
|
|
@@ -52618,11 +53157,18 @@ export const CONTRACT = {
|
|
|
52618
53157
|
"properties": {
|
|
52619
53158
|
"target": {
|
|
52620
53159
|
"$ref": "#/$defs/ListItemAddress"
|
|
53160
|
+
},
|
|
53161
|
+
"direction": {
|
|
53162
|
+
"enum": [
|
|
53163
|
+
"withPrevious",
|
|
53164
|
+
"withNext"
|
|
53165
|
+
]
|
|
52621
53166
|
}
|
|
52622
53167
|
},
|
|
52623
53168
|
"additionalProperties": false,
|
|
52624
53169
|
"required": [
|
|
52625
|
-
"target"
|
|
53170
|
+
"target",
|
|
53171
|
+
"direction"
|
|
52626
53172
|
]
|
|
52627
53173
|
},
|
|
52628
53174
|
"outputSchema": {
|
|
@@ -52633,14 +53179,14 @@ export const CONTRACT = {
|
|
|
52633
53179
|
"success": {
|
|
52634
53180
|
"const": true
|
|
52635
53181
|
},
|
|
52636
|
-
"
|
|
52637
|
-
"
|
|
53182
|
+
"listId": {
|
|
53183
|
+
"type": "string"
|
|
52638
53184
|
}
|
|
52639
53185
|
},
|
|
52640
53186
|
"additionalProperties": false,
|
|
52641
53187
|
"required": [
|
|
52642
53188
|
"success",
|
|
52643
|
-
"
|
|
53189
|
+
"listId"
|
|
52644
53190
|
]
|
|
52645
53191
|
},
|
|
52646
53192
|
{
|
|
@@ -52654,9 +53200,10 @@ export const CONTRACT = {
|
|
|
52654
53200
|
"properties": {
|
|
52655
53201
|
"code": {
|
|
52656
53202
|
"enum": [
|
|
52657
|
-
"NO_OP",
|
|
52658
53203
|
"INVALID_TARGET",
|
|
52659
|
-
"
|
|
53204
|
+
"NO_ADJACENT_SEQUENCE",
|
|
53205
|
+
"INCOMPATIBLE_DEFINITIONS",
|
|
53206
|
+
"ALREADY_SAME_SEQUENCE"
|
|
52660
53207
|
]
|
|
52661
53208
|
},
|
|
52662
53209
|
"message": {
|
|
@@ -52685,14 +53232,14 @@ export const CONTRACT = {
|
|
|
52685
53232
|
"success": {
|
|
52686
53233
|
"const": true
|
|
52687
53234
|
},
|
|
52688
|
-
"
|
|
52689
|
-
"
|
|
53235
|
+
"listId": {
|
|
53236
|
+
"type": "string"
|
|
52690
53237
|
}
|
|
52691
53238
|
},
|
|
52692
53239
|
"additionalProperties": false,
|
|
52693
53240
|
"required": [
|
|
52694
53241
|
"success",
|
|
52695
|
-
"
|
|
53242
|
+
"listId"
|
|
52696
53243
|
]
|
|
52697
53244
|
},
|
|
52698
53245
|
"failureSchema": {
|
|
@@ -52706,9 +53253,10 @@ export const CONTRACT = {
|
|
|
52706
53253
|
"properties": {
|
|
52707
53254
|
"code": {
|
|
52708
53255
|
"enum": [
|
|
52709
|
-
"NO_OP",
|
|
52710
53256
|
"INVALID_TARGET",
|
|
52711
|
-
"
|
|
53257
|
+
"NO_ADJACENT_SEQUENCE",
|
|
53258
|
+
"INCOMPATIBLE_DEFINITIONS",
|
|
53259
|
+
"ALREADY_SAME_SEQUENCE"
|
|
52712
53260
|
]
|
|
52713
53261
|
},
|
|
52714
53262
|
"message": {
|
|
@@ -52728,20 +53276,140 @@ export const CONTRACT = {
|
|
|
52728
53276
|
"success",
|
|
52729
53277
|
"failure"
|
|
52730
53278
|
]
|
|
53279
|
+
}
|
|
53280
|
+
},
|
|
53281
|
+
"doc.lists.canJoin": {
|
|
53282
|
+
"operationId": "doc.lists.canJoin",
|
|
53283
|
+
"sdkSurface": "document",
|
|
53284
|
+
"command": "lists can-join",
|
|
53285
|
+
"commandTokens": [
|
|
53286
|
+
"lists",
|
|
53287
|
+
"can-join"
|
|
53288
|
+
],
|
|
53289
|
+
"category": "lists",
|
|
53290
|
+
"description": "Check whether two adjacent list sequences can be joined.",
|
|
53291
|
+
"requiresDocumentContext": true,
|
|
53292
|
+
"docRequirement": "optional",
|
|
53293
|
+
"responseEnvelopeKey": "result",
|
|
53294
|
+
"params": [
|
|
53295
|
+
{
|
|
53296
|
+
"name": "doc",
|
|
53297
|
+
"kind": "doc",
|
|
53298
|
+
"type": "string",
|
|
53299
|
+
"description": "Document path. Optional when a session is already open."
|
|
53300
|
+
},
|
|
53301
|
+
{
|
|
53302
|
+
"name": "sessionId",
|
|
53303
|
+
"kind": "flag",
|
|
53304
|
+
"type": "string",
|
|
53305
|
+
"flag": "session",
|
|
53306
|
+
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
53307
|
+
},
|
|
53308
|
+
{
|
|
53309
|
+
"name": "target",
|
|
53310
|
+
"kind": "jsonFlag",
|
|
53311
|
+
"type": "json",
|
|
53312
|
+
"flag": "target-json",
|
|
53313
|
+
"schema": {
|
|
53314
|
+
"type": "object",
|
|
53315
|
+
"properties": {
|
|
53316
|
+
"kind": {
|
|
53317
|
+
"const": "block"
|
|
53318
|
+
},
|
|
53319
|
+
"nodeType": {
|
|
53320
|
+
"const": "listItem"
|
|
53321
|
+
},
|
|
53322
|
+
"nodeId": {
|
|
53323
|
+
"type": "string"
|
|
53324
|
+
}
|
|
53325
|
+
},
|
|
53326
|
+
"required": [
|
|
53327
|
+
"kind",
|
|
53328
|
+
"nodeType",
|
|
53329
|
+
"nodeId"
|
|
53330
|
+
]
|
|
53331
|
+
}
|
|
53332
|
+
},
|
|
53333
|
+
{
|
|
53334
|
+
"name": "direction",
|
|
53335
|
+
"kind": "flag",
|
|
53336
|
+
"type": "string",
|
|
53337
|
+
"schema": {
|
|
53338
|
+
"oneOf": [
|
|
53339
|
+
{
|
|
53340
|
+
"const": "withPrevious"
|
|
53341
|
+
},
|
|
53342
|
+
{
|
|
53343
|
+
"const": "withNext"
|
|
53344
|
+
}
|
|
53345
|
+
]
|
|
53346
|
+
}
|
|
53347
|
+
},
|
|
53348
|
+
{
|
|
53349
|
+
"name": "input",
|
|
53350
|
+
"kind": "jsonFlag",
|
|
53351
|
+
"type": "json",
|
|
53352
|
+
"flag": "input-json",
|
|
53353
|
+
"description": "Operation input as JSON object."
|
|
53354
|
+
}
|
|
53355
|
+
],
|
|
53356
|
+
"constraints": null,
|
|
53357
|
+
"mutates": false,
|
|
53358
|
+
"idempotency": "idempotent",
|
|
53359
|
+
"supportsTrackedMode": false,
|
|
53360
|
+
"supportsDryRun": false,
|
|
53361
|
+
"inputSchema": {
|
|
53362
|
+
"type": "object",
|
|
53363
|
+
"properties": {
|
|
53364
|
+
"target": {
|
|
53365
|
+
"$ref": "#/$defs/ListItemAddress"
|
|
53366
|
+
},
|
|
53367
|
+
"direction": {
|
|
53368
|
+
"enum": [
|
|
53369
|
+
"withPrevious",
|
|
53370
|
+
"withNext"
|
|
53371
|
+
]
|
|
53372
|
+
}
|
|
53373
|
+
},
|
|
53374
|
+
"additionalProperties": false,
|
|
53375
|
+
"required": [
|
|
53376
|
+
"target",
|
|
53377
|
+
"direction"
|
|
53378
|
+
]
|
|
52731
53379
|
},
|
|
52732
|
-
"
|
|
52733
|
-
|
|
53380
|
+
"outputSchema": {
|
|
53381
|
+
"type": "object",
|
|
53382
|
+
"properties": {
|
|
53383
|
+
"canJoin": {
|
|
53384
|
+
"type": "boolean"
|
|
53385
|
+
},
|
|
53386
|
+
"reason": {
|
|
53387
|
+
"enum": [
|
|
53388
|
+
"NO_ADJACENT_SEQUENCE",
|
|
53389
|
+
"INCOMPATIBLE_DEFINITIONS",
|
|
53390
|
+
"ALREADY_SAME_SEQUENCE"
|
|
53391
|
+
]
|
|
53392
|
+
},
|
|
53393
|
+
"adjacentListId": {
|
|
53394
|
+
"type": "string"
|
|
53395
|
+
}
|
|
53396
|
+
},
|
|
53397
|
+
"additionalProperties": false,
|
|
53398
|
+
"required": [
|
|
53399
|
+
"canJoin"
|
|
53400
|
+
]
|
|
53401
|
+
}
|
|
52734
53402
|
},
|
|
52735
|
-
"doc.lists.
|
|
52736
|
-
"operationId": "doc.lists.
|
|
53403
|
+
"doc.lists.separate": {
|
|
53404
|
+
"operationId": "doc.lists.separate",
|
|
52737
53405
|
"sdkSurface": "document",
|
|
52738
|
-
"command": "lists
|
|
53406
|
+
"command": "lists separate",
|
|
52739
53407
|
"commandTokens": [
|
|
52740
53408
|
"lists",
|
|
52741
|
-
"
|
|
53409
|
+
"separate"
|
|
52742
53410
|
],
|
|
52743
53411
|
"category": "lists",
|
|
52744
|
-
"description": "
|
|
53412
|
+
"description": "Split a list sequence at the target item, creating a new sequence from that point forward.",
|
|
52745
53413
|
"requiresDocumentContext": true,
|
|
52746
53414
|
"docRequirement": "optional",
|
|
52747
53415
|
"responseEnvelopeKey": "result",
|
|
@@ -52823,6 +53491,12 @@ export const CONTRACT = {
|
|
|
52823
53491
|
]
|
|
52824
53492
|
}
|
|
52825
53493
|
},
|
|
53494
|
+
{
|
|
53495
|
+
"name": "copyOverrides",
|
|
53496
|
+
"kind": "flag",
|
|
53497
|
+
"type": "boolean",
|
|
53498
|
+
"flag": "copy-overrides"
|
|
53499
|
+
},
|
|
52826
53500
|
{
|
|
52827
53501
|
"name": "input",
|
|
52828
53502
|
"kind": "jsonFlag",
|
|
@@ -52848,6 +53522,9 @@ export const CONTRACT = {
|
|
|
52848
53522
|
"properties": {
|
|
52849
53523
|
"target": {
|
|
52850
53524
|
"$ref": "#/$defs/ListItemAddress"
|
|
53525
|
+
},
|
|
53526
|
+
"copyOverrides": {
|
|
53527
|
+
"type": "boolean"
|
|
52851
53528
|
}
|
|
52852
53529
|
},
|
|
52853
53530
|
"additionalProperties": false,
|
|
@@ -52863,14 +53540,18 @@ export const CONTRACT = {
|
|
|
52863
53540
|
"success": {
|
|
52864
53541
|
"const": true
|
|
52865
53542
|
},
|
|
52866
|
-
"
|
|
52867
|
-
"
|
|
53543
|
+
"listId": {
|
|
53544
|
+
"type": "string"
|
|
53545
|
+
},
|
|
53546
|
+
"numId": {
|
|
53547
|
+
"type": "integer"
|
|
52868
53548
|
}
|
|
52869
53549
|
},
|
|
52870
53550
|
"additionalProperties": false,
|
|
52871
53551
|
"required": [
|
|
52872
53552
|
"success",
|
|
52873
|
-
"
|
|
53553
|
+
"listId",
|
|
53554
|
+
"numId"
|
|
52874
53555
|
]
|
|
52875
53556
|
},
|
|
52876
53557
|
{
|
|
@@ -52884,9 +53565,8 @@ export const CONTRACT = {
|
|
|
52884
53565
|
"properties": {
|
|
52885
53566
|
"code": {
|
|
52886
53567
|
"enum": [
|
|
52887
|
-
"NO_OP",
|
|
52888
53568
|
"INVALID_TARGET",
|
|
52889
|
-
"
|
|
53569
|
+
"NO_OP"
|
|
52890
53570
|
]
|
|
52891
53571
|
},
|
|
52892
53572
|
"message": {
|
|
@@ -52915,14 +53595,18 @@ export const CONTRACT = {
|
|
|
52915
53595
|
"success": {
|
|
52916
53596
|
"const": true
|
|
52917
53597
|
},
|
|
52918
|
-
"
|
|
52919
|
-
"
|
|
53598
|
+
"listId": {
|
|
53599
|
+
"type": "string"
|
|
53600
|
+
},
|
|
53601
|
+
"numId": {
|
|
53602
|
+
"type": "integer"
|
|
52920
53603
|
}
|
|
52921
53604
|
},
|
|
52922
53605
|
"additionalProperties": false,
|
|
52923
53606
|
"required": [
|
|
52924
53607
|
"success",
|
|
52925
|
-
"
|
|
53608
|
+
"listId",
|
|
53609
|
+
"numId"
|
|
52926
53610
|
]
|
|
52927
53611
|
},
|
|
52928
53612
|
"failureSchema": {
|
|
@@ -52936,9 +53620,8 @@ export const CONTRACT = {
|
|
|
52936
53620
|
"properties": {
|
|
52937
53621
|
"code": {
|
|
52938
53622
|
"enum": [
|
|
52939
|
-
"NO_OP",
|
|
52940
53623
|
"INVALID_TARGET",
|
|
52941
|
-
"
|
|
53624
|
+
"NO_OP"
|
|
52942
53625
|
]
|
|
52943
53626
|
},
|
|
52944
53627
|
"message": {
|
|
@@ -52958,23 +53641,21 @@ export const CONTRACT = {
|
|
|
52958
53641
|
"success",
|
|
52959
53642
|
"failure"
|
|
52960
53643
|
]
|
|
52961
|
-
}
|
|
52962
|
-
"intentGroup": "list",
|
|
52963
|
-
"intentAction": "outdent"
|
|
53644
|
+
}
|
|
52964
53645
|
},
|
|
52965
|
-
"doc.lists.
|
|
52966
|
-
"operationId": "doc.lists.
|
|
53646
|
+
"doc.lists.merge": {
|
|
53647
|
+
"operationId": "doc.lists.merge",
|
|
52967
53648
|
"sdkSurface": "document",
|
|
52968
|
-
"command": "lists
|
|
53649
|
+
"command": "lists merge",
|
|
52969
53650
|
"commandTokens": [
|
|
52970
53651
|
"lists",
|
|
52971
|
-
"
|
|
53652
|
+
"merge"
|
|
52972
53653
|
],
|
|
52973
53654
|
"category": "lists",
|
|
52974
|
-
"description": "
|
|
53655
|
+
"description": "Compound: merge two adjacent list sequences into one. Reassigns numId on the absorbed sequence (no strict abstractNumId check — absorbed items adopt the absorbing definition) and deletes empty paragraphs between the two sequences. Use this instead of lists.join for the user-facing \"merge these lists\" intent.",
|
|
52975
53656
|
"requiresDocumentContext": true,
|
|
52976
53657
|
"docRequirement": "optional",
|
|
52977
|
-
"responseEnvelopeKey":
|
|
53658
|
+
"responseEnvelopeKey": null,
|
|
52978
53659
|
"params": [
|
|
52979
53660
|
{
|
|
52980
53661
|
"name": "doc",
|
|
@@ -53033,6 +53714,7 @@ export const CONTRACT = {
|
|
|
53033
53714
|
"kind": "jsonFlag",
|
|
53034
53715
|
"type": "json",
|
|
53035
53716
|
"flag": "target-json",
|
|
53717
|
+
"required": true,
|
|
53036
53718
|
"schema": {
|
|
53037
53719
|
"type": "object",
|
|
53038
53720
|
"properties": {
|
|
@@ -53057,6 +53739,7 @@ export const CONTRACT = {
|
|
|
53057
53739
|
"name": "direction",
|
|
53058
53740
|
"kind": "flag",
|
|
53059
53741
|
"type": "string",
|
|
53742
|
+
"required": true,
|
|
53060
53743
|
"schema": {
|
|
53061
53744
|
"oneOf": [
|
|
53062
53745
|
{
|
|
@@ -53067,13 +53750,6 @@ export const CONTRACT = {
|
|
|
53067
53750
|
}
|
|
53068
53751
|
]
|
|
53069
53752
|
}
|
|
53070
|
-
},
|
|
53071
|
-
{
|
|
53072
|
-
"name": "input",
|
|
53073
|
-
"kind": "jsonFlag",
|
|
53074
|
-
"type": "json",
|
|
53075
|
-
"flag": "input-json",
|
|
53076
|
-
"description": "Operation input as JSON object."
|
|
53077
53753
|
}
|
|
53078
53754
|
],
|
|
53079
53755
|
"constraints": null,
|
|
@@ -53110,12 +53786,20 @@ export const CONTRACT = {
|
|
|
53110
53786
|
},
|
|
53111
53787
|
"listId": {
|
|
53112
53788
|
"type": "string"
|
|
53789
|
+
},
|
|
53790
|
+
"absorbedCount": {
|
|
53791
|
+
"type": "integer"
|
|
53792
|
+
},
|
|
53793
|
+
"removedEmptyBlocks": {
|
|
53794
|
+
"type": "integer"
|
|
53113
53795
|
}
|
|
53114
53796
|
},
|
|
53115
53797
|
"additionalProperties": false,
|
|
53116
53798
|
"required": [
|
|
53117
53799
|
"success",
|
|
53118
|
-
"listId"
|
|
53800
|
+
"listId",
|
|
53801
|
+
"absorbedCount",
|
|
53802
|
+
"removedEmptyBlocks"
|
|
53119
53803
|
]
|
|
53120
53804
|
},
|
|
53121
53805
|
{
|
|
@@ -53131,8 +53815,7 @@ export const CONTRACT = {
|
|
|
53131
53815
|
"enum": [
|
|
53132
53816
|
"INVALID_TARGET",
|
|
53133
53817
|
"NO_ADJACENT_SEQUENCE",
|
|
53134
|
-
"
|
|
53135
|
-
"ALREADY_SAME_SEQUENCE"
|
|
53818
|
+
"NO_OP"
|
|
53136
53819
|
]
|
|
53137
53820
|
},
|
|
53138
53821
|
"message": {
|
|
@@ -53163,12 +53846,20 @@ export const CONTRACT = {
|
|
|
53163
53846
|
},
|
|
53164
53847
|
"listId": {
|
|
53165
53848
|
"type": "string"
|
|
53849
|
+
},
|
|
53850
|
+
"absorbedCount": {
|
|
53851
|
+
"type": "integer"
|
|
53852
|
+
},
|
|
53853
|
+
"removedEmptyBlocks": {
|
|
53854
|
+
"type": "integer"
|
|
53166
53855
|
}
|
|
53167
53856
|
},
|
|
53168
53857
|
"additionalProperties": false,
|
|
53169
53858
|
"required": [
|
|
53170
53859
|
"success",
|
|
53171
|
-
"listId"
|
|
53860
|
+
"listId",
|
|
53861
|
+
"absorbedCount",
|
|
53862
|
+
"removedEmptyBlocks"
|
|
53172
53863
|
]
|
|
53173
53864
|
},
|
|
53174
53865
|
"failureSchema": {
|
|
@@ -53184,8 +53875,7 @@ export const CONTRACT = {
|
|
|
53184
53875
|
"enum": [
|
|
53185
53876
|
"INVALID_TARGET",
|
|
53186
53877
|
"NO_ADJACENT_SEQUENCE",
|
|
53187
|
-
"
|
|
53188
|
-
"ALREADY_SAME_SEQUENCE"
|
|
53878
|
+
"NO_OP"
|
|
53189
53879
|
]
|
|
53190
53880
|
},
|
|
53191
53881
|
"message": {
|
|
@@ -53205,143 +53895,23 @@ export const CONTRACT = {
|
|
|
53205
53895
|
"success",
|
|
53206
53896
|
"failure"
|
|
53207
53897
|
]
|
|
53208
|
-
}
|
|
53209
|
-
},
|
|
53210
|
-
"doc.lists.canJoin": {
|
|
53211
|
-
"operationId": "doc.lists.canJoin",
|
|
53212
|
-
"sdkSurface": "document",
|
|
53213
|
-
"command": "lists can-join",
|
|
53214
|
-
"commandTokens": [
|
|
53215
|
-
"lists",
|
|
53216
|
-
"can-join"
|
|
53217
|
-
],
|
|
53218
|
-
"category": "lists",
|
|
53219
|
-
"description": "Check whether two adjacent list sequences can be joined.",
|
|
53220
|
-
"requiresDocumentContext": true,
|
|
53221
|
-
"docRequirement": "optional",
|
|
53222
|
-
"responseEnvelopeKey": "result",
|
|
53223
|
-
"params": [
|
|
53224
|
-
{
|
|
53225
|
-
"name": "doc",
|
|
53226
|
-
"kind": "doc",
|
|
53227
|
-
"type": "string",
|
|
53228
|
-
"description": "Document path. Optional when a session is already open."
|
|
53229
|
-
},
|
|
53230
|
-
{
|
|
53231
|
-
"name": "sessionId",
|
|
53232
|
-
"kind": "flag",
|
|
53233
|
-
"type": "string",
|
|
53234
|
-
"flag": "session",
|
|
53235
|
-
"description": "Session ID for multi-session workflows. Optional when only one session is open."
|
|
53236
|
-
},
|
|
53237
|
-
{
|
|
53238
|
-
"name": "target",
|
|
53239
|
-
"kind": "jsonFlag",
|
|
53240
|
-
"type": "json",
|
|
53241
|
-
"flag": "target-json",
|
|
53242
|
-
"schema": {
|
|
53243
|
-
"type": "object",
|
|
53244
|
-
"properties": {
|
|
53245
|
-
"kind": {
|
|
53246
|
-
"const": "block"
|
|
53247
|
-
},
|
|
53248
|
-
"nodeType": {
|
|
53249
|
-
"const": "listItem"
|
|
53250
|
-
},
|
|
53251
|
-
"nodeId": {
|
|
53252
|
-
"type": "string"
|
|
53253
|
-
}
|
|
53254
|
-
},
|
|
53255
|
-
"required": [
|
|
53256
|
-
"kind",
|
|
53257
|
-
"nodeType",
|
|
53258
|
-
"nodeId"
|
|
53259
|
-
]
|
|
53260
|
-
}
|
|
53261
|
-
},
|
|
53262
|
-
{
|
|
53263
|
-
"name": "direction",
|
|
53264
|
-
"kind": "flag",
|
|
53265
|
-
"type": "string",
|
|
53266
|
-
"schema": {
|
|
53267
|
-
"oneOf": [
|
|
53268
|
-
{
|
|
53269
|
-
"const": "withPrevious"
|
|
53270
|
-
},
|
|
53271
|
-
{
|
|
53272
|
-
"const": "withNext"
|
|
53273
|
-
}
|
|
53274
|
-
]
|
|
53275
|
-
}
|
|
53276
|
-
},
|
|
53277
|
-
{
|
|
53278
|
-
"name": "input",
|
|
53279
|
-
"kind": "jsonFlag",
|
|
53280
|
-
"type": "json",
|
|
53281
|
-
"flag": "input-json",
|
|
53282
|
-
"description": "Operation input as JSON object."
|
|
53283
|
-
}
|
|
53284
|
-
],
|
|
53285
|
-
"constraints": null,
|
|
53286
|
-
"mutates": false,
|
|
53287
|
-
"idempotency": "idempotent",
|
|
53288
|
-
"supportsTrackedMode": false,
|
|
53289
|
-
"supportsDryRun": false,
|
|
53290
|
-
"inputSchema": {
|
|
53291
|
-
"type": "object",
|
|
53292
|
-
"properties": {
|
|
53293
|
-
"target": {
|
|
53294
|
-
"$ref": "#/$defs/ListItemAddress"
|
|
53295
|
-
},
|
|
53296
|
-
"direction": {
|
|
53297
|
-
"enum": [
|
|
53298
|
-
"withPrevious",
|
|
53299
|
-
"withNext"
|
|
53300
|
-
]
|
|
53301
|
-
}
|
|
53302
|
-
},
|
|
53303
|
-
"additionalProperties": false,
|
|
53304
|
-
"required": [
|
|
53305
|
-
"target",
|
|
53306
|
-
"direction"
|
|
53307
|
-
]
|
|
53308
53898
|
},
|
|
53309
|
-
"
|
|
53310
|
-
|
|
53311
|
-
"properties": {
|
|
53312
|
-
"canJoin": {
|
|
53313
|
-
"type": "boolean"
|
|
53314
|
-
},
|
|
53315
|
-
"reason": {
|
|
53316
|
-
"enum": [
|
|
53317
|
-
"NO_ADJACENT_SEQUENCE",
|
|
53318
|
-
"INCOMPATIBLE_DEFINITIONS",
|
|
53319
|
-
"ALREADY_SAME_SEQUENCE"
|
|
53320
|
-
]
|
|
53321
|
-
},
|
|
53322
|
-
"adjacentListId": {
|
|
53323
|
-
"type": "string"
|
|
53324
|
-
}
|
|
53325
|
-
},
|
|
53326
|
-
"additionalProperties": false,
|
|
53327
|
-
"required": [
|
|
53328
|
-
"canJoin"
|
|
53329
|
-
]
|
|
53330
|
-
}
|
|
53899
|
+
"intentGroup": "list",
|
|
53900
|
+
"intentAction": "merge"
|
|
53331
53901
|
},
|
|
53332
|
-
"doc.lists.
|
|
53333
|
-
"operationId": "doc.lists.
|
|
53902
|
+
"doc.lists.split": {
|
|
53903
|
+
"operationId": "doc.lists.split",
|
|
53334
53904
|
"sdkSurface": "document",
|
|
53335
|
-
"command": "lists
|
|
53905
|
+
"command": "lists split",
|
|
53336
53906
|
"commandTokens": [
|
|
53337
53907
|
"lists",
|
|
53338
|
-
"
|
|
53908
|
+
"split"
|
|
53339
53909
|
],
|
|
53340
53910
|
"category": "lists",
|
|
53341
|
-
"description": "
|
|
53911
|
+
"description": "Compound: split a list sequence at the target item into two independent sequences. Runs lists.separate then (by default) lists.setValue(1) so the new half starts numbering fresh at 1. Pass restartNumbering:false for raw separate semantics (new half continues the previous count).",
|
|
53342
53912
|
"requiresDocumentContext": true,
|
|
53343
53913
|
"docRequirement": "optional",
|
|
53344
|
-
"responseEnvelopeKey":
|
|
53914
|
+
"responseEnvelopeKey": null,
|
|
53345
53915
|
"params": [
|
|
53346
53916
|
{
|
|
53347
53917
|
"name": "doc",
|
|
@@ -53400,6 +53970,7 @@ export const CONTRACT = {
|
|
|
53400
53970
|
"kind": "jsonFlag",
|
|
53401
53971
|
"type": "json",
|
|
53402
53972
|
"flag": "target-json",
|
|
53973
|
+
"required": true,
|
|
53403
53974
|
"schema": {
|
|
53404
53975
|
"type": "object",
|
|
53405
53976
|
"properties": {
|
|
@@ -53421,24 +53992,10 @@ export const CONTRACT = {
|
|
|
53421
53992
|
}
|
|
53422
53993
|
},
|
|
53423
53994
|
{
|
|
53424
|
-
"name": "
|
|
53995
|
+
"name": "restartNumbering",
|
|
53425
53996
|
"kind": "flag",
|
|
53426
53997
|
"type": "boolean",
|
|
53427
|
-
"flag": "
|
|
53428
|
-
},
|
|
53429
|
-
{
|
|
53430
|
-
"name": "input",
|
|
53431
|
-
"kind": "jsonFlag",
|
|
53432
|
-
"type": "json",
|
|
53433
|
-
"flag": "input-json",
|
|
53434
|
-
"description": "Operation input as JSON object."
|
|
53435
|
-
},
|
|
53436
|
-
{
|
|
53437
|
-
"name": "nodeId",
|
|
53438
|
-
"kind": "flag",
|
|
53439
|
-
"type": "string",
|
|
53440
|
-
"flag": "node-id",
|
|
53441
|
-
"description": "Node ID of the target list item."
|
|
53998
|
+
"flag": "restart-numbering"
|
|
53442
53999
|
}
|
|
53443
54000
|
],
|
|
53444
54001
|
"constraints": null,
|
|
@@ -53452,7 +54009,7 @@ export const CONTRACT = {
|
|
|
53452
54009
|
"target": {
|
|
53453
54010
|
"$ref": "#/$defs/ListItemAddress"
|
|
53454
54011
|
},
|
|
53455
|
-
"
|
|
54012
|
+
"restartNumbering": {
|
|
53456
54013
|
"type": "boolean"
|
|
53457
54014
|
}
|
|
53458
54015
|
},
|
|
@@ -53474,13 +54031,20 @@ export const CONTRACT = {
|
|
|
53474
54031
|
},
|
|
53475
54032
|
"numId": {
|
|
53476
54033
|
"type": "integer"
|
|
54034
|
+
},
|
|
54035
|
+
"restartedAt": {
|
|
54036
|
+
"type": [
|
|
54037
|
+
"integer",
|
|
54038
|
+
"null"
|
|
54039
|
+
]
|
|
53477
54040
|
}
|
|
53478
54041
|
},
|
|
53479
54042
|
"additionalProperties": false,
|
|
53480
54043
|
"required": [
|
|
53481
54044
|
"success",
|
|
53482
54045
|
"listId",
|
|
53483
|
-
"numId"
|
|
54046
|
+
"numId",
|
|
54047
|
+
"restartedAt"
|
|
53484
54048
|
]
|
|
53485
54049
|
},
|
|
53486
54050
|
{
|
|
@@ -53529,13 +54093,20 @@ export const CONTRACT = {
|
|
|
53529
54093
|
},
|
|
53530
54094
|
"numId": {
|
|
53531
54095
|
"type": "integer"
|
|
54096
|
+
},
|
|
54097
|
+
"restartedAt": {
|
|
54098
|
+
"type": [
|
|
54099
|
+
"integer",
|
|
54100
|
+
"null"
|
|
54101
|
+
]
|
|
53532
54102
|
}
|
|
53533
54103
|
},
|
|
53534
54104
|
"additionalProperties": false,
|
|
53535
54105
|
"required": [
|
|
53536
54106
|
"success",
|
|
53537
54107
|
"listId",
|
|
53538
|
-
"numId"
|
|
54108
|
+
"numId",
|
|
54109
|
+
"restartedAt"
|
|
53539
54110
|
]
|
|
53540
54111
|
},
|
|
53541
54112
|
"failureSchema": {
|
|
@@ -53570,7 +54141,9 @@ export const CONTRACT = {
|
|
|
53570
54141
|
"success",
|
|
53571
54142
|
"failure"
|
|
53572
54143
|
]
|
|
53573
|
-
}
|
|
54144
|
+
},
|
|
54145
|
+
"intentGroup": "list",
|
|
54146
|
+
"intentAction": "split"
|
|
53574
54147
|
},
|
|
53575
54148
|
"doc.lists.setLevel": {
|
|
53576
54149
|
"operationId": "doc.lists.setLevel",
|
|
@@ -54053,7 +54626,9 @@ export const CONTRACT = {
|
|
|
54053
54626
|
"success",
|
|
54054
54627
|
"failure"
|
|
54055
54628
|
]
|
|
54056
|
-
}
|
|
54629
|
+
},
|
|
54630
|
+
"intentGroup": "list",
|
|
54631
|
+
"intentAction": "set_value"
|
|
54057
54632
|
},
|
|
54058
54633
|
"doc.lists.continuePrevious": {
|
|
54059
54634
|
"operationId": "doc.lists.continuePrevious",
|
|
@@ -54281,7 +54856,9 @@ export const CONTRACT = {
|
|
|
54281
54856
|
"success",
|
|
54282
54857
|
"failure"
|
|
54283
54858
|
]
|
|
54284
|
-
}
|
|
54859
|
+
},
|
|
54860
|
+
"intentGroup": "list",
|
|
54861
|
+
"intentAction": "continue_previous"
|
|
54285
54862
|
},
|
|
54286
54863
|
"doc.lists.canContinuePrevious": {
|
|
54287
54864
|
"operationId": "doc.lists.canContinuePrevious",
|
|
@@ -80908,6 +81485,76 @@ export const CONTRACT = {
|
|
|
80908
81485
|
"dryRun"
|
|
80909
81486
|
]
|
|
80910
81487
|
},
|
|
81488
|
+
"lists.merge": {
|
|
81489
|
+
"type": "object",
|
|
81490
|
+
"properties": {
|
|
81491
|
+
"available": {
|
|
81492
|
+
"type": "boolean"
|
|
81493
|
+
},
|
|
81494
|
+
"tracked": {
|
|
81495
|
+
"type": "boolean"
|
|
81496
|
+
},
|
|
81497
|
+
"dryRun": {
|
|
81498
|
+
"type": "boolean"
|
|
81499
|
+
},
|
|
81500
|
+
"reasons": {
|
|
81501
|
+
"type": "array",
|
|
81502
|
+
"items": {
|
|
81503
|
+
"enum": [
|
|
81504
|
+
"COMMAND_UNAVAILABLE",
|
|
81505
|
+
"HELPER_UNAVAILABLE",
|
|
81506
|
+
"OPERATION_UNAVAILABLE",
|
|
81507
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81508
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81509
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81510
|
+
"STYLES_PART_MISSING",
|
|
81511
|
+
"COLLABORATION_ACTIVE"
|
|
81512
|
+
]
|
|
81513
|
+
}
|
|
81514
|
+
}
|
|
81515
|
+
},
|
|
81516
|
+
"additionalProperties": false,
|
|
81517
|
+
"required": [
|
|
81518
|
+
"available",
|
|
81519
|
+
"tracked",
|
|
81520
|
+
"dryRun"
|
|
81521
|
+
]
|
|
81522
|
+
},
|
|
81523
|
+
"lists.split": {
|
|
81524
|
+
"type": "object",
|
|
81525
|
+
"properties": {
|
|
81526
|
+
"available": {
|
|
81527
|
+
"type": "boolean"
|
|
81528
|
+
},
|
|
81529
|
+
"tracked": {
|
|
81530
|
+
"type": "boolean"
|
|
81531
|
+
},
|
|
81532
|
+
"dryRun": {
|
|
81533
|
+
"type": "boolean"
|
|
81534
|
+
},
|
|
81535
|
+
"reasons": {
|
|
81536
|
+
"type": "array",
|
|
81537
|
+
"items": {
|
|
81538
|
+
"enum": [
|
|
81539
|
+
"COMMAND_UNAVAILABLE",
|
|
81540
|
+
"HELPER_UNAVAILABLE",
|
|
81541
|
+
"OPERATION_UNAVAILABLE",
|
|
81542
|
+
"TRACKED_MODE_UNAVAILABLE",
|
|
81543
|
+
"DRY_RUN_UNAVAILABLE",
|
|
81544
|
+
"NAMESPACE_UNAVAILABLE",
|
|
81545
|
+
"STYLES_PART_MISSING",
|
|
81546
|
+
"COLLABORATION_ACTIVE"
|
|
81547
|
+
]
|
|
81548
|
+
}
|
|
81549
|
+
}
|
|
81550
|
+
},
|
|
81551
|
+
"additionalProperties": false,
|
|
81552
|
+
"required": [
|
|
81553
|
+
"available",
|
|
81554
|
+
"tracked",
|
|
81555
|
+
"dryRun"
|
|
81556
|
+
]
|
|
81557
|
+
},
|
|
80911
81558
|
"lists.setLevel": {
|
|
80912
81559
|
"type": "object",
|
|
80913
81560
|
"properties": {
|
|
@@ -90546,6 +91193,8 @@ export const CONTRACT = {
|
|
|
90546
91193
|
"lists.join",
|
|
90547
91194
|
"lists.canJoin",
|
|
90548
91195
|
"lists.separate",
|
|
91196
|
+
"lists.merge",
|
|
91197
|
+
"lists.split",
|
|
90549
91198
|
"lists.setLevel",
|
|
90550
91199
|
"lists.setValue",
|
|
90551
91200
|
"lists.continuePrevious",
|