@gitbook/api 0.11.1 → 0.12.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 +80 -24
- package/package.json +1 -1
- package/spec/openapi.json +417 -194
- package/spec/openapi.yaml +285 -124
package/spec/openapi.json
CHANGED
|
@@ -1368,7 +1368,15 @@
|
|
|
1368
1368
|
"$ref": "#/components/schemas/MarkdownDocument"
|
|
1369
1369
|
},
|
|
1370
1370
|
{
|
|
1371
|
-
"
|
|
1371
|
+
"type": "object",
|
|
1372
|
+
"properties": {
|
|
1373
|
+
"document": {
|
|
1374
|
+
"$ref": "#/components/schemas/JSONDocument"
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
"required": [
|
|
1378
|
+
"document"
|
|
1379
|
+
]
|
|
1372
1380
|
},
|
|
1373
1381
|
{
|
|
1374
1382
|
"type": "object",
|
|
@@ -1390,38 +1398,29 @@
|
|
|
1390
1398
|
]
|
|
1391
1399
|
},
|
|
1392
1400
|
"JSONDocument": {
|
|
1393
|
-
"type": "object",
|
|
1394
1401
|
"properties": {
|
|
1395
|
-
"
|
|
1396
|
-
"type": "
|
|
1397
|
-
"
|
|
1398
|
-
"
|
|
1399
|
-
"type": "string",
|
|
1400
|
-
"enum": [
|
|
1401
|
-
"document"
|
|
1402
|
-
]
|
|
1403
|
-
},
|
|
1404
|
-
"data": {
|
|
1405
|
-
"type": "object",
|
|
1406
|
-
"properties": {},
|
|
1407
|
-
"additionalProperties": false
|
|
1408
|
-
},
|
|
1409
|
-
"nodes": {
|
|
1410
|
-
"type": "array",
|
|
1411
|
-
"items": {
|
|
1412
|
-
"$ref": "#/components/schemas/DocumentBlocksTopLevels"
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
},
|
|
1416
|
-
"required": [
|
|
1417
|
-
"object",
|
|
1418
|
-
"data",
|
|
1419
|
-
"nodes"
|
|
1402
|
+
"object": {
|
|
1403
|
+
"type": "string",
|
|
1404
|
+
"enum": [
|
|
1405
|
+
"document"
|
|
1420
1406
|
]
|
|
1407
|
+
},
|
|
1408
|
+
"data": {
|
|
1409
|
+
"type": "object",
|
|
1410
|
+
"properties": {},
|
|
1411
|
+
"additionalProperties": false
|
|
1412
|
+
},
|
|
1413
|
+
"nodes": {
|
|
1414
|
+
"type": "array",
|
|
1415
|
+
"items": {
|
|
1416
|
+
"$ref": "#/components/schemas/DocumentBlocksTopLevels"
|
|
1417
|
+
}
|
|
1421
1418
|
}
|
|
1422
1419
|
},
|
|
1423
1420
|
"required": [
|
|
1424
|
-
"
|
|
1421
|
+
"object",
|
|
1422
|
+
"data",
|
|
1423
|
+
"nodes"
|
|
1425
1424
|
]
|
|
1426
1425
|
},
|
|
1427
1426
|
"DocumentBlocksEssentials": {
|
|
@@ -1574,129 +1573,161 @@
|
|
|
1574
1573
|
"marks"
|
|
1575
1574
|
]
|
|
1576
1575
|
},
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
|
|
1576
|
+
"DocumentMarkBold": {
|
|
1577
|
+
"type": "object",
|
|
1578
|
+
"properties": {
|
|
1579
|
+
"object": {
|
|
1580
|
+
"type": "string",
|
|
1581
|
+
"enum": [
|
|
1582
|
+
"mark"
|
|
1583
|
+
]
|
|
1584
|
+
},
|
|
1585
|
+
"type": {
|
|
1586
|
+
"type": "string",
|
|
1587
|
+
"enum": [
|
|
1588
|
+
"bold"
|
|
1589
|
+
]
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
"required": [
|
|
1593
|
+
"object",
|
|
1594
|
+
"type"
|
|
1595
|
+
]
|
|
1596
|
+
},
|
|
1597
|
+
"DocumentMarkItalic": {
|
|
1598
|
+
"type": "object",
|
|
1599
|
+
"properties": {
|
|
1600
|
+
"object": {
|
|
1601
|
+
"type": "string",
|
|
1602
|
+
"enum": [
|
|
1603
|
+
"mark"
|
|
1604
|
+
]
|
|
1605
|
+
},
|
|
1606
|
+
"type": {
|
|
1607
|
+
"type": "string",
|
|
1608
|
+
"enum": [
|
|
1609
|
+
"italic"
|
|
1610
|
+
]
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
"required": [
|
|
1614
|
+
"object",
|
|
1615
|
+
"type"
|
|
1616
|
+
]
|
|
1617
|
+
},
|
|
1618
|
+
"DocumentMarkCode": {
|
|
1619
|
+
"type": "object",
|
|
1620
|
+
"properties": {
|
|
1621
|
+
"object": {
|
|
1622
|
+
"type": "string",
|
|
1623
|
+
"enum": [
|
|
1624
|
+
"mark"
|
|
1625
|
+
]
|
|
1626
|
+
},
|
|
1627
|
+
"type": {
|
|
1628
|
+
"type": "string",
|
|
1629
|
+
"enum": [
|
|
1630
|
+
"code"
|
|
1631
|
+
]
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
"required": [
|
|
1635
|
+
"object",
|
|
1636
|
+
"type"
|
|
1637
|
+
]
|
|
1638
|
+
},
|
|
1639
|
+
"DocumentMarkStrikethrough": {
|
|
1640
|
+
"type": "object",
|
|
1641
|
+
"properties": {
|
|
1642
|
+
"object": {
|
|
1643
|
+
"type": "string",
|
|
1644
|
+
"enum": [
|
|
1645
|
+
"mark"
|
|
1646
|
+
]
|
|
1647
|
+
},
|
|
1648
|
+
"type": {
|
|
1649
|
+
"type": "string",
|
|
1650
|
+
"enum": [
|
|
1651
|
+
"strikethrough"
|
|
1652
|
+
]
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
"required": [
|
|
1656
|
+
"object",
|
|
1657
|
+
"type"
|
|
1658
|
+
]
|
|
1659
|
+
},
|
|
1660
|
+
"DocumentMarkColor": {
|
|
1661
|
+
"type": "object",
|
|
1662
|
+
"properties": {
|
|
1663
|
+
"object": {
|
|
1664
|
+
"type": "string",
|
|
1665
|
+
"enum": [
|
|
1666
|
+
"mark"
|
|
1667
|
+
]
|
|
1668
|
+
},
|
|
1669
|
+
"type": {
|
|
1670
|
+
"type": "string",
|
|
1671
|
+
"enum": [
|
|
1672
|
+
"color"
|
|
1673
|
+
]
|
|
1674
|
+
},
|
|
1675
|
+
"data": {
|
|
1580
1676
|
"type": "object",
|
|
1581
1677
|
"properties": {
|
|
1582
|
-
"
|
|
1678
|
+
"text": {
|
|
1583
1679
|
"type": "string",
|
|
1584
1680
|
"enum": [
|
|
1585
|
-
"
|
|
1681
|
+
"default",
|
|
1682
|
+
"green",
|
|
1683
|
+
"blue",
|
|
1684
|
+
"red",
|
|
1685
|
+
"orange",
|
|
1686
|
+
"yellow",
|
|
1687
|
+
"purple"
|
|
1688
|
+
]
|
|
1689
|
+
},
|
|
1690
|
+
"background": {
|
|
1691
|
+
"type": "string",
|
|
1692
|
+
"enum": [
|
|
1693
|
+
"default",
|
|
1694
|
+
"green",
|
|
1695
|
+
"blue",
|
|
1696
|
+
"red",
|
|
1697
|
+
"orange",
|
|
1698
|
+
"yellow",
|
|
1699
|
+
"purple"
|
|
1586
1700
|
]
|
|
1587
1701
|
}
|
|
1588
1702
|
},
|
|
1589
1703
|
"required": [
|
|
1590
|
-
"
|
|
1704
|
+
"text",
|
|
1705
|
+
"background"
|
|
1591
1706
|
]
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
"required": [
|
|
1710
|
+
"object",
|
|
1711
|
+
"type",
|
|
1712
|
+
"data"
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
"DocumentTextMark": {
|
|
1716
|
+
"oneOf": [
|
|
1717
|
+
{
|
|
1718
|
+
"$ref": "#/components/schemas/DocumentMarkBold"
|
|
1592
1719
|
},
|
|
1593
1720
|
{
|
|
1594
|
-
"
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
},
|
|
1605
|
-
"required": [
|
|
1606
|
-
"type"
|
|
1607
|
-
]
|
|
1608
|
-
},
|
|
1609
|
-
{
|
|
1610
|
-
"type": "object",
|
|
1611
|
-
"properties": {
|
|
1612
|
-
"type": {
|
|
1613
|
-
"type": "string",
|
|
1614
|
-
"enum": [
|
|
1615
|
-
"italic"
|
|
1616
|
-
]
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
"required": [
|
|
1620
|
-
"type"
|
|
1621
|
-
]
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
"type": "object",
|
|
1625
|
-
"properties": {
|
|
1626
|
-
"type": {
|
|
1627
|
-
"type": "string",
|
|
1628
|
-
"enum": [
|
|
1629
|
-
"code"
|
|
1630
|
-
]
|
|
1631
|
-
}
|
|
1632
|
-
},
|
|
1633
|
-
"required": [
|
|
1634
|
-
"type"
|
|
1635
|
-
]
|
|
1636
|
-
},
|
|
1637
|
-
{
|
|
1638
|
-
"type": "object",
|
|
1639
|
-
"properties": {
|
|
1640
|
-
"type": {
|
|
1641
|
-
"type": "string",
|
|
1642
|
-
"enum": [
|
|
1643
|
-
"strikethrough"
|
|
1644
|
-
]
|
|
1645
|
-
}
|
|
1646
|
-
},
|
|
1647
|
-
"required": [
|
|
1648
|
-
"type"
|
|
1649
|
-
]
|
|
1650
|
-
},
|
|
1651
|
-
{
|
|
1652
|
-
"type": "object",
|
|
1653
|
-
"properties": {
|
|
1654
|
-
"type": {
|
|
1655
|
-
"type": "string",
|
|
1656
|
-
"enum": [
|
|
1657
|
-
"color"
|
|
1658
|
-
]
|
|
1659
|
-
},
|
|
1660
|
-
"data": {
|
|
1661
|
-
"type": "object",
|
|
1662
|
-
"properties": {
|
|
1663
|
-
"text": {
|
|
1664
|
-
"type": "string",
|
|
1665
|
-
"enum": [
|
|
1666
|
-
"default",
|
|
1667
|
-
"green",
|
|
1668
|
-
"blue",
|
|
1669
|
-
"red",
|
|
1670
|
-
"orange",
|
|
1671
|
-
"yellow",
|
|
1672
|
-
"purple"
|
|
1673
|
-
]
|
|
1674
|
-
},
|
|
1675
|
-
"background": {
|
|
1676
|
-
"type": "string",
|
|
1677
|
-
"enum": [
|
|
1678
|
-
"default",
|
|
1679
|
-
"green",
|
|
1680
|
-
"blue",
|
|
1681
|
-
"red",
|
|
1682
|
-
"orange",
|
|
1683
|
-
"yellow",
|
|
1684
|
-
"purple"
|
|
1685
|
-
]
|
|
1686
|
-
}
|
|
1687
|
-
},
|
|
1688
|
-
"required": [
|
|
1689
|
-
"text",
|
|
1690
|
-
"background"
|
|
1691
|
-
]
|
|
1692
|
-
}
|
|
1693
|
-
},
|
|
1694
|
-
"required": [
|
|
1695
|
-
"type",
|
|
1696
|
-
"data"
|
|
1697
|
-
]
|
|
1698
|
-
}
|
|
1699
|
-
]
|
|
1721
|
+
"$ref": "#/components/schemas/DocumentMarkItalic"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"$ref": "#/components/schemas/DocumentMarkCode"
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"$ref": "#/components/schemas/DocumentMarkStrikethrough"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
"$ref": "#/components/schemas/DocumentMarkColor"
|
|
1700
1731
|
}
|
|
1701
1732
|
]
|
|
1702
1733
|
},
|
|
@@ -1724,6 +1755,9 @@
|
|
|
1724
1755
|
"oneOf": [
|
|
1725
1756
|
{
|
|
1726
1757
|
"$ref": "#/components/schemas/DocumentNodeText"
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
1727
1761
|
}
|
|
1728
1762
|
]
|
|
1729
1763
|
}
|
|
@@ -1738,6 +1772,12 @@
|
|
|
1738
1772
|
"required": [
|
|
1739
1773
|
"ref"
|
|
1740
1774
|
]
|
|
1775
|
+
},
|
|
1776
|
+
"isVoid": {
|
|
1777
|
+
"type": "boolean",
|
|
1778
|
+
"enum": [
|
|
1779
|
+
false
|
|
1780
|
+
]
|
|
1741
1781
|
}
|
|
1742
1782
|
},
|
|
1743
1783
|
"required": [
|
|
@@ -2008,17 +2048,51 @@
|
|
|
2008
2048
|
"enum": [
|
|
2009
2049
|
true
|
|
2010
2050
|
]
|
|
2051
|
+
},
|
|
2052
|
+
"nodes": {
|
|
2053
|
+
"type": "array",
|
|
2054
|
+
"items": {
|
|
2055
|
+
"$ref": "#/components/schemas/DocumentNodeText"
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2058
|
+
"data": {
|
|
2059
|
+
"type": "object",
|
|
2060
|
+
"properties": {},
|
|
2061
|
+
"additionalProperties": false
|
|
2011
2062
|
}
|
|
2012
2063
|
},
|
|
2013
2064
|
"required": [
|
|
2014
2065
|
"object",
|
|
2015
2066
|
"type",
|
|
2016
2067
|
"fragments",
|
|
2017
|
-
"isVoid"
|
|
2068
|
+
"isVoid",
|
|
2069
|
+
"nodes"
|
|
2018
2070
|
]
|
|
2019
2071
|
},
|
|
2020
2072
|
"DocumentInlinesRich": {
|
|
2021
|
-
"
|
|
2073
|
+
"oneOf": [
|
|
2074
|
+
{
|
|
2075
|
+
"$ref": "#/components/schemas/DocumentNodeText"
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"$ref": "#/components/schemas/DocumentInlineLink"
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
"$ref": "#/components/schemas/DocumentInlineEmoji"
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
"$ref": "#/components/schemas/DocumentInlineMath"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"$ref": "#/components/schemas/DocumentInlineImage"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"$ref": "#/components/schemas/DocumentInlineAnnotation"
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"$ref": "#/components/schemas/DocumentInlineMention"
|
|
2094
|
+
}
|
|
2095
|
+
]
|
|
2022
2096
|
},
|
|
2023
2097
|
"DocumentBlockParagraph": {
|
|
2024
2098
|
"type": "object",
|
|
@@ -2041,8 +2115,19 @@
|
|
|
2041
2115
|
"nodes": {
|
|
2042
2116
|
"type": "array",
|
|
2043
2117
|
"items": {
|
|
2044
|
-
"$ref": "#/components/schemas/
|
|
2118
|
+
"$ref": "#/components/schemas/DocumentInlinesRich"
|
|
2045
2119
|
}
|
|
2120
|
+
},
|
|
2121
|
+
"isVoid": {
|
|
2122
|
+
"type": "boolean",
|
|
2123
|
+
"enum": [
|
|
2124
|
+
false
|
|
2125
|
+
]
|
|
2126
|
+
},
|
|
2127
|
+
"data": {
|
|
2128
|
+
"type": "object",
|
|
2129
|
+
"properties": {},
|
|
2130
|
+
"additionalProperties": false
|
|
2046
2131
|
}
|
|
2047
2132
|
},
|
|
2048
2133
|
"required": [
|
|
@@ -2074,29 +2159,7 @@
|
|
|
2074
2159
|
"nodes": {
|
|
2075
2160
|
"type": "array",
|
|
2076
2161
|
"items": {
|
|
2077
|
-
"
|
|
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
|
-
]
|
|
2162
|
+
"$ref": "#/components/schemas/DocumentInlinesRich"
|
|
2100
2163
|
}
|
|
2101
2164
|
},
|
|
2102
2165
|
"data": {
|
|
@@ -2119,6 +2182,12 @@
|
|
|
2119
2182
|
"required": [
|
|
2120
2183
|
"id"
|
|
2121
2184
|
]
|
|
2185
|
+
},
|
|
2186
|
+
"isVoid": {
|
|
2187
|
+
"type": "boolean",
|
|
2188
|
+
"enum": [
|
|
2189
|
+
false
|
|
2190
|
+
]
|
|
2122
2191
|
}
|
|
2123
2192
|
},
|
|
2124
2193
|
"required": [
|
|
@@ -2140,7 +2209,7 @@
|
|
|
2140
2209
|
"type": {
|
|
2141
2210
|
"type": "string",
|
|
2142
2211
|
"enum": [
|
|
2143
|
-
"
|
|
2212
|
+
"blockquote"
|
|
2144
2213
|
]
|
|
2145
2214
|
},
|
|
2146
2215
|
"key": {
|
|
@@ -2158,6 +2227,17 @@
|
|
|
2158
2227
|
}
|
|
2159
2228
|
]
|
|
2160
2229
|
}
|
|
2230
|
+
},
|
|
2231
|
+
"isVoid": {
|
|
2232
|
+
"type": "boolean",
|
|
2233
|
+
"enum": [
|
|
2234
|
+
false
|
|
2235
|
+
]
|
|
2236
|
+
},
|
|
2237
|
+
"data": {
|
|
2238
|
+
"type": "object",
|
|
2239
|
+
"properties": {},
|
|
2240
|
+
"additionalProperties": false
|
|
2161
2241
|
}
|
|
2162
2242
|
},
|
|
2163
2243
|
"required": [
|
|
@@ -2206,6 +2286,12 @@
|
|
|
2206
2286
|
"items": {
|
|
2207
2287
|
"$ref": "#/components/schemas/DocumentBlocksEssentials"
|
|
2208
2288
|
}
|
|
2289
|
+
},
|
|
2290
|
+
"isVoid": {
|
|
2291
|
+
"type": "boolean",
|
|
2292
|
+
"enum": [
|
|
2293
|
+
false
|
|
2294
|
+
]
|
|
2209
2295
|
}
|
|
2210
2296
|
},
|
|
2211
2297
|
"required": [
|
|
@@ -2242,6 +2328,16 @@
|
|
|
2242
2328
|
}
|
|
2243
2329
|
]
|
|
2244
2330
|
}
|
|
2331
|
+
},
|
|
2332
|
+
"data": {
|
|
2333
|
+
"type": "object",
|
|
2334
|
+
"additionalProperties": false
|
|
2335
|
+
},
|
|
2336
|
+
"isVoid": {
|
|
2337
|
+
"type": "boolean",
|
|
2338
|
+
"enum": [
|
|
2339
|
+
false
|
|
2340
|
+
]
|
|
2245
2341
|
}
|
|
2246
2342
|
},
|
|
2247
2343
|
"required": [
|
|
@@ -2286,6 +2382,12 @@
|
|
|
2286
2382
|
}
|
|
2287
2383
|
]
|
|
2288
2384
|
}
|
|
2385
|
+
},
|
|
2386
|
+
"isVoid": {
|
|
2387
|
+
"type": "boolean",
|
|
2388
|
+
"enum": [
|
|
2389
|
+
false
|
|
2390
|
+
]
|
|
2289
2391
|
}
|
|
2290
2392
|
},
|
|
2291
2393
|
"required": [
|
|
@@ -2322,6 +2424,17 @@
|
|
|
2322
2424
|
}
|
|
2323
2425
|
]
|
|
2324
2426
|
}
|
|
2427
|
+
},
|
|
2428
|
+
"isVoid": {
|
|
2429
|
+
"type": "boolean",
|
|
2430
|
+
"enum": [
|
|
2431
|
+
false
|
|
2432
|
+
]
|
|
2433
|
+
},
|
|
2434
|
+
"data": {
|
|
2435
|
+
"type": "object",
|
|
2436
|
+
"properties": {},
|
|
2437
|
+
"additionalProperties": false
|
|
2325
2438
|
}
|
|
2326
2439
|
},
|
|
2327
2440
|
"required": [
|
|
@@ -2357,6 +2470,17 @@
|
|
|
2357
2470
|
}
|
|
2358
2471
|
]
|
|
2359
2472
|
}
|
|
2473
|
+
},
|
|
2474
|
+
"isVoid": {
|
|
2475
|
+
"type": "boolean",
|
|
2476
|
+
"enum": [
|
|
2477
|
+
false
|
|
2478
|
+
]
|
|
2479
|
+
},
|
|
2480
|
+
"data": {
|
|
2481
|
+
"type": "object",
|
|
2482
|
+
"properties": {},
|
|
2483
|
+
"additionalProperties": false
|
|
2360
2484
|
}
|
|
2361
2485
|
},
|
|
2362
2486
|
"required": [
|
|
@@ -2748,6 +2872,12 @@
|
|
|
2748
2872
|
"items": {
|
|
2749
2873
|
"$ref": "#/components/schemas/DocumentBlockCodeLine"
|
|
2750
2874
|
}
|
|
2875
|
+
},
|
|
2876
|
+
"isVoid": {
|
|
2877
|
+
"type": "boolean",
|
|
2878
|
+
"enum": [
|
|
2879
|
+
false
|
|
2880
|
+
]
|
|
2751
2881
|
}
|
|
2752
2882
|
},
|
|
2753
2883
|
"required": [
|
|
@@ -2795,6 +2925,12 @@
|
|
|
2795
2925
|
"type": "boolean"
|
|
2796
2926
|
}
|
|
2797
2927
|
}
|
|
2928
|
+
},
|
|
2929
|
+
"isVoid": {
|
|
2930
|
+
"type": "boolean",
|
|
2931
|
+
"enum": [
|
|
2932
|
+
false
|
|
2933
|
+
]
|
|
2798
2934
|
}
|
|
2799
2935
|
},
|
|
2800
2936
|
"required": [
|
|
@@ -2871,6 +3007,11 @@
|
|
|
2871
3007
|
true
|
|
2872
3008
|
]
|
|
2873
3009
|
},
|
|
3010
|
+
"data": {
|
|
3011
|
+
"type": "object",
|
|
3012
|
+
"properties": {},
|
|
3013
|
+
"additionalProperties": false
|
|
3014
|
+
},
|
|
2874
3015
|
"fragments": {
|
|
2875
3016
|
"type": "array",
|
|
2876
3017
|
"items": {
|
|
@@ -2975,7 +3116,8 @@
|
|
|
2975
3116
|
"object",
|
|
2976
3117
|
"type",
|
|
2977
3118
|
"isVoid",
|
|
2978
|
-
"fragments"
|
|
3119
|
+
"fragments",
|
|
3120
|
+
"data"
|
|
2979
3121
|
]
|
|
2980
3122
|
},
|
|
2981
3123
|
"DocumentBlockTabs": {
|
|
@@ -3001,6 +3143,17 @@
|
|
|
3001
3143
|
"items": {
|
|
3002
3144
|
"$ref": "#/components/schemas/DocumentBlockTabsItem"
|
|
3003
3145
|
}
|
|
3146
|
+
},
|
|
3147
|
+
"isVoid": {
|
|
3148
|
+
"type": "boolean",
|
|
3149
|
+
"enum": [
|
|
3150
|
+
false
|
|
3151
|
+
]
|
|
3152
|
+
},
|
|
3153
|
+
"data": {
|
|
3154
|
+
"type": "object",
|
|
3155
|
+
"properties": {},
|
|
3156
|
+
"additionalProperties": false
|
|
3004
3157
|
}
|
|
3005
3158
|
},
|
|
3006
3159
|
"required": [
|
|
@@ -3612,6 +3765,12 @@
|
|
|
3612
3765
|
"required": [
|
|
3613
3766
|
"id"
|
|
3614
3767
|
]
|
|
3768
|
+
},
|
|
3769
|
+
"isVoid": {
|
|
3770
|
+
"type": "boolean",
|
|
3771
|
+
"enum": [
|
|
3772
|
+
false
|
|
3773
|
+
]
|
|
3615
3774
|
}
|
|
3616
3775
|
},
|
|
3617
3776
|
"required": [
|
|
@@ -3754,12 +3913,18 @@
|
|
|
3754
3913
|
"enum": [
|
|
3755
3914
|
true
|
|
3756
3915
|
]
|
|
3916
|
+
},
|
|
3917
|
+
"data": {
|
|
3918
|
+
"type": "object",
|
|
3919
|
+
"properties": {},
|
|
3920
|
+
"additionalProperties": false
|
|
3757
3921
|
}
|
|
3758
3922
|
},
|
|
3759
3923
|
"required": [
|
|
3760
3924
|
"object",
|
|
3761
3925
|
"type",
|
|
3762
|
-
"isVoid"
|
|
3926
|
+
"isVoid",
|
|
3927
|
+
"data"
|
|
3763
3928
|
]
|
|
3764
3929
|
},
|
|
3765
3930
|
"ContentRef": {
|
|
@@ -4040,31 +4205,8 @@
|
|
|
4040
4205
|
}
|
|
4041
4206
|
},
|
|
4042
4207
|
"git": {
|
|
4043
|
-
"type": "object",
|
|
4044
4208
|
"description": "Metadata about a potential associated git commit.",
|
|
4045
|
-
"
|
|
4046
|
-
"oid",
|
|
4047
|
-
"message",
|
|
4048
|
-
"createdByGitBook"
|
|
4049
|
-
],
|
|
4050
|
-
"properties": {
|
|
4051
|
-
"oid": {
|
|
4052
|
-
"type": "string",
|
|
4053
|
-
"description": "SHA of the Git commit."
|
|
4054
|
-
},
|
|
4055
|
-
"message": {
|
|
4056
|
-
"type": "string",
|
|
4057
|
-
"description": "Git commit message."
|
|
4058
|
-
},
|
|
4059
|
-
"createdByGitBook": {
|
|
4060
|
-
"type": "boolean",
|
|
4061
|
-
"description": "Whether not this commit was created by GitBook, while exporting the revision."
|
|
4062
|
-
},
|
|
4063
|
-
"url": {
|
|
4064
|
-
"type": "string",
|
|
4065
|
-
"description": "URL of the Git commit."
|
|
4066
|
-
}
|
|
4067
|
-
}
|
|
4209
|
+
"$ref": "#/components/schemas/GitSyncCommit"
|
|
4068
4210
|
},
|
|
4069
4211
|
"urls": {
|
|
4070
4212
|
"type": "object",
|
|
@@ -4237,6 +4379,14 @@
|
|
|
4237
4379
|
"description": "Title of the page",
|
|
4238
4380
|
"type": "string",
|
|
4239
4381
|
"maxLength": 100
|
|
4382
|
+
},
|
|
4383
|
+
"createdAt": {
|
|
4384
|
+
"description": "When the page was first created. Only present if page has been edited at least once.",
|
|
4385
|
+
"$ref": "#/components/schemas/Date"
|
|
4386
|
+
},
|
|
4387
|
+
"updatedAt": {
|
|
4388
|
+
"description": "When the page was last edited. Only present if page has been edited at least once.",
|
|
4389
|
+
"$ref": "#/components/schemas/Date"
|
|
4240
4390
|
}
|
|
4241
4391
|
},
|
|
4242
4392
|
"required": [
|
|
@@ -4291,6 +4441,9 @@
|
|
|
4291
4441
|
}
|
|
4292
4442
|
]
|
|
4293
4443
|
}
|
|
4444
|
+
},
|
|
4445
|
+
"git": {
|
|
4446
|
+
"$ref": "#/components/schemas/GitSyncBlob"
|
|
4294
4447
|
}
|
|
4295
4448
|
},
|
|
4296
4449
|
"required": [
|
|
@@ -4402,13 +4555,36 @@
|
|
|
4402
4555
|
},
|
|
4403
4556
|
"downloadURL": {
|
|
4404
4557
|
"type": "string"
|
|
4558
|
+
},
|
|
4559
|
+
"size": {
|
|
4560
|
+
"type": "number"
|
|
4561
|
+
},
|
|
4562
|
+
"dimensions": {
|
|
4563
|
+
"type": "object",
|
|
4564
|
+
"description": "For images, it contains the dimensions of it.",
|
|
4565
|
+
"properties": {
|
|
4566
|
+
"width": {
|
|
4567
|
+
"type": "number"
|
|
4568
|
+
},
|
|
4569
|
+
"height": {
|
|
4570
|
+
"type": "number"
|
|
4571
|
+
}
|
|
4572
|
+
},
|
|
4573
|
+
"required": [
|
|
4574
|
+
"width",
|
|
4575
|
+
"height"
|
|
4576
|
+
]
|
|
4577
|
+
},
|
|
4578
|
+
"git": {
|
|
4579
|
+
"$ref": "#/components/schemas/GitSyncBlob"
|
|
4405
4580
|
}
|
|
4406
4581
|
},
|
|
4407
4582
|
"required": [
|
|
4408
4583
|
"id",
|
|
4409
4584
|
"name",
|
|
4410
4585
|
"contentType",
|
|
4411
|
-
"downloadURL"
|
|
4586
|
+
"downloadURL",
|
|
4587
|
+
"size"
|
|
4412
4588
|
]
|
|
4413
4589
|
},
|
|
4414
4590
|
"ImportContentSource": {
|
|
@@ -4480,6 +4656,53 @@
|
|
|
4480
4656
|
"success"
|
|
4481
4657
|
]
|
|
4482
4658
|
},
|
|
4659
|
+
"GitSyncCommit": {
|
|
4660
|
+
"type": "object",
|
|
4661
|
+
"properties": {
|
|
4662
|
+
"oid": {
|
|
4663
|
+
"type": "string",
|
|
4664
|
+
"description": "SHA for the commit"
|
|
4665
|
+
},
|
|
4666
|
+
"message": {
|
|
4667
|
+
"type": "string",
|
|
4668
|
+
"description": "Message describing the purpose of the commit"
|
|
4669
|
+
},
|
|
4670
|
+
"createdByGitBook": {
|
|
4671
|
+
"type": "boolean",
|
|
4672
|
+
"description": "If true, the Git commit was generated by an export from GitBook"
|
|
4673
|
+
},
|
|
4674
|
+
"url": {
|
|
4675
|
+
"type": "string",
|
|
4676
|
+
"description": "URL of the commit in the GitSync provider"
|
|
4677
|
+
},
|
|
4678
|
+
"ref": {
|
|
4679
|
+
"type": "string",
|
|
4680
|
+
"description": "Original name of the ref where the commit originated from"
|
|
4681
|
+
}
|
|
4682
|
+
},
|
|
4683
|
+
"required": [
|
|
4684
|
+
"oid",
|
|
4685
|
+
"message",
|
|
4686
|
+
"createdByGitBook"
|
|
4687
|
+
]
|
|
4688
|
+
},
|
|
4689
|
+
"GitSyncBlob": {
|
|
4690
|
+
"type": "object",
|
|
4691
|
+
"properties": {
|
|
4692
|
+
"oid": {
|
|
4693
|
+
"type": "string",
|
|
4694
|
+
"description": "SHA for the blob"
|
|
4695
|
+
},
|
|
4696
|
+
"path": {
|
|
4697
|
+
"type": "string",
|
|
4698
|
+
"description": "Path of the blob in the Git tree"
|
|
4699
|
+
}
|
|
4700
|
+
},
|
|
4701
|
+
"required": [
|
|
4702
|
+
"oid",
|
|
4703
|
+
"path"
|
|
4704
|
+
]
|
|
4705
|
+
},
|
|
4483
4706
|
"Organization": {
|
|
4484
4707
|
"type": "object",
|
|
4485
4708
|
"properties": {
|