@gitbook/api 0.13.0 → 0.15.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.
- package/dist/client.d.ts +319 -31
- package/dist/index.cjs +69 -0
- package/dist/index.js +65 -0
- package/package.json +1 -1
- package/spec/openapi.json +1173 -123
- package/spec/openapi.yaml +710 -62
package/spec/openapi.json
CHANGED
|
@@ -1366,6 +1366,66 @@
|
|
|
1366
1366
|
"urls"
|
|
1367
1367
|
]
|
|
1368
1368
|
},
|
|
1369
|
+
"PublishedContentLookup": {
|
|
1370
|
+
"oneOf": [
|
|
1371
|
+
{
|
|
1372
|
+
"type": "object",
|
|
1373
|
+
"properties": {
|
|
1374
|
+
"target": {
|
|
1375
|
+
"type": "string",
|
|
1376
|
+
"description": "Type of target for the redirect",
|
|
1377
|
+
"enum": [
|
|
1378
|
+
"application",
|
|
1379
|
+
"content",
|
|
1380
|
+
"external"
|
|
1381
|
+
]
|
|
1382
|
+
},
|
|
1383
|
+
"redirect": {
|
|
1384
|
+
"$ref": "#/components/schemas/URL"
|
|
1385
|
+
}
|
|
1386
|
+
},
|
|
1387
|
+
"required": [
|
|
1388
|
+
"target",
|
|
1389
|
+
"redirect"
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"type": "object",
|
|
1394
|
+
"properties": {
|
|
1395
|
+
"space": {
|
|
1396
|
+
"type": "string",
|
|
1397
|
+
"description": "ID of the space matching."
|
|
1398
|
+
},
|
|
1399
|
+
"changeRequest": {
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"description": "Identifier of the change request being previewed in this URL."
|
|
1402
|
+
},
|
|
1403
|
+
"revision": {
|
|
1404
|
+
"type": "string",
|
|
1405
|
+
"description": "Identifier of the revision being previewed in this URL."
|
|
1406
|
+
},
|
|
1407
|
+
"pathname": {
|
|
1408
|
+
"type": "string",
|
|
1409
|
+
"description": "Path of the content relative to the space"
|
|
1410
|
+
},
|
|
1411
|
+
"basePath": {
|
|
1412
|
+
"type": "string",
|
|
1413
|
+
"description": "Prefix of the path in the URL dedicated to the space"
|
|
1414
|
+
},
|
|
1415
|
+
"apiToken": {
|
|
1416
|
+
"type": "string",
|
|
1417
|
+
"description": "Short-lived API token to fetch content related to the space in the context of the URL."
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"required": [
|
|
1421
|
+
"space",
|
|
1422
|
+
"pathname",
|
|
1423
|
+
"basePath",
|
|
1424
|
+
"apiToken"
|
|
1425
|
+
]
|
|
1426
|
+
}
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1369
1429
|
"Document": {
|
|
1370
1430
|
"oneOf": [
|
|
1371
1431
|
{
|
|
@@ -1427,7 +1487,7 @@
|
|
|
1427
1487
|
"nodes"
|
|
1428
1488
|
]
|
|
1429
1489
|
},
|
|
1430
|
-
"
|
|
1490
|
+
"DocumentBlock": {
|
|
1431
1491
|
"oneOf": [
|
|
1432
1492
|
{
|
|
1433
1493
|
"$ref": "#/components/schemas/DocumentBlockParagraph"
|
|
@@ -1445,14 +1505,10 @@
|
|
|
1445
1505
|
"$ref": "#/components/schemas/DocumentBlockListTasks"
|
|
1446
1506
|
},
|
|
1447
1507
|
{
|
|
1448
|
-
"$ref": "#/components/schemas/
|
|
1449
|
-
}
|
|
1450
|
-
]
|
|
1451
|
-
},
|
|
1452
|
-
"DocumentBlocksTopLevels": {
|
|
1453
|
-
"oneOf": [
|
|
1508
|
+
"$ref": "#/components/schemas/DocumentBlockListItem"
|
|
1509
|
+
},
|
|
1454
1510
|
{
|
|
1455
|
-
"$ref": "#/components/schemas/
|
|
1511
|
+
"$ref": "#/components/schemas/DocumentBlockDivider"
|
|
1456
1512
|
},
|
|
1457
1513
|
{
|
|
1458
1514
|
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
@@ -1463,6 +1519,9 @@
|
|
|
1463
1519
|
{
|
|
1464
1520
|
"$ref": "#/components/schemas/DocumentBlockImages"
|
|
1465
1521
|
},
|
|
1522
|
+
{
|
|
1523
|
+
"$ref": "#/components/schemas/DocumentBlockImage"
|
|
1524
|
+
},
|
|
1466
1525
|
{
|
|
1467
1526
|
"$ref": "#/components/schemas/DocumentBlockFile"
|
|
1468
1527
|
},
|
|
@@ -1475,6 +1534,9 @@
|
|
|
1475
1534
|
{
|
|
1476
1535
|
"$ref": "#/components/schemas/DocumentBlockCode"
|
|
1477
1536
|
},
|
|
1537
|
+
{
|
|
1538
|
+
"$ref": "#/components/schemas/DocumentBlockCodeLine"
|
|
1539
|
+
},
|
|
1478
1540
|
{
|
|
1479
1541
|
"$ref": "#/components/schemas/DocumentBlockMath"
|
|
1480
1542
|
},
|
|
@@ -1484,6 +1546,9 @@
|
|
|
1484
1546
|
{
|
|
1485
1547
|
"$ref": "#/components/schemas/DocumentBlockTabs"
|
|
1486
1548
|
},
|
|
1549
|
+
{
|
|
1550
|
+
"$ref": "#/components/schemas/DocumentBlockTabsItem"
|
|
1551
|
+
},
|
|
1487
1552
|
{
|
|
1488
1553
|
"$ref": "#/components/schemas/DocumentBlockTable"
|
|
1489
1554
|
},
|
|
@@ -1498,7 +1563,29 @@
|
|
|
1498
1563
|
}
|
|
1499
1564
|
]
|
|
1500
1565
|
},
|
|
1501
|
-
"
|
|
1566
|
+
"DocumentInline": {
|
|
1567
|
+
"oneOf": [
|
|
1568
|
+
{
|
|
1569
|
+
"$ref": "#/components/schemas/DocumentInlineLink"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"$ref": "#/components/schemas/DocumentInlineEmoji"
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"$ref": "#/components/schemas/DocumentInlineMath"
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"$ref": "#/components/schemas/DocumentInlineAnnotation"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"$ref": "#/components/schemas/DocumentInlineMention"
|
|
1585
|
+
}
|
|
1586
|
+
]
|
|
1587
|
+
},
|
|
1588
|
+
"DocumentText": {
|
|
1502
1589
|
"type": "object",
|
|
1503
1590
|
"properties": {
|
|
1504
1591
|
"object": {
|
|
@@ -1522,7 +1609,7 @@
|
|
|
1522
1609
|
"leaves"
|
|
1523
1610
|
]
|
|
1524
1611
|
},
|
|
1525
|
-
"
|
|
1612
|
+
"DocumentFragment": {
|
|
1526
1613
|
"type": "object",
|
|
1527
1614
|
"properties": {
|
|
1528
1615
|
"object": {
|
|
@@ -1552,6 +1639,77 @@
|
|
|
1552
1639
|
"nodes"
|
|
1553
1640
|
]
|
|
1554
1641
|
},
|
|
1642
|
+
"DocumentBlocksEssentials": {
|
|
1643
|
+
"oneOf": [
|
|
1644
|
+
{
|
|
1645
|
+
"$ref": "#/components/schemas/DocumentBlockParagraph"
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
"$ref": "#/components/schemas/DocumentBlockHeading"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"$ref": "#/components/schemas/DocumentBlockListOrdered"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"$ref": "#/components/schemas/DocumentBlockListUnordered"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"$ref": "#/components/schemas/DocumentBlockListTasks"
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"$ref": "#/components/schemas/DocumentBlockDivider"
|
|
1661
|
+
}
|
|
1662
|
+
]
|
|
1663
|
+
},
|
|
1664
|
+
"DocumentBlocksTopLevels": {
|
|
1665
|
+
"oneOf": [
|
|
1666
|
+
{
|
|
1667
|
+
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"$ref": "#/components/schemas/DocumentBlockQuote"
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"$ref": "#/components/schemas/DocumentBlockHint"
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
"$ref": "#/components/schemas/DocumentBlockImages"
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"$ref": "#/components/schemas/DocumentBlockFile"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"$ref": "#/components/schemas/DocumentBlockDrawing"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"$ref": "#/components/schemas/DocumentBlockEmbed"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"$ref": "#/components/schemas/DocumentBlockCode"
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"$ref": "#/components/schemas/DocumentBlockMath"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"$ref": "#/components/schemas/DocumentBlockExpandable"
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"$ref": "#/components/schemas/DocumentBlockTabs"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"$ref": "#/components/schemas/DocumentBlockTable"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"$ref": "#/components/schemas/DocumentBlockSwagger"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
"$ref": "#/components/schemas/DocumentBlockContentRef"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"$ref": "#/components/schemas/DocumentBlockIntegration"
|
|
1710
|
+
}
|
|
1711
|
+
]
|
|
1712
|
+
},
|
|
1555
1713
|
"DocumentTextLeaf": {
|
|
1556
1714
|
"type": "object",
|
|
1557
1715
|
"properties": {
|
|
@@ -1758,7 +1916,7 @@
|
|
|
1758
1916
|
"items": {
|
|
1759
1917
|
"oneOf": [
|
|
1760
1918
|
{
|
|
1761
|
-
"$ref": "#/components/schemas/
|
|
1919
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
1762
1920
|
},
|
|
1763
1921
|
{
|
|
1764
1922
|
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
@@ -2013,7 +2171,7 @@
|
|
|
2013
2171
|
"items": {
|
|
2014
2172
|
"allOf": [
|
|
2015
2173
|
{
|
|
2016
|
-
"$ref": "#/components/schemas/
|
|
2174
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
2017
2175
|
},
|
|
2018
2176
|
{
|
|
2019
2177
|
"type": "object",
|
|
@@ -2050,13 +2208,13 @@
|
|
|
2050
2208
|
"isVoid": {
|
|
2051
2209
|
"type": "boolean",
|
|
2052
2210
|
"enum": [
|
|
2053
|
-
|
|
2211
|
+
false
|
|
2054
2212
|
]
|
|
2055
2213
|
},
|
|
2056
2214
|
"nodes": {
|
|
2057
2215
|
"type": "array",
|
|
2058
2216
|
"items": {
|
|
2059
|
-
"$ref": "#/components/schemas/
|
|
2217
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2060
2218
|
}
|
|
2061
2219
|
},
|
|
2062
2220
|
"data": {
|
|
@@ -2073,31 +2231,6 @@
|
|
|
2073
2231
|
"nodes"
|
|
2074
2232
|
]
|
|
2075
2233
|
},
|
|
2076
|
-
"DocumentInlinesRich": {
|
|
2077
|
-
"oneOf": [
|
|
2078
|
-
{
|
|
2079
|
-
"$ref": "#/components/schemas/DocumentNodeText"
|
|
2080
|
-
},
|
|
2081
|
-
{
|
|
2082
|
-
"$ref": "#/components/schemas/DocumentInlineLink"
|
|
2083
|
-
},
|
|
2084
|
-
{
|
|
2085
|
-
"$ref": "#/components/schemas/DocumentInlineEmoji"
|
|
2086
|
-
},
|
|
2087
|
-
{
|
|
2088
|
-
"$ref": "#/components/schemas/DocumentInlineMath"
|
|
2089
|
-
},
|
|
2090
|
-
{
|
|
2091
|
-
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
2092
|
-
},
|
|
2093
|
-
{
|
|
2094
|
-
"$ref": "#/components/schemas/DocumentInlineAnnotation"
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
"$ref": "#/components/schemas/DocumentInlineMention"
|
|
2098
|
-
}
|
|
2099
|
-
]
|
|
2100
|
-
},
|
|
2101
2234
|
"DocumentBlockParagraph": {
|
|
2102
2235
|
"type": "object",
|
|
2103
2236
|
"properties": {
|
|
@@ -2119,7 +2252,14 @@
|
|
|
2119
2252
|
"nodes": {
|
|
2120
2253
|
"type": "array",
|
|
2121
2254
|
"items": {
|
|
2122
|
-
"
|
|
2255
|
+
"oneOf": [
|
|
2256
|
+
{
|
|
2257
|
+
"$ref": "#/components/schemas/DocumentInline"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2261
|
+
}
|
|
2262
|
+
]
|
|
2123
2263
|
}
|
|
2124
2264
|
},
|
|
2125
2265
|
"isVoid": {
|
|
@@ -2163,7 +2303,14 @@
|
|
|
2163
2303
|
"nodes": {
|
|
2164
2304
|
"type": "array",
|
|
2165
2305
|
"items": {
|
|
2166
|
-
"
|
|
2306
|
+
"oneOf": [
|
|
2307
|
+
{
|
|
2308
|
+
"$ref": "#/components/schemas/DocumentInline"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2312
|
+
}
|
|
2313
|
+
]
|
|
2167
2314
|
}
|
|
2168
2315
|
},
|
|
2169
2316
|
"data": {
|
|
@@ -2424,7 +2571,7 @@
|
|
|
2424
2571
|
"items": {
|
|
2425
2572
|
"oneOf": [
|
|
2426
2573
|
{
|
|
2427
|
-
"$ref": "#/components/schemas/
|
|
2574
|
+
"$ref": "#/components/schemas/DocumentBlockListItem"
|
|
2428
2575
|
}
|
|
2429
2576
|
]
|
|
2430
2577
|
}
|
|
@@ -2483,8 +2630,11 @@
|
|
|
2483
2630
|
},
|
|
2484
2631
|
"data": {
|
|
2485
2632
|
"type": "object",
|
|
2486
|
-
"properties": {
|
|
2487
|
-
|
|
2633
|
+
"properties": {
|
|
2634
|
+
"checked": {
|
|
2635
|
+
"type": "boolean"
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2488
2638
|
}
|
|
2489
2639
|
},
|
|
2490
2640
|
"required": [
|
|
@@ -2493,32 +2643,6 @@
|
|
|
2493
2643
|
"nodes"
|
|
2494
2644
|
]
|
|
2495
2645
|
},
|
|
2496
|
-
"DocumentBlockTaskListItem": {
|
|
2497
|
-
"allOf": [
|
|
2498
|
-
{
|
|
2499
|
-
"$ref": "#/components/schemas/DocumentBlockListItem"
|
|
2500
|
-
},
|
|
2501
|
-
{
|
|
2502
|
-
"type": "object",
|
|
2503
|
-
"properties": {
|
|
2504
|
-
"data": {
|
|
2505
|
-
"type": "object",
|
|
2506
|
-
"properties": {
|
|
2507
|
-
"checked": {
|
|
2508
|
-
"type": "boolean"
|
|
2509
|
-
}
|
|
2510
|
-
},
|
|
2511
|
-
"required": [
|
|
2512
|
-
"checked"
|
|
2513
|
-
]
|
|
2514
|
-
}
|
|
2515
|
-
},
|
|
2516
|
-
"required": [
|
|
2517
|
-
"data"
|
|
2518
|
-
]
|
|
2519
|
-
}
|
|
2520
|
-
]
|
|
2521
|
-
},
|
|
2522
2646
|
"DocumentBlockImages": {
|
|
2523
2647
|
"type": "object",
|
|
2524
2648
|
"properties": {
|
|
@@ -2616,29 +2740,13 @@
|
|
|
2616
2740
|
]
|
|
2617
2741
|
},
|
|
2618
2742
|
"width": {
|
|
2619
|
-
"
|
|
2620
|
-
{
|
|
2621
|
-
"type": "number"
|
|
2622
|
-
},
|
|
2623
|
-
{
|
|
2624
|
-
"type": "object",
|
|
2625
|
-
"properties": {
|
|
2626
|
-
"unit": {
|
|
2627
|
-
"type": "string"
|
|
2628
|
-
},
|
|
2629
|
-
"value": {
|
|
2630
|
-
"type": "number"
|
|
2631
|
-
}
|
|
2632
|
-
},
|
|
2633
|
-
"required": [
|
|
2634
|
-
"unit",
|
|
2635
|
-
"value"
|
|
2636
|
-
]
|
|
2637
|
-
}
|
|
2638
|
-
]
|
|
2743
|
+
"$ref": "#/components/schemas/DocumentBlockImageDimension"
|
|
2639
2744
|
},
|
|
2640
2745
|
"height": {
|
|
2641
|
-
"$ref": "#/components/schemas/
|
|
2746
|
+
"$ref": "#/components/schemas/DocumentBlockImageDimension"
|
|
2747
|
+
},
|
|
2748
|
+
"alt": {
|
|
2749
|
+
"type": "string"
|
|
2642
2750
|
}
|
|
2643
2751
|
},
|
|
2644
2752
|
"required": [
|
|
@@ -2650,7 +2758,7 @@
|
|
|
2650
2758
|
"items": {
|
|
2651
2759
|
"allOf": [
|
|
2652
2760
|
{
|
|
2653
|
-
"$ref": "#/components/schemas/
|
|
2761
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
2654
2762
|
},
|
|
2655
2763
|
{
|
|
2656
2764
|
"type": "object",
|
|
@@ -2691,6 +2799,28 @@
|
|
|
2691
2799
|
"isVoid"
|
|
2692
2800
|
]
|
|
2693
2801
|
},
|
|
2802
|
+
"DocumentBlockImageDimension": {
|
|
2803
|
+
"oneOf": [
|
|
2804
|
+
{
|
|
2805
|
+
"type": "number"
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
"type": "object",
|
|
2809
|
+
"properties": {
|
|
2810
|
+
"unit": {
|
|
2811
|
+
"type": "string"
|
|
2812
|
+
},
|
|
2813
|
+
"value": {
|
|
2814
|
+
"type": "number"
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
"required": [
|
|
2818
|
+
"unit",
|
|
2819
|
+
"value"
|
|
2820
|
+
]
|
|
2821
|
+
}
|
|
2822
|
+
]
|
|
2823
|
+
},
|
|
2694
2824
|
"DocumentBlockFile": {
|
|
2695
2825
|
"type": "object",
|
|
2696
2826
|
"properties": {
|
|
@@ -2914,7 +3044,7 @@
|
|
|
2914
3044
|
"items": {
|
|
2915
3045
|
"oneOf": [
|
|
2916
3046
|
{
|
|
2917
|
-
"$ref": "#/components/schemas/
|
|
3047
|
+
"$ref": "#/components/schemas/DocumentText"
|
|
2918
3048
|
},
|
|
2919
3049
|
{
|
|
2920
3050
|
"$ref": "#/components/schemas/DocumentInlineAnnotation"
|
|
@@ -3023,7 +3153,7 @@
|
|
|
3023
3153
|
{
|
|
3024
3154
|
"allOf": [
|
|
3025
3155
|
{
|
|
3026
|
-
"$ref": "#/components/schemas/
|
|
3156
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
3027
3157
|
},
|
|
3028
3158
|
{
|
|
3029
3159
|
"type": "object",
|
|
@@ -3060,7 +3190,7 @@
|
|
|
3060
3190
|
{
|
|
3061
3191
|
"allOf": [
|
|
3062
3192
|
{
|
|
3063
|
-
"$ref": "#/components/schemas/
|
|
3193
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
3064
3194
|
},
|
|
3065
3195
|
{
|
|
3066
3196
|
"type": "object",
|
|
@@ -3303,7 +3433,7 @@
|
|
|
3303
3433
|
"fragments": {
|
|
3304
3434
|
"type": "array",
|
|
3305
3435
|
"items": {
|
|
3306
|
-
"$ref": "#/components/schemas/
|
|
3436
|
+
"$ref": "#/components/schemas/DocumentFragment"
|
|
3307
3437
|
}
|
|
3308
3438
|
}
|
|
3309
3439
|
},
|
|
@@ -4005,13 +4135,13 @@
|
|
|
4005
4135
|
"type": "string"
|
|
4006
4136
|
},
|
|
4007
4137
|
"space": {
|
|
4138
|
+
"description": "ID of the space the page is in. The page is considered as in the current space if none is provided.",
|
|
4008
4139
|
"type": "string"
|
|
4009
4140
|
}
|
|
4010
4141
|
},
|
|
4011
4142
|
"required": [
|
|
4012
4143
|
"kind",
|
|
4013
|
-
"page"
|
|
4014
|
-
"space"
|
|
4144
|
+
"page"
|
|
4015
4145
|
]
|
|
4016
4146
|
},
|
|
4017
4147
|
"ContentRefAnchor": {
|
|
@@ -4027,9 +4157,11 @@
|
|
|
4027
4157
|
"type": "string"
|
|
4028
4158
|
},
|
|
4029
4159
|
"space": {
|
|
4160
|
+
"description": "ID of the space the page is in. The page is considered as in the current space if none is provided.",
|
|
4030
4161
|
"type": "string"
|
|
4031
4162
|
},
|
|
4032
4163
|
"page": {
|
|
4164
|
+
"description": "ID of the page the anchor is in. The anchor is considered as in the current page if none is provided.",
|
|
4033
4165
|
"type": "string"
|
|
4034
4166
|
}
|
|
4035
4167
|
},
|
|
@@ -4460,13 +4592,29 @@
|
|
|
4460
4592
|
}
|
|
4461
4593
|
]
|
|
4462
4594
|
},
|
|
4463
|
-
"
|
|
4464
|
-
"
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4595
|
+
"RevisionPageDocumentCover": {
|
|
4596
|
+
"type": "object",
|
|
4597
|
+
"properties": {
|
|
4598
|
+
"ref": {
|
|
4599
|
+
"description": "Content reference pointing to the source image.",
|
|
4600
|
+
"$ref": "#/components/schemas/ContentRefFile"
|
|
4601
|
+
},
|
|
4602
|
+
"yPos": {
|
|
4603
|
+
"description": "Vertical position of the cover image.",
|
|
4604
|
+
"type": "number"
|
|
4605
|
+
}
|
|
4606
|
+
},
|
|
4607
|
+
"required": [
|
|
4608
|
+
"yPos"
|
|
4609
|
+
]
|
|
4610
|
+
},
|
|
4611
|
+
"RevisionPageGroup": {
|
|
4612
|
+
"allOf": [
|
|
4613
|
+
{
|
|
4614
|
+
"$ref": "#/components/schemas/RevisionPageBase"
|
|
4615
|
+
},
|
|
4616
|
+
{
|
|
4617
|
+
"type": "object",
|
|
4470
4618
|
"properties": {
|
|
4471
4619
|
"kind": {
|
|
4472
4620
|
"type": "string",
|
|
@@ -4513,6 +4661,65 @@
|
|
|
4513
4661
|
}
|
|
4514
4662
|
]
|
|
4515
4663
|
},
|
|
4664
|
+
"RevisionPageLayout": {
|
|
4665
|
+
"oneOf": [
|
|
4666
|
+
{
|
|
4667
|
+
"$ref": "#/components/schemas/RevisionPageLayoutPreset"
|
|
4668
|
+
},
|
|
4669
|
+
{
|
|
4670
|
+
"$ref": "#/components/schemas/RevisionPageLayoutOptions"
|
|
4671
|
+
}
|
|
4672
|
+
]
|
|
4673
|
+
},
|
|
4674
|
+
"RevisionPageLayoutOptions": {
|
|
4675
|
+
"type": "object",
|
|
4676
|
+
"properties": {
|
|
4677
|
+
"cover": {
|
|
4678
|
+
"type": "boolean",
|
|
4679
|
+
"description": "Should the cover be visible?"
|
|
4680
|
+
},
|
|
4681
|
+
"coverSize": {
|
|
4682
|
+
"$ref": "#/components/schemas/RevisionPageLayoutOptionsCoverSize"
|
|
4683
|
+
},
|
|
4684
|
+
"title": {
|
|
4685
|
+
"type": "boolean",
|
|
4686
|
+
"description": "Should the title be visible?"
|
|
4687
|
+
},
|
|
4688
|
+
"description": {
|
|
4689
|
+
"type": "boolean",
|
|
4690
|
+
"description": "Should the description be visible?"
|
|
4691
|
+
},
|
|
4692
|
+
"tableOfContents": {
|
|
4693
|
+
"type": "boolean",
|
|
4694
|
+
"description": "Should the table of contents be visible?"
|
|
4695
|
+
},
|
|
4696
|
+
"outline": {
|
|
4697
|
+
"type": "boolean",
|
|
4698
|
+
"description": "Should the outline be visible?"
|
|
4699
|
+
},
|
|
4700
|
+
"pagination": {
|
|
4701
|
+
"type": "boolean",
|
|
4702
|
+
"description": "Should the pagination be visible?"
|
|
4703
|
+
}
|
|
4704
|
+
}
|
|
4705
|
+
},
|
|
4706
|
+
"RevisionPageLayoutOptionsCoverSize": {
|
|
4707
|
+
"type": "string",
|
|
4708
|
+
"description": "Size of the cover image.",
|
|
4709
|
+
"enum": [
|
|
4710
|
+
"hero",
|
|
4711
|
+
"full"
|
|
4712
|
+
]
|
|
4713
|
+
},
|
|
4714
|
+
"RevisionPageLayoutPreset": {
|
|
4715
|
+
"type": "string",
|
|
4716
|
+
"description": "The core layout presets for a page.",
|
|
4717
|
+
"enum": [
|
|
4718
|
+
"docs",
|
|
4719
|
+
"editorial",
|
|
4720
|
+
"landing"
|
|
4721
|
+
]
|
|
4722
|
+
},
|
|
4516
4723
|
"RevisionPageLink": {
|
|
4517
4724
|
"allOf": [
|
|
4518
4725
|
{
|
|
@@ -4549,6 +4756,14 @@
|
|
|
4549
4756
|
}
|
|
4550
4757
|
]
|
|
4551
4758
|
},
|
|
4759
|
+
"RevisionPageType": {
|
|
4760
|
+
"type": "string",
|
|
4761
|
+
"enum": [
|
|
4762
|
+
"document",
|
|
4763
|
+
"group",
|
|
4764
|
+
"link"
|
|
4765
|
+
]
|
|
4766
|
+
},
|
|
4552
4767
|
"RevisionFile": {
|
|
4553
4768
|
"type": "object",
|
|
4554
4769
|
"properties": {
|
|
@@ -4595,6 +4810,21 @@
|
|
|
4595
4810
|
"size"
|
|
4596
4811
|
]
|
|
4597
4812
|
},
|
|
4813
|
+
"RevisionFileImageDimensions": {
|
|
4814
|
+
"type": "object",
|
|
4815
|
+
"properties": {
|
|
4816
|
+
"height": {
|
|
4817
|
+
"type": "number"
|
|
4818
|
+
},
|
|
4819
|
+
"width": {
|
|
4820
|
+
"type": "number"
|
|
4821
|
+
}
|
|
4822
|
+
},
|
|
4823
|
+
"required": [
|
|
4824
|
+
"height",
|
|
4825
|
+
"width"
|
|
4826
|
+
]
|
|
4827
|
+
},
|
|
4598
4828
|
"ImportContentSource": {
|
|
4599
4829
|
"type": "string",
|
|
4600
4830
|
"enum": [
|
|
@@ -4612,6 +4842,453 @@
|
|
|
4612
4842
|
"open-api"
|
|
4613
4843
|
]
|
|
4614
4844
|
},
|
|
4845
|
+
"ChangeAttributeContentReference": {
|
|
4846
|
+
"type": "object",
|
|
4847
|
+
"properties": {
|
|
4848
|
+
"before": {
|
|
4849
|
+
"$ref": "#/components/schemas/ContentRef"
|
|
4850
|
+
},
|
|
4851
|
+
"after": {
|
|
4852
|
+
"$ref": "#/components/schemas/ContentRef"
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
},
|
|
4856
|
+
"ChangeAttributeCustomFields": {
|
|
4857
|
+
"type": "object",
|
|
4858
|
+
"properties": {
|
|
4859
|
+
"before": {
|
|
4860
|
+
"type": "object",
|
|
4861
|
+
"additionalProperties": {
|
|
4862
|
+
"type": "object",
|
|
4863
|
+
"properties": {
|
|
4864
|
+
"value": {
|
|
4865
|
+
"$ref": "#/components/schemas/CustomFieldValue"
|
|
4866
|
+
}
|
|
4867
|
+
},
|
|
4868
|
+
"required": [
|
|
4869
|
+
"value"
|
|
4870
|
+
]
|
|
4871
|
+
}
|
|
4872
|
+
},
|
|
4873
|
+
"after": {
|
|
4874
|
+
"type": "object",
|
|
4875
|
+
"additionalProperties": {
|
|
4876
|
+
"type": "object",
|
|
4877
|
+
"properties": {
|
|
4878
|
+
"value": {
|
|
4879
|
+
"$ref": "#/components/schemas/CustomFieldValue"
|
|
4880
|
+
}
|
|
4881
|
+
},
|
|
4882
|
+
"required": [
|
|
4883
|
+
"value"
|
|
4884
|
+
]
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
}
|
|
4888
|
+
},
|
|
4889
|
+
"ChangeAttributeNumber": {
|
|
4890
|
+
"type": "object",
|
|
4891
|
+
"properties": {
|
|
4892
|
+
"before": {
|
|
4893
|
+
"type": "number"
|
|
4894
|
+
},
|
|
4895
|
+
"after": {
|
|
4896
|
+
"type": "number"
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
},
|
|
4900
|
+
"ChangeAttributeRevisionFileImageDimensions": {
|
|
4901
|
+
"type": "object",
|
|
4902
|
+
"properties": {
|
|
4903
|
+
"before": {
|
|
4904
|
+
"$ref": "#/components/schemas/RevisionFileImageDimensions"
|
|
4905
|
+
},
|
|
4906
|
+
"after": {
|
|
4907
|
+
"$ref": "#/components/schemas/RevisionFileImageDimensions"
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
},
|
|
4911
|
+
"ChangeAttributeRevisionPageDocumentCover": {
|
|
4912
|
+
"type": "object",
|
|
4913
|
+
"properties": {
|
|
4914
|
+
"before": {
|
|
4915
|
+
"$ref": "#/components/schemas/RevisionPageDocumentCover"
|
|
4916
|
+
},
|
|
4917
|
+
"after": {
|
|
4918
|
+
"$ref": "#/components/schemas/RevisionPageDocumentCover"
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4921
|
+
},
|
|
4922
|
+
"ChangeAttributeRevisionPageLayout": {
|
|
4923
|
+
"type": "object",
|
|
4924
|
+
"properties": {
|
|
4925
|
+
"before": {
|
|
4926
|
+
"$ref": "#/components/schemas/RevisionPageLayout"
|
|
4927
|
+
},
|
|
4928
|
+
"after": {
|
|
4929
|
+
"$ref": "#/components/schemas/RevisionPageLayout"
|
|
4930
|
+
}
|
|
4931
|
+
}
|
|
4932
|
+
},
|
|
4933
|
+
"ChangeAttributeString": {
|
|
4934
|
+
"type": "object",
|
|
4935
|
+
"properties": {
|
|
4936
|
+
"before": {
|
|
4937
|
+
"type": "string"
|
|
4938
|
+
},
|
|
4939
|
+
"after": {
|
|
4940
|
+
"type": "string"
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
},
|
|
4944
|
+
"ChangedRevisionFile": {
|
|
4945
|
+
"type": "object",
|
|
4946
|
+
"properties": {
|
|
4947
|
+
"id": {
|
|
4948
|
+
"type": "string"
|
|
4949
|
+
},
|
|
4950
|
+
"name": {
|
|
4951
|
+
"type": "string"
|
|
4952
|
+
},
|
|
4953
|
+
"contentType": {
|
|
4954
|
+
"type": "string"
|
|
4955
|
+
},
|
|
4956
|
+
"downloadURL": {
|
|
4957
|
+
"type": "string"
|
|
4958
|
+
}
|
|
4959
|
+
},
|
|
4960
|
+
"required": [
|
|
4961
|
+
"id",
|
|
4962
|
+
"name",
|
|
4963
|
+
"contentType",
|
|
4964
|
+
"downloadURL"
|
|
4965
|
+
]
|
|
4966
|
+
},
|
|
4967
|
+
"ChangedRevisionPage": {
|
|
4968
|
+
"type": "object",
|
|
4969
|
+
"properties": {
|
|
4970
|
+
"id": {
|
|
4971
|
+
"type": "string"
|
|
4972
|
+
},
|
|
4973
|
+
"type": {
|
|
4974
|
+
"$ref": "#/components/schemas/RevisionPageType"
|
|
4975
|
+
},
|
|
4976
|
+
"title": {
|
|
4977
|
+
"type": "string"
|
|
4978
|
+
},
|
|
4979
|
+
"path": {
|
|
4980
|
+
"type": "string"
|
|
4981
|
+
}
|
|
4982
|
+
},
|
|
4983
|
+
"required": [
|
|
4984
|
+
"id",
|
|
4985
|
+
"type",
|
|
4986
|
+
"title"
|
|
4987
|
+
]
|
|
4988
|
+
},
|
|
4989
|
+
"RevisionFileChangeAttributes": {
|
|
4990
|
+
"type": "object",
|
|
4991
|
+
"minProperties": 1,
|
|
4992
|
+
"properties": {
|
|
4993
|
+
"name": {
|
|
4994
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
4995
|
+
},
|
|
4996
|
+
"downloadURL": {
|
|
4997
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
4998
|
+
},
|
|
4999
|
+
"size": {
|
|
5000
|
+
"$ref": "#/components/schemas/ChangeAttributeNumber"
|
|
5001
|
+
},
|
|
5002
|
+
"contentType": {
|
|
5003
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5004
|
+
},
|
|
5005
|
+
"dimensions": {
|
|
5006
|
+
"$ref": "#/components/schemas/ChangeAttributeRevisionFileImageDimensions"
|
|
5007
|
+
}
|
|
5008
|
+
}
|
|
5009
|
+
},
|
|
5010
|
+
"RevisionPageDocumentChangeAttributes": {
|
|
5011
|
+
"type": "object",
|
|
5012
|
+
"minProperties": 1,
|
|
5013
|
+
"properties": {
|
|
5014
|
+
"title": {
|
|
5015
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5016
|
+
},
|
|
5017
|
+
"description": {
|
|
5018
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5019
|
+
},
|
|
5020
|
+
"slug": {
|
|
5021
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5022
|
+
},
|
|
5023
|
+
"document": {
|
|
5024
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5025
|
+
},
|
|
5026
|
+
"cover": {
|
|
5027
|
+
"$ref": "#/components/schemas/ChangeAttributeRevisionPageDocumentCover"
|
|
5028
|
+
},
|
|
5029
|
+
"emoji": {
|
|
5030
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5031
|
+
},
|
|
5032
|
+
"layout": {
|
|
5033
|
+
"$ref": "#/components/schemas/ChangeAttributeRevisionPageLayout"
|
|
5034
|
+
},
|
|
5035
|
+
"customFields": {
|
|
5036
|
+
"$ref": "#/components/schemas/ChangeAttributeCustomFields"
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
},
|
|
5040
|
+
"RevisionPageGroupChangeAttributes": {
|
|
5041
|
+
"type": "object",
|
|
5042
|
+
"minProperties": 1,
|
|
5043
|
+
"properties": {
|
|
5044
|
+
"title": {
|
|
5045
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5046
|
+
},
|
|
5047
|
+
"emoji": {
|
|
5048
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5049
|
+
},
|
|
5050
|
+
"slug": {
|
|
5051
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5052
|
+
},
|
|
5053
|
+
"customFields": {
|
|
5054
|
+
"$ref": "#/components/schemas/ChangeAttributeCustomFields"
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
},
|
|
5058
|
+
"RevisionPageLinkChangeAttributes": {
|
|
5059
|
+
"type": "object",
|
|
5060
|
+
"minProperties": 1,
|
|
5061
|
+
"properties": {
|
|
5062
|
+
"title": {
|
|
5063
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5064
|
+
},
|
|
5065
|
+
"emoji": {
|
|
5066
|
+
"$ref": "#/components/schemas/ChangeAttributeString"
|
|
5067
|
+
},
|
|
5068
|
+
"target": {
|
|
5069
|
+
"$ref": "#/components/schemas/ChangeAttributeContentReference"
|
|
5070
|
+
},
|
|
5071
|
+
"customFields": {
|
|
5072
|
+
"$ref": "#/components/schemas/ChangeAttributeCustomFields"
|
|
5073
|
+
}
|
|
5074
|
+
}
|
|
5075
|
+
},
|
|
5076
|
+
"RevisionSemanticChange": {
|
|
5077
|
+
"oneOf": [
|
|
5078
|
+
{
|
|
5079
|
+
"$ref": "#/components/schemas/RevisionSemanticChangePageCreated"
|
|
5080
|
+
},
|
|
5081
|
+
{
|
|
5082
|
+
"$ref": "#/components/schemas/RevisionSemanticChangePageEdited"
|
|
5083
|
+
},
|
|
5084
|
+
{
|
|
5085
|
+
"$ref": "#/components/schemas/RevisionSemanticChangePageDeleted"
|
|
5086
|
+
},
|
|
5087
|
+
{
|
|
5088
|
+
"$ref": "#/components/schemas/RevisionSemanticChangePageMoved"
|
|
5089
|
+
},
|
|
5090
|
+
{
|
|
5091
|
+
"$ref": "#/components/schemas/RevisionSemanticChangeFileCreated"
|
|
5092
|
+
},
|
|
5093
|
+
{
|
|
5094
|
+
"$ref": "#/components/schemas/RevisionSemanticChangeFileEdited"
|
|
5095
|
+
},
|
|
5096
|
+
{
|
|
5097
|
+
"$ref": "#/components/schemas/RevisionSemanticChangeFileDeleted"
|
|
5098
|
+
},
|
|
5099
|
+
{
|
|
5100
|
+
"$ref": "#/components/schemas/RevisionSemanticChangeCustomFieldsEdited"
|
|
5101
|
+
}
|
|
5102
|
+
]
|
|
5103
|
+
},
|
|
5104
|
+
"RevisionSemanticChangeCustomFieldsEdited": {
|
|
5105
|
+
"type": "object",
|
|
5106
|
+
"properties": {
|
|
5107
|
+
"type": {
|
|
5108
|
+
"type": "string",
|
|
5109
|
+
"enum": [
|
|
5110
|
+
"custom_fields_edited"
|
|
5111
|
+
]
|
|
5112
|
+
},
|
|
5113
|
+
"customFields": {
|
|
5114
|
+
"$ref": "#/components/schemas/ChangeAttributeCustomFields"
|
|
5115
|
+
}
|
|
5116
|
+
},
|
|
5117
|
+
"required": [
|
|
5118
|
+
"type",
|
|
5119
|
+
"customFields"
|
|
5120
|
+
]
|
|
5121
|
+
},
|
|
5122
|
+
"RevisionSemanticChangeFileCreated": {
|
|
5123
|
+
"type": "object",
|
|
5124
|
+
"properties": {
|
|
5125
|
+
"type": {
|
|
5126
|
+
"type": "string",
|
|
5127
|
+
"enum": [
|
|
5128
|
+
"file_created"
|
|
5129
|
+
]
|
|
5130
|
+
},
|
|
5131
|
+
"file": {
|
|
5132
|
+
"$ref": "#/components/schemas/ChangedRevisionFile"
|
|
5133
|
+
}
|
|
5134
|
+
},
|
|
5135
|
+
"required": [
|
|
5136
|
+
"type",
|
|
5137
|
+
"file"
|
|
5138
|
+
]
|
|
5139
|
+
},
|
|
5140
|
+
"RevisionSemanticChangeFileDeleted": {
|
|
5141
|
+
"type": "object",
|
|
5142
|
+
"properties": {
|
|
5143
|
+
"type": {
|
|
5144
|
+
"type": "string",
|
|
5145
|
+
"enum": [
|
|
5146
|
+
"file_deleted"
|
|
5147
|
+
]
|
|
5148
|
+
},
|
|
5149
|
+
"file": {
|
|
5150
|
+
"$ref": "#/components/schemas/ChangedRevisionFile"
|
|
5151
|
+
}
|
|
5152
|
+
},
|
|
5153
|
+
"required": [
|
|
5154
|
+
"type",
|
|
5155
|
+
"file"
|
|
5156
|
+
]
|
|
5157
|
+
},
|
|
5158
|
+
"RevisionSemanticChangeFileEdited": {
|
|
5159
|
+
"type": "object",
|
|
5160
|
+
"properties": {
|
|
5161
|
+
"type": {
|
|
5162
|
+
"type": "string",
|
|
5163
|
+
"enum": [
|
|
5164
|
+
"file_edited"
|
|
5165
|
+
]
|
|
5166
|
+
},
|
|
5167
|
+
"file": {
|
|
5168
|
+
"$ref": "#/components/schemas/ChangedRevisionFile"
|
|
5169
|
+
},
|
|
5170
|
+
"attributes": {
|
|
5171
|
+
"$ref": "#/components/schemas/RevisionFileChangeAttributes"
|
|
5172
|
+
}
|
|
5173
|
+
},
|
|
5174
|
+
"required": [
|
|
5175
|
+
"type",
|
|
5176
|
+
"file",
|
|
5177
|
+
"attributes"
|
|
5178
|
+
]
|
|
5179
|
+
},
|
|
5180
|
+
"RevisionSemanticChangePageCreated": {
|
|
5181
|
+
"type": "object",
|
|
5182
|
+
"properties": {
|
|
5183
|
+
"type": {
|
|
5184
|
+
"type": "string",
|
|
5185
|
+
"enum": [
|
|
5186
|
+
"page_created"
|
|
5187
|
+
]
|
|
5188
|
+
},
|
|
5189
|
+
"page": {
|
|
5190
|
+
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
5191
|
+
}
|
|
5192
|
+
},
|
|
5193
|
+
"required": [
|
|
5194
|
+
"type",
|
|
5195
|
+
"page"
|
|
5196
|
+
]
|
|
5197
|
+
},
|
|
5198
|
+
"RevisionSemanticChangePageDeleted": {
|
|
5199
|
+
"type": "object",
|
|
5200
|
+
"properties": {
|
|
5201
|
+
"type": {
|
|
5202
|
+
"type": "string",
|
|
5203
|
+
"enum": [
|
|
5204
|
+
"page_deleted"
|
|
5205
|
+
]
|
|
5206
|
+
},
|
|
5207
|
+
"page": {
|
|
5208
|
+
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
5209
|
+
}
|
|
5210
|
+
},
|
|
5211
|
+
"required": [
|
|
5212
|
+
"type",
|
|
5213
|
+
"page"
|
|
5214
|
+
]
|
|
5215
|
+
},
|
|
5216
|
+
"RevisionSemanticChangePageEdited": {
|
|
5217
|
+
"type": "object",
|
|
5218
|
+
"properties": {
|
|
5219
|
+
"type": {
|
|
5220
|
+
"type": "string",
|
|
5221
|
+
"enum": [
|
|
5222
|
+
"page_edited"
|
|
5223
|
+
]
|
|
5224
|
+
},
|
|
5225
|
+
"page": {
|
|
5226
|
+
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
5227
|
+
},
|
|
5228
|
+
"attributes": {
|
|
5229
|
+
"oneOf": [
|
|
5230
|
+
{
|
|
5231
|
+
"$ref": "#/components/schemas/RevisionPageDocumentChangeAttributes"
|
|
5232
|
+
},
|
|
5233
|
+
{
|
|
5234
|
+
"$ref": "#/components/schemas/RevisionPageGroupChangeAttributes"
|
|
5235
|
+
},
|
|
5236
|
+
{
|
|
5237
|
+
"$ref": "#/components/schemas/RevisionPageLinkChangeAttributes"
|
|
5238
|
+
}
|
|
5239
|
+
]
|
|
5240
|
+
}
|
|
5241
|
+
},
|
|
5242
|
+
"required": [
|
|
5243
|
+
"type",
|
|
5244
|
+
"page",
|
|
5245
|
+
"attributes"
|
|
5246
|
+
]
|
|
5247
|
+
},
|
|
5248
|
+
"RevisionSemanticChangePageMoved": {
|
|
5249
|
+
"type": "object",
|
|
5250
|
+
"properties": {
|
|
5251
|
+
"type": {
|
|
5252
|
+
"type": "string",
|
|
5253
|
+
"enum": [
|
|
5254
|
+
"page_moved"
|
|
5255
|
+
]
|
|
5256
|
+
},
|
|
5257
|
+
"page": {
|
|
5258
|
+
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
5259
|
+
},
|
|
5260
|
+
"parent": {
|
|
5261
|
+
"type": "object",
|
|
5262
|
+
"properties": {
|
|
5263
|
+
"before": {
|
|
5264
|
+
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
5265
|
+
},
|
|
5266
|
+
"after": {
|
|
5267
|
+
"$ref": "#/components/schemas/ChangedRevisionPage"
|
|
5268
|
+
}
|
|
5269
|
+
}
|
|
5270
|
+
}
|
|
5271
|
+
},
|
|
5272
|
+
"required": [
|
|
5273
|
+
"type",
|
|
5274
|
+
"page",
|
|
5275
|
+
"parent"
|
|
5276
|
+
]
|
|
5277
|
+
},
|
|
5278
|
+
"RevisionSemanticChangeType": {
|
|
5279
|
+
"type": "string",
|
|
5280
|
+
"description": "The type of semantic change.",
|
|
5281
|
+
"enum": [
|
|
5282
|
+
"page_created",
|
|
5283
|
+
"page_edited",
|
|
5284
|
+
"page_deleted",
|
|
5285
|
+
"page_moved",
|
|
5286
|
+
"file_created",
|
|
5287
|
+
"file_edited",
|
|
5288
|
+
"file_deleted",
|
|
5289
|
+
"custom_fields_edited"
|
|
5290
|
+
]
|
|
5291
|
+
},
|
|
4615
5292
|
"GitSyncState": {
|
|
4616
5293
|
"type": "object",
|
|
4617
5294
|
"properties": {
|
|
@@ -5433,18 +6110,126 @@
|
|
|
5433
6110
|
}
|
|
5434
6111
|
]
|
|
5435
6112
|
},
|
|
5436
|
-
"UpdateCaptureSchema": {
|
|
6113
|
+
"UpdateCaptureSchema": {
|
|
6114
|
+
"type": "object",
|
|
6115
|
+
"properties": {
|
|
6116
|
+
"title": {
|
|
6117
|
+
"type": "string",
|
|
6118
|
+
"description": "A new title for the capture."
|
|
6119
|
+
},
|
|
6120
|
+
"body": {
|
|
6121
|
+
"description": "Content of the capture.",
|
|
6122
|
+
"$ref": "#/components/schemas/Document"
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
6125
|
+
},
|
|
6126
|
+
"ContentAuditRelation": {
|
|
6127
|
+
"type": "object",
|
|
6128
|
+
"description": "Content audit relation",
|
|
6129
|
+
"properties": {
|
|
6130
|
+
"id": {
|
|
6131
|
+
"type": "string"
|
|
6132
|
+
},
|
|
6133
|
+
"sources": {
|
|
6134
|
+
"description": "The sources that are related",
|
|
6135
|
+
"type": "array",
|
|
6136
|
+
"items": {
|
|
6137
|
+
"$ref": "#/components/schemas/ContentAuditSource"
|
|
6138
|
+
}
|
|
6139
|
+
},
|
|
6140
|
+
"type": {
|
|
6141
|
+
"description": "The type of the relation between the sources",
|
|
6142
|
+
"$ref": "#/components/schemas/ContentAuditRelationType"
|
|
6143
|
+
},
|
|
6144
|
+
"reason": {
|
|
6145
|
+
"type": "string",
|
|
6146
|
+
"description": "A human readable description of the reason for the relation"
|
|
6147
|
+
},
|
|
6148
|
+
"status": {
|
|
6149
|
+
"description": "The status of the relation",
|
|
6150
|
+
"$ref": "#/components/schemas/ContentAuditRelationStatus"
|
|
6151
|
+
},
|
|
6152
|
+
"createdAt": {
|
|
6153
|
+
"description": "The date at which the relation was created",
|
|
6154
|
+
"$ref": "#/components/schemas/Date"
|
|
6155
|
+
}
|
|
6156
|
+
},
|
|
6157
|
+
"required": [
|
|
6158
|
+
"id",
|
|
6159
|
+
"sources",
|
|
6160
|
+
"type",
|
|
6161
|
+
"status",
|
|
6162
|
+
"createdAt"
|
|
6163
|
+
]
|
|
6164
|
+
},
|
|
6165
|
+
"ContentAuditRelationType": {
|
|
6166
|
+
"description": "The type of the relation between the sources",
|
|
6167
|
+
"oneOf": [
|
|
6168
|
+
{
|
|
6169
|
+
"type": "string",
|
|
6170
|
+
"enum": [
|
|
6171
|
+
"contradiction",
|
|
6172
|
+
"duplicate"
|
|
6173
|
+
]
|
|
6174
|
+
}
|
|
6175
|
+
]
|
|
6176
|
+
},
|
|
6177
|
+
"ContentAuditRelationStatus": {
|
|
6178
|
+
"description": "Status of the audit relation to filter on",
|
|
6179
|
+
"oneOf": [
|
|
6180
|
+
{
|
|
6181
|
+
"type": "string",
|
|
6182
|
+
"enum": [
|
|
6183
|
+
"pending",
|
|
6184
|
+
"rejected"
|
|
6185
|
+
]
|
|
6186
|
+
}
|
|
6187
|
+
]
|
|
6188
|
+
},
|
|
6189
|
+
"ContentAuditRelationStatusUpdate": {
|
|
6190
|
+
"type": "object",
|
|
6191
|
+
"properties": {
|
|
6192
|
+
"status": {
|
|
6193
|
+
"$ref": "#/components/schemas/ContentAuditRelationStatus"
|
|
6194
|
+
}
|
|
6195
|
+
},
|
|
6196
|
+
"required": [
|
|
6197
|
+
"status"
|
|
6198
|
+
]
|
|
6199
|
+
},
|
|
6200
|
+
"ContentAuditSource": {
|
|
6201
|
+
"oneOf": [
|
|
6202
|
+
{
|
|
6203
|
+
"$ref": "#/components/schemas/ContentAuditSourceSection"
|
|
6204
|
+
}
|
|
6205
|
+
]
|
|
6206
|
+
},
|
|
6207
|
+
"ContentAuditSourceSection": {
|
|
5437
6208
|
"type": "object",
|
|
6209
|
+
"description": "A GitBook section source",
|
|
5438
6210
|
"properties": {
|
|
5439
|
-
"
|
|
6211
|
+
"id": {
|
|
6212
|
+
"type": "string"
|
|
6213
|
+
},
|
|
6214
|
+
"type": {
|
|
5440
6215
|
"type": "string",
|
|
5441
|
-
"
|
|
6216
|
+
"enum": [
|
|
6217
|
+
"section"
|
|
6218
|
+
]
|
|
5442
6219
|
},
|
|
5443
|
-
"
|
|
5444
|
-
"
|
|
5445
|
-
|
|
6220
|
+
"space": {
|
|
6221
|
+
"$ref": "#/components/schemas/Space"
|
|
6222
|
+
},
|
|
6223
|
+
"page": {
|
|
6224
|
+
"$ref": "#/components/schemas/RevisionPageDocument"
|
|
5446
6225
|
}
|
|
5447
|
-
}
|
|
6226
|
+
},
|
|
6227
|
+
"required": [
|
|
6228
|
+
"id",
|
|
6229
|
+
"type",
|
|
6230
|
+
"space",
|
|
6231
|
+
"page"
|
|
6232
|
+
]
|
|
5448
6233
|
},
|
|
5449
6234
|
"ChangeRequest": {
|
|
5450
6235
|
"type": "object",
|
|
@@ -6210,6 +6995,7 @@
|
|
|
6210
6995
|
"score",
|
|
6211
6996
|
"total",
|
|
6212
6997
|
"rating",
|
|
6998
|
+
"ponderedScore",
|
|
6213
6999
|
"bad",
|
|
6214
7000
|
"ok",
|
|
6215
7001
|
"good"
|
|
@@ -6217,28 +7003,32 @@
|
|
|
6217
7003
|
"properties": {
|
|
6218
7004
|
"score": {
|
|
6219
7005
|
"type": "number",
|
|
6220
|
-
"description": "Score
|
|
7006
|
+
"description": "Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad')."
|
|
6221
7007
|
},
|
|
6222
7008
|
"total": {
|
|
6223
|
-
"type": "number"
|
|
7009
|
+
"type": "number",
|
|
7010
|
+
"description": "Total number of ratings done by end users."
|
|
6224
7011
|
},
|
|
6225
7012
|
"rating": {
|
|
6226
7013
|
"type": "string",
|
|
6227
|
-
"
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
7014
|
+
"deprecated": true,
|
|
7015
|
+
"description": "Summary of the rating based on the score ('good', 'ok', or 'bad')"
|
|
7016
|
+
},
|
|
7017
|
+
"ponderedScore": {
|
|
7018
|
+
"type": "number",
|
|
7019
|
+
"description": "Score multiplied by the number of ratings to give more importance to highly rated content."
|
|
6233
7020
|
},
|
|
6234
7021
|
"bad": {
|
|
6235
|
-
"type": "number"
|
|
7022
|
+
"type": "number",
|
|
7023
|
+
"description": "Number of 'bad' ratings."
|
|
6236
7024
|
},
|
|
6237
7025
|
"ok": {
|
|
6238
|
-
"type": "number"
|
|
7026
|
+
"type": "number",
|
|
7027
|
+
"description": "Number of 'ok' ratings."
|
|
6239
7028
|
},
|
|
6240
7029
|
"good": {
|
|
6241
|
-
"type": "number"
|
|
7030
|
+
"type": "number",
|
|
7031
|
+
"description": "Number of 'good' ratings."
|
|
6242
7032
|
}
|
|
6243
7033
|
}
|
|
6244
7034
|
}
|
|
@@ -10247,6 +11037,9 @@
|
|
|
10247
11037
|
{
|
|
10248
11038
|
"$ref": "#/components/schemas/OrganizationCapturesChannel"
|
|
10249
11039
|
},
|
|
11040
|
+
{
|
|
11041
|
+
"$ref": "#/components/schemas/OrganizationContentAuditsChannel"
|
|
11042
|
+
},
|
|
10250
11043
|
{
|
|
10251
11044
|
"$ref": "#/components/schemas/OrganizationIntegrationsChannel"
|
|
10252
11045
|
},
|
|
@@ -10833,6 +11626,24 @@
|
|
|
10833
11626
|
"organization"
|
|
10834
11627
|
]
|
|
10835
11628
|
},
|
|
11629
|
+
"OrganizationContentAuditsChannel": {
|
|
11630
|
+
"type": "object",
|
|
11631
|
+
"properties": {
|
|
11632
|
+
"channel": {
|
|
11633
|
+
"type": "string",
|
|
11634
|
+
"enum": [
|
|
11635
|
+
"organization-content-audits"
|
|
11636
|
+
]
|
|
11637
|
+
},
|
|
11638
|
+
"organization": {
|
|
11639
|
+
"type": "string"
|
|
11640
|
+
}
|
|
11641
|
+
},
|
|
11642
|
+
"required": [
|
|
11643
|
+
"channel",
|
|
11644
|
+
"organization"
|
|
11645
|
+
]
|
|
11646
|
+
},
|
|
10836
11647
|
"OrganizationIntegrationsChannel": {
|
|
10837
11648
|
"type": "object",
|
|
10838
11649
|
"properties": {
|
|
@@ -14134,6 +14945,73 @@
|
|
|
14134
14945
|
}
|
|
14135
14946
|
}
|
|
14136
14947
|
},
|
|
14948
|
+
"/spaces/{spaceId}/revisions/{revisionId}/changes": {
|
|
14949
|
+
"get": {
|
|
14950
|
+
"summary": "Return the semantic changes between a revision and its parent.",
|
|
14951
|
+
"operationId": "getRevisionSemanticChanges",
|
|
14952
|
+
"security": [
|
|
14953
|
+
{
|
|
14954
|
+
"user": []
|
|
14955
|
+
}
|
|
14956
|
+
],
|
|
14957
|
+
"parameters": [
|
|
14958
|
+
{
|
|
14959
|
+
"$ref": "#/components/parameters/spaceId"
|
|
14960
|
+
},
|
|
14961
|
+
{
|
|
14962
|
+
"$ref": "#/components/parameters/revisionId"
|
|
14963
|
+
},
|
|
14964
|
+
{
|
|
14965
|
+
"name": "limit",
|
|
14966
|
+
"in": "query",
|
|
14967
|
+
"description": "Limit the number of changes returned",
|
|
14968
|
+
"schema": {
|
|
14969
|
+
"type": "number",
|
|
14970
|
+
"default": 10
|
|
14971
|
+
}
|
|
14972
|
+
},
|
|
14973
|
+
{
|
|
14974
|
+
"name": "metadata",
|
|
14975
|
+
"in": "query",
|
|
14976
|
+
"description": "Whether to include changes to metadata, such as git information and custom fields",
|
|
14977
|
+
"schema": {
|
|
14978
|
+
"type": "boolean",
|
|
14979
|
+
"default": true
|
|
14980
|
+
}
|
|
14981
|
+
}
|
|
14982
|
+
],
|
|
14983
|
+
"responses": {
|
|
14984
|
+
"200": {
|
|
14985
|
+
"description": "OK",
|
|
14986
|
+
"content": {
|
|
14987
|
+
"application/json": {
|
|
14988
|
+
"schema": {
|
|
14989
|
+
"type": "object",
|
|
14990
|
+
"properties": {
|
|
14991
|
+
"changes": {
|
|
14992
|
+
"type": "array",
|
|
14993
|
+
"items": {
|
|
14994
|
+
"$ref": "#/components/schemas/RevisionSemanticChange"
|
|
14995
|
+
}
|
|
14996
|
+
},
|
|
14997
|
+
"more": {
|
|
14998
|
+
"type": "number",
|
|
14999
|
+
"description": "How many changes were omitted because above the result limit"
|
|
15000
|
+
}
|
|
15001
|
+
},
|
|
15002
|
+
"required": [
|
|
15003
|
+
"changes"
|
|
15004
|
+
]
|
|
15005
|
+
}
|
|
15006
|
+
}
|
|
15007
|
+
}
|
|
15008
|
+
},
|
|
15009
|
+
"default": {
|
|
15010
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
15011
|
+
}
|
|
15012
|
+
}
|
|
15013
|
+
}
|
|
15014
|
+
},
|
|
14137
15015
|
"/spaces/{spaceId}/revisions/{revisionId}/files": {
|
|
14138
15016
|
"get": {
|
|
14139
15017
|
"summary": "List all files in a revision",
|
|
@@ -19474,6 +20352,134 @@
|
|
|
19474
20352
|
}
|
|
19475
20353
|
}
|
|
19476
20354
|
},
|
|
20355
|
+
"/orgs/{organizationId}/insights/audit-relations": {
|
|
20356
|
+
"get": {
|
|
20357
|
+
"operationId": "listContentAuditRelations",
|
|
20358
|
+
"summary": "List the content relations for in a given organization.",
|
|
20359
|
+
"tags": [
|
|
20360
|
+
"ai",
|
|
20361
|
+
"spaces"
|
|
20362
|
+
],
|
|
20363
|
+
"security": [
|
|
20364
|
+
{
|
|
20365
|
+
"user": []
|
|
20366
|
+
}
|
|
20367
|
+
],
|
|
20368
|
+
"parameters": [
|
|
20369
|
+
{
|
|
20370
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20371
|
+
},
|
|
20372
|
+
{
|
|
20373
|
+
"$ref": "#/components/parameters/listPage"
|
|
20374
|
+
},
|
|
20375
|
+
{
|
|
20376
|
+
"$ref": "#/components/parameters/listLimit"
|
|
20377
|
+
},
|
|
20378
|
+
{
|
|
20379
|
+
"name": "status",
|
|
20380
|
+
"in": "query",
|
|
20381
|
+
"required": false,
|
|
20382
|
+
"description": "Status of the audit relation to filter on",
|
|
20383
|
+
"schema": {
|
|
20384
|
+
"$ref": "#/components/schemas/ContentAuditRelationStatus",
|
|
20385
|
+
"default": [
|
|
20386
|
+
"pending"
|
|
20387
|
+
]
|
|
20388
|
+
}
|
|
20389
|
+
}
|
|
20390
|
+
],
|
|
20391
|
+
"responses": {
|
|
20392
|
+
"200": {
|
|
20393
|
+
"description": "Content audit relations",
|
|
20394
|
+
"content": {
|
|
20395
|
+
"application/json": {
|
|
20396
|
+
"schema": {
|
|
20397
|
+
"allOf": [
|
|
20398
|
+
{
|
|
20399
|
+
"$ref": "#/components/schemas/List"
|
|
20400
|
+
},
|
|
20401
|
+
{
|
|
20402
|
+
"type": "object",
|
|
20403
|
+
"required": [
|
|
20404
|
+
"items"
|
|
20405
|
+
],
|
|
20406
|
+
"properties": {
|
|
20407
|
+
"items": {
|
|
20408
|
+
"type": "array",
|
|
20409
|
+
"items": {
|
|
20410
|
+
"$ref": "#/components/schemas/ContentAuditRelation"
|
|
20411
|
+
}
|
|
20412
|
+
}
|
|
20413
|
+
}
|
|
20414
|
+
}
|
|
20415
|
+
]
|
|
20416
|
+
}
|
|
20417
|
+
}
|
|
20418
|
+
}
|
|
20419
|
+
},
|
|
20420
|
+
"default": {
|
|
20421
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
20422
|
+
}
|
|
20423
|
+
}
|
|
20424
|
+
}
|
|
20425
|
+
},
|
|
20426
|
+
"/orgs/{organizationId}/insights/audit-relations/{relationId}": {
|
|
20427
|
+
"patch": {
|
|
20428
|
+
"operationId": "updateContentAuditRelationStatusById",
|
|
20429
|
+
"summary": "Update an audit relation status",
|
|
20430
|
+
"tags": [
|
|
20431
|
+
"organizations"
|
|
20432
|
+
],
|
|
20433
|
+
"security": [
|
|
20434
|
+
{
|
|
20435
|
+
"user": []
|
|
20436
|
+
}
|
|
20437
|
+
],
|
|
20438
|
+
"parameters": [
|
|
20439
|
+
{
|
|
20440
|
+
"$ref": "#/components/parameters/organizationId"
|
|
20441
|
+
},
|
|
20442
|
+
{
|
|
20443
|
+
"name": "relationId",
|
|
20444
|
+
"in": "path",
|
|
20445
|
+
"required": true,
|
|
20446
|
+
"description": "The id of the content audit relation",
|
|
20447
|
+
"schema": {
|
|
20448
|
+
"type": "string"
|
|
20449
|
+
}
|
|
20450
|
+
}
|
|
20451
|
+
],
|
|
20452
|
+
"requestBody": {
|
|
20453
|
+
"required": true,
|
|
20454
|
+
"content": {
|
|
20455
|
+
"application/json": {
|
|
20456
|
+
"schema": {
|
|
20457
|
+
"$ref": "#/components/schemas/ContentAuditRelationStatusUpdate"
|
|
20458
|
+
}
|
|
20459
|
+
}
|
|
20460
|
+
}
|
|
20461
|
+
},
|
|
20462
|
+
"responses": {
|
|
20463
|
+
"200": {
|
|
20464
|
+
"description": "OK",
|
|
20465
|
+
"content": {
|
|
20466
|
+
"application/json": {
|
|
20467
|
+
"schema": {
|
|
20468
|
+
"$ref": "#/components/schemas/ContentAuditRelation"
|
|
20469
|
+
}
|
|
20470
|
+
}
|
|
20471
|
+
}
|
|
20472
|
+
},
|
|
20473
|
+
"404": {
|
|
20474
|
+
"description": "No matching content relation found for given ID",
|
|
20475
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
20476
|
+
},
|
|
20477
|
+
"default": {
|
|
20478
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
20479
|
+
}
|
|
20480
|
+
}
|
|
20481
|
+
}
|
|
20482
|
+
},
|
|
19477
20483
|
"/internal/hive/token": {
|
|
19478
20484
|
"post": {
|
|
19479
20485
|
"operationId": "generateHiveAccessToken",
|
|
@@ -19634,6 +20640,50 @@
|
|
|
19634
20640
|
}
|
|
19635
20641
|
}
|
|
19636
20642
|
}
|
|
20643
|
+
},
|
|
20644
|
+
"/urls/published": {
|
|
20645
|
+
"get": {
|
|
20646
|
+
"operationId": "getPublishedContentByUrl",
|
|
20647
|
+
"summary": "Resolve a URL of a published content.",
|
|
20648
|
+
"tags": [
|
|
20649
|
+
"urls"
|
|
20650
|
+
],
|
|
20651
|
+
"parameters": [
|
|
20652
|
+
{
|
|
20653
|
+
"name": "url",
|
|
20654
|
+
"in": "query",
|
|
20655
|
+
"required": true,
|
|
20656
|
+
"description": "URL to resolve",
|
|
20657
|
+
"schema": {
|
|
20658
|
+
"$ref": "#/components/schemas/URL"
|
|
20659
|
+
}
|
|
20660
|
+
},
|
|
20661
|
+
{
|
|
20662
|
+
"name": "visitorAuthToken",
|
|
20663
|
+
"in": "query",
|
|
20664
|
+
"required": false,
|
|
20665
|
+
"description": "JWT token generated for a visitor auth session",
|
|
20666
|
+
"schema": {
|
|
20667
|
+
"type": "string"
|
|
20668
|
+
}
|
|
20669
|
+
}
|
|
20670
|
+
],
|
|
20671
|
+
"responses": {
|
|
20672
|
+
"200": {
|
|
20673
|
+
"description": "OK",
|
|
20674
|
+
"content": {
|
|
20675
|
+
"application/json": {
|
|
20676
|
+
"schema": {
|
|
20677
|
+
"$ref": "#/components/schemas/PublishedContentLookup"
|
|
20678
|
+
}
|
|
20679
|
+
}
|
|
20680
|
+
}
|
|
20681
|
+
},
|
|
20682
|
+
"default": {
|
|
20683
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
20684
|
+
}
|
|
20685
|
+
}
|
|
20686
|
+
}
|
|
19637
20687
|
}
|
|
19638
20688
|
}
|
|
19639
20689
|
}
|