@superdoc-dev/sdk 1.8.0-next.3 → 1.8.0-next.5

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.
@@ -1609,37 +1609,84 @@
1609
1609
  "description": "Comment text content. Required for action 'create'."
1610
1610
  },
1611
1611
  "target": {
1612
- "type": "object",
1613
- "properties": {
1614
- "kind": {
1615
- "const": "text",
1616
- "type": "string"
1617
- },
1618
- "blockId": {
1619
- "type": "string"
1612
+ "oneOf": [
1613
+ {
1614
+ "type": "object",
1615
+ "properties": {
1616
+ "kind": {
1617
+ "const": "text",
1618
+ "type": "string"
1619
+ },
1620
+ "blockId": {
1621
+ "type": "string"
1622
+ },
1623
+ "range": {
1624
+ "type": "object",
1625
+ "properties": {
1626
+ "start": {
1627
+ "type": "number"
1628
+ },
1629
+ "end": {
1630
+ "type": "number"
1631
+ }
1632
+ },
1633
+ "required": [
1634
+ "start",
1635
+ "end"
1636
+ ]
1637
+ }
1638
+ },
1639
+ "required": [
1640
+ "kind",
1641
+ "blockId",
1642
+ "range"
1643
+ ]
1620
1644
  },
1621
- "range": {
1645
+ {
1622
1646
  "type": "object",
1623
1647
  "properties": {
1624
- "start": {
1625
- "type": "number"
1648
+ "kind": {
1649
+ "const": "text",
1650
+ "type": "string"
1626
1651
  },
1627
- "end": {
1628
- "type": "number"
1652
+ "segments": {
1653
+ "type": "array",
1654
+ "items": {
1655
+ "type": "object",
1656
+ "properties": {
1657
+ "blockId": {
1658
+ "type": "string"
1659
+ },
1660
+ "range": {
1661
+ "type": "object",
1662
+ "properties": {
1663
+ "start": {
1664
+ "type": "number"
1665
+ },
1666
+ "end": {
1667
+ "type": "number"
1668
+ }
1669
+ },
1670
+ "required": [
1671
+ "start",
1672
+ "end"
1673
+ ]
1674
+ }
1675
+ },
1676
+ "required": [
1677
+ "blockId",
1678
+ "range"
1679
+ ]
1680
+ }
1629
1681
  }
1630
1682
  },
1631
1683
  "required": [
1632
- "start",
1633
- "end"
1684
+ "kind",
1685
+ "segments"
1634
1686
  ]
1635
1687
  }
1636
- },
1637
- "required": [
1638
- "kind",
1639
- "blockId",
1640
- "range"
1641
1688
  ],
1642
- "description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}. Only for actions 'create', 'update'. Omit for other actions."
1689
+ "description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks. Only for actions 'create', 'update'. Omit for other actions."
1643
1690
  },
1644
1691
  "parentId": {
1645
1692
  "type": "string",
@@ -39,5 +39,5 @@
39
39
  "mutates": true
40
40
  }
41
41
  ],
42
- "contractHash": "7c2886fc157bc1eb870350a9362b6b3bae52dee16af3451649bb36c0b78a8ff4"
42
+ "contractHash": "5d8801b835a962bf9b7ed0586312e317d1d515dc58d3a5d8ec195a56bdf7c3d4"
43
43
  }
@@ -1365,37 +1365,84 @@
1365
1365
  "description": "Comment text content. Required for action 'create'."
1366
1366
  },
1367
1367
  "target": {
1368
- "type": "object",
1369
- "properties": {
1370
- "kind": {
1371
- "const": "text",
1372
- "type": "string"
1373
- },
1374
- "blockId": {
1375
- "type": "string"
1368
+ "oneOf": [
1369
+ {
1370
+ "type": "object",
1371
+ "properties": {
1372
+ "kind": {
1373
+ "const": "text",
1374
+ "type": "string"
1375
+ },
1376
+ "blockId": {
1377
+ "type": "string"
1378
+ },
1379
+ "range": {
1380
+ "type": "object",
1381
+ "properties": {
1382
+ "start": {
1383
+ "type": "number"
1384
+ },
1385
+ "end": {
1386
+ "type": "number"
1387
+ }
1388
+ },
1389
+ "required": [
1390
+ "start",
1391
+ "end"
1392
+ ]
1393
+ }
1394
+ },
1395
+ "required": [
1396
+ "kind",
1397
+ "blockId",
1398
+ "range"
1399
+ ]
1376
1400
  },
1377
- "range": {
1401
+ {
1378
1402
  "type": "object",
1379
1403
  "properties": {
1380
- "start": {
1381
- "type": "number"
1404
+ "kind": {
1405
+ "const": "text",
1406
+ "type": "string"
1382
1407
  },
1383
- "end": {
1384
- "type": "number"
1408
+ "segments": {
1409
+ "type": "array",
1410
+ "items": {
1411
+ "type": "object",
1412
+ "properties": {
1413
+ "blockId": {
1414
+ "type": "string"
1415
+ },
1416
+ "range": {
1417
+ "type": "object",
1418
+ "properties": {
1419
+ "start": {
1420
+ "type": "number"
1421
+ },
1422
+ "end": {
1423
+ "type": "number"
1424
+ }
1425
+ },
1426
+ "required": [
1427
+ "start",
1428
+ "end"
1429
+ ]
1430
+ }
1431
+ },
1432
+ "required": [
1433
+ "blockId",
1434
+ "range"
1435
+ ]
1436
+ }
1385
1437
  }
1386
1438
  },
1387
1439
  "required": [
1388
- "start",
1389
- "end"
1440
+ "kind",
1441
+ "segments"
1390
1442
  ]
1391
1443
  }
1392
- },
1393
- "required": [
1394
- "kind",
1395
- "blockId",
1396
- "range"
1397
1444
  ],
1398
- "description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}. Only for actions 'create', 'update'. Omit for other actions."
1445
+ "description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks. Only for actions 'create', 'update'. Omit for other actions."
1399
1446
  },
1400
1447
  "parentId": {
1401
1448
  "type": "string",
@@ -1468,37 +1468,84 @@
1468
1468
  "description": "Comment text content. Required for action 'create'."
1469
1469
  },
1470
1470
  "target": {
1471
- "type": "object",
1472
- "properties": {
1473
- "kind": {
1474
- "const": "text",
1475
- "type": "string"
1476
- },
1477
- "blockId": {
1478
- "type": "string"
1471
+ "oneOf": [
1472
+ {
1473
+ "type": "object",
1474
+ "properties": {
1475
+ "kind": {
1476
+ "const": "text",
1477
+ "type": "string"
1478
+ },
1479
+ "blockId": {
1480
+ "type": "string"
1481
+ },
1482
+ "range": {
1483
+ "type": "object",
1484
+ "properties": {
1485
+ "start": {
1486
+ "type": "number"
1487
+ },
1488
+ "end": {
1489
+ "type": "number"
1490
+ }
1491
+ },
1492
+ "required": [
1493
+ "start",
1494
+ "end"
1495
+ ]
1496
+ }
1497
+ },
1498
+ "required": [
1499
+ "kind",
1500
+ "blockId",
1501
+ "range"
1502
+ ]
1479
1503
  },
1480
- "range": {
1504
+ {
1481
1505
  "type": "object",
1482
1506
  "properties": {
1483
- "start": {
1484
- "type": "number"
1507
+ "kind": {
1508
+ "const": "text",
1509
+ "type": "string"
1485
1510
  },
1486
- "end": {
1487
- "type": "number"
1511
+ "segments": {
1512
+ "type": "array",
1513
+ "items": {
1514
+ "type": "object",
1515
+ "properties": {
1516
+ "blockId": {
1517
+ "type": "string"
1518
+ },
1519
+ "range": {
1520
+ "type": "object",
1521
+ "properties": {
1522
+ "start": {
1523
+ "type": "number"
1524
+ },
1525
+ "end": {
1526
+ "type": "number"
1527
+ }
1528
+ },
1529
+ "required": [
1530
+ "start",
1531
+ "end"
1532
+ ]
1533
+ }
1534
+ },
1535
+ "required": [
1536
+ "blockId",
1537
+ "range"
1538
+ ]
1539
+ }
1488
1540
  }
1489
1541
  },
1490
1542
  "required": [
1491
- "start",
1492
- "end"
1543
+ "kind",
1544
+ "segments"
1493
1545
  ]
1494
1546
  }
1495
- },
1496
- "required": [
1497
- "kind",
1498
- "blockId",
1499
- "range"
1500
1547
  ],
1501
- "description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}. Only for actions 'create', 'update'. Omit for other actions."
1548
+ "description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks. Only for actions 'create', 'update'. Omit for other actions."
1502
1549
  },
1503
1550
  "parentId": {
1504
1551
  "type": "string",
@@ -1382,37 +1382,84 @@
1382
1382
  "description": "Comment text content. Required for action 'create'."
1383
1383
  },
1384
1384
  "target": {
1385
- "type": "object",
1386
- "properties": {
1387
- "kind": {
1388
- "const": "text",
1389
- "type": "string"
1390
- },
1391
- "blockId": {
1392
- "type": "string"
1385
+ "oneOf": [
1386
+ {
1387
+ "type": "object",
1388
+ "properties": {
1389
+ "kind": {
1390
+ "const": "text",
1391
+ "type": "string"
1392
+ },
1393
+ "blockId": {
1394
+ "type": "string"
1395
+ },
1396
+ "range": {
1397
+ "type": "object",
1398
+ "properties": {
1399
+ "start": {
1400
+ "type": "number"
1401
+ },
1402
+ "end": {
1403
+ "type": "number"
1404
+ }
1405
+ },
1406
+ "required": [
1407
+ "start",
1408
+ "end"
1409
+ ]
1410
+ }
1411
+ },
1412
+ "required": [
1413
+ "kind",
1414
+ "blockId",
1415
+ "range"
1416
+ ]
1393
1417
  },
1394
- "range": {
1418
+ {
1395
1419
  "type": "object",
1396
1420
  "properties": {
1397
- "start": {
1398
- "type": "number"
1421
+ "kind": {
1422
+ "const": "text",
1423
+ "type": "string"
1399
1424
  },
1400
- "end": {
1401
- "type": "number"
1425
+ "segments": {
1426
+ "type": "array",
1427
+ "items": {
1428
+ "type": "object",
1429
+ "properties": {
1430
+ "blockId": {
1431
+ "type": "string"
1432
+ },
1433
+ "range": {
1434
+ "type": "object",
1435
+ "properties": {
1436
+ "start": {
1437
+ "type": "number"
1438
+ },
1439
+ "end": {
1440
+ "type": "number"
1441
+ }
1442
+ },
1443
+ "required": [
1444
+ "start",
1445
+ "end"
1446
+ ]
1447
+ }
1448
+ },
1449
+ "required": [
1450
+ "blockId",
1451
+ "range"
1452
+ ]
1453
+ }
1402
1454
  }
1403
1455
  },
1404
1456
  "required": [
1405
- "start",
1406
- "end"
1457
+ "kind",
1458
+ "segments"
1407
1459
  ]
1408
1460
  }
1409
- },
1410
- "required": [
1411
- "kind",
1412
- "blockId",
1413
- "range"
1414
1461
  ],
1415
- "description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}. Only for actions 'create', 'update'. Omit for other actions."
1462
+ "description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks. Only for actions 'create', 'update'. Omit for other actions."
1416
1463
  },
1417
1464
  "parentId": {
1418
1465
  "type": "string",
@@ -1382,37 +1382,84 @@
1382
1382
  "description": "Comment text content. Required for action 'create'."
1383
1383
  },
1384
1384
  "target": {
1385
- "type": "object",
1386
- "properties": {
1387
- "kind": {
1388
- "const": "text",
1389
- "type": "string"
1390
- },
1391
- "blockId": {
1392
- "type": "string"
1385
+ "oneOf": [
1386
+ {
1387
+ "type": "object",
1388
+ "properties": {
1389
+ "kind": {
1390
+ "const": "text",
1391
+ "type": "string"
1392
+ },
1393
+ "blockId": {
1394
+ "type": "string"
1395
+ },
1396
+ "range": {
1397
+ "type": "object",
1398
+ "properties": {
1399
+ "start": {
1400
+ "type": "number"
1401
+ },
1402
+ "end": {
1403
+ "type": "number"
1404
+ }
1405
+ },
1406
+ "required": [
1407
+ "start",
1408
+ "end"
1409
+ ]
1410
+ }
1411
+ },
1412
+ "required": [
1413
+ "kind",
1414
+ "blockId",
1415
+ "range"
1416
+ ]
1393
1417
  },
1394
- "range": {
1418
+ {
1395
1419
  "type": "object",
1396
1420
  "properties": {
1397
- "start": {
1398
- "type": "number"
1421
+ "kind": {
1422
+ "const": "text",
1423
+ "type": "string"
1399
1424
  },
1400
- "end": {
1401
- "type": "number"
1425
+ "segments": {
1426
+ "type": "array",
1427
+ "items": {
1428
+ "type": "object",
1429
+ "properties": {
1430
+ "blockId": {
1431
+ "type": "string"
1432
+ },
1433
+ "range": {
1434
+ "type": "object",
1435
+ "properties": {
1436
+ "start": {
1437
+ "type": "number"
1438
+ },
1439
+ "end": {
1440
+ "type": "number"
1441
+ }
1442
+ },
1443
+ "required": [
1444
+ "start",
1445
+ "end"
1446
+ ]
1447
+ }
1448
+ },
1449
+ "required": [
1450
+ "blockId",
1451
+ "range"
1452
+ ]
1453
+ }
1402
1454
  }
1403
1455
  },
1404
1456
  "required": [
1405
- "start",
1406
- "end"
1457
+ "kind",
1458
+ "segments"
1407
1459
  ]
1408
1460
  }
1409
- },
1410
- "required": [
1411
- "kind",
1412
- "blockId",
1413
- "range"
1414
1461
  ],
1415
- "description": "Text range to anchor the comment: {kind:'text', blockId:'...', range:{start:N, end:N}}. Only for actions 'create', 'update'. Omit for other actions."
1462
+ "description": "Text range to anchor the comment. Accepts either a single-block TextAddress {kind:'text', blockId, range} or a multi-segment TextTarget {kind:'text', segments:[{blockId, range}, ...]} for selections that span blocks. Only for actions 'create', 'update'. Omit for other actions."
1416
1463
  },
1417
1464
  "parentId": {
1418
1465
  "type": "string",