@gitbook/api 0.11.0 → 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/spec/openapi.json CHANGED
@@ -148,7 +148,7 @@
148
148
  "required": true,
149
149
  "description": "The unique ID of the change request or its number identifier in the space",
150
150
  "schema": {
151
- "oneOf": [
151
+ "anyOf": [
152
152
  {
153
153
  "type": "string"
154
154
  },
@@ -180,9 +180,11 @@
180
180
  "name": "integrationName",
181
181
  "in": "path",
182
182
  "required": true,
183
- "description": "Name of the integration",
183
+ "description": "Name of the integration. Allowed characters are a-z, A-Z, 0-9, -, _, .",
184
184
  "schema": {
185
- "type": "string"
185
+ "type": "string",
186
+ "pattern": "^[a-zA-Z0-9-_.]+$",
187
+ "maxLength": 100
186
188
  }
187
189
  },
188
190
  "installationId": {
@@ -266,15 +268,6 @@
266
268
  "$ref": "#/components/schemas/EntityType"
267
269
  }
268
270
  },
269
- "environmentName": {
270
- "name": "environmentName",
271
- "in": "path",
272
- "required": true,
273
- "description": "The unique name of the environment within the organization",
274
- "schema": {
275
- "type": "string"
276
- }
277
- },
278
271
  "backofficeHostname": {
279
272
  "name": "hostname",
280
273
  "in": "path",
@@ -283,6 +276,15 @@
283
276
  "schema": {
284
277
  "type": "string"
285
278
  }
279
+ },
280
+ "ifUnmodifiedSince": {
281
+ "in": "header",
282
+ "name": "If-Unmodified-Since",
283
+ "description": "If provided, the operation will be rejected if the underlying resource has been modified since the date provided in the header.",
284
+ "schema": {
285
+ "type": "string",
286
+ "format": "date-time"
287
+ }
286
288
  }
287
289
  },
288
290
  "schemas": {
@@ -721,10 +723,6 @@
721
723
  "deprecated": true,
722
724
  "type": "boolean"
723
725
  },
724
- "type": {
725
- "$ref": "#/components/schemas/SpaceType",
726
- "default": "other"
727
- },
728
726
  "parent": {
729
727
  "type": "string",
730
728
  "description": "ID of a parent collection"
@@ -928,46 +926,6 @@
928
926
  "urls"
929
927
  ]
930
928
  },
931
- "UserPreferences": {
932
- "type": "object",
933
- "properties": {
934
- "object": {
935
- "type": "string",
936
- "description": "Type of Object, always equals to \"user-preferences\"",
937
- "enum": [
938
- "user-preferences"
939
- ]
940
- },
941
- "theme": {
942
- "$ref": "#/components/schemas/UserPreferencesTheme"
943
- },
944
- "urls": {
945
- "type": "object",
946
- "description": "URLs associated with the object",
947
- "properties": {
948
- "location": {
949
- "type": "string",
950
- "description": "URL of the user preferences in the API",
951
- "format": "uri"
952
- }
953
- }
954
- }
955
- },
956
- "required": [
957
- "object",
958
- "theme",
959
- "urls"
960
- ]
961
- },
962
- "UserPreferencesTheme": {
963
- "type": "string",
964
- "description": "Preferred theme for the application",
965
- "enum": [
966
- "light",
967
- "dark",
968
- "default"
969
- ]
970
- },
971
929
  "UserAPIToken": {
972
930
  "type": "object",
973
931
  "description": "The API token details, excluding the token itself.",
@@ -1115,6 +1073,64 @@
1115
1073
  }
1116
1074
  }
1117
1075
  },
1076
+ "Embed": {
1077
+ "allOf": [
1078
+ {
1079
+ "type": "object",
1080
+ "properties": {
1081
+ "title": {
1082
+ "type": "string"
1083
+ },
1084
+ "site": {
1085
+ "type": "string"
1086
+ },
1087
+ "icon": {
1088
+ "type": "string"
1089
+ }
1090
+ },
1091
+ "required": [
1092
+ "title",
1093
+ "site"
1094
+ ]
1095
+ },
1096
+ {
1097
+ "oneOf": [
1098
+ {
1099
+ "type": "object",
1100
+ "properties": {
1101
+ "type": {
1102
+ "type": "string",
1103
+ "enum": [
1104
+ "link"
1105
+ ]
1106
+ }
1107
+ },
1108
+ "required": [
1109
+ "type"
1110
+ ]
1111
+ },
1112
+ {
1113
+ "type": "object",
1114
+ "properties": {
1115
+ "type": {
1116
+ "type": "string",
1117
+ "enum": [
1118
+ "rich"
1119
+ ]
1120
+ },
1121
+ "html": {
1122
+ "type": "string"
1123
+ }
1124
+ },
1125
+ "required": [
1126
+ "type",
1127
+ "html"
1128
+ ]
1129
+ }
1130
+ ]
1131
+ }
1132
+ ]
1133
+ },
1118
1134
  "Comment": {
1119
1135
  "allOf": [
1120
1136
  {
@@ -1352,7 +1368,15 @@
1352
1368
  "$ref": "#/components/schemas/MarkdownDocument"
1353
1369
  },
1354
1370
  {
1355
- "$ref": "#/components/schemas/JSONDocument"
1371
+ "type": "object",
1372
+ "properties": {
1373
+ "document": {
1374
+ "$ref": "#/components/schemas/JSONDocument"
1375
+ }
1376
+ },
1377
+ "required": [
1378
+ "document"
1379
+ ]
1356
1380
  },
1357
1381
  {
1358
1382
  "type": "object",
@@ -1374,217 +1398,2777 @@
1374
1398
  ]
1375
1399
  },
1376
1400
  "JSONDocument": {
1377
- "type": "object",
1378
1401
  "properties": {
1379
- "document": {
1380
- "type": "object",
1381
- "properties": {
1382
- "nodes": {
1383
- "type": "array",
1384
- "items": {
1385
- "type": "object",
1386
- "properties": {}
1387
- }
1388
- }
1389
- },
1390
- "required": [
1391
- "nodes"
1402
+ "object": {
1403
+ "type": "string",
1404
+ "enum": [
1405
+ "document"
1392
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
+ }
1393
1418
  }
1394
1419
  },
1395
1420
  "required": [
1396
- "document"
1421
+ "object",
1422
+ "data",
1423
+ "nodes"
1397
1424
  ]
1398
1425
  },
1399
- "Space": {
1400
- "type": "object",
1401
- "properties": {
1402
- "object": {
1403
- "type": "string",
1404
- "description": "Type of Object, always equals to \"space\"",
1405
- "enum": [
1406
- "space"
1407
- ]
1426
+ "DocumentBlocksEssentials": {
1427
+ "oneOf": [
1428
+ {
1429
+ "$ref": "#/components/schemas/DocumentBlockParagraph"
1408
1430
  },
1409
- "id": {
1410
- "type": "string",
1411
- "description": "Unique identifier for the space"
1431
+ {
1432
+ "$ref": "#/components/schemas/DocumentBlockHeading"
1412
1433
  },
1413
- "type": {
1414
- "$ref": "#/components/schemas/SpaceType"
1434
+ {
1435
+ "$ref": "#/components/schemas/DocumentBlockListOrdered"
1415
1436
  },
1416
- "title": {
1417
- "type": "string",
1418
- "description": "Title of the space",
1419
- "minLength": 0,
1420
- "maxLength": 100
1437
+ {
1438
+ "$ref": "#/components/schemas/DocumentBlockListUnordered"
1421
1439
  },
1422
- "visibility": {
1423
- "$ref": "#/components/schemas/ContentVisibility"
1440
+ {
1441
+ "$ref": "#/components/schemas/DocumentBlockListTasks"
1424
1442
  },
1425
- "createdAt": {
1426
- "$ref": "#/components/schemas/Date"
1443
+ {
1444
+ "$ref": "#/components/schemas/DocumentBlockDivider"
1445
+ }
1446
+ ]
1447
+ },
1448
+ "DocumentBlocksTopLevels": {
1449
+ "oneOf": [
1450
+ {
1451
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
1427
1452
  },
1428
- "updatedAt": {
1429
- "$ref": "#/components/schemas/Date"
1453
+ {
1454
+ "$ref": "#/components/schemas/DocumentBlockQuote"
1430
1455
  },
1431
- "deletedAt": {
1432
- "$ref": "#/components/schemas/Date"
1456
+ {
1457
+ "$ref": "#/components/schemas/DocumentBlockHint"
1433
1458
  },
1434
- "urls": {
1435
- "type": "object",
1436
- "description": "URLs associated with the object",
1437
- "properties": {
1438
- "location": {
1439
- "type": "string",
1440
- "description": "URL of the space in the API",
1441
- "format": "uri"
1442
- },
1443
- "app": {
1444
- "type": "string",
1445
- "description": "URL of the space in the application",
1446
- "format": "uri"
1447
- },
1448
- "published": {
1449
- "type": "string",
1450
- "description": "URL of the published version of the space. Only defined when visibility is not \"private.\"",
1451
- "format": "uri"
1452
- },
1453
- "public": {
1454
- "type": "string",
1455
- "description": "URL of the public version of the space. Only defined when visibility is \"public\".",
1456
- "format": "uri"
1457
- }
1458
- },
1459
- "required": [
1460
- "app",
1461
- "location"
1462
- ]
1459
+ {
1460
+ "$ref": "#/components/schemas/DocumentBlockImages"
1463
1461
  },
1464
- "organization": {
1465
- "type": "string",
1466
- "description": "ID of the organization owning this space"
1462
+ {
1463
+ "$ref": "#/components/schemas/DocumentBlockFile"
1467
1464
  },
1468
- "parent": {
1469
- "type": "string",
1470
- "description": "ID of the parent collection."
1465
+ {
1466
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
1467
+ },
1468
+ {
1469
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
1470
+ },
1471
+ {
1472
+ "$ref": "#/components/schemas/DocumentBlockCode"
1473
+ },
1474
+ {
1475
+ "$ref": "#/components/schemas/DocumentBlockMath"
1476
+ },
1477
+ {
1478
+ "$ref": "#/components/schemas/DocumentBlockExpandable"
1479
+ },
1480
+ {
1481
+ "$ref": "#/components/schemas/DocumentBlockTabs"
1482
+ },
1483
+ {
1484
+ "$ref": "#/components/schemas/DocumentBlockTable"
1485
+ },
1486
+ {
1487
+ "$ref": "#/components/schemas/DocumentBlockSwagger"
1488
+ },
1489
+ {
1490
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
1491
+ },
1492
+ {
1493
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
1471
1494
  }
1472
- },
1473
- "required": [
1474
- "object",
1475
- "id",
1476
- "type",
1477
- "title",
1478
- "organization",
1479
- "visibility",
1480
- "createdAt",
1481
- "updatedAt",
1482
- "urls"
1483
- ]
1484
- },
1485
- "SpaceType": {
1486
- "type": "string",
1487
- "description": "- `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.\n- `website`: A single web page or a collection of related web pages under a single domain.\n- `service`: An independently-deployable software unit that is usually is operated by a person or a team.\n- `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.\n- `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.\n- `database`: A databse entity, persisting data. A database is typically used by services or applications.\n- `other`: A space that doesn’t match the service, library, or application type.\n",
1488
- "enum": [
1489
- "application",
1490
- "website",
1491
- "service",
1492
- "library",
1493
- "cloud-resource",
1494
- "database",
1495
- "other"
1496
- ]
1497
- },
1498
- "SpaceRelationType": {
1499
- "type": "string",
1500
- "enum": [
1501
- "dependsOn",
1502
- "dependencyOf",
1503
- "partOf",
1504
- "hasPart"
1505
1495
  ]
1506
1496
  },
1507
- "SpaceRelationEdge": {
1497
+ "DocumentNodeText": {
1508
1498
  "type": "object",
1509
- "description": "Edge of a space relation (target or source)",
1510
1499
  "properties": {
1511
- "id": {
1500
+ "object": {
1512
1501
  "type": "string",
1513
- "description": "ID of the space"
1502
+ "enum": [
1503
+ "text"
1504
+ ]
1505
+ },
1506
+ "key": {
1507
+ "type": "string"
1508
+ },
1509
+ "leaves": {
1510
+ "type": "array",
1511
+ "items": {
1512
+ "$ref": "#/components/schemas/DocumentTextLeaf"
1513
+ }
1514
1514
  }
1515
1515
  },
1516
1516
  "required": [
1517
- "id"
1517
+ "object",
1518
+ "leaves"
1518
1519
  ]
1519
1520
  },
1520
- "SpaceRelation": {
1521
+ "DocumentNodeFragment": {
1521
1522
  "type": "object",
1522
- "description": "Relation between an origin space and another space",
1523
1523
  "properties": {
1524
- "id": {
1525
- "type": "string"
1526
- },
1524
+ "object": {
1525
+ "type": "string",
1526
+ "enum": [
1527
+ "fragment"
1528
+ ]
1529
+ },
1530
+ "key": {
1531
+ "type": "string"
1532
+ },
1533
+ "fragment": {
1534
+ "type": "string"
1535
+ },
1536
+ "type": {
1537
+ "type": "string"
1538
+ },
1539
+ "nodes": {
1540
+ "type": "array",
1541
+ "items": {
1542
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
1543
+ }
1544
+ }
1545
+ },
1546
+ "required": [
1547
+ "object",
1548
+ "nodes"
1549
+ ]
1550
+ },
1551
+ "DocumentTextLeaf": {
1552
+ "type": "object",
1553
+ "properties": {
1554
+ "object": {
1555
+ "type": "string",
1556
+ "enum": [
1557
+ "leaf"
1558
+ ]
1559
+ },
1560
+ "text": {
1561
+ "type": "string"
1562
+ },
1563
+ "marks": {
1564
+ "type": "array",
1565
+ "items": {
1566
+ "$ref": "#/components/schemas/DocumentTextMark"
1567
+ }
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "object",
1572
+ "text",
1573
+ "marks"
1574
+ ]
1575
+ },
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": {
1676
+ "type": "object",
1677
+ "properties": {
1678
+ "text": {
1679
+ "type": "string",
1680
+ "enum": [
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"
1700
+ ]
1701
+ }
1702
+ },
1703
+ "required": [
1704
+ "text",
1705
+ "background"
1706
+ ]
1707
+ }
1708
+ },
1709
+ "required": [
1710
+ "object",
1711
+ "type",
1712
+ "data"
1713
+ ]
1714
+ },
1715
+ "DocumentTextMark": {
1716
+ "oneOf": [
1717
+ {
1718
+ "$ref": "#/components/schemas/DocumentMarkBold"
1719
+ },
1720
+ {
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"
1731
+ }
1732
+ ]
1733
+ },
1734
+ "DocumentInlineLink": {
1735
+ "type": "object",
1736
+ "properties": {
1737
+ "object": {
1738
+ "type": "string",
1739
+ "enum": [
1740
+ "inline"
1741
+ ]
1742
+ },
1743
+ "type": {
1744
+ "type": "string",
1745
+ "enum": [
1746
+ "link"
1747
+ ]
1748
+ },
1749
+ "key": {
1750
+ "type": "string"
1751
+ },
1752
+ "nodes": {
1753
+ "type": "array",
1754
+ "items": {
1755
+ "oneOf": [
1756
+ {
1757
+ "$ref": "#/components/schemas/DocumentNodeText"
1758
+ },
1759
+ {
1760
+ "$ref": "#/components/schemas/DocumentInlineImage"
1761
+ }
1762
+ ]
1763
+ }
1764
+ },
1765
+ "data": {
1766
+ "type": "object",
1767
+ "properties": {
1768
+ "ref": {
1769
+ "$ref": "#/components/schemas/ContentRef"
1770
+ }
1771
+ },
1772
+ "required": [
1773
+ "ref"
1774
+ ]
1775
+ },
1776
+ "isVoid": {
1777
+ "type": "boolean",
1778
+ "enum": [
1779
+ false
1780
+ ]
1781
+ }
1782
+ },
1783
+ "required": [
1784
+ "object",
1785
+ "type",
1786
+ "nodes",
1787
+ "data"
1788
+ ]
1789
+ },
1790
+ "DocumentInlineMath": {
1791
+ "type": "object",
1792
+ "properties": {
1793
+ "object": {
1794
+ "type": "string",
1795
+ "enum": [
1796
+ "inline"
1797
+ ]
1798
+ },
1799
+ "type": {
1800
+ "type": "string",
1801
+ "enum": [
1802
+ "inline-math"
1803
+ ]
1804
+ },
1805
+ "key": {
1806
+ "type": "string"
1807
+ },
1808
+ "data": {
1809
+ "type": "object",
1810
+ "properties": {
1811
+ "formula": {
1812
+ "type": "string"
1813
+ }
1814
+ },
1815
+ "required": [
1816
+ "formula"
1817
+ ]
1818
+ },
1819
+ "isVoid": {
1820
+ "type": "boolean",
1821
+ "enum": [
1822
+ true
1823
+ ]
1824
+ }
1825
+ },
1826
+ "required": [
1827
+ "object",
1828
+ "type",
1829
+ "data",
1830
+ "isVoid"
1831
+ ]
1832
+ },
1833
+ "DocumentInlineEmoji": {
1834
+ "type": "object",
1835
+ "properties": {
1836
+ "object": {
1837
+ "type": "string",
1838
+ "enum": [
1839
+ "inline"
1840
+ ]
1841
+ },
1842
+ "type": {
1843
+ "type": "string",
1844
+ "enum": [
1845
+ "emoji"
1846
+ ]
1847
+ },
1848
+ "key": {
1849
+ "type": "string"
1850
+ },
1851
+ "data": {
1852
+ "type": "object",
1853
+ "properties": {
1854
+ "code": {
1855
+ "type": "string"
1856
+ }
1857
+ },
1858
+ "required": [
1859
+ "code"
1860
+ ]
1861
+ },
1862
+ "isVoid": {
1863
+ "type": "boolean",
1864
+ "enum": [
1865
+ true
1866
+ ]
1867
+ }
1868
+ },
1869
+ "required": [
1870
+ "object",
1871
+ "type",
1872
+ "data",
1873
+ "isVoid"
1874
+ ]
1875
+ },
1876
+ "DocumentInlineImage": {
1877
+ "type": "object",
1878
+ "properties": {
1879
+ "object": {
1880
+ "type": "string",
1881
+ "enum": [
1882
+ "inline"
1883
+ ]
1884
+ },
1885
+ "type": {
1886
+ "type": "string",
1887
+ "enum": [
1888
+ "inline-image"
1889
+ ]
1890
+ },
1891
+ "key": {
1892
+ "type": "string"
1893
+ },
1894
+ "data": {
1895
+ "type": "object",
1896
+ "properties": {
1897
+ "ref": {
1898
+ "oneOf": [
1899
+ {
1900
+ "$ref": "#/components/schemas/ContentRefURL"
1901
+ },
1902
+ {
1903
+ "$ref": "#/components/schemas/ContentRefFile"
1904
+ }
1905
+ ]
1906
+ },
1907
+ "refDark": {
1908
+ "oneOf": [
1909
+ {
1910
+ "$ref": "#/components/schemas/ContentRefURL"
1911
+ },
1912
+ {
1913
+ "$ref": "#/components/schemas/ContentRefFile"
1914
+ }
1915
+ ]
1916
+ },
1917
+ "caption": {
1918
+ "type": "string"
1919
+ },
1920
+ "size": {
1921
+ "type": "string",
1922
+ "enum": [
1923
+ "original",
1924
+ "line"
1925
+ ]
1926
+ }
1927
+ },
1928
+ "required": [
1929
+ "ref"
1930
+ ]
1931
+ },
1932
+ "isVoid": {
1933
+ "type": "boolean",
1934
+ "enum": [
1935
+ true
1936
+ ]
1937
+ }
1938
+ },
1939
+ "required": [
1940
+ "object",
1941
+ "type",
1942
+ "data",
1943
+ "isVoid"
1944
+ ]
1945
+ },
1946
+ "DocumentInlineMention": {
1947
+ "type": "object",
1948
+ "properties": {
1949
+ "object": {
1950
+ "type": "string",
1951
+ "enum": [
1952
+ "inline"
1953
+ ]
1954
+ },
1955
+ "type": {
1956
+ "type": "string",
1957
+ "enum": [
1958
+ "mention"
1959
+ ]
1960
+ },
1961
+ "key": {
1962
+ "type": "string"
1963
+ },
1964
+ "data": {
1965
+ "type": "object",
1966
+ "properties": {
1967
+ "ref": {
1968
+ "$ref": "#/components/schemas/ContentRef"
1969
+ }
1970
+ },
1971
+ "required": [
1972
+ "ref"
1973
+ ]
1974
+ },
1975
+ "isVoid": {
1976
+ "type": "boolean",
1977
+ "enum": [
1978
+ true
1979
+ ]
1980
+ }
1981
+ },
1982
+ "required": [
1983
+ "object",
1984
+ "type",
1985
+ "data",
1986
+ "isVoid"
1987
+ ]
1988
+ },
1989
+ "DocumentInlineAnnotation": {
1990
+ "type": "object",
1991
+ "properties": {
1992
+ "object": {
1993
+ "type": "string",
1994
+ "enum": [
1995
+ "inline"
1996
+ ]
1997
+ },
1998
+ "type": {
1999
+ "type": "string",
2000
+ "enum": [
2001
+ "annotation"
2002
+ ]
2003
+ },
2004
+ "key": {
2005
+ "type": "string"
2006
+ },
2007
+ "fragments": {
2008
+ "type": "array",
2009
+ "items": {
2010
+ "allOf": [
2011
+ {
2012
+ "$ref": "#/components/schemas/DocumentNodeFragment"
2013
+ },
2014
+ {
2015
+ "type": "object",
2016
+ "properties": {
2017
+ "type": {
2018
+ "type": "string",
2019
+ "enum": [
2020
+ "annotation-body"
2021
+ ]
2022
+ },
2023
+ "nodes": {
2024
+ "type": "array",
2025
+ "items": {
2026
+ "oneOf": [
2027
+ {
2028
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
2029
+ },
2030
+ {
2031
+ "$ref": "#/components/schemas/DocumentBlockCode"
2032
+ }
2033
+ ]
2034
+ },
2035
+ "minItems": 1
2036
+ }
2037
+ },
2038
+ "required": [
2039
+ "nodes",
2040
+ "type"
2041
+ ]
2042
+ }
2043
+ ]
2044
+ }
2045
+ },
2046
+ "isVoid": {
2047
+ "type": "boolean",
2048
+ "enum": [
2049
+ true
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
2062
+ }
2063
+ },
2064
+ "required": [
2065
+ "object",
2066
+ "type",
2067
+ "fragments",
2068
+ "isVoid",
2069
+ "nodes"
2070
+ ]
2071
+ },
2072
+ "DocumentInlinesRich": {
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
+ ]
2096
+ },
2097
+ "DocumentBlockParagraph": {
2098
+ "type": "object",
2099
+ "properties": {
2100
+ "object": {
2101
+ "type": "string",
2102
+ "enum": [
2103
+ "block"
2104
+ ]
2105
+ },
2106
+ "type": {
2107
+ "type": "string",
2108
+ "enum": [
2109
+ "paragraph"
2110
+ ]
2111
+ },
2112
+ "key": {
2113
+ "type": "string"
2114
+ },
2115
+ "nodes": {
2116
+ "type": "array",
2117
+ "items": {
2118
+ "$ref": "#/components/schemas/DocumentInlinesRich"
2119
+ }
2120
+ },
2121
+ "isVoid": {
2122
+ "type": "boolean",
2123
+ "enum": [
2124
+ false
2125
+ ]
2126
+ },
2127
+ "data": {
2128
+ "type": "object",
2129
+ "properties": {},
2130
+ "additionalProperties": false
2131
+ }
2132
+ },
2133
+ "required": [
2134
+ "object",
2135
+ "type",
2136
+ "nodes"
2137
+ ]
2138
+ },
2139
+ "DocumentBlockHeading": {
2140
+ "type": "object",
2141
+ "properties": {
2142
+ "object": {
2143
+ "type": "string",
2144
+ "enum": [
2145
+ "block"
2146
+ ]
2147
+ },
2148
+ "type": {
2149
+ "type": "string",
2150
+ "enum": [
2151
+ "heading-1",
2152
+ "heading-2",
2153
+ "heading-3"
2154
+ ]
2155
+ },
2156
+ "key": {
2157
+ "type": "string"
2158
+ },
2159
+ "nodes": {
2160
+ "type": "array",
2161
+ "items": {
2162
+ "$ref": "#/components/schemas/DocumentInlinesRich"
2163
+ }
2164
+ },
2165
+ "data": {
2166
+ "type": "object",
2167
+ "properties": {
2168
+ "id": {
2169
+ "type": "string",
2170
+ "pattern": "^[-a-z0-9.+_]+$"
2171
+ }
2172
+ }
2173
+ },
2174
+ "meta": {
2175
+ "type": "object",
2176
+ "properties": {
2177
+ "id": {
2178
+ "description": "Unique ID to be used in an URL for the block.",
2179
+ "type": "string"
2180
+ }
2181
+ },
2182
+ "required": [
2183
+ "id"
2184
+ ]
2185
+ },
2186
+ "isVoid": {
2187
+ "type": "boolean",
2188
+ "enum": [
2189
+ false
2190
+ ]
2191
+ }
2192
+ },
2193
+ "required": [
2194
+ "object",
2195
+ "type",
2196
+ "nodes",
2197
+ "data"
2198
+ ]
2199
+ },
2200
+ "DocumentBlockQuote": {
2201
+ "type": "object",
2202
+ "properties": {
2203
+ "object": {
2204
+ "type": "string",
2205
+ "enum": [
2206
+ "block"
2207
+ ]
2208
+ },
2209
+ "type": {
2210
+ "type": "string",
2211
+ "enum": [
2212
+ "blockquote"
2213
+ ]
2214
+ },
2215
+ "key": {
2216
+ "type": "string"
2217
+ },
2218
+ "nodes": {
2219
+ "type": "array",
2220
+ "items": {
2221
+ "oneOf": [
2222
+ {
2223
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
2224
+ },
2225
+ {
2226
+ "$ref": "#/components/schemas/DocumentBlockQuote"
2227
+ }
2228
+ ]
2229
+ }
2230
+ },
2231
+ "isVoid": {
2232
+ "type": "boolean",
2233
+ "enum": [
2234
+ false
2235
+ ]
2236
+ },
2237
+ "data": {
2238
+ "type": "object",
2239
+ "properties": {},
2240
+ "additionalProperties": false
2241
+ }
2242
+ },
2243
+ "required": [
2244
+ "object",
2245
+ "type",
2246
+ "nodes"
2247
+ ]
2248
+ },
2249
+ "DocumentBlockHint": {
2250
+ "type": "object",
2251
+ "properties": {
2252
+ "object": {
2253
+ "type": "string",
2254
+ "enum": [
2255
+ "block"
2256
+ ]
2257
+ },
2258
+ "type": {
2259
+ "type": "string",
2260
+ "enum": [
2261
+ "hint"
2262
+ ]
2263
+ },
2264
+ "key": {
2265
+ "type": "string"
2266
+ },
2267
+ "data": {
2268
+ "type": "object",
2269
+ "properties": {
2270
+ "style": {
2271
+ "type": "string",
2272
+ "enum": [
2273
+ "info",
2274
+ "warning",
2275
+ "danger",
2276
+ "success"
2277
+ ]
2278
+ }
2279
+ },
2280
+ "required": [
2281
+ "style"
2282
+ ]
2283
+ },
2284
+ "nodes": {
2285
+ "type": "array",
2286
+ "items": {
2287
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
2288
+ }
2289
+ },
2290
+ "isVoid": {
2291
+ "type": "boolean",
2292
+ "enum": [
2293
+ false
2294
+ ]
2295
+ }
2296
+ },
2297
+ "required": [
2298
+ "object",
2299
+ "type",
2300
+ "data",
2301
+ "nodes"
2302
+ ]
2303
+ },
2304
+ "DocumentBlockListUnordered": {
2305
+ "type": "object",
2306
+ "properties": {
2307
+ "object": {
2308
+ "type": "string",
2309
+ "enum": [
2310
+ "block"
2311
+ ]
2312
+ },
2313
+ "type": {
2314
+ "type": "string",
2315
+ "enum": [
2316
+ "list-unordered"
2317
+ ]
2318
+ },
2319
+ "key": {
2320
+ "type": "string"
2321
+ },
2322
+ "nodes": {
2323
+ "type": "array",
2324
+ "items": {
2325
+ "oneOf": [
2326
+ {
2327
+ "$ref": "#/components/schemas/DocumentBlockListItem"
2328
+ }
2329
+ ]
2330
+ }
2331
+ },
2332
+ "data": {
2333
+ "type": "object",
2334
+ "additionalProperties": false
2335
+ },
2336
+ "isVoid": {
2337
+ "type": "boolean",
2338
+ "enum": [
2339
+ false
2340
+ ]
2341
+ }
2342
+ },
2343
+ "required": [
2344
+ "object",
2345
+ "type",
2346
+ "nodes"
2347
+ ]
2348
+ },
2349
+ "DocumentBlockListOrdered": {
2350
+ "type": "object",
2351
+ "properties": {
2352
+ "object": {
2353
+ "type": "string",
2354
+ "enum": [
2355
+ "block"
2356
+ ]
2357
+ },
2358
+ "type": {
2359
+ "type": "string",
2360
+ "enum": [
2361
+ "list-ordered"
2362
+ ]
2363
+ },
2364
+ "key": {
2365
+ "type": "string"
2366
+ },
2367
+ "data": {
2368
+ "type": "object",
2369
+ "properties": {
2370
+ "start": {
2371
+ "type": "number",
2372
+ "description": "An integer to start counting from for the list items."
2373
+ }
2374
+ }
2375
+ },
2376
+ "nodes": {
2377
+ "type": "array",
2378
+ "items": {
2379
+ "oneOf": [
2380
+ {
2381
+ "$ref": "#/components/schemas/DocumentBlockListItem"
2382
+ }
2383
+ ]
2384
+ }
2385
+ },
2386
+ "isVoid": {
2387
+ "type": "boolean",
2388
+ "enum": [
2389
+ false
2390
+ ]
2391
+ }
2392
+ },
2393
+ "required": [
2394
+ "object",
2395
+ "type",
2396
+ "data",
2397
+ "nodes"
2398
+ ]
2399
+ },
2400
+ "DocumentBlockListTasks": {
2401
+ "type": "object",
2402
+ "properties": {
2403
+ "object": {
2404
+ "type": "string",
2405
+ "enum": [
2406
+ "block"
2407
+ ]
2408
+ },
2409
+ "type": {
2410
+ "type": "string",
2411
+ "enum": [
2412
+ "list-tasks"
2413
+ ]
2414
+ },
2415
+ "key": {
2416
+ "type": "string"
2417
+ },
2418
+ "nodes": {
2419
+ "type": "array",
2420
+ "items": {
2421
+ "oneOf": [
2422
+ {
2423
+ "$ref": "#/components/schemas/DocumentBlockTaskListItem"
2424
+ }
2425
+ ]
2426
+ }
2427
+ },
2428
+ "isVoid": {
2429
+ "type": "boolean",
2430
+ "enum": [
2431
+ false
2432
+ ]
2433
+ },
2434
+ "data": {
2435
+ "type": "object",
2436
+ "properties": {},
2437
+ "additionalProperties": false
2438
+ }
2439
+ },
2440
+ "required": [
2441
+ "object",
2442
+ "type",
2443
+ "nodes"
2444
+ ]
2445
+ },
2446
+ "DocumentBlockListItem": {
2447
+ "type": "object",
2448
+ "properties": {
2449
+ "object": {
2450
+ "type": "string",
2451
+ "enum": [
2452
+ "block"
2453
+ ]
2454
+ },
2455
+ "type": {
2456
+ "type": "string",
2457
+ "enum": [
2458
+ "list-item"
2459
+ ]
2460
+ },
2461
+ "key": {
2462
+ "type": "string"
2463
+ },
2464
+ "nodes": {
2465
+ "type": "array",
2466
+ "items": {
2467
+ "oneOf": [
2468
+ {
2469
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
2470
+ }
2471
+ ]
2472
+ }
2473
+ },
2474
+ "isVoid": {
2475
+ "type": "boolean",
2476
+ "enum": [
2477
+ false
2478
+ ]
2479
+ },
2480
+ "data": {
2481
+ "type": "object",
2482
+ "properties": {},
2483
+ "additionalProperties": false
2484
+ }
2485
+ },
2486
+ "required": [
2487
+ "object",
2488
+ "type",
2489
+ "nodes"
2490
+ ]
2491
+ },
2492
+ "DocumentBlockTaskListItem": {
2493
+ "allOf": [
2494
+ {
2495
+ "$ref": "#/components/schemas/DocumentBlockListItem"
2496
+ },
2497
+ {
2498
+ "type": "object",
2499
+ "properties": {
2500
+ "data": {
2501
+ "type": "object",
2502
+ "properties": {
2503
+ "checked": {
2504
+ "type": "boolean"
2505
+ }
2506
+ },
2507
+ "required": [
2508
+ "checked"
2509
+ ]
2510
+ }
2511
+ },
2512
+ "required": [
2513
+ "data"
2514
+ ]
2515
+ }
2516
+ ]
2517
+ },
2518
+ "DocumentBlockImages": {
2519
+ "type": "object",
2520
+ "properties": {
2521
+ "object": {
2522
+ "type": "string",
2523
+ "enum": [
2524
+ "block"
2525
+ ]
2526
+ },
2527
+ "type": {
2528
+ "type": "string",
2529
+ "enum": [
2530
+ "images"
2531
+ ]
2532
+ },
2533
+ "key": {
2534
+ "type": "string"
2535
+ },
2536
+ "data": {
2537
+ "type": "object",
2538
+ "properties": {
2539
+ "align": {
2540
+ "type": "string",
2541
+ "enum": [
2542
+ "center",
2543
+ "left",
2544
+ "right"
2545
+ ]
2546
+ },
2547
+ "fullWidth": {
2548
+ "type": "boolean"
2549
+ }
2550
+ }
2551
+ },
2552
+ "nodes": {
2553
+ "type": "array",
2554
+ "items": {
2555
+ "$ref": "#/components/schemas/DocumentBlockImage"
2556
+ }
2557
+ },
2558
+ "isVoid": {
2559
+ "type": "boolean",
2560
+ "enum": [
2561
+ true
2562
+ ]
2563
+ }
2564
+ },
2565
+ "required": [
2566
+ "object",
2567
+ "type",
2568
+ "data",
2569
+ "nodes",
2570
+ "isVoid"
2571
+ ]
2572
+ },
2573
+ "DocumentBlockImage": {
2574
+ "type": "object",
2575
+ "properties": {
2576
+ "object": {
2577
+ "type": "string",
2578
+ "enum": [
2579
+ "block"
2580
+ ]
2581
+ },
2582
+ "type": {
2583
+ "type": "string",
2584
+ "enum": [
2585
+ "image"
2586
+ ]
2587
+ },
2588
+ "key": {
2589
+ "type": "string"
2590
+ },
2591
+ "data": {
2592
+ "type": "object",
2593
+ "properties": {
2594
+ "ref": {
2595
+ "oneOf": [
2596
+ {
2597
+ "$ref": "#/components/schemas/ContentRefURL"
2598
+ },
2599
+ {
2600
+ "$ref": "#/components/schemas/ContentRefFile"
2601
+ }
2602
+ ]
2603
+ },
2604
+ "refDark": {
2605
+ "oneOf": [
2606
+ {
2607
+ "$ref": "#/components/schemas/ContentRefURL"
2608
+ },
2609
+ {
2610
+ "$ref": "#/components/schemas/ContentRefFile"
2611
+ }
2612
+ ]
2613
+ },
2614
+ "width": {
2615
+ "oneOf": [
2616
+ {
2617
+ "type": "number"
2618
+ },
2619
+ {
2620
+ "type": "object",
2621
+ "properties": {
2622
+ "unit": {
2623
+ "type": "string"
2624
+ },
2625
+ "value": {
2626
+ "type": "number"
2627
+ }
2628
+ },
2629
+ "required": [
2630
+ "unit",
2631
+ "value"
2632
+ ]
2633
+ }
2634
+ ]
2635
+ },
2636
+ "height": {
2637
+ "$ref": "#/components/schemas/DocumentBlockImage/properties/data/properties/width"
2638
+ }
2639
+ },
2640
+ "required": [
2641
+ "ref"
2642
+ ]
2643
+ },
2644
+ "fragments": {
2645
+ "type": "array",
2646
+ "items": {
2647
+ "allOf": [
2648
+ {
2649
+ "$ref": "#/components/schemas/DocumentNodeFragment"
2650
+ },
2651
+ {
2652
+ "type": "object",
2653
+ "properties": {
2654
+ "type": {
2655
+ "type": "string",
2656
+ "enum": [
2657
+ "caption"
2658
+ ]
2659
+ },
2660
+ "nodes": {
2661
+ "type": "array",
2662
+ "items": {
2663
+ "$ref": "#/components/schemas/DocumentBlockParagraph"
2664
+ }
2665
+ }
2666
+ },
2667
+ "required": [
2668
+ "nodes",
2669
+ "type"
2670
+ ]
2671
+ }
2672
+ ]
2673
+ }
2674
+ },
2675
+ "isVoid": {
2676
+ "type": "boolean",
2677
+ "enum": [
2678
+ true
2679
+ ]
2680
+ }
2681
+ },
2682
+ "required": [
2683
+ "object",
2684
+ "type",
2685
+ "data",
2686
+ "fragments",
2687
+ "isVoid"
2688
+ ]
2689
+ },
2690
+ "DocumentBlockFile": {
2691
+ "type": "object",
2692
+ "properties": {
2693
+ "object": {
2694
+ "type": "string",
2695
+ "enum": [
2696
+ "block"
2697
+ ]
2698
+ },
2699
+ "type": {
2700
+ "type": "string",
2701
+ "enum": [
2702
+ "file"
2703
+ ]
2704
+ },
2705
+ "key": {
2706
+ "type": "string"
2707
+ },
2708
+ "data": {
2709
+ "type": "object",
2710
+ "properties": {
2711
+ "ref": {
2712
+ "oneOf": [
2713
+ {
2714
+ "$ref": "#/components/schemas/ContentRefFile"
2715
+ }
2716
+ ]
2717
+ }
2718
+ },
2719
+ "required": [
2720
+ "ref"
2721
+ ]
2722
+ },
2723
+ "isVoid": {
2724
+ "type": "boolean",
2725
+ "enum": [
2726
+ true
2727
+ ]
2728
+ }
2729
+ },
2730
+ "required": [
2731
+ "object",
2732
+ "type",
2733
+ "data",
2734
+ "isVoid"
2735
+ ]
2736
+ },
2737
+ "DocumentBlockDrawing": {
2738
+ "type": "object",
2739
+ "properties": {
2740
+ "object": {
2741
+ "type": "string",
2742
+ "enum": [
2743
+ "block"
2744
+ ]
2745
+ },
2746
+ "type": {
2747
+ "type": "string",
2748
+ "enum": [
2749
+ "drawing"
2750
+ ]
2751
+ },
2752
+ "key": {
2753
+ "type": "string"
2754
+ },
2755
+ "data": {
2756
+ "type": "object",
2757
+ "properties": {
2758
+ "ref": {
2759
+ "oneOf": [
2760
+ {
2761
+ "$ref": "#/components/schemas/ContentRefFile"
2762
+ }
2763
+ ]
2764
+ }
2765
+ }
2766
+ },
2767
+ "isVoid": {
2768
+ "type": "boolean",
2769
+ "enum": [
2770
+ true
2771
+ ]
2772
+ }
2773
+ },
2774
+ "required": [
2775
+ "object",
2776
+ "type",
2777
+ "data",
2778
+ "isVoid"
2779
+ ]
2780
+ },
2781
+ "DocumentBlockEmbed": {
2782
+ "type": "object",
2783
+ "properties": {
2784
+ "object": {
2785
+ "type": "string",
2786
+ "enum": [
2787
+ "block"
2788
+ ]
2789
+ },
2790
+ "type": {
2791
+ "type": "string",
2792
+ "enum": [
2793
+ "embed"
2794
+ ]
2795
+ },
2796
+ "key": {
2797
+ "type": "string"
2798
+ },
2799
+ "data": {
2800
+ "type": "object",
2801
+ "properties": {
2802
+ "url": {
2803
+ "type": "string"
2804
+ },
2805
+ "fullWidth": {
2806
+ "type": "boolean"
2807
+ }
2808
+ },
2809
+ "required": [
2810
+ "url"
2811
+ ]
2812
+ },
2813
+ "isVoid": {
2814
+ "type": "boolean",
2815
+ "enum": [
2816
+ true
2817
+ ]
2818
+ }
2819
+ },
2820
+ "required": [
2821
+ "object",
2822
+ "type",
2823
+ "data",
2824
+ "isVoid"
2825
+ ]
2826
+ },
2827
+ "DocumentBlockCode": {
2828
+ "type": "object",
2829
+ "properties": {
2830
+ "object": {
2831
+ "type": "string",
2832
+ "enum": [
2833
+ "block"
2834
+ ]
2835
+ },
2836
+ "type": {
2837
+ "type": "string",
2838
+ "enum": [
2839
+ "code"
2840
+ ]
2841
+ },
2842
+ "key": {
2843
+ "type": "string"
2844
+ },
2845
+ "data": {
2846
+ "type": "object",
2847
+ "properties": {
2848
+ "syntax": {
2849
+ "type": "string"
2850
+ },
2851
+ "title": {
2852
+ "type": "string"
2853
+ },
2854
+ "overflow": {
2855
+ "type": "string",
2856
+ "default": "scroll",
2857
+ "enum": [
2858
+ "scroll",
2859
+ "wrap"
2860
+ ]
2861
+ },
2862
+ "lineNumbers": {
2863
+ "type": "boolean"
2864
+ },
2865
+ "fullWidth": {
2866
+ "type": "boolean"
2867
+ }
2868
+ }
2869
+ },
2870
+ "nodes": {
2871
+ "type": "array",
2872
+ "items": {
2873
+ "$ref": "#/components/schemas/DocumentBlockCodeLine"
2874
+ }
2875
+ },
2876
+ "isVoid": {
2877
+ "type": "boolean",
2878
+ "enum": [
2879
+ false
2880
+ ]
2881
+ }
2882
+ },
2883
+ "required": [
2884
+ "object",
2885
+ "type",
2886
+ "data",
2887
+ "nodes"
2888
+ ]
2889
+ },
2890
+ "DocumentBlockCodeLine": {
2891
+ "type": "object",
2892
+ "properties": {
2893
+ "object": {
2894
+ "type": "string",
2895
+ "enum": [
2896
+ "block"
2897
+ ]
2898
+ },
2899
+ "type": {
2900
+ "type": "string",
2901
+ "enum": [
2902
+ "code-line"
2903
+ ]
2904
+ },
2905
+ "key": {
2906
+ "type": "string"
2907
+ },
2908
+ "nodes": {
2909
+ "type": "array",
2910
+ "items": {
2911
+ "oneOf": [
2912
+ {
2913
+ "$ref": "#/components/schemas/DocumentNodeText"
2914
+ },
2915
+ {
2916
+ "$ref": "#/components/schemas/DocumentInlineAnnotation"
2917
+ }
2918
+ ]
2919
+ }
2920
+ },
2921
+ "data": {
2922
+ "type": "object",
2923
+ "properties": {
2924
+ "highlighted": {
2925
+ "type": "boolean"
2926
+ }
2927
+ }
2928
+ },
2929
+ "isVoid": {
2930
+ "type": "boolean",
2931
+ "enum": [
2932
+ false
2933
+ ]
2934
+ }
2935
+ },
2936
+ "required": [
2937
+ "object",
2938
+ "type",
2939
+ "nodes",
2940
+ "data"
2941
+ ]
2942
+ },
2943
+ "DocumentBlockMath": {
2944
+ "type": "object",
2945
+ "properties": {
2946
+ "object": {
2947
+ "type": "string",
2948
+ "enum": [
2949
+ "block"
2950
+ ]
2951
+ },
2952
+ "type": {
2953
+ "type": "string",
2954
+ "enum": [
2955
+ "math"
2956
+ ]
2957
+ },
2958
+ "key": {
2959
+ "type": "string"
2960
+ },
2961
+ "data": {
2962
+ "type": "object",
2963
+ "properties": {
2964
+ "formula": {
2965
+ "type": "string"
2966
+ }
2967
+ },
2968
+ "required": [
2969
+ "formula"
2970
+ ]
2971
+ },
2972
+ "isVoid": {
2973
+ "type": "boolean",
2974
+ "enum": [
2975
+ true
2976
+ ]
2977
+ }
2978
+ },
2979
+ "required": [
2980
+ "object",
2981
+ "type",
2982
+ "data",
2983
+ "isVoid"
2984
+ ]
2985
+ },
2986
+ "DocumentBlockExpandable": {
2987
+ "type": "object",
2988
+ "properties": {
2989
+ "object": {
2990
+ "type": "string",
2991
+ "enum": [
2992
+ "block"
2993
+ ]
2994
+ },
2995
+ "type": {
2996
+ "type": "string",
2997
+ "enum": [
2998
+ "expandable"
2999
+ ]
3000
+ },
3001
+ "key": {
3002
+ "type": "string"
3003
+ },
3004
+ "isVoid": {
3005
+ "type": "boolean",
3006
+ "enum": [
3007
+ true
3008
+ ]
3009
+ },
3010
+ "data": {
3011
+ "type": "object",
3012
+ "properties": {},
3013
+ "additionalProperties": false
3014
+ },
3015
+ "fragments": {
3016
+ "type": "array",
3017
+ "items": {
3018
+ "oneOf": [
3019
+ {
3020
+ "allOf": [
3021
+ {
3022
+ "$ref": "#/components/schemas/DocumentNodeFragment"
3023
+ },
3024
+ {
3025
+ "type": "object",
3026
+ "properties": {
3027
+ "fragment": {
3028
+ "type": "string",
3029
+ "enum": [
3030
+ "expandable-title"
3031
+ ]
3032
+ },
3033
+ "type": {
3034
+ "type": "string",
3035
+ "enum": [
3036
+ "expandable-title"
3037
+ ]
3038
+ },
3039
+ "nodes": {
3040
+ "type": "array",
3041
+ "items": {
3042
+ "$ref": "#/components/schemas/DocumentBlockParagraph"
3043
+ },
3044
+ "minItems": 1,
3045
+ "maxItems": 1
3046
+ }
3047
+ },
3048
+ "required": [
3049
+ "nodes",
3050
+ "fragment",
3051
+ "type"
3052
+ ]
3053
+ }
3054
+ ]
3055
+ },
3056
+ {
3057
+ "allOf": [
3058
+ {
3059
+ "$ref": "#/components/schemas/DocumentNodeFragment"
3060
+ },
3061
+ {
3062
+ "type": "object",
3063
+ "properties": {
3064
+ "fragment": {
3065
+ "type": "string",
3066
+ "enum": [
3067
+ "expandable-body"
3068
+ ]
3069
+ },
3070
+ "type": {
3071
+ "type": "string",
3072
+ "enum": [
3073
+ "expandable-body"
3074
+ ]
3075
+ },
3076
+ "nodes": {
3077
+ "type": "array",
3078
+ "items": {
3079
+ "oneOf": [
3080
+ {
3081
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
3082
+ },
3083
+ {
3084
+ "$ref": "#/components/schemas/DocumentBlockCode"
3085
+ }
3086
+ ]
3087
+ },
3088
+ "minItems": 1
3089
+ }
3090
+ },
3091
+ "required": [
3092
+ "nodes",
3093
+ "fragment",
3094
+ "type"
3095
+ ]
3096
+ }
3097
+ ]
3098
+ }
3099
+ ]
3100
+ }
3101
+ },
3102
+ "meta": {
3103
+ "type": "object",
3104
+ "properties": {
3105
+ "id": {
3106
+ "description": "Unique ID to be used in an URL for the block.",
3107
+ "type": "string"
3108
+ }
3109
+ },
3110
+ "required": [
3111
+ "id"
3112
+ ]
3113
+ }
3114
+ },
3115
+ "required": [
3116
+ "object",
3117
+ "type",
3118
+ "isVoid",
3119
+ "fragments",
3120
+ "data"
3121
+ ]
3122
+ },
3123
+ "DocumentBlockTabs": {
3124
+ "type": "object",
3125
+ "properties": {
3126
+ "object": {
3127
+ "type": "string",
3128
+ "enum": [
3129
+ "block"
3130
+ ]
3131
+ },
3132
+ "type": {
3133
+ "type": "string",
3134
+ "enum": [
3135
+ "tabs"
3136
+ ]
3137
+ },
3138
+ "key": {
3139
+ "type": "string"
3140
+ },
3141
+ "nodes": {
3142
+ "type": "array",
3143
+ "items": {
3144
+ "$ref": "#/components/schemas/DocumentBlockTabsItem"
3145
+ }
3146
+ },
3147
+ "isVoid": {
3148
+ "type": "boolean",
3149
+ "enum": [
3150
+ false
3151
+ ]
3152
+ },
3153
+ "data": {
3154
+ "type": "object",
3155
+ "properties": {},
3156
+ "additionalProperties": false
3157
+ }
3158
+ },
3159
+ "required": [
3160
+ "object",
3161
+ "type",
3162
+ "nodes"
3163
+ ]
3164
+ },
3165
+ "DocumentBlockSwagger": {
3166
+ "type": "object",
3167
+ "properties": {
3168
+ "object": {
3169
+ "type": "string",
3170
+ "enum": [
3171
+ "block"
3172
+ ]
3173
+ },
3174
+ "type": {
3175
+ "type": "string",
3176
+ "enum": [
3177
+ "swagger"
3178
+ ]
3179
+ },
3180
+ "key": {
3181
+ "type": "string"
3182
+ },
3183
+ "data": {
3184
+ "type": "object",
3185
+ "properties": {
3186
+ "ref": {
3187
+ "oneOf": [
3188
+ {
3189
+ "$ref": "#/components/schemas/ContentRefFile"
3190
+ }
3191
+ ]
3192
+ },
3193
+ "path": {
3194
+ "type": "string",
3195
+ "description": "Path of the operation in the OpenAPI spec."
3196
+ },
3197
+ "method": {
3198
+ "type": "string",
3199
+ "description": "HTTP method of the operation in the OpenAPI spec."
3200
+ },
3201
+ "expanded": {
3202
+ "type": "boolean",
3203
+ "description": "If true, the block is opened by default."
3204
+ },
3205
+ "fullWidth": {
3206
+ "type": "boolean"
3207
+ }
3208
+ },
3209
+ "required": [
3210
+ "ref"
3211
+ ]
3212
+ },
3213
+ "isVoid": {
3214
+ "type": "boolean",
3215
+ "enum": [
3216
+ true
3217
+ ]
3218
+ },
3219
+ "meta": {
3220
+ "type": "object",
3221
+ "properties": {
3222
+ "id": {
3223
+ "description": "Unique ID to be used in an URL for the block.",
3224
+ "type": "string"
3225
+ }
3226
+ },
3227
+ "required": [
3228
+ "id"
3229
+ ]
3230
+ }
3231
+ },
3232
+ "required": [
3233
+ "object",
3234
+ "type",
3235
+ "data",
3236
+ "isVoid"
3237
+ ]
3238
+ },
3239
+ "DocumentBlockTable": {
3240
+ "type": "object",
3241
+ "properties": {
3242
+ "object": {
3243
+ "type": "string",
3244
+ "enum": [
3245
+ "block"
3246
+ ]
3247
+ },
3248
+ "type": {
3249
+ "type": "string",
3250
+ "enum": [
3251
+ "table"
3252
+ ]
3253
+ },
3254
+ "key": {
3255
+ "type": "string"
3256
+ },
3257
+ "isVoid": {
3258
+ "type": "boolean",
3259
+ "enum": [
3260
+ true
3261
+ ]
3262
+ },
3263
+ "data": {
3264
+ "type": "object",
3265
+ "properties": {
3266
+ "view": {
3267
+ "oneOf": [
3268
+ {
3269
+ "$ref": "#/components/schemas/DocumentTableViewGrid"
3270
+ },
3271
+ {
3272
+ "$ref": "#/components/schemas/DocumentTableViewCards"
3273
+ }
3274
+ ]
3275
+ },
3276
+ "records": {
3277
+ "type": "object",
3278
+ "additionalProperties": {
3279
+ "$ref": "#/components/schemas/DocumentTableRecord"
3280
+ }
3281
+ },
3282
+ "definition": {
3283
+ "type": "object",
3284
+ "additionalProperties": {
3285
+ "$ref": "#/components/schemas/DocumentTableDefinition"
3286
+ }
3287
+ },
3288
+ "fullWidth": {
3289
+ "type": "boolean",
3290
+ "description": "Whether to render the block as a full width one"
3291
+ }
3292
+ },
3293
+ "required": [
3294
+ "view",
3295
+ "records",
3296
+ "definition"
3297
+ ]
3298
+ },
3299
+ "fragments": {
3300
+ "type": "array",
3301
+ "items": {
3302
+ "$ref": "#/components/schemas/DocumentNodeFragment"
3303
+ }
3304
+ }
3305
+ },
3306
+ "required": [
3307
+ "object",
3308
+ "type",
3309
+ "data",
3310
+ "isVoid",
3311
+ "fragments"
3312
+ ]
3313
+ },
3314
+ "DocumentTableRecord": {
3315
+ "type": "object",
3316
+ "properties": {
3317
+ "orderIndex": {
3318
+ "type": "string"
3319
+ },
3320
+ "values": {
3321
+ "type": "object",
3322
+ "additionalProperties": {
3323
+ "oneOf": [
3324
+ {
3325
+ "type": "number"
3326
+ },
3327
+ {
3328
+ "type": "string"
3329
+ },
3330
+ {
3331
+ "type": "boolean"
3332
+ },
3333
+ {
3334
+ "type": "array",
3335
+ "items": {
3336
+ "type": "string"
3337
+ }
3338
+ },
3339
+ {
3340
+ "$ref": "#/components/schemas/ContentRef"
3341
+ }
3342
+ ]
3343
+ }
3344
+ }
3345
+ },
3346
+ "required": [
3347
+ "orderIndex",
3348
+ "values"
3349
+ ]
3350
+ },
3351
+ "DocumentTableDefinitionBase": {
3352
+ "type": "object",
3353
+ "properties": {
3354
+ "id": {
3355
+ "type": "string"
3356
+ },
3357
+ "title": {
3358
+ "type": "string",
3359
+ "description": "Title for the column"
3360
+ }
3361
+ },
3362
+ "required": [
3363
+ "id",
3364
+ "title"
3365
+ ]
3366
+ },
3367
+ "DocumentTableDefinition": {
3368
+ "oneOf": [
3369
+ {
3370
+ "$ref": "#/components/schemas/DocumentTableDefinitionText"
3371
+ },
3372
+ {
3373
+ "$ref": "#/components/schemas/DocumentTableDefinitionNumber"
3374
+ },
3375
+ {
3376
+ "$ref": "#/components/schemas/DocumentTableDefinitionCheckbox"
3377
+ },
3378
+ {
3379
+ "$ref": "#/components/schemas/DocumentTableDefinitionFiles"
3380
+ },
3381
+ {
3382
+ "$ref": "#/components/schemas/DocumentTableDefinitionUsers"
3383
+ },
3384
+ {
3385
+ "$ref": "#/components/schemas/DocumentTableDefinitionRating"
3386
+ },
3387
+ {
3388
+ "$ref": "#/components/schemas/DocumentTableDefinitionSelect"
3389
+ },
3390
+ {
3391
+ "$ref": "#/components/schemas/DocumentTableDefinitionContentRef"
3392
+ }
3393
+ ]
3394
+ },
3395
+ "DocumentTableDefinitionText": {
3396
+ "allOf": [
3397
+ {
3398
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3399
+ },
3400
+ {
3401
+ "type": "object",
3402
+ "properties": {
3403
+ "type": {
3404
+ "type": "string",
3405
+ "enum": [
3406
+ "text"
3407
+ ]
3408
+ },
3409
+ "textAlignment": {
3410
+ "type": "string",
3411
+ "enum": [
3412
+ "center",
3413
+ "right",
3414
+ "left"
3415
+ ]
3416
+ }
3417
+ },
3418
+ "required": [
3419
+ "type",
3420
+ "textAlignment"
3421
+ ]
3422
+ }
3423
+ ]
3424
+ },
3425
+ "DocumentTableDefinitionNumber": {
3426
+ "allOf": [
3427
+ {
3428
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3429
+ },
3430
+ {
3431
+ "type": "object",
3432
+ "properties": {
3433
+ "type": {
3434
+ "type": "string",
3435
+ "enum": [
3436
+ "number"
3437
+ ]
3438
+ }
3439
+ },
3440
+ "required": [
3441
+ "type"
3442
+ ]
3443
+ }
3444
+ ]
3445
+ },
3446
+ "DocumentTableDefinitionCheckbox": {
3447
+ "allOf": [
3448
+ {
3449
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3450
+ },
3451
+ {
3452
+ "type": "object",
3453
+ "properties": {
3454
+ "type": {
3455
+ "type": "string",
3456
+ "enum": [
3457
+ "checkbox"
3458
+ ]
3459
+ }
3460
+ },
3461
+ "required": [
3462
+ "type"
3463
+ ]
3464
+ }
3465
+ ]
3466
+ },
3467
+ "DocumentTableDefinitionFiles": {
3468
+ "allOf": [
3469
+ {
3470
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3471
+ },
3472
+ {
3473
+ "type": "object",
3474
+ "properties": {
3475
+ "type": {
3476
+ "type": "string",
3477
+ "enum": [
3478
+ "files"
3479
+ ]
3480
+ }
3481
+ },
3482
+ "required": [
3483
+ "type"
3484
+ ]
3485
+ }
3486
+ ]
3487
+ },
3488
+ "DocumentTableDefinitionUsers": {
3489
+ "allOf": [
3490
+ {
3491
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3492
+ },
3493
+ {
3494
+ "type": "object",
3495
+ "properties": {
3496
+ "type": {
3497
+ "type": "string",
3498
+ "enum": [
3499
+ "users"
3500
+ ]
3501
+ },
3502
+ "multiple": {
3503
+ "type": "boolean"
3504
+ }
3505
+ },
3506
+ "required": [
3507
+ "type",
3508
+ "multiple"
3509
+ ]
3510
+ }
3511
+ ]
3512
+ },
3513
+ "DocumentTableDefinitionRating": {
3514
+ "allOf": [
3515
+ {
3516
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3517
+ },
3518
+ {
3519
+ "type": "object",
3520
+ "properties": {
3521
+ "type": {
3522
+ "type": "string",
3523
+ "enum": [
3524
+ "rating"
3525
+ ]
3526
+ },
3527
+ "max": {
3528
+ "type": "number"
3529
+ }
3530
+ },
3531
+ "required": [
3532
+ "type",
3533
+ "max"
3534
+ ]
3535
+ }
3536
+ ]
3537
+ },
3538
+ "DocumentTableDefinitionSelect": {
3539
+ "allOf": [
3540
+ {
3541
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3542
+ },
3543
+ {
3544
+ "type": "object",
3545
+ "properties": {
3546
+ "type": {
3547
+ "type": "string",
3548
+ "enum": [
3549
+ "select"
3550
+ ]
3551
+ },
3552
+ "multiple": {
3553
+ "type": "boolean"
3554
+ },
3555
+ "options": {
3556
+ "type": "array",
3557
+ "items": {
3558
+ "$ref": "#/components/schemas/DocumentTableSelectOption"
3559
+ }
3560
+ }
3561
+ },
3562
+ "required": [
3563
+ "type",
3564
+ "multiple",
3565
+ "options"
3566
+ ]
3567
+ }
3568
+ ]
3569
+ },
3570
+ "DocumentTableDefinitionContentRef": {
3571
+ "allOf": [
3572
+ {
3573
+ "$ref": "#/components/schemas/DocumentTableDefinitionBase"
3574
+ },
3575
+ {
3576
+ "type": "object",
3577
+ "properties": {
3578
+ "type": {
3579
+ "type": "string",
3580
+ "enum": [
3581
+ "content-ref"
3582
+ ]
3583
+ }
3584
+ },
3585
+ "required": [
3586
+ "type"
3587
+ ]
3588
+ }
3589
+ ]
3590
+ },
3591
+ "DocumentTableSelectOption": {
3592
+ "type": "object",
3593
+ "properties": {
3594
+ "value": {
3595
+ "type": "string"
3596
+ },
3597
+ "label": {
3598
+ "type": "string"
3599
+ },
3600
+ "color": {
3601
+ "type": "string"
3602
+ }
3603
+ },
3604
+ "required": [
3605
+ "value",
3606
+ "label",
3607
+ "color"
3608
+ ]
3609
+ },
3610
+ "DocumentTableViewCards": {
3611
+ "type": "object",
3612
+ "properties": {
3613
+ "type": {
3614
+ "type": "string",
3615
+ "enum": [
3616
+ "cards"
3617
+ ]
3618
+ },
3619
+ "cardSize": {
3620
+ "type": "string",
3621
+ "description": "Size of the cards. It indicates how many columns will be used",
3622
+ "enum": [
3623
+ "medium",
3624
+ "large"
3625
+ ]
3626
+ },
3627
+ "columns": {
3628
+ "type": "array",
3629
+ "description": "Ordered list of the definition IDs to display",
3630
+ "items": {
3631
+ "type": "string"
3632
+ }
3633
+ },
3634
+ "targetDefinition": {
3635
+ "type": "string",
3636
+ "description": "Definition ID to use as a target link for the card"
3637
+ },
3638
+ "coverDefinition": {
3639
+ "type": "string",
3640
+ "description": "Definition ID to use as a cover image"
3641
+ },
3642
+ "hideColumnTitle": {
3643
+ "type": "boolean",
3644
+ "description": "Should we display the column title or not"
3645
+ }
3646
+ },
3647
+ "required": [
3648
+ "type",
3649
+ "columns",
3650
+ "cardSize"
3651
+ ]
3652
+ },
3653
+ "DocumentTableViewGrid": {
3654
+ "type": "object",
3655
+ "properties": {
3656
+ "type": {
3657
+ "type": "string",
3658
+ "enum": [
3659
+ "grid"
3660
+ ]
3661
+ },
3662
+ "columns": {
3663
+ "type": "array",
3664
+ "description": "Ordered list of the definition IDs to display",
3665
+ "items": {
3666
+ "type": "string"
3667
+ }
3668
+ },
3669
+ "columnWidths": {
3670
+ "type": "object",
3671
+ "description": "Percent width of each column",
3672
+ "additionalProperties": {
3673
+ "type": "number"
3674
+ }
3675
+ },
3676
+ "hideHeader": {
3677
+ "type": "boolean",
3678
+ "description": "Should we display the header with column titles"
3679
+ },
3680
+ "useNewSizing": {
3681
+ "type": "boolean",
3682
+ "description": "Tables in GitBook originally used a scaled width approach i.e. the width defined\nin columnWidths would be scaled to ensure a 100% width table.\n\nWe later changed this to treat the widths in columnWidths as exact values - they are\nnever scaled. A columnWidth of 50 is rendered as 50px.\n\nIn order to maintain backwards compatibility, we track whether or not we\nuse the new system here.\n\nAll new tables should have this value set to true, older tables will have it set\nto undefined.\n"
3683
+ }
3684
+ },
3685
+ "required": [
3686
+ "type",
3687
+ "columns",
3688
+ "hideHeader"
3689
+ ]
3690
+ },
3691
+ "DocumentBlockTabsItem": {
3692
+ "type": "object",
3693
+ "properties": {
3694
+ "object": {
3695
+ "type": "string",
3696
+ "enum": [
3697
+ "block"
3698
+ ]
3699
+ },
3700
+ "type": {
3701
+ "type": "string",
3702
+ "enum": [
3703
+ "tabs-item"
3704
+ ]
3705
+ },
3706
+ "key": {
3707
+ "type": "string"
3708
+ },
3709
+ "nodes": {
3710
+ "type": "array",
3711
+ "items": {
3712
+ "oneOf": [
3713
+ {
3714
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
3715
+ },
3716
+ {
3717
+ "$ref": "#/components/schemas/DocumentBlockContentRef"
3718
+ },
3719
+ {
3720
+ "$ref": "#/components/schemas/DocumentBlockCode"
3721
+ },
3722
+ {
3723
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
3724
+ },
3725
+ {
3726
+ "$ref": "#/components/schemas/DocumentBlockFile"
3727
+ },
3728
+ {
3729
+ "$ref": "#/components/schemas/DocumentBlockImages"
3730
+ },
3731
+ {
3732
+ "$ref": "#/components/schemas/DocumentBlockDrawing"
3733
+ },
3734
+ {
3735
+ "$ref": "#/components/schemas/DocumentBlockHint"
3736
+ },
3737
+ {
3738
+ "$ref": "#/components/schemas/DocumentBlockQuote"
3739
+ },
3740
+ {
3741
+ "$ref": "#/components/schemas/DocumentBlockMath"
3742
+ },
3743
+ {
3744
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
3745
+ }
3746
+ ]
3747
+ }
3748
+ },
3749
+ "data": {
3750
+ "type": "object",
3751
+ "properties": {
3752
+ "title": {
3753
+ "type": "string"
3754
+ }
3755
+ }
3756
+ },
3757
+ "meta": {
3758
+ "type": "object",
3759
+ "properties": {
3760
+ "id": {
3761
+ "description": "Unique ID to be used in an URL for the block.",
3762
+ "type": "string"
3763
+ }
3764
+ },
3765
+ "required": [
3766
+ "id"
3767
+ ]
3768
+ },
3769
+ "isVoid": {
3770
+ "type": "boolean",
3771
+ "enum": [
3772
+ false
3773
+ ]
3774
+ }
3775
+ },
3776
+ "required": [
3777
+ "object",
3778
+ "type",
3779
+ "nodes",
3780
+ "data"
3781
+ ]
3782
+ },
3783
+ "DocumentBlockContentRef": {
3784
+ "type": "object",
3785
+ "properties": {
3786
+ "object": {
3787
+ "type": "string",
3788
+ "enum": [
3789
+ "block"
3790
+ ]
3791
+ },
3792
+ "type": {
3793
+ "type": "string",
3794
+ "enum": [
3795
+ "content-ref"
3796
+ ]
3797
+ },
3798
+ "key": {
3799
+ "type": "string"
3800
+ },
3801
+ "data": {
3802
+ "type": "object",
3803
+ "properties": {
3804
+ "ref": {
3805
+ "$ref": "#/components/schemas/ContentRef"
3806
+ }
3807
+ },
3808
+ "required": [
3809
+ "ref"
3810
+ ]
3811
+ },
3812
+ "isVoid": {
3813
+ "type": "boolean",
3814
+ "enum": [
3815
+ true
3816
+ ]
3817
+ }
3818
+ },
3819
+ "required": [
3820
+ "object",
3821
+ "type",
3822
+ "data",
3823
+ "isVoid"
3824
+ ]
3825
+ },
3826
+ "DocumentBlockIntegration": {
3827
+ "type": "object",
3828
+ "properties": {
3829
+ "object": {
3830
+ "type": "string",
3831
+ "enum": [
3832
+ "block"
3833
+ ]
3834
+ },
1527
3835
  "type": {
1528
- "$ref": "#/components/schemas/SpaceRelationType"
3836
+ "type": "string",
3837
+ "enum": [
3838
+ "integration"
3839
+ ]
1529
3840
  },
1530
- "target": {
1531
- "description": "Other space in the relation. If undefined, the current user doesn't have access to it.",
1532
- "oneOf": [
1533
- {
1534
- "$ref": "#/components/schemas/Space"
3841
+ "key": {
3842
+ "type": "string"
3843
+ },
3844
+ "data": {
3845
+ "type": "object",
3846
+ "properties": {
3847
+ "integration": {
3848
+ "type": "string",
3849
+ "description": "Name of the integration"
1535
3850
  },
1536
- {
1537
- "$ref": "#/components/schemas/SpaceRelationEdge"
3851
+ "block": {
3852
+ "type": "string",
3853
+ "description": "ID of the block in the integration"
3854
+ },
3855
+ "props": {
3856
+ "type": "object",
3857
+ "description": "Properties passed to the block during rendering",
3858
+ "additionalProperties": {
3859
+ "description": "Any value"
3860
+ }
3861
+ },
3862
+ "action": {
3863
+ "$ref": "#/components/schemas/ContentKitAction"
3864
+ },
3865
+ "url": {
3866
+ "type": "string",
3867
+ "description": "URL associated with the content represented by the block.\nThis property is set when creating a block from a URL (unfurl) to ensure\nwe can convert the block back to an embed.\n"
3868
+ },
3869
+ "fullWidth": {
3870
+ "type": "boolean"
1538
3871
  }
3872
+ },
3873
+ "required": [
3874
+ "integration",
3875
+ "block",
3876
+ "props"
3877
+ ]
3878
+ },
3879
+ "isVoid": {
3880
+ "type": "boolean",
3881
+ "enum": [
3882
+ true
3883
+ ]
3884
+ }
3885
+ },
3886
+ "required": [
3887
+ "object",
3888
+ "type",
3889
+ "data",
3890
+ "isVoid"
3891
+ ]
3892
+ },
3893
+ "DocumentBlockDivider": {
3894
+ "type": "object",
3895
+ "properties": {
3896
+ "object": {
3897
+ "type": "string",
3898
+ "enum": [
3899
+ "block"
3900
+ ]
3901
+ },
3902
+ "type": {
3903
+ "type": "string",
3904
+ "enum": [
3905
+ "divider"
3906
+ ]
3907
+ },
3908
+ "key": {
3909
+ "type": "string"
3910
+ },
3911
+ "isVoid": {
3912
+ "type": "boolean",
3913
+ "enum": [
3914
+ true
3915
+ ]
3916
+ },
3917
+ "data": {
3918
+ "type": "object",
3919
+ "properties": {},
3920
+ "additionalProperties": false
3921
+ }
3922
+ },
3923
+ "required": [
3924
+ "object",
3925
+ "type",
3926
+ "isVoid",
3927
+ "data"
3928
+ ]
3929
+ },
3930
+ "ContentRef": {
3931
+ "oneOf": [
3932
+ {
3933
+ "$ref": "#/components/schemas/ContentRefFile"
3934
+ },
3935
+ {
3936
+ "$ref": "#/components/schemas/ContentRefURL"
3937
+ },
3938
+ {
3939
+ "$ref": "#/components/schemas/ContentRefPage"
3940
+ },
3941
+ {
3942
+ "$ref": "#/components/schemas/ContentRefAnchor"
3943
+ },
3944
+ {
3945
+ "$ref": "#/components/schemas/ContentRefUser"
3946
+ },
3947
+ {
3948
+ "$ref": "#/components/schemas/ContentRefCollection"
3949
+ },
3950
+ {
3951
+ "$ref": "#/components/schemas/ContentRefSpace"
3952
+ }
3953
+ ]
3954
+ },
3955
+ "ContentRefURL": {
3956
+ "type": "object",
3957
+ "properties": {
3958
+ "kind": {
3959
+ "type": "string",
3960
+ "enum": [
3961
+ "url"
3962
+ ]
3963
+ },
3964
+ "url": {
3965
+ "type": "string"
3966
+ }
3967
+ },
3968
+ "required": [
3969
+ "kind",
3970
+ "url"
3971
+ ]
3972
+ },
3973
+ "ContentRefFile": {
3974
+ "type": "object",
3975
+ "properties": {
3976
+ "kind": {
3977
+ "type": "string",
3978
+ "enum": [
3979
+ "file"
3980
+ ]
3981
+ },
3982
+ "file": {
3983
+ "type": "string"
3984
+ }
3985
+ },
3986
+ "required": [
3987
+ "kind",
3988
+ "file"
3989
+ ]
3990
+ },
3991
+ "ContentRefPage": {
3992
+ "type": "object",
3993
+ "properties": {
3994
+ "kind": {
3995
+ "type": "string",
3996
+ "enum": [
3997
+ "page"
3998
+ ]
3999
+ },
4000
+ "page": {
4001
+ "type": "string"
4002
+ },
4003
+ "space": {
4004
+ "type": "string"
4005
+ }
4006
+ },
4007
+ "required": [
4008
+ "kind",
4009
+ "page",
4010
+ "space"
4011
+ ]
4012
+ },
4013
+ "ContentRefAnchor": {
4014
+ "type": "object",
4015
+ "properties": {
4016
+ "kind": {
4017
+ "type": "string",
4018
+ "enum": [
4019
+ "anchor"
4020
+ ]
4021
+ },
4022
+ "anchor": {
4023
+ "type": "string"
4024
+ },
4025
+ "space": {
4026
+ "type": "string"
4027
+ },
4028
+ "page": {
4029
+ "type": "string"
4030
+ }
4031
+ },
4032
+ "required": [
4033
+ "kind",
4034
+ "anchor"
4035
+ ]
4036
+ },
4037
+ "ContentRefUser": {
4038
+ "type": "object",
4039
+ "properties": {
4040
+ "kind": {
4041
+ "type": "string",
4042
+ "enum": [
4043
+ "user"
4044
+ ]
4045
+ },
4046
+ "user": {
4047
+ "type": "string"
4048
+ }
4049
+ },
4050
+ "required": [
4051
+ "kind",
4052
+ "user"
4053
+ ]
4054
+ },
4055
+ "ContentRefCollection": {
4056
+ "type": "object",
4057
+ "properties": {
4058
+ "kind": {
4059
+ "type": "string",
4060
+ "enum": [
4061
+ "collection"
4062
+ ]
4063
+ },
4064
+ "collection": {
4065
+ "type": "string"
4066
+ }
4067
+ },
4068
+ "required": [
4069
+ "kind",
4070
+ "collection"
4071
+ ]
4072
+ },
4073
+ "ContentRefSpace": {
4074
+ "type": "object",
4075
+ "properties": {
4076
+ "kind": {
4077
+ "type": "string",
4078
+ "enum": [
4079
+ "space"
4080
+ ]
4081
+ },
4082
+ "space": {
4083
+ "type": "string"
4084
+ }
4085
+ },
4086
+ "required": [
4087
+ "kind",
4088
+ "space"
4089
+ ]
4090
+ },
4091
+ "Space": {
4092
+ "type": "object",
4093
+ "properties": {
4094
+ "object": {
4095
+ "type": "string",
4096
+ "description": "Type of Object, always equals to \"space\"",
4097
+ "enum": [
4098
+ "space"
1539
4099
  ]
1540
4100
  },
4101
+ "id": {
4102
+ "type": "string",
4103
+ "description": "Unique identifier for the space"
4104
+ },
4105
+ "title": {
4106
+ "type": "string",
4107
+ "description": "Title of the space",
4108
+ "minLength": 0,
4109
+ "maxLength": 100
4110
+ },
4111
+ "visibility": {
4112
+ "$ref": "#/components/schemas/ContentVisibility"
4113
+ },
1541
4114
  "createdAt": {
1542
4115
  "$ref": "#/components/schemas/Date"
1543
4116
  },
4117
+ "updatedAt": {
4118
+ "$ref": "#/components/schemas/Date"
4119
+ },
4120
+ "deletedAt": {
4121
+ "$ref": "#/components/schemas/Date"
4122
+ },
1544
4123
  "urls": {
1545
4124
  "type": "object",
1546
4125
  "description": "URLs associated with the object",
1547
4126
  "properties": {
1548
4127
  "location": {
1549
4128
  "type": "string",
1550
- "description": "URL of the space relation in the API",
4129
+ "description": "URL of the space in the API",
4130
+ "format": "uri"
4131
+ },
4132
+ "app": {
4133
+ "type": "string",
4134
+ "description": "URL of the space in the application",
4135
+ "format": "uri"
4136
+ },
4137
+ "published": {
4138
+ "type": "string",
4139
+ "description": "URL of the published version of the space. Only defined when visibility is not \"private.\"",
4140
+ "format": "uri"
4141
+ },
4142
+ "public": {
4143
+ "type": "string",
4144
+ "description": "URL of the public version of the space. Only defined when visibility is \"public\".",
1551
4145
  "format": "uri"
1552
4146
  }
1553
4147
  },
1554
4148
  "required": [
4149
+ "app",
1555
4150
  "location"
1556
4151
  ]
4152
+ },
4153
+ "organization": {
4154
+ "type": "string",
4155
+ "description": "ID of the organization owning this space"
4156
+ },
4157
+ "parent": {
4158
+ "type": "string",
4159
+ "description": "ID of the parent collection."
1557
4160
  }
1558
4161
  },
1559
4162
  "required": [
4163
+ "object",
1560
4164
  "id",
1561
4165
  "type",
4166
+ "title",
4167
+ "organization",
4168
+ "visibility",
1562
4169
  "createdAt",
1563
- "urls",
1564
- "target"
1565
- ]
1566
- },
1567
- "SpaceRelationPair": {
1568
- "allOf": [
1569
- {
1570
- "$ref": "#/components/schemas/SpaceRelation"
1571
- },
1572
- {
1573
- "type": "object",
1574
- "description": "Relation between an origin space and another space",
1575
- "properties": {
1576
- "target": {
1577
- "$ref": "#/components/schemas/SpaceRelationEdge"
1578
- },
1579
- "source": {
1580
- "$ref": "#/components/schemas/SpaceRelationEdge"
1581
- }
1582
- },
1583
- "required": [
1584
- "target",
1585
- "source"
1586
- ]
1587
- }
4170
+ "updatedAt",
4171
+ "urls"
1588
4172
  ]
1589
4173
  },
1590
4174
  "RevisionBase": {
@@ -1621,31 +4205,8 @@
1621
4205
  }
1622
4206
  },
1623
4207
  "git": {
1624
- "type": "object",
1625
4208
  "description": "Metadata about a potential associated git commit.",
1626
- "required": [
1627
- "oid",
1628
- "message",
1629
- "createdByGitBook"
1630
- ],
1631
- "properties": {
1632
- "oid": {
1633
- "type": "string",
1634
- "description": "SHA of the Git commit."
1635
- },
1636
- "message": {
1637
- "type": "string",
1638
- "description": "Git commit message."
1639
- },
1640
- "createdByGitBook": {
1641
- "type": "boolean",
1642
- "description": "Whether not this commit was created by GitBook, while exporting the revision."
1643
- },
1644
- "url": {
1645
- "type": "string",
1646
- "description": "URL of the Git commit."
1647
- }
1648
- }
4209
+ "$ref": "#/components/schemas/GitSyncCommit"
1649
4210
  },
1650
4211
  "urls": {
1651
4212
  "type": "object",
@@ -1818,6 +4379,14 @@
1818
4379
  "description": "Title of the page",
1819
4380
  "type": "string",
1820
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"
1821
4390
  }
1822
4391
  },
1823
4392
  "required": [
@@ -1872,6 +4441,9 @@
1872
4441
  }
1873
4442
  ]
1874
4443
  }
4444
+ },
4445
+ "git": {
4446
+ "$ref": "#/components/schemas/GitSyncBlob"
1875
4447
  }
1876
4448
  },
1877
4449
  "required": [
@@ -1983,13 +4555,36 @@
1983
4555
  },
1984
4556
  "downloadURL": {
1985
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"
1986
4580
  }
1987
4581
  },
1988
4582
  "required": [
1989
4583
  "id",
1990
4584
  "name",
1991
4585
  "contentType",
1992
- "downloadURL"
4586
+ "downloadURL",
4587
+ "size"
1993
4588
  ]
1994
4589
  },
1995
4590
  "ImportContentSource": {
@@ -2061,6 +4656,53 @@
2061
4656
  "success"
2062
4657
  ]
2063
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
+ },
2064
4706
  "Organization": {
2065
4707
  "type": "object",
2066
4708
  "properties": {
@@ -2395,10 +5037,26 @@
2395
5037
  },
2396
5038
  "TeamMemberRole": {
2397
5039
  "type": "string",
2398
- "description": "\"The role of a team member.\n\"admin\": Can administrate team members.\n\"participant\": Can participate in a team.\n",
5040
+ "description": "\"The role of a team member.\n\"owner\": Can manage team members.\n\"member\": Is a member of the team.\n",
2399
5041
  "enum": [
2400
- "admin",
2401
- "participant"
5042
+ "owner",
5043
+ "member"
5044
+ ]
5045
+ },
5046
+ "OrganizationTeamMember": {
5047
+ "type": "object",
5048
+ "description": "A member of a team in an organization, including its relationship to it",
5049
+ "properties": {
5050
+ "organization": {
5051
+ "$ref": "#/components/schemas/OrganizationMember"
5052
+ },
5053
+ "team": {
5054
+ "$ref": "#/components/schemas/TeamMember"
5055
+ }
5056
+ },
5057
+ "required": [
5058
+ "organization",
5059
+ "team"
2402
5060
  ]
2403
5061
  },
2404
5062
  "Capture": {
@@ -2431,6 +5089,10 @@
2431
5089
  "type": "string",
2432
5090
  "format": "date-time"
2433
5091
  },
5092
+ "editedAt": {
5093
+ "type": "string",
5094
+ "format": "date-time"
5095
+ },
2434
5096
  "events": {
2435
5097
  "description": "Count of events recorded.",
2436
5098
  "properties": {
@@ -2763,6 +5425,19 @@
2763
5425
  }
2764
5426
  ]
2765
5427
  },
5428
+ "UpdateCaptureSchema": {
5429
+ "type": "object",
5430
+ "properties": {
5431
+ "title": {
5432
+ "type": "string",
5433
+ "description": "A new title for the capture."
5434
+ },
5435
+ "body": {
5436
+ "description": "Content of the capture.",
5437
+ "$ref": "#/components/schemas/Document"
5438
+ }
5439
+ }
5440
+ },
2766
5441
  "ChangeRequest": {
2767
5442
  "type": "object",
2768
5443
  "properties": {
@@ -3354,7 +6029,7 @@
3354
6029
  "capture"
3355
6030
  ]
3356
6031
  },
3357
- "id": {
6032
+ "captureId": {
3358
6033
  "type": "string",
3359
6034
  "description": "ID of the capture"
3360
6035
  },
@@ -3365,7 +6040,7 @@
3365
6040
  },
3366
6041
  "required": [
3367
6042
  "type",
3368
- "id",
6043
+ "captureId",
3369
6044
  "source"
3370
6045
  ]
3371
6046
  }
@@ -3644,6 +6319,13 @@
3644
6319
  "type": "string"
3645
6320
  }
3646
6321
  },
6322
+ "target": {
6323
+ "$ref": "#/components/schemas/IntegrationTarget"
6324
+ },
6325
+ "verified": {
6326
+ "type": "boolean",
6327
+ "description": "If true, the integration has been verified by the GitBook team"
6328
+ },
3647
6329
  "visibility": {
3648
6330
  "$ref": "#/components/schemas/IntegrationVisibility"
3649
6331
  },
@@ -3662,10 +6344,18 @@
3662
6344
  "externalLinks": {
3663
6345
  "$ref": "#/components/schemas/IntegrationExternalLinks"
3664
6346
  },
6347
+ "owner": {
6348
+ "$ref": "#/components/schemas/Organization"
6349
+ },
3665
6350
  "urls": {
3666
6351
  "type": "object",
3667
6352
  "description": "URLs associated with the object",
3668
6353
  "properties": {
6354
+ "location": {
6355
+ "type": "string",
6356
+ "description": "URL of the integration in the API",
6357
+ "format": "uri"
6358
+ },
3669
6359
  "icon": {
3670
6360
  "type": "string",
3671
6361
  "description": "URL of the icon associated to the integration",
@@ -3688,11 +6378,24 @@
3688
6378
  }
3689
6379
  },
3690
6380
  "required": [
6381
+ "location",
3691
6382
  "app",
3692
6383
  "assets",
3693
6384
  "publicEndpoint"
3694
6385
  ]
3695
6386
  },
6387
+ "permissions": {
6388
+ "type": "object",
6389
+ "description": "The set of permissions for the integration",
6390
+ "properties": {
6391
+ "admin": {
6392
+ "type": "boolean"
6393
+ }
6394
+ },
6395
+ "required": [
6396
+ "admin"
6397
+ ]
6398
+ },
3696
6399
  "contentSecurityPolicy": {
3697
6400
  "$ref": "#/components/schemas/IntegrationContentSecurityPolicy"
3698
6401
  }
@@ -3705,8 +6408,12 @@
3705
6408
  "scopes",
3706
6409
  "categories",
3707
6410
  "visibility",
6411
+ "target",
6412
+ "verified",
3708
6413
  "previewImages",
3709
6414
  "externalLinks",
6415
+ "owner",
6416
+ "permissions",
3710
6417
  "urls"
3711
6418
  ]
3712
6419
  },
@@ -3929,10 +6636,11 @@
3929
6636
  "type": "string",
3930
6637
  "enum": [
3931
6638
  "analytics",
6639
+ "captures",
3932
6640
  "collaboration",
3933
- "marketing",
3934
6641
  "content",
3935
6642
  "gitsync",
6643
+ "marketing",
3936
6644
  "other"
3937
6645
  ]
3938
6646
  },
@@ -4104,13 +6812,28 @@
4104
6812
  "space_selection": {
4105
6813
  "$ref": "#/components/schemas/IntegrationInstallationSpaceSelection"
4106
6814
  },
6815
+ "spaces": {
6816
+ "type": "number",
6817
+ "description": "Count of spaces, the installation is managing"
6818
+ },
4107
6819
  "configuration": {
4108
6820
  "$ref": "#/components/schemas/IntegrationInstallationConfiguration"
4109
6821
  },
6822
+ "createdAt": {
6823
+ "$ref": "#/components/schemas/Date"
6824
+ },
6825
+ "updatedAt": {
6826
+ "$ref": "#/components/schemas/Date"
6827
+ },
4110
6828
  "urls": {
4111
6829
  "type": "object",
4112
6830
  "description": "URLs associated with the object",
4113
6831
  "properties": {
6832
+ "location": {
6833
+ "type": "string",
6834
+ "description": "URL of the installation in the API",
6835
+ "format": "uri"
6836
+ },
4114
6837
  "app": {
4115
6838
  "type": "string",
4116
6839
  "description": "URL of the integration's installation in the application",
@@ -4123,6 +6846,7 @@
4123
6846
  }
4124
6847
  },
4125
6848
  "required": [
6849
+ "location",
4126
6850
  "app",
4127
6851
  "publicEndpoint"
4128
6852
  ]
@@ -4139,10 +6863,13 @@
4139
6863
  "id",
4140
6864
  "status",
4141
6865
  "space_selection",
6866
+ "spaces",
4142
6867
  "configuration",
4143
6868
  "urls",
4144
6869
  "externalIds",
4145
- "target"
6870
+ "target",
6871
+ "createdAt",
6872
+ "updatedAt"
4146
6873
  ]
4147
6874
  },
4148
6875
  "IntegrationSpaceInstallation": {
@@ -4175,6 +6902,11 @@
4175
6902
  "type": "object",
4176
6903
  "description": "URLs associated with the object",
4177
6904
  "properties": {
6905
+ "location": {
6906
+ "type": "string",
6907
+ "description": "URL of the integration's space installation in the API",
6908
+ "format": "uri"
6909
+ },
4178
6910
  "publicEndpoint": {
4179
6911
  "type": "string",
4180
6912
  "description": "Public HTTP endpoint for the integration's space installation",
@@ -4182,6 +6914,7 @@
4182
6914
  }
4183
6915
  },
4184
6916
  "required": [
6917
+ "location",
4185
6918
  "publicEndpoint"
4186
6919
  ]
4187
6920
  }
@@ -7316,9 +10049,6 @@
7316
10049
  {
7317
10050
  "$ref": "#/components/schemas/SpacePublishingAuthChannel"
7318
10051
  },
7319
- {
7320
- "$ref": "#/components/schemas/SpaceRelationsChannel"
7321
- },
7322
10052
  {
7323
10053
  "$ref": "#/components/schemas/SpaceEntitiesChannel"
7324
10054
  },
@@ -7334,15 +10064,9 @@
7334
10064
  {
7335
10065
  "$ref": "#/components/schemas/OrganizationCustomFieldsChannel"
7336
10066
  },
7337
- {
7338
- "$ref": "#/components/schemas/OrganizationEnvironmentsChannel"
7339
- },
7340
10067
  {
7341
10068
  "$ref": "#/components/schemas/UserAPITokensChannel"
7342
10069
  },
7343
- {
7344
- "$ref": "#/components/schemas/UserPreferencesChannel"
7345
- },
7346
10070
  {
7347
10071
  "$ref": "#/components/schemas/UserProfileChannel"
7348
10072
  },
@@ -7367,9 +10091,6 @@
7367
10091
  {
7368
10092
  "$ref": "#/components/schemas/OrganizationTeamMemberChannel"
7369
10093
  },
7370
- {
7371
- "$ref": "#/components/schemas/OrganizationSpaceRelationsChannel"
7372
- },
7373
10094
  {
7374
10095
  "$ref": "#/components/schemas/OrganizationSpacesChannel"
7375
10096
  },
@@ -7382,6 +10103,12 @@
7382
10103
  {
7383
10104
  "$ref": "#/components/schemas/OrganizationCapturesChannel"
7384
10105
  },
10106
+ {
10107
+ "$ref": "#/components/schemas/OrganizationIntegrationsChannel"
10108
+ },
10109
+ {
10110
+ "$ref": "#/components/schemas/OrganizationInstallationsChannel"
10111
+ },
7385
10112
  {
7386
10113
  "type": "object",
7387
10114
  "properties": {
@@ -7481,6 +10208,18 @@
7481
10208
  "space",
7482
10209
  "comment"
7483
10210
  ]
10211
+ },
10212
+ {
10213
+ "$ref": "#/components/schemas/IntegrationChannel"
10214
+ },
10215
+ {
10216
+ "$ref": "#/components/schemas/IntegrationInstallationChannel"
10217
+ },
10218
+ {
10219
+ "$ref": "#/components/schemas/IntegrationSpaceInstallationChannel"
10220
+ },
10221
+ {
10222
+ "$ref": "#/components/schemas/IntegrationSpaceInstallationsChannel"
7484
10223
  }
7485
10224
  ],
7486
10225
  "discriminator": {
@@ -7541,24 +10280,6 @@
7541
10280
  "space"
7542
10281
  ]
7543
10282
  },
7544
- "SpaceRelationsChannel": {
7545
- "type": "object",
7546
- "properties": {
7547
- "channel": {
7548
- "type": "string",
7549
- "enum": [
7550
- "space-relations"
7551
- ]
7552
- },
7553
- "space": {
7554
- "type": "string"
7555
- }
7556
- },
7557
- "required": [
7558
- "channel",
7559
- "space"
7560
- ]
7561
- },
7562
10283
  "SpaceEntitiesChannel": {
7563
10284
  "type": "object",
7564
10285
  "properties": {
@@ -7604,58 +10325,40 @@
7604
10325
  "backoffice-user-info"
7605
10326
  ]
7606
10327
  },
7607
- "user": {
7608
- "type": "string"
7609
- }
7610
- },
7611
- "required": [
7612
- "channel",
7613
- "user"
7614
- ]
7615
- },
7616
- "SpaceIntegrationsChannel": {
7617
- "type": "object",
7618
- "properties": {
7619
- "channel": {
7620
- "type": "string",
7621
- "enum": [
7622
- "space-integrations"
7623
- ]
7624
- },
7625
- "space": {
10328
+ "user": {
7626
10329
  "type": "string"
7627
10330
  }
7628
10331
  },
7629
10332
  "required": [
7630
10333
  "channel",
7631
- "space"
10334
+ "user"
7632
10335
  ]
7633
10336
  },
7634
- "UserAPITokensChannel": {
10337
+ "SpaceIntegrationsChannel": {
7635
10338
  "type": "object",
7636
10339
  "properties": {
7637
10340
  "channel": {
7638
10341
  "type": "string",
7639
10342
  "enum": [
7640
- "user-api-tokens"
10343
+ "space-integrations"
7641
10344
  ]
7642
10345
  },
7643
- "user": {
10346
+ "space": {
7644
10347
  "type": "string"
7645
10348
  }
7646
10349
  },
7647
10350
  "required": [
7648
10351
  "channel",
7649
- "user"
10352
+ "space"
7650
10353
  ]
7651
10354
  },
7652
- "UserPreferencesChannel": {
10355
+ "UserAPITokensChannel": {
7653
10356
  "type": "object",
7654
10357
  "properties": {
7655
10358
  "channel": {
7656
10359
  "type": "string",
7657
10360
  "enum": [
7658
- "user-preferences"
10361
+ "user-api-tokens"
7659
10362
  ]
7660
10363
  },
7661
10364
  "user": {
@@ -7852,14 +10555,14 @@
7852
10555
  "member"
7853
10556
  ]
7854
10557
  },
7855
- "OrganizationSpaceRelationsChannel": {
10558
+ "OrganizationSpacesChannel": {
7856
10559
  "type": "object",
7857
- "description": "Subscription channel for changes in relations between spaces in an organization.",
10560
+ "description": "Subscription channel for changes in spaces in an organization.",
7858
10561
  "properties": {
7859
10562
  "channel": {
7860
10563
  "type": "string",
7861
10564
  "enum": [
7862
- "organization-space-relations"
10565
+ "organization-spaces"
7863
10566
  ]
7864
10567
  },
7865
10568
  "organization": {
@@ -7871,56 +10574,55 @@
7871
10574
  "organization"
7872
10575
  ]
7873
10576
  },
7874
- "OrganizationSpacesChannel": {
10577
+ "OrganizationEntitiesChannel": {
7875
10578
  "type": "object",
7876
- "description": "Subscription channel for changes in spaces in an organization.",
10579
+ "description": "Subscription channel for entities in an organization.",
7877
10580
  "properties": {
7878
10581
  "channel": {
7879
10582
  "type": "string",
7880
10583
  "enum": [
7881
- "organization-spaces"
10584
+ "organization-entities"
7882
10585
  ]
7883
10586
  },
7884
10587
  "organization": {
7885
10588
  "type": "string"
10589
+ },
10590
+ "entityType": {
10591
+ "type": "string"
7886
10592
  }
7887
10593
  },
7888
10594
  "required": [
7889
10595
  "channel",
7890
- "organization"
10596
+ "organization",
10597
+ "entityType"
7891
10598
  ]
7892
10599
  },
7893
- "OrganizationEntitiesChannel": {
10600
+ "OrganizationSchemasChannel": {
7894
10601
  "type": "object",
7895
- "description": "Subscription channel for entities in an organization.",
10602
+ "description": "Subscription channel for all entity schemas in an organization.",
7896
10603
  "properties": {
7897
10604
  "channel": {
7898
10605
  "type": "string",
7899
10606
  "enum": [
7900
- "organization-entities"
10607
+ "organization-schemas"
7901
10608
  ]
7902
10609
  },
7903
10610
  "organization": {
7904
10611
  "type": "string"
7905
- },
7906
- "entityType": {
7907
- "type": "string"
7908
10612
  }
7909
10613
  },
7910
10614
  "required": [
7911
10615
  "channel",
7912
- "organization",
7913
- "entityType"
10616
+ "organization"
7914
10617
  ]
7915
10618
  },
7916
- "OrganizationSchemasChannel": {
10619
+ "OrganizationCapturesChannel": {
7917
10620
  "type": "object",
7918
- "description": "Subscription channel for all entity schemas in an organization.",
7919
10621
  "properties": {
7920
10622
  "channel": {
7921
10623
  "type": "string",
7922
10624
  "enum": [
7923
- "organization-schemas"
10625
+ "organization-captures"
7924
10626
  ]
7925
10627
  },
7926
10628
  "organization": {
@@ -7932,13 +10634,13 @@
7932
10634
  "organization"
7933
10635
  ]
7934
10636
  },
7935
- "OrganizationEnvironmentsChannel": {
10637
+ "OrganizationIntegrationsChannel": {
7936
10638
  "type": "object",
7937
10639
  "properties": {
7938
10640
  "channel": {
7939
10641
  "type": "string",
7940
10642
  "enum": [
7941
- "organization-environments"
10643
+ "organization-integrations"
7942
10644
  ]
7943
10645
  },
7944
10646
  "organization": {
@@ -7950,13 +10652,13 @@
7950
10652
  "organization"
7951
10653
  ]
7952
10654
  },
7953
- "OrganizationCapturesChannel": {
10655
+ "OrganizationInstallationsChannel": {
7954
10656
  "type": "object",
7955
10657
  "properties": {
7956
10658
  "channel": {
7957
10659
  "type": "string",
7958
10660
  "enum": [
7959
- "organization-captures"
10661
+ "organization-installations"
7960
10662
  ]
7961
10663
  },
7962
10664
  "organization": {
@@ -7968,6 +10670,94 @@
7968
10670
  "organization"
7969
10671
  ]
7970
10672
  },
10673
+ "IntegrationChannel": {
10674
+ "type": "object",
10675
+ "properties": {
10676
+ "channel": {
10677
+ "type": "string",
10678
+ "enum": [
10679
+ "integration"
10680
+ ]
10681
+ },
10682
+ "integration": {
10683
+ "type": "string"
10684
+ }
10685
+ },
10686
+ "required": [
10687
+ "channel",
10688
+ "integration"
10689
+ ]
10690
+ },
10691
+ "IntegrationInstallationChannel": {
10692
+ "type": "object",
10693
+ "properties": {
10694
+ "channel": {
10695
+ "type": "string",
10696
+ "enum": [
10697
+ "integration-installation"
10698
+ ]
10699
+ },
10700
+ "integration": {
10701
+ "type": "string"
10702
+ },
10703
+ "installation": {
10704
+ "type": "string"
10705
+ }
10706
+ },
10707
+ "required": [
10708
+ "channel",
10709
+ "integration",
10710
+ "installation"
10711
+ ]
10712
+ },
10713
+ "IntegrationSpaceInstallationChannel": {
10714
+ "type": "object",
10715
+ "properties": {
10716
+ "channel": {
10717
+ "type": "string",
10718
+ "enum": [
10719
+ "integration-space-installation"
10720
+ ]
10721
+ },
10722
+ "integration": {
10723
+ "type": "string"
10724
+ },
10725
+ "installation": {
10726
+ "type": "string"
10727
+ },
10728
+ "space": {
10729
+ "type": "string"
10730
+ }
10731
+ },
10732
+ "required": [
10733
+ "channel",
10734
+ "integration",
10735
+ "installation",
10736
+ "space"
10737
+ ]
10738
+ },
10739
+ "IntegrationSpaceInstallationsChannel": {
10740
+ "type": "object",
10741
+ "properties": {
10742
+ "channel": {
10743
+ "type": "string",
10744
+ "enum": [
10745
+ "integration-space-installations"
10746
+ ]
10747
+ },
10748
+ "integration": {
10749
+ "type": "string"
10750
+ },
10751
+ "installation": {
10752
+ "type": "string"
10753
+ }
10754
+ },
10755
+ "required": [
10756
+ "channel",
10757
+ "integration",
10758
+ "installation"
10759
+ ]
10760
+ },
7971
10761
  "CustomField": {
7972
10762
  "type": "object",
7973
10763
  "description": "Custom field",
@@ -8126,88 +10916,6 @@
8126
10916
  "CustomFieldPlaceholder": {
8127
10917
  "type": "string",
8128
10918
  "maxLength": 100
8129
- },
8130
- "Environment": {
8131
- "type": "object",
8132
- "description": "An environment",
8133
- "properties": {
8134
- "id": {
8135
- "type": "string"
8136
- },
8137
- "name": {
8138
- "$ref": "#/components/schemas/EnvironmentName"
8139
- },
8140
- "title": {
8141
- "$ref": "#/components/schemas/EnvironmentTitle"
8142
- },
8143
- "primary": {
8144
- "$ref": "#/components/schemas/EnvironmentPrimary"
8145
- },
8146
- "urls": {
8147
- "type": "object",
8148
- "description": "URLs associated with the object",
8149
- "properties": {
8150
- "location": {
8151
- "type": "string",
8152
- "description": "URL of the environment in the API",
8153
- "format": "uri"
8154
- }
8155
- },
8156
- "required": [
8157
- "location"
8158
- ]
8159
- }
8160
- },
8161
- "required": [
8162
- "id",
8163
- "name",
8164
- "title",
8165
- "primary",
8166
- "urls"
8167
- ]
8168
- },
8169
- "EnvironmentTitle": {
8170
- "type": "string",
8171
- "maxLength": 100
8172
- },
8173
- "EnvironmentPrimary": {
8174
- "description": "Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.\n",
8175
- "type": "boolean"
8176
- },
8177
- "EnvironmentName": {
8178
- "type": "string",
8179
- "pattern": "^[a-zA-Z_\\-0-9]+$",
8180
- "maxLength": 50
8181
- },
8182
- "CreateEnvironment": {
8183
- "type": "object",
8184
- "properties": {
8185
- "name": {
8186
- "$ref": "#/components/schemas/EnvironmentName"
8187
- },
8188
- "title": {
8189
- "$ref": "#/components/schemas/EnvironmentTitle"
8190
- },
8191
- "primary": {
8192
- "$ref": "#/components/schemas/EnvironmentPrimary"
8193
- }
8194
- },
8195
- "required": [
8196
- "name",
8197
- "title"
8198
- ]
8199
- },
8200
- "UpdateEnvironment": {
8201
- "type": "object",
8202
- "description": "An object containing the new title for an Environment",
8203
- "properties": {
8204
- "title": {
8205
- "$ref": "#/components/schemas/EnvironmentTitle"
8206
- },
8207
- "primary": {
8208
- "$ref": "#/components/schemas/EnvironmentPrimary"
8209
- }
8210
- }
8211
10919
  }
8212
10920
  },
8213
10921
  "responses": {
@@ -8538,98 +11246,28 @@
8538
11246
  "$ref": "#/components/responses/UnexpectedError"
8539
11247
  }
8540
11248
  }
8541
- }
8542
- },
8543
- "/user": {
8544
- "get": {
8545
- "operationId": "getAuthenticatedUser",
8546
- "summary": "Get profile of authenticated user",
8547
- "tags": [
8548
- "users"
8549
- ],
8550
- "security": [
8551
- {
8552
- "user": []
8553
- }
8554
- ],
8555
- "description": "Returns details about the user associated with the authentication provided in the request's authorization header.\n",
8556
- "responses": {
8557
- "200": {
8558
- "description": "OK",
8559
- "content": {
8560
- "application/json": {
8561
- "schema": {
8562
- "$ref": "#/components/schemas/User"
8563
- }
8564
- }
8565
- }
8566
- },
8567
- "default": {
8568
- "$ref": "#/components/responses/UnexpectedError"
8569
- }
8570
- }
8571
- }
8572
- },
8573
- "/user/preferences": {
8574
- "get": {
8575
- "operationId": "getPreferencesForAuthenticatedUser",
8576
- "summary": "Get the preferences for the currently authenticated user",
8577
- "tags": [
8578
- "users"
8579
- ],
8580
- "security": [
8581
- {
8582
- "user": []
8583
- }
8584
- ],
8585
- "description": "Returns the preferences for the user associated with the authentication provided in the request's authorization header.\n",
8586
- "responses": {
8587
- "200": {
8588
- "description": "OK",
8589
- "content": {
8590
- "application/json": {
8591
- "schema": {
8592
- "$ref": "#/components/schemas/UserPreferences"
8593
- }
8594
- }
8595
- }
8596
- },
8597
- "default": {
8598
- "$ref": "#/components/responses/UnexpectedError"
8599
- }
8600
- }
8601
- },
8602
- "patch": {
8603
- "operationId": "updatePreferencesForAuthenticatedUser",
8604
- "summary": "Update the preferences for the currently authenticated user",
8605
- "tags": [
8606
- "users"
8607
- ],
8608
- "requestBody": {
8609
- "required": true,
8610
- "content": {
8611
- "application/json": {
8612
- "schema": {
8613
- "type": "object",
8614
- "properties": {
8615
- "theme": {
8616
- "$ref": "#/components/schemas/UserPreferencesTheme"
8617
- }
8618
- },
8619
- "required": [
8620
- "theme"
8621
- ]
8622
- }
8623
- }
11249
+ }
11250
+ },
11251
+ "/user": {
11252
+ "get": {
11253
+ "operationId": "getAuthenticatedUser",
11254
+ "summary": "Get profile of authenticated user",
11255
+ "tags": [
11256
+ "users"
11257
+ ],
11258
+ "security": [
11259
+ {
11260
+ "user": []
8624
11261
  }
8625
- },
11262
+ ],
11263
+ "description": "Returns details about the user associated with the authentication provided in the request's authorization header.\n",
8626
11264
  "responses": {
8627
11265
  "200": {
8628
- "description": "The user preferences have been updated",
11266
+ "description": "OK",
8629
11267
  "content": {
8630
11268
  "application/json": {
8631
11269
  "schema": {
8632
- "$ref": "#/components/schemas/UserPreferences"
11270
+ "$ref": "#/components/schemas/User"
8633
11271
  }
8634
11272
  }
8635
11273
  }
@@ -8733,9 +11371,6 @@
8733
11371
  "properties": {
8734
11372
  "visibility": {
8735
11373
  "$ref": "#/components/schemas/ContentVisibility"
8736
- },
8737
- "type": {
8738
- "$ref": "#/components/schemas/SpaceType"
8739
11374
  }
8740
11375
  }
8741
11376
  }
@@ -11644,203 +14279,6 @@
11644
14279
  }
11645
14280
  }
11646
14281
  },
11647
- "/spaces/{spaceId}/relations": {
11648
- "get": {
11649
- "operationId": "listSpaceRelations",
11650
- "summary": "List all relations for a space",
11651
- "tags": [
11652
- "spaces"
11653
- ],
11654
- "parameters": [
11655
- {
11656
- "$ref": "#/components/parameters/spaceId"
11657
- },
11658
- {
11659
- "$ref": "#/components/parameters/listPage"
11660
- },
11661
- {
11662
- "$ref": "#/components/parameters/listLimit"
11663
- }
11664
- ],
11665
- "responses": {
11666
- "200": {
11667
- "description": "OK",
11668
- "content": {
11669
- "application/json": {
11670
- "schema": {
11671
- "allOf": [
11672
- {
11673
- "$ref": "#/components/schemas/List"
11674
- },
11675
- {
11676
- "type": "object",
11677
- "required": [
11678
- "items"
11679
- ],
11680
- "properties": {
11681
- "items": {
11682
- "type": "array",
11683
- "items": {
11684
- "$ref": "#/components/schemas/SpaceRelation"
11685
- }
11686
- }
11687
- }
11688
- }
11689
- ]
11690
- }
11691
- }
11692
- }
11693
- },
11694
- "default": {
11695
- "$ref": "#/components/responses/UnexpectedError"
11696
- }
11697
- }
11698
- },
11699
- "post": {
11700
- "operationId": "createSpaceRelation",
11701
- "summary": "Create a new relation between a source space and a target space",
11702
- "tags": [
11703
- "spaces"
11704
- ],
11705
- "security": [
11706
- {
11707
- "user": []
11708
- }
11709
- ],
11710
- "parameters": [
11711
- {
11712
- "$ref": "#/components/parameters/spaceId"
11713
- }
11714
- ],
11715
- "requestBody": {
11716
- "required": true,
11717
- "content": {
11718
- "application/json": {
11719
- "schema": {
11720
- "type": "object",
11721
- "properties": {
11722
- "target": {
11723
- "type": "string",
11724
- "description": "ID of the other space"
11725
- },
11726
- "type": {
11727
- "$ref": "#/components/schemas/SpaceRelationType"
11728
- }
11729
- },
11730
- "required": [
11731
- "target",
11732
- "type"
11733
- ]
11734
- }
11735
- }
11736
- }
11737
- },
11738
- "responses": {
11739
- "201": {
11740
- "description": "Space relation created",
11741
- "headers": {
11742
- "Location": {
11743
- "description": "API URL for the newly created space relation",
11744
- "schema": {
11745
- "type": "string"
11746
- }
11747
- }
11748
- },
11749
- "content": {
11750
- "application/json": {
11751
- "schema": {
11752
- "$ref": "#/components/schemas/SpaceRelation"
11753
- }
11754
- }
11755
- }
11756
- },
11757
- "default": {
11758
- "$ref": "#/components/responses/UnexpectedError"
11759
- }
11760
- }
11761
- }
11762
- },
11763
- "/spaces/{spaceId}/relations/{targetSpaceId}": {
11764
- "get": {
11765
- "operationId": "getSpaceRelation",
11766
- "summary": "Get the relation between 2 spaces.",
11767
- "tags": [
11768
- "spaces"
11769
- ],
11770
- "security": [
11771
- {
11772
- "user": []
11773
- }
11774
- ],
11775
- "parameters": [
11776
- {
11777
- "$ref": "#/components/parameters/spaceId"
11778
- },
11779
- {
11780
- "name": "targetSpaceId",
11781
- "in": "path",
11782
- "required": true,
11783
- "description": "The ID of the other space",
11784
- "schema": {
11785
- "type": "string"
11786
- }
11787
- }
11788
- ],
11789
- "responses": {
11790
- "200": {
11791
- "description": "OK",
11792
- "content": {
11793
- "application/json": {
11794
- "schema": {
11795
- "$ref": "#/components/schemas/SpaceRelation"
11796
- }
11797
- }
11798
- }
11799
- },
11800
- "404": {
11801
- "description": "No matching relation found",
11802
- "$ref": "#/components/responses/NotFoundError"
11803
- },
11804
- "default": {
11805
- "$ref": "#/components/responses/UnexpectedError"
11806
- }
11807
- }
11808
- },
11809
- "delete": {
11810
- "operationId": "deleteSpaceRelation",
11811
- "summary": "Delete a relation between spaces",
11812
- "tags": [
11813
- "spaces"
11814
- ],
11815
- "security": [
11816
- {
11817
- "user": []
11818
- }
11819
- ],
11820
- "parameters": [
11821
- {
11822
- "$ref": "#/components/parameters/spaceId"
11823
- },
11824
- {
11825
- "name": "targetSpaceId",
11826
- "in": "path",
11827
- "required": true,
11828
- "description": "The ID of the other space",
11829
- "schema": {
11830
- "type": "string"
11831
- }
11832
- }
11833
- ],
11834
- "responses": {
11835
- "204": {
11836
- "description": "Relation has been deleted"
11837
- },
11838
- "default": {
11839
- "$ref": "#/components/responses/UnexpectedError"
11840
- }
11841
- }
11842
- }
11843
- },
11844
14282
  "/spaces/{spaceId}/custom-fields": {
11845
14283
  "get": {
11846
14284
  "operationId": "getSpaceCustomFields",
@@ -12211,6 +14649,24 @@
12211
14649
  },
12212
14650
  {
12213
14651
  "$ref": "#/components/parameters/listLimit"
14652
+ },
14653
+ {
14654
+ "name": "category",
14655
+ "in": "query",
14656
+ "description": "Filter the integrations by category",
14657
+ "schema": {
14658
+ "$ref": "#/components/schemas/IntegrationCategory"
14659
+ }
14660
+ },
14661
+ {
14662
+ "name": "blockDomain",
14663
+ "in": "query",
14664
+ "description": "Filter the integrations by block's domains",
14665
+ "schema": {
14666
+ "type": "string",
14667
+ "pattern": "^[a-zA-Z0-9-_.]+$",
14668
+ "maxLength": 100
14669
+ }
12214
14670
  }
12215
14671
  ],
12216
14672
  "responses": {
@@ -13014,17 +15470,71 @@
13014
15470
  }
13015
15471
  }
13016
15472
  },
13017
- "404": {
13018
- "description": "Installation could not be found",
13019
- "$ref": "#/components/responses/NotFoundError"
13020
- },
15473
+ "404": {
15474
+ "description": "Installation could not be found",
15475
+ "$ref": "#/components/responses/NotFoundError"
15476
+ },
15477
+ "default": {
15478
+ "$ref": "#/components/responses/UnexpectedError"
15479
+ }
15480
+ }
15481
+ }
15482
+ },
15483
+ "/integrations/{integrationName}/installations/{installationId}/spaces": {
15484
+ "get": {
15485
+ "operationId": "listIntegrationInstallationSpaces",
15486
+ "summary": "List installations on spaces for an integration in an organization",
15487
+ "tags": [
15488
+ "integrations"
15489
+ ],
15490
+ "parameters": [
15491
+ {
15492
+ "$ref": "#/components/parameters/integrationName"
15493
+ },
15494
+ {
15495
+ "$ref": "#/components/parameters/installationId"
15496
+ },
15497
+ {
15498
+ "$ref": "#/components/parameters/listPage"
15499
+ },
15500
+ {
15501
+ "$ref": "#/components/parameters/listLimit"
15502
+ }
15503
+ ],
15504
+ "responses": {
15505
+ "200": {
15506
+ "description": "OK",
15507
+ "content": {
15508
+ "application/json": {
15509
+ "schema": {
15510
+ "allOf": [
15511
+ {
15512
+ "$ref": "#/components/schemas/List"
15513
+ },
15514
+ {
15515
+ "type": "object",
15516
+ "required": [
15517
+ "items"
15518
+ ],
15519
+ "properties": {
15520
+ "items": {
15521
+ "type": "array",
15522
+ "items": {
15523
+ "$ref": "#/components/schemas/IntegrationSpaceInstallation"
15524
+ }
15525
+ }
15526
+ }
15527
+ }
15528
+ ]
15529
+ }
15530
+ }
15531
+ }
15532
+ },
13021
15533
  "default": {
13022
15534
  "$ref": "#/components/responses/UnexpectedError"
13023
15535
  }
13024
15536
  }
13025
- }
13026
- },
13027
- "/integrations/{integrationName}/installations/{installationId}/spaces": {
15537
+ },
13028
15538
  "post": {
13029
15539
  "operationId": "installIntegrationOnSpace",
13030
15540
  "summary": "Install integration on a space using an existing installation",
@@ -14039,7 +16549,7 @@
14039
16549
  "get": {
14040
16550
  "operationId": "listTeamMembersInOrganizationById",
14041
16551
  "summary": "List team members",
14042
- "description": "Lists members for the specified organization team.\n",
16552
+ "description": "Lists members, and their roles, for the specified organization team.\n",
14043
16553
  "tags": [
14044
16554
  "organizations"
14045
16555
  ],
@@ -14081,7 +16591,7 @@
14081
16591
  "items": {
14082
16592
  "type": "array",
14083
16593
  "items": {
14084
- "$ref": "#/components/schemas/OrganizationMember"
16594
+ "$ref": "#/components/schemas/OrganizationTeamMember"
14085
16595
  }
14086
16596
  }
14087
16597
  }
@@ -15265,10 +17775,10 @@
15265
17775
  }
15266
17776
  }
15267
17777
  },
15268
- "/orgs/{organizationId}/space-relations": {
17778
+ "/orgs/{organizationId}/integrations": {
15269
17779
  "get": {
15270
- "operationId": "listSpaceRelationsInOrganization",
15271
- "summary": "List all relations between spaces in an organization",
17780
+ "operationId": "listOrganizationIntegrations",
17781
+ "summary": "List integrations owned by an organization",
15272
17782
  "tags": [
15273
17783
  "spaces"
15274
17784
  ],
@@ -15285,7 +17795,7 @@
15285
17795
  ],
15286
17796
  "responses": {
15287
17797
  "200": {
15288
- "description": "OK",
17798
+ "description": "List of integrations.",
15289
17799
  "content": {
15290
17800
  "application/json": {
15291
17801
  "schema": {
@@ -15302,7 +17812,7 @@
15302
17812
  "items": {
15303
17813
  "type": "array",
15304
17814
  "items": {
15305
- "$ref": "#/components/schemas/SpaceRelationPair"
17815
+ "$ref": "#/components/schemas/Integration"
15306
17816
  }
15307
17817
  }
15308
17818
  }
@@ -15318,18 +17828,12 @@
15318
17828
  }
15319
17829
  }
15320
17830
  },
15321
- "/orgs/{organizationId}/environments": {
17831
+ "/orgs/{organizationId}/installations": {
15322
17832
  "get": {
15323
- "operationId": "listEnvironments",
15324
- "summary": "Get the environments in an organization",
17833
+ "operationId": "listOrganizationInstallations",
17834
+ "summary": "List installations of integrations in an organization.",
15325
17835
  "tags": [
15326
- "organizations",
15327
- "environments"
15328
- ],
15329
- "security": [
15330
- {
15331
- "user": []
15332
- }
17836
+ "spaces"
15333
17837
  ],
15334
17838
  "parameters": [
15335
17839
  {
@@ -15344,7 +17848,7 @@
15344
17848
  ],
15345
17849
  "responses": {
15346
17850
  "200": {
15347
- "description": "OK",
17851
+ "description": "List of integrations with the associated installations.",
15348
17852
  "content": {
15349
17853
  "application/json": {
15350
17854
  "schema": {
@@ -15354,11 +17858,26 @@
15354
17858
  },
15355
17859
  {
15356
17860
  "type": "object",
17861
+ "required": [
17862
+ "items"
17863
+ ],
15357
17864
  "properties": {
15358
17865
  "items": {
15359
17866
  "type": "array",
15360
17867
  "items": {
15361
- "$ref": "#/components/schemas/Environment"
17868
+ "type": "object",
17869
+ "properties": {
17870
+ "installation": {
17871
+ "$ref": "#/components/schemas/IntegrationInstallation"
17872
+ },
17873
+ "integration": {
17874
+ "$ref": "#/components/schemas/Integration"
17875
+ }
17876
+ },
17877
+ "required": [
17878
+ "integration",
17879
+ "installation"
17880
+ ]
15362
17881
  }
15363
17882
  }
15364
17883
  }
@@ -15367,171 +17886,6 @@
15367
17886
  }
15368
17887
  }
15369
17888
  }
15370
- }
15371
- }
15372
- },
15373
- "post": {
15374
- "operationId": "createEnvironment",
15375
- "summary": "Create a new environment within an organization",
15376
- "tags": [
15377
- "organizations",
15378
- "environments"
15379
- ],
15380
- "security": [
15381
- {
15382
- "user": []
15383
- }
15384
- ],
15385
- "parameters": [
15386
- {
15387
- "$ref": "#/components/parameters/organizationId"
15388
- }
15389
- ],
15390
- "requestBody": {
15391
- "required": true,
15392
- "content": {
15393
- "application/json": {
15394
- "schema": {
15395
- "$ref": "#/components/schemas/CreateEnvironment"
15396
- }
15397
- }
15398
- }
15399
- },
15400
- "responses": {
15401
- "201": {
15402
- "description": "OK",
15403
- "headers": {
15404
- "Location": {
15405
- "description": "API URL for the newly created environment",
15406
- "schema": {
15407
- "type": "string"
15408
- }
15409
- }
15410
- },
15411
- "content": {
15412
- "application/json": {
15413
- "schema": {
15414
- "$ref": "#/components/schemas/Environment"
15415
- }
15416
- }
15417
- }
15418
- },
15419
- "default": {
15420
- "$ref": "#/components/responses/UnexpectedError"
15421
- }
15422
- }
15423
- }
15424
- },
15425
- "/orgs/{organizationId}/environments/{environmentName}": {
15426
- "get": {
15427
- "operationId": "getEnvironmentByName",
15428
- "summary": "Get an environment by its name",
15429
- "tags": [
15430
- "organizations",
15431
- "environments"
15432
- ],
15433
- "security": [
15434
- {
15435
- "user": []
15436
- }
15437
- ],
15438
- "parameters": [
15439
- {
15440
- "$ref": "#/components/parameters/organizationId"
15441
- },
15442
- {
15443
- "$ref": "#/components/parameters/environmentName"
15444
- }
15445
- ],
15446
- "responses": {
15447
- "200": {
15448
- "description": "OK",
15449
- "content": {
15450
- "application/json": {
15451
- "schema": {
15452
- "$ref": "#/components/schemas/Environment"
15453
- }
15454
- }
15455
- }
15456
- },
15457
- "404": {
15458
- "description": "No matching environment found",
15459
- "$ref": "#/components/responses/NotFoundError"
15460
- },
15461
- "default": {
15462
- "$ref": "#/components/responses/UnexpectedError"
15463
- }
15464
- }
15465
- },
15466
- "patch": {
15467
- "operationId": "updateEnvironment",
15468
- "summary": "Update an existing environment within an organization",
15469
- "tags": [
15470
- "organizations",
15471
- "environments"
15472
- ],
15473
- "security": [
15474
- {
15475
- "user": []
15476
- }
15477
- ],
15478
- "parameters": [
15479
- {
15480
- "$ref": "#/components/parameters/organizationId"
15481
- },
15482
- {
15483
- "$ref": "#/components/parameters/environmentName"
15484
- }
15485
- ],
15486
- "requestBody": {
15487
- "required": true,
15488
- "content": {
15489
- "application/json": {
15490
- "schema": {
15491
- "$ref": "#/components/schemas/UpdateEnvironment"
15492
- }
15493
- }
15494
- }
15495
- },
15496
- "responses": {
15497
- "200": {
15498
- "description": "OK",
15499
- "content": {
15500
- "application/json": {
15501
- "schema": {
15502
- "$ref": "#/components/schemas/Environment"
15503
- }
15504
- }
15505
- }
15506
- },
15507
- "default": {
15508
- "$ref": "#/components/responses/UnexpectedError"
15509
- }
15510
- }
15511
- },
15512
- "delete": {
15513
- "operationId": "deleteEnvironment",
15514
- "summary": "Delete an environment in an organization",
15515
- "tags": [
15516
- "organizations",
15517
- "environments"
15518
- ],
15519
- "security": [
15520
- {
15521
- "user": []
15522
- }
15523
- ],
15524
- "parameters": [
15525
- {
15526
- "$ref": "#/components/parameters/organizationId"
15527
- },
15528
- {
15529
- "$ref": "#/components/parameters/environmentName"
15530
- }
15531
- ],
15532
- "responses": {
15533
- "204": {
15534
- "description": "Environment has been deleted"
15535
17889
  },
15536
17890
  "default": {
15537
17891
  "$ref": "#/components/responses/UnexpectedError"
@@ -15896,6 +18250,18 @@
15896
18250
  },
15897
18251
  {
15898
18252
  "$ref": "#/components/parameters/listLimit"
18253
+ },
18254
+ {
18255
+ "name": "context",
18256
+ "in": "query",
18257
+ "description": "The context in which the item was captured",
18258
+ "schema": {
18259
+ "type": "string",
18260
+ "enum": [
18261
+ "walkthrough",
18262
+ "thread"
18263
+ ]
18264
+ }
15899
18265
  }
15900
18266
  ],
15901
18267
  "responses": {
@@ -16068,6 +18434,54 @@
16068
18434
  "$ref": "#/components/responses/UnexpectedError"
16069
18435
  }
16070
18436
  }
18437
+ },
18438
+ "put": {
18439
+ "operationId": "updateCapture",
18440
+ "summary": "Update an existing capture",
18441
+ "tags": [
18442
+ "organizations"
18443
+ ],
18444
+ "security": [
18445
+ {
18446
+ "user": []
18447
+ }
18448
+ ],
18449
+ "parameters": [
18450
+ {
18451
+ "$ref": "#/components/parameters/organizationId"
18452
+ },
18453
+ {
18454
+ "$ref": "#/components/parameters/captureId"
18455
+ },
18456
+ {
18457
+ "$ref": "#/components/parameters/ifUnmodifiedSince"
18458
+ }
18459
+ ],
18460
+ "requestBody": {
18461
+ "required": true,
18462
+ "content": {
18463
+ "application/json": {
18464
+ "schema": {
18465
+ "$ref": "#/components/schemas/UpdateCaptureSchema"
18466
+ }
18467
+ }
18468
+ }
18469
+ },
18470
+ "responses": {
18471
+ "200": {
18472
+ "description": "OK",
18473
+ "content": {
18474
+ "application/json": {
18475
+ "schema": {
18476
+ "$ref": "#/components/schemas/Capture"
18477
+ }
18478
+ }
18479
+ }
18480
+ },
18481
+ "default": {
18482
+ "$ref": "#/components/responses/UnexpectedError"
18483
+ }
18484
+ }
16071
18485
  }
16072
18486
  },
16073
18487
  "/orgs/{organizationId}/captures/{captureId}/events": {
@@ -16356,6 +18770,41 @@
16356
18770
  }
16357
18771
  }
16358
18772
  }
18773
+ },
18774
+ "/urls/embed": {
18775
+ "get": {
18776
+ "operationId": "getEmbedByUrl",
18777
+ "summary": "Resolve a URL to an embed",
18778
+ "tags": [
18779
+ "urls"
18780
+ ],
18781
+ "parameters": [
18782
+ {
18783
+ "name": "url",
18784
+ "in": "query",
18785
+ "required": true,
18786
+ "description": "URL to resolve",
18787
+ "schema": {
18788
+ "type": "string"
18789
+ }
18790
+ }
18791
+ ],
18792
+ "responses": {
18793
+ "200": {
18794
+ "description": "OK",
18795
+ "content": {
18796
+ "application/json": {
18797
+ "schema": {
18798
+ "$ref": "#/components/schemas/Embed"
18799
+ }
18800
+ }
18801
+ }
18802
+ },
18803
+ "default": {
18804
+ "$ref": "#/components/responses/UnexpectedError"
18805
+ }
18806
+ }
18807
+ }
16359
18808
  }
16360
18809
  }
16361
18810
  }