@gitbook/api 0.10.0 → 0.11.1

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.yaml CHANGED
@@ -104,7 +104,7 @@ components:
104
104
  required: true
105
105
  description: The unique ID of the change request or its number identifier in the space
106
106
  schema:
107
- oneOf:
107
+ anyOf:
108
108
  - type: string
109
109
  - type: integer
110
110
  commentId:
@@ -125,9 +125,11 @@ components:
125
125
  name: integrationName
126
126
  in: path
127
127
  required: true
128
- description: Name of the integration
128
+ description: Name of the integration. Allowed characters are a-z, A-Z, 0-9, -, _, .
129
129
  schema:
130
130
  type: string
131
+ pattern: ^[a-zA-Z0-9-_.]+$
132
+ maxLength: 100
131
133
  installationId:
132
134
  name: installationId
133
135
  in: path
@@ -191,13 +193,6 @@ components:
191
193
  description: Type of the entity
192
194
  schema:
193
195
  $ref: "#/components/schemas/EntityType"
194
- environmentName:
195
- name: environmentName
196
- in: path
197
- required: true
198
- description: The unique name of the environment within the organization
199
- schema:
200
- type: string
201
196
  backofficeHostname:
202
197
  name: hostname
203
198
  in: path
@@ -205,6 +200,13 @@ components:
205
200
  description: The custom hostname
206
201
  schema:
207
202
  type: string
203
+ ifUnmodifiedSince:
204
+ in: header
205
+ name: If-Unmodified-Since
206
+ description: If provided, the operation will be rejected if the underlying resource has been modified since the date provided in the header.
207
+ schema:
208
+ type: string
209
+ format: date-time
208
210
  schemas:
209
211
  Error:
210
212
  type: object
@@ -336,6 +338,9 @@ components:
336
338
  description: Base64 content of the image
337
339
  visibility:
338
340
  $ref: "#/components/schemas/IntegrationVisibility"
341
+ target:
342
+ description: Allowed installation target for the integration. If not specified, the integration can be installed at `all` targets (org, spaces etc)
343
+ $ref: "#/components/schemas/IntegrationTarget"
339
344
  scopes:
340
345
  $ref: "#/components/schemas/IntegrationScopes"
341
346
  categories:
@@ -512,9 +517,6 @@ components:
512
517
  description: Private spaces are no longer supported by GitBook.
513
518
  deprecated: true
514
519
  type: boolean
515
- type:
516
- $ref: "#/components/schemas/SpaceType"
517
- default: other
518
520
  parent:
519
521
  type: string
520
522
  description: ID of a parent collection
@@ -657,35 +659,6 @@ components:
657
659
  - id
658
660
  - displayName
659
661
  - urls
660
- UserPreferences:
661
- type: object
662
- properties:
663
- object:
664
- type: string
665
- description: Type of Object, always equals to "user-preferences"
666
- enum:
667
- - user-preferences
668
- theme:
669
- $ref: "#/components/schemas/UserPreferencesTheme"
670
- urls:
671
- type: object
672
- description: URLs associated with the object
673
- properties:
674
- location:
675
- type: string
676
- description: URL of the user preferences in the API
677
- format: uri
678
- required:
679
- - object
680
- - theme
681
- - urls
682
- UserPreferencesTheme:
683
- type: string
684
- description: Preferred theme for the application
685
- enum:
686
- - light
687
- - dark
688
- - default
689
662
  UserAPIToken:
690
663
  type: object
691
664
  description: The API token details, excluding the token itself.
@@ -797,6 +770,39 @@ components:
797
770
  totalResources:
798
771
  type: number
799
772
  description: How many resources were processed
773
+ Embed:
774
+ allOf:
775
+ - type: object
776
+ properties:
777
+ title:
778
+ type: string
779
+ site:
780
+ type: string
781
+ icon:
782
+ type: string
783
+ required:
784
+ - title
785
+ - site
786
+ - oneOf:
787
+ - type: object
788
+ properties:
789
+ type:
790
+ type: string
791
+ enum:
792
+ - link
793
+ required:
794
+ - type
795
+ - type: object
796
+ properties:
797
+ type:
798
+ type: string
799
+ enum:
800
+ - rich
801
+ html:
802
+ type: string
803
+ required:
804
+ - type
805
+ - html
800
806
  Comment:
801
807
  allOf:
802
808
  - type: object
@@ -921,71 +927,1639 @@ components:
921
927
  properties:
922
928
  object:
923
929
  type: string
924
- description: Type of Object, always equals to "comment-reply"
930
+ description: Type of Object, always equals to "comment-reply"
931
+ enum:
932
+ - comment-reply
933
+ id:
934
+ type: string
935
+ description: Unique identifier for the reply.
936
+ postedBy:
937
+ $ref: "#/components/schemas/User"
938
+ postedAt:
939
+ $ref: "#/components/schemas/Date"
940
+ editedAt:
941
+ description: Date when the reply was edited, if it has been edited.
942
+ $ref: "#/components/schemas/Date"
943
+ reactions:
944
+ $ref: "#/components/schemas/EmojiReactions"
945
+ body:
946
+ $ref: "#/components/schemas/Document"
947
+ urls:
948
+ type: object
949
+ description: URLs associated with the object
950
+ properties:
951
+ location:
952
+ type: string
953
+ description: URL of the comment reply in the API
954
+ format: uri
955
+ required:
956
+ - location
957
+ required:
958
+ - object
959
+ - id
960
+ - body
961
+ - postedBy
962
+ - postedAt
963
+ - reactions
964
+ - urls
965
+ Document:
966
+ oneOf:
967
+ - $ref: "#/components/schemas/MarkdownDocument"
968
+ - $ref: "#/components/schemas/JSONDocument"
969
+ - type: object
970
+ properties: {}
971
+ additionalProperties: false
972
+ MarkdownDocument:
973
+ type: object
974
+ properties:
975
+ markdown:
976
+ type: string
977
+ description: Content of the document formatted as markdown
978
+ required:
979
+ - markdown
980
+ JSONDocument:
981
+ type: object
982
+ properties:
983
+ document:
984
+ type: object
985
+ properties:
986
+ object:
987
+ type: string
988
+ enum:
989
+ - document
990
+ data:
991
+ type: object
992
+ properties: {}
993
+ additionalProperties: false
994
+ nodes:
995
+ type: array
996
+ items:
997
+ $ref: "#/components/schemas/DocumentBlocksTopLevels"
998
+ required:
999
+ - object
1000
+ - data
1001
+ - nodes
1002
+ required:
1003
+ - document
1004
+ DocumentBlocksEssentials:
1005
+ oneOf:
1006
+ - $ref: "#/components/schemas/DocumentBlockParagraph"
1007
+ - $ref: "#/components/schemas/DocumentBlockHeading"
1008
+ - $ref: "#/components/schemas/DocumentBlockListOrdered"
1009
+ - $ref: "#/components/schemas/DocumentBlockListUnordered"
1010
+ - $ref: "#/components/schemas/DocumentBlockListTasks"
1011
+ - $ref: "#/components/schemas/DocumentBlockDivider"
1012
+ DocumentBlocksTopLevels:
1013
+ oneOf:
1014
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
1015
+ - $ref: "#/components/schemas/DocumentBlockQuote"
1016
+ - $ref: "#/components/schemas/DocumentBlockHint"
1017
+ - $ref: "#/components/schemas/DocumentBlockImages"
1018
+ - $ref: "#/components/schemas/DocumentBlockFile"
1019
+ - $ref: "#/components/schemas/DocumentBlockDrawing"
1020
+ - $ref: "#/components/schemas/DocumentBlockEmbed"
1021
+ - $ref: "#/components/schemas/DocumentBlockCode"
1022
+ - $ref: "#/components/schemas/DocumentBlockMath"
1023
+ - $ref: "#/components/schemas/DocumentBlockExpandable"
1024
+ - $ref: "#/components/schemas/DocumentBlockTabs"
1025
+ - $ref: "#/components/schemas/DocumentBlockTable"
1026
+ - $ref: "#/components/schemas/DocumentBlockSwagger"
1027
+ - $ref: "#/components/schemas/DocumentBlockContentRef"
1028
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
1029
+ DocumentNodeText:
1030
+ type: object
1031
+ properties:
1032
+ object:
1033
+ type: string
1034
+ enum:
1035
+ - text
1036
+ key:
1037
+ type: string
1038
+ leaves:
1039
+ type: array
1040
+ items:
1041
+ $ref: "#/components/schemas/DocumentTextLeaf"
1042
+ required:
1043
+ - object
1044
+ - leaves
1045
+ DocumentNodeFragment:
1046
+ type: object
1047
+ properties:
1048
+ object:
1049
+ type: string
1050
+ enum:
1051
+ - fragment
1052
+ key:
1053
+ type: string
1054
+ fragment:
1055
+ type: string
1056
+ type:
1057
+ type: string
1058
+ nodes:
1059
+ type: array
1060
+ items:
1061
+ $ref: "#/components/schemas/DocumentBlocksEssentials"
1062
+ required:
1063
+ - object
1064
+ - nodes
1065
+ DocumentTextLeaf:
1066
+ type: object
1067
+ properties:
1068
+ object:
1069
+ type: string
1070
+ enum:
1071
+ - leaf
1072
+ text:
1073
+ type: string
1074
+ marks:
1075
+ type: array
1076
+ items:
1077
+ $ref: "#/components/schemas/DocumentTextMark"
1078
+ required:
1079
+ - object
1080
+ - text
1081
+ - marks
1082
+ DocumentTextMark:
1083
+ allOf:
1084
+ - type: object
1085
+ properties:
1086
+ object:
1087
+ type: string
1088
+ enum:
1089
+ - mark
1090
+ required:
1091
+ - object
1092
+ - oneOf:
1093
+ - type: object
1094
+ properties:
1095
+ type:
1096
+ type: string
1097
+ enum:
1098
+ - bold
1099
+ required:
1100
+ - type
1101
+ - type: object
1102
+ properties:
1103
+ type:
1104
+ type: string
1105
+ enum:
1106
+ - italic
1107
+ required:
1108
+ - type
1109
+ - type: object
1110
+ properties:
1111
+ type:
1112
+ type: string
1113
+ enum:
1114
+ - code
1115
+ required:
1116
+ - type
1117
+ - type: object
1118
+ properties:
1119
+ type:
1120
+ type: string
1121
+ enum:
1122
+ - strikethrough
1123
+ required:
1124
+ - type
1125
+ - type: object
1126
+ properties:
1127
+ type:
1128
+ type: string
1129
+ enum:
1130
+ - color
1131
+ data:
1132
+ type: object
1133
+ properties:
1134
+ text:
1135
+ type: string
1136
+ enum:
1137
+ - default
1138
+ - green
1139
+ - blue
1140
+ - red
1141
+ - orange
1142
+ - yellow
1143
+ - purple
1144
+ background:
1145
+ type: string
1146
+ enum:
1147
+ - default
1148
+ - green
1149
+ - blue
1150
+ - red
1151
+ - orange
1152
+ - yellow
1153
+ - purple
1154
+ required:
1155
+ - text
1156
+ - background
1157
+ required:
1158
+ - type
1159
+ - data
1160
+ DocumentInlineLink:
1161
+ type: object
1162
+ properties:
1163
+ object:
1164
+ type: string
1165
+ enum:
1166
+ - inline
1167
+ type:
1168
+ type: string
1169
+ enum:
1170
+ - link
1171
+ key:
1172
+ type: string
1173
+ nodes:
1174
+ type: array
1175
+ items:
1176
+ oneOf:
1177
+ - $ref: "#/components/schemas/DocumentNodeText"
1178
+ data:
1179
+ type: object
1180
+ properties:
1181
+ ref:
1182
+ $ref: "#/components/schemas/ContentRef"
1183
+ required:
1184
+ - ref
1185
+ required:
1186
+ - object
1187
+ - type
1188
+ - nodes
1189
+ - data
1190
+ DocumentInlineMath:
1191
+ type: object
1192
+ properties:
1193
+ object:
1194
+ type: string
1195
+ enum:
1196
+ - inline
1197
+ type:
1198
+ type: string
1199
+ enum:
1200
+ - inline-math
1201
+ key:
1202
+ type: string
1203
+ data:
1204
+ type: object
1205
+ properties:
1206
+ formula:
1207
+ type: string
1208
+ required:
1209
+ - formula
1210
+ isVoid:
1211
+ type: boolean
1212
+ enum:
1213
+ - true
1214
+ required:
1215
+ - object
1216
+ - type
1217
+ - data
1218
+ - isVoid
1219
+ DocumentInlineEmoji:
1220
+ type: object
1221
+ properties:
1222
+ object:
1223
+ type: string
1224
+ enum:
1225
+ - inline
1226
+ type:
1227
+ type: string
1228
+ enum:
1229
+ - emoji
1230
+ key:
1231
+ type: string
1232
+ data:
1233
+ type: object
1234
+ properties:
1235
+ code:
1236
+ type: string
1237
+ required:
1238
+ - code
1239
+ isVoid:
1240
+ type: boolean
1241
+ enum:
1242
+ - true
1243
+ required:
1244
+ - object
1245
+ - type
1246
+ - data
1247
+ - isVoid
1248
+ DocumentInlineImage:
1249
+ type: object
1250
+ properties:
1251
+ object:
1252
+ type: string
1253
+ enum:
1254
+ - inline
1255
+ type:
1256
+ type: string
1257
+ enum:
1258
+ - inline-image
1259
+ key:
1260
+ type: string
1261
+ data:
1262
+ type: object
1263
+ properties:
1264
+ ref:
1265
+ oneOf:
1266
+ - $ref: "#/components/schemas/ContentRefURL"
1267
+ - $ref: "#/components/schemas/ContentRefFile"
1268
+ refDark:
1269
+ oneOf:
1270
+ - $ref: "#/components/schemas/ContentRefURL"
1271
+ - $ref: "#/components/schemas/ContentRefFile"
1272
+ caption:
1273
+ type: string
1274
+ size:
1275
+ type: string
1276
+ enum:
1277
+ - original
1278
+ - line
1279
+ required:
1280
+ - ref
1281
+ isVoid:
1282
+ type: boolean
1283
+ enum:
1284
+ - true
1285
+ required:
1286
+ - object
1287
+ - type
1288
+ - data
1289
+ - isVoid
1290
+ DocumentInlineMention:
1291
+ type: object
1292
+ properties:
1293
+ object:
1294
+ type: string
1295
+ enum:
1296
+ - inline
1297
+ type:
1298
+ type: string
1299
+ enum:
1300
+ - mention
1301
+ key:
1302
+ type: string
1303
+ data:
1304
+ type: object
1305
+ properties:
1306
+ ref:
1307
+ $ref: "#/components/schemas/ContentRef"
1308
+ required:
1309
+ - ref
1310
+ isVoid:
1311
+ type: boolean
1312
+ enum:
1313
+ - true
1314
+ required:
1315
+ - object
1316
+ - type
1317
+ - data
1318
+ - isVoid
1319
+ DocumentInlineAnnotation:
1320
+ type: object
1321
+ properties:
1322
+ object:
1323
+ type: string
1324
+ enum:
1325
+ - inline
1326
+ type:
1327
+ type: string
1328
+ enum:
1329
+ - annotation
1330
+ key:
1331
+ type: string
1332
+ fragments:
1333
+ type: array
1334
+ items:
1335
+ allOf:
1336
+ - $ref: "#/components/schemas/DocumentNodeFragment"
1337
+ - type: object
1338
+ properties:
1339
+ type:
1340
+ type: string
1341
+ enum:
1342
+ - annotation-body
1343
+ nodes:
1344
+ type: array
1345
+ items:
1346
+ oneOf:
1347
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
1348
+ - $ref: "#/components/schemas/DocumentBlockCode"
1349
+ minItems: 1
1350
+ required:
1351
+ - nodes
1352
+ - type
1353
+ isVoid:
1354
+ type: boolean
1355
+ enum:
1356
+ - true
1357
+ required:
1358
+ - object
1359
+ - type
1360
+ - fragments
1361
+ - isVoid
1362
+ DocumentInlinesRich:
1363
+ $ref: "#/components/schemas/DocumentInlineImage"
1364
+ DocumentBlockParagraph:
1365
+ type: object
1366
+ properties:
1367
+ object:
1368
+ type: string
1369
+ enum:
1370
+ - block
1371
+ type:
1372
+ type: string
1373
+ enum:
1374
+ - paragraph
1375
+ key:
1376
+ type: string
1377
+ nodes:
1378
+ type: array
1379
+ items:
1380
+ $ref: "#/components/schemas/DocumentBlockHeading/properties/nodes/items"
1381
+ required:
1382
+ - object
1383
+ - type
1384
+ - nodes
1385
+ DocumentBlockHeading:
1386
+ type: object
1387
+ properties:
1388
+ object:
1389
+ type: string
1390
+ enum:
1391
+ - block
1392
+ type:
1393
+ type: string
1394
+ enum:
1395
+ - heading-1
1396
+ - heading-2
1397
+ - heading-3
1398
+ key:
1399
+ type: string
1400
+ nodes:
1401
+ type: array
1402
+ items:
1403
+ oneOf:
1404
+ - $ref: "#/components/schemas/DocumentNodeText"
1405
+ - $ref: "#/components/schemas/DocumentInlineLink"
1406
+ - $ref: "#/components/schemas/DocumentInlineEmoji"
1407
+ - $ref: "#/components/schemas/DocumentInlineMath"
1408
+ - $ref: "#/components/schemas/DocumentInlineImage"
1409
+ - $ref: "#/components/schemas/DocumentInlineAnnotation"
1410
+ - $ref: "#/components/schemas/DocumentInlineMention"
1411
+ data:
1412
+ type: object
1413
+ properties:
1414
+ id:
1415
+ type: string
1416
+ pattern: ^[-a-z0-9.+_]+$
1417
+ meta:
1418
+ type: object
1419
+ properties:
1420
+ id:
1421
+ description: Unique ID to be used in an URL for the block.
1422
+ type: string
1423
+ required:
1424
+ - id
1425
+ required:
1426
+ - object
1427
+ - type
1428
+ - nodes
1429
+ - data
1430
+ DocumentBlockQuote:
1431
+ type: object
1432
+ properties:
1433
+ object:
1434
+ type: string
1435
+ enum:
1436
+ - block
1437
+ type:
1438
+ type: string
1439
+ enum:
1440
+ - quote
1441
+ key:
1442
+ type: string
1443
+ nodes:
1444
+ type: array
1445
+ items:
1446
+ oneOf:
1447
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
1448
+ - $ref: "#/components/schemas/DocumentBlockQuote"
1449
+ required:
1450
+ - object
1451
+ - type
1452
+ - nodes
1453
+ DocumentBlockHint:
1454
+ type: object
1455
+ properties:
1456
+ object:
1457
+ type: string
1458
+ enum:
1459
+ - block
1460
+ type:
1461
+ type: string
1462
+ enum:
1463
+ - hint
1464
+ key:
1465
+ type: string
1466
+ data:
1467
+ type: object
1468
+ properties:
1469
+ style:
1470
+ type: string
1471
+ enum:
1472
+ - info
1473
+ - warning
1474
+ - danger
1475
+ - success
1476
+ required:
1477
+ - style
1478
+ nodes:
1479
+ type: array
1480
+ items:
1481
+ $ref: "#/components/schemas/DocumentBlocksEssentials"
1482
+ required:
1483
+ - object
1484
+ - type
1485
+ - data
1486
+ - nodes
1487
+ DocumentBlockListUnordered:
1488
+ type: object
1489
+ properties:
1490
+ object:
1491
+ type: string
1492
+ enum:
1493
+ - block
1494
+ type:
1495
+ type: string
1496
+ enum:
1497
+ - list-unordered
1498
+ key:
1499
+ type: string
1500
+ nodes:
1501
+ type: array
1502
+ items:
1503
+ oneOf:
1504
+ - $ref: "#/components/schemas/DocumentBlockListItem"
1505
+ required:
1506
+ - object
1507
+ - type
1508
+ - nodes
1509
+ DocumentBlockListOrdered:
1510
+ type: object
1511
+ properties:
1512
+ object:
1513
+ type: string
1514
+ enum:
1515
+ - block
1516
+ type:
1517
+ type: string
1518
+ enum:
1519
+ - list-ordered
1520
+ key:
1521
+ type: string
1522
+ data:
1523
+ type: object
1524
+ properties:
1525
+ start:
1526
+ type: number
1527
+ description: An integer to start counting from for the list items.
1528
+ nodes:
1529
+ type: array
1530
+ items:
1531
+ oneOf:
1532
+ - $ref: "#/components/schemas/DocumentBlockListItem"
1533
+ required:
1534
+ - object
1535
+ - type
1536
+ - data
1537
+ - nodes
1538
+ DocumentBlockListTasks:
1539
+ type: object
1540
+ properties:
1541
+ object:
1542
+ type: string
1543
+ enum:
1544
+ - block
1545
+ type:
1546
+ type: string
1547
+ enum:
1548
+ - list-tasks
1549
+ key:
1550
+ type: string
1551
+ nodes:
1552
+ type: array
1553
+ items:
1554
+ oneOf:
1555
+ - $ref: "#/components/schemas/DocumentBlockTaskListItem"
1556
+ required:
1557
+ - object
1558
+ - type
1559
+ - nodes
1560
+ DocumentBlockListItem:
1561
+ type: object
1562
+ properties:
1563
+ object:
1564
+ type: string
1565
+ enum:
1566
+ - block
1567
+ type:
1568
+ type: string
1569
+ enum:
1570
+ - list-item
1571
+ key:
1572
+ type: string
1573
+ nodes:
1574
+ type: array
1575
+ items:
1576
+ oneOf:
1577
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
1578
+ required:
1579
+ - object
1580
+ - type
1581
+ - nodes
1582
+ DocumentBlockTaskListItem:
1583
+ allOf:
1584
+ - $ref: "#/components/schemas/DocumentBlockListItem"
1585
+ - type: object
1586
+ properties:
1587
+ data:
1588
+ type: object
1589
+ properties:
1590
+ checked:
1591
+ type: boolean
1592
+ required:
1593
+ - checked
1594
+ required:
1595
+ - data
1596
+ DocumentBlockImages:
1597
+ type: object
1598
+ properties:
1599
+ object:
1600
+ type: string
1601
+ enum:
1602
+ - block
1603
+ type:
1604
+ type: string
1605
+ enum:
1606
+ - images
1607
+ key:
1608
+ type: string
1609
+ data:
1610
+ type: object
1611
+ properties:
1612
+ align:
1613
+ type: string
1614
+ enum:
1615
+ - center
1616
+ - left
1617
+ - right
1618
+ fullWidth:
1619
+ type: boolean
1620
+ nodes:
1621
+ type: array
1622
+ items:
1623
+ $ref: "#/components/schemas/DocumentBlockImage"
1624
+ isVoid:
1625
+ type: boolean
1626
+ enum:
1627
+ - true
1628
+ required:
1629
+ - object
1630
+ - type
1631
+ - data
1632
+ - nodes
1633
+ - isVoid
1634
+ DocumentBlockImage:
1635
+ type: object
1636
+ properties:
1637
+ object:
1638
+ type: string
1639
+ enum:
1640
+ - block
1641
+ type:
1642
+ type: string
1643
+ enum:
1644
+ - image
1645
+ key:
1646
+ type: string
1647
+ data:
1648
+ type: object
1649
+ properties:
1650
+ ref:
1651
+ oneOf:
1652
+ - $ref: "#/components/schemas/ContentRefURL"
1653
+ - $ref: "#/components/schemas/ContentRefFile"
1654
+ refDark:
1655
+ oneOf:
1656
+ - $ref: "#/components/schemas/ContentRefURL"
1657
+ - $ref: "#/components/schemas/ContentRefFile"
1658
+ width:
1659
+ oneOf:
1660
+ - type: number
1661
+ - type: object
1662
+ properties:
1663
+ unit:
1664
+ type: string
1665
+ value:
1666
+ type: number
1667
+ required:
1668
+ - unit
1669
+ - value
1670
+ height:
1671
+ $ref: "#/components/schemas/DocumentBlockImage/properties/data/properties/width"
1672
+ required:
1673
+ - ref
1674
+ fragments:
1675
+ type: array
1676
+ items:
1677
+ allOf:
1678
+ - $ref: "#/components/schemas/DocumentNodeFragment"
1679
+ - type: object
1680
+ properties:
1681
+ type:
1682
+ type: string
1683
+ enum:
1684
+ - caption
1685
+ nodes:
1686
+ type: array
1687
+ items:
1688
+ $ref: "#/components/schemas/DocumentBlockParagraph"
1689
+ required:
1690
+ - nodes
1691
+ - type
1692
+ isVoid:
1693
+ type: boolean
1694
+ enum:
1695
+ - true
1696
+ required:
1697
+ - object
1698
+ - type
1699
+ - data
1700
+ - fragments
1701
+ - isVoid
1702
+ DocumentBlockFile:
1703
+ type: object
1704
+ properties:
1705
+ object:
1706
+ type: string
1707
+ enum:
1708
+ - block
1709
+ type:
1710
+ type: string
1711
+ enum:
1712
+ - file
1713
+ key:
1714
+ type: string
1715
+ data:
1716
+ type: object
1717
+ properties:
1718
+ ref:
1719
+ oneOf:
1720
+ - $ref: "#/components/schemas/ContentRefFile"
1721
+ required:
1722
+ - ref
1723
+ isVoid:
1724
+ type: boolean
1725
+ enum:
1726
+ - true
1727
+ required:
1728
+ - object
1729
+ - type
1730
+ - data
1731
+ - isVoid
1732
+ DocumentBlockDrawing:
1733
+ type: object
1734
+ properties:
1735
+ object:
1736
+ type: string
1737
+ enum:
1738
+ - block
1739
+ type:
1740
+ type: string
1741
+ enum:
1742
+ - drawing
1743
+ key:
1744
+ type: string
1745
+ data:
1746
+ type: object
1747
+ properties:
1748
+ ref:
1749
+ oneOf:
1750
+ - $ref: "#/components/schemas/ContentRefFile"
1751
+ isVoid:
1752
+ type: boolean
1753
+ enum:
1754
+ - true
1755
+ required:
1756
+ - object
1757
+ - type
1758
+ - data
1759
+ - isVoid
1760
+ DocumentBlockEmbed:
1761
+ type: object
1762
+ properties:
1763
+ object:
1764
+ type: string
1765
+ enum:
1766
+ - block
1767
+ type:
1768
+ type: string
1769
+ enum:
1770
+ - embed
1771
+ key:
1772
+ type: string
1773
+ data:
1774
+ type: object
1775
+ properties:
1776
+ url:
1777
+ type: string
1778
+ fullWidth:
1779
+ type: boolean
1780
+ required:
1781
+ - url
1782
+ isVoid:
1783
+ type: boolean
1784
+ enum:
1785
+ - true
1786
+ required:
1787
+ - object
1788
+ - type
1789
+ - data
1790
+ - isVoid
1791
+ DocumentBlockCode:
1792
+ type: object
1793
+ properties:
1794
+ object:
1795
+ type: string
1796
+ enum:
1797
+ - block
1798
+ type:
1799
+ type: string
1800
+ enum:
1801
+ - code
1802
+ key:
1803
+ type: string
1804
+ data:
1805
+ type: object
1806
+ properties:
1807
+ syntax:
1808
+ type: string
1809
+ title:
1810
+ type: string
1811
+ overflow:
1812
+ type: string
1813
+ default: scroll
1814
+ enum:
1815
+ - scroll
1816
+ - wrap
1817
+ lineNumbers:
1818
+ type: boolean
1819
+ fullWidth:
1820
+ type: boolean
1821
+ nodes:
1822
+ type: array
1823
+ items:
1824
+ $ref: "#/components/schemas/DocumentBlockCodeLine"
1825
+ required:
1826
+ - object
1827
+ - type
1828
+ - data
1829
+ - nodes
1830
+ DocumentBlockCodeLine:
1831
+ type: object
1832
+ properties:
1833
+ object:
1834
+ type: string
1835
+ enum:
1836
+ - block
1837
+ type:
1838
+ type: string
1839
+ enum:
1840
+ - code-line
1841
+ key:
1842
+ type: string
1843
+ nodes:
1844
+ type: array
1845
+ items:
1846
+ oneOf:
1847
+ - $ref: "#/components/schemas/DocumentNodeText"
1848
+ - $ref: "#/components/schemas/DocumentInlineAnnotation"
1849
+ data:
1850
+ type: object
1851
+ properties:
1852
+ highlighted:
1853
+ type: boolean
1854
+ required:
1855
+ - object
1856
+ - type
1857
+ - nodes
1858
+ - data
1859
+ DocumentBlockMath:
1860
+ type: object
1861
+ properties:
1862
+ object:
1863
+ type: string
1864
+ enum:
1865
+ - block
1866
+ type:
1867
+ type: string
1868
+ enum:
1869
+ - math
1870
+ key:
1871
+ type: string
1872
+ data:
1873
+ type: object
1874
+ properties:
1875
+ formula:
1876
+ type: string
1877
+ required:
1878
+ - formula
1879
+ isVoid:
1880
+ type: boolean
1881
+ enum:
1882
+ - true
1883
+ required:
1884
+ - object
1885
+ - type
1886
+ - data
1887
+ - isVoid
1888
+ DocumentBlockExpandable:
1889
+ type: object
1890
+ properties:
1891
+ object:
1892
+ type: string
1893
+ enum:
1894
+ - block
1895
+ type:
1896
+ type: string
1897
+ enum:
1898
+ - expandable
1899
+ key:
1900
+ type: string
1901
+ isVoid:
1902
+ type: boolean
1903
+ enum:
1904
+ - true
1905
+ fragments:
1906
+ type: array
1907
+ items:
1908
+ oneOf:
1909
+ - allOf:
1910
+ - $ref: "#/components/schemas/DocumentNodeFragment"
1911
+ - type: object
1912
+ properties:
1913
+ fragment:
1914
+ type: string
1915
+ enum:
1916
+ - expandable-title
1917
+ type:
1918
+ type: string
1919
+ enum:
1920
+ - expandable-title
1921
+ nodes:
1922
+ type: array
1923
+ items:
1924
+ $ref: "#/components/schemas/DocumentBlockParagraph"
1925
+ minItems: 1
1926
+ maxItems: 1
1927
+ required:
1928
+ - nodes
1929
+ - fragment
1930
+ - type
1931
+ - allOf:
1932
+ - $ref: "#/components/schemas/DocumentNodeFragment"
1933
+ - type: object
1934
+ properties:
1935
+ fragment:
1936
+ type: string
1937
+ enum:
1938
+ - expandable-body
1939
+ type:
1940
+ type: string
1941
+ enum:
1942
+ - expandable-body
1943
+ nodes:
1944
+ type: array
1945
+ items:
1946
+ oneOf:
1947
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
1948
+ - $ref: "#/components/schemas/DocumentBlockCode"
1949
+ minItems: 1
1950
+ required:
1951
+ - nodes
1952
+ - fragment
1953
+ - type
1954
+ meta:
1955
+ type: object
1956
+ properties:
1957
+ id:
1958
+ description: Unique ID to be used in an URL for the block.
1959
+ type: string
1960
+ required:
1961
+ - id
1962
+ required:
1963
+ - object
1964
+ - type
1965
+ - isVoid
1966
+ - fragments
1967
+ DocumentBlockTabs:
1968
+ type: object
1969
+ properties:
1970
+ object:
1971
+ type: string
1972
+ enum:
1973
+ - block
1974
+ type:
1975
+ type: string
1976
+ enum:
1977
+ - tabs
1978
+ key:
1979
+ type: string
1980
+ nodes:
1981
+ type: array
1982
+ items:
1983
+ $ref: "#/components/schemas/DocumentBlockTabsItem"
1984
+ required:
1985
+ - object
1986
+ - type
1987
+ - nodes
1988
+ DocumentBlockSwagger:
1989
+ type: object
1990
+ properties:
1991
+ object:
1992
+ type: string
1993
+ enum:
1994
+ - block
1995
+ type:
1996
+ type: string
1997
+ enum:
1998
+ - swagger
1999
+ key:
2000
+ type: string
2001
+ data:
2002
+ type: object
2003
+ properties:
2004
+ ref:
2005
+ oneOf:
2006
+ - $ref: "#/components/schemas/ContentRefFile"
2007
+ path:
2008
+ type: string
2009
+ description: Path of the operation in the OpenAPI spec.
2010
+ method:
2011
+ type: string
2012
+ description: HTTP method of the operation in the OpenAPI spec.
2013
+ expanded:
2014
+ type: boolean
2015
+ description: If true, the block is opened by default.
2016
+ fullWidth:
2017
+ type: boolean
2018
+ required:
2019
+ - ref
2020
+ isVoid:
2021
+ type: boolean
2022
+ enum:
2023
+ - true
2024
+ meta:
2025
+ type: object
2026
+ properties:
2027
+ id:
2028
+ description: Unique ID to be used in an URL for the block.
2029
+ type: string
2030
+ required:
2031
+ - id
2032
+ required:
2033
+ - object
2034
+ - type
2035
+ - data
2036
+ - isVoid
2037
+ DocumentBlockTable:
2038
+ type: object
2039
+ properties:
2040
+ object:
2041
+ type: string
2042
+ enum:
2043
+ - block
2044
+ type:
2045
+ type: string
2046
+ enum:
2047
+ - table
2048
+ key:
2049
+ type: string
2050
+ isVoid:
2051
+ type: boolean
2052
+ enum:
2053
+ - true
2054
+ data:
2055
+ type: object
2056
+ properties:
2057
+ view:
2058
+ oneOf:
2059
+ - $ref: "#/components/schemas/DocumentTableViewGrid"
2060
+ - $ref: "#/components/schemas/DocumentTableViewCards"
2061
+ records:
2062
+ type: object
2063
+ additionalProperties:
2064
+ $ref: "#/components/schemas/DocumentTableRecord"
2065
+ definition:
2066
+ type: object
2067
+ additionalProperties:
2068
+ $ref: "#/components/schemas/DocumentTableDefinition"
2069
+ fullWidth:
2070
+ type: boolean
2071
+ description: Whether to render the block as a full width one
2072
+ required:
2073
+ - view
2074
+ - records
2075
+ - definition
2076
+ fragments:
2077
+ type: array
2078
+ items:
2079
+ $ref: "#/components/schemas/DocumentNodeFragment"
2080
+ required:
2081
+ - object
2082
+ - type
2083
+ - data
2084
+ - isVoid
2085
+ - fragments
2086
+ DocumentTableRecord:
2087
+ type: object
2088
+ properties:
2089
+ orderIndex:
2090
+ type: string
2091
+ values:
2092
+ type: object
2093
+ additionalProperties:
2094
+ oneOf:
2095
+ - type: number
2096
+ - type: string
2097
+ - type: boolean
2098
+ - type: array
2099
+ items:
2100
+ type: string
2101
+ - $ref: "#/components/schemas/ContentRef"
2102
+ required:
2103
+ - orderIndex
2104
+ - values
2105
+ DocumentTableDefinitionBase:
2106
+ type: object
2107
+ properties:
2108
+ id:
2109
+ type: string
2110
+ title:
2111
+ type: string
2112
+ description: Title for the column
2113
+ required:
2114
+ - id
2115
+ - title
2116
+ DocumentTableDefinition:
2117
+ oneOf:
2118
+ - $ref: "#/components/schemas/DocumentTableDefinitionText"
2119
+ - $ref: "#/components/schemas/DocumentTableDefinitionNumber"
2120
+ - $ref: "#/components/schemas/DocumentTableDefinitionCheckbox"
2121
+ - $ref: "#/components/schemas/DocumentTableDefinitionFiles"
2122
+ - $ref: "#/components/schemas/DocumentTableDefinitionUsers"
2123
+ - $ref: "#/components/schemas/DocumentTableDefinitionRating"
2124
+ - $ref: "#/components/schemas/DocumentTableDefinitionSelect"
2125
+ - $ref: "#/components/schemas/DocumentTableDefinitionContentRef"
2126
+ DocumentTableDefinitionText:
2127
+ allOf:
2128
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2129
+ - type: object
2130
+ properties:
2131
+ type:
2132
+ type: string
2133
+ enum:
2134
+ - text
2135
+ textAlignment:
2136
+ type: string
2137
+ enum:
2138
+ - center
2139
+ - right
2140
+ - left
2141
+ required:
2142
+ - type
2143
+ - textAlignment
2144
+ DocumentTableDefinitionNumber:
2145
+ allOf:
2146
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2147
+ - type: object
2148
+ properties:
2149
+ type:
2150
+ type: string
2151
+ enum:
2152
+ - number
2153
+ required:
2154
+ - type
2155
+ DocumentTableDefinitionCheckbox:
2156
+ allOf:
2157
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2158
+ - type: object
2159
+ properties:
2160
+ type:
2161
+ type: string
2162
+ enum:
2163
+ - checkbox
2164
+ required:
2165
+ - type
2166
+ DocumentTableDefinitionFiles:
2167
+ allOf:
2168
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2169
+ - type: object
2170
+ properties:
2171
+ type:
2172
+ type: string
2173
+ enum:
2174
+ - files
2175
+ required:
2176
+ - type
2177
+ DocumentTableDefinitionUsers:
2178
+ allOf:
2179
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2180
+ - type: object
2181
+ properties:
2182
+ type:
2183
+ type: string
2184
+ enum:
2185
+ - users
2186
+ multiple:
2187
+ type: boolean
2188
+ required:
2189
+ - type
2190
+ - multiple
2191
+ DocumentTableDefinitionRating:
2192
+ allOf:
2193
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2194
+ - type: object
2195
+ properties:
2196
+ type:
2197
+ type: string
2198
+ enum:
2199
+ - rating
2200
+ max:
2201
+ type: number
2202
+ required:
2203
+ - type
2204
+ - max
2205
+ DocumentTableDefinitionSelect:
2206
+ allOf:
2207
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2208
+ - type: object
2209
+ properties:
2210
+ type:
2211
+ type: string
2212
+ enum:
2213
+ - select
2214
+ multiple:
2215
+ type: boolean
2216
+ options:
2217
+ type: array
2218
+ items:
2219
+ $ref: "#/components/schemas/DocumentTableSelectOption"
2220
+ required:
2221
+ - type
2222
+ - multiple
2223
+ - options
2224
+ DocumentTableDefinitionContentRef:
2225
+ allOf:
2226
+ - $ref: "#/components/schemas/DocumentTableDefinitionBase"
2227
+ - type: object
2228
+ properties:
2229
+ type:
2230
+ type: string
2231
+ enum:
2232
+ - content-ref
2233
+ required:
2234
+ - type
2235
+ DocumentTableSelectOption:
2236
+ type: object
2237
+ properties:
2238
+ value:
2239
+ type: string
2240
+ label:
2241
+ type: string
2242
+ color:
2243
+ type: string
2244
+ required:
2245
+ - value
2246
+ - label
2247
+ - color
2248
+ DocumentTableViewCards:
2249
+ type: object
2250
+ properties:
2251
+ type:
2252
+ type: string
2253
+ enum:
2254
+ - cards
2255
+ cardSize:
2256
+ type: string
2257
+ description: Size of the cards. It indicates how many columns will be used
2258
+ enum:
2259
+ - medium
2260
+ - large
2261
+ columns:
2262
+ type: array
2263
+ description: Ordered list of the definition IDs to display
2264
+ items:
2265
+ type: string
2266
+ targetDefinition:
2267
+ type: string
2268
+ description: Definition ID to use as a target link for the card
2269
+ coverDefinition:
2270
+ type: string
2271
+ description: Definition ID to use as a cover image
2272
+ hideColumnTitle:
2273
+ type: boolean
2274
+ description: Should we display the column title or not
2275
+ required:
2276
+ - type
2277
+ - columns
2278
+ - cardSize
2279
+ DocumentTableViewGrid:
2280
+ type: object
2281
+ properties:
2282
+ type:
2283
+ type: string
2284
+ enum:
2285
+ - grid
2286
+ columns:
2287
+ type: array
2288
+ description: Ordered list of the definition IDs to display
2289
+ items:
2290
+ type: string
2291
+ columnWidths:
2292
+ type: object
2293
+ description: Percent width of each column
2294
+ additionalProperties:
2295
+ type: number
2296
+ hideHeader:
2297
+ type: boolean
2298
+ description: Should we display the header with column titles
2299
+ useNewSizing:
2300
+ type: boolean
2301
+ description: |
2302
+ Tables in GitBook originally used a scaled width approach i.e. the width defined
2303
+ in columnWidths would be scaled to ensure a 100% width table.
2304
+
2305
+ We later changed this to treat the widths in columnWidths as exact values - they are
2306
+ never scaled. A columnWidth of 50 is rendered as 50px.
2307
+
2308
+ In order to maintain backwards compatibility, we track whether or not we
2309
+ use the new system here.
2310
+
2311
+ All new tables should have this value set to true, older tables will have it set
2312
+ to undefined.
2313
+ required:
2314
+ - type
2315
+ - columns
2316
+ - hideHeader
2317
+ DocumentBlockTabsItem:
2318
+ type: object
2319
+ properties:
2320
+ object:
2321
+ type: string
2322
+ enum:
2323
+ - block
2324
+ type:
2325
+ type: string
2326
+ enum:
2327
+ - tabs-item
2328
+ key:
2329
+ type: string
2330
+ nodes:
2331
+ type: array
2332
+ items:
2333
+ oneOf:
2334
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
2335
+ - $ref: "#/components/schemas/DocumentBlockContentRef"
2336
+ - $ref: "#/components/schemas/DocumentBlockCode"
2337
+ - $ref: "#/components/schemas/DocumentBlockEmbed"
2338
+ - $ref: "#/components/schemas/DocumentBlockFile"
2339
+ - $ref: "#/components/schemas/DocumentBlockImages"
2340
+ - $ref: "#/components/schemas/DocumentBlockDrawing"
2341
+ - $ref: "#/components/schemas/DocumentBlockHint"
2342
+ - $ref: "#/components/schemas/DocumentBlockQuote"
2343
+ - $ref: "#/components/schemas/DocumentBlockMath"
2344
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
2345
+ data:
2346
+ type: object
2347
+ properties:
2348
+ title:
2349
+ type: string
2350
+ meta:
2351
+ type: object
2352
+ properties:
2353
+ id:
2354
+ description: Unique ID to be used in an URL for the block.
2355
+ type: string
2356
+ required:
2357
+ - id
2358
+ required:
2359
+ - object
2360
+ - type
2361
+ - nodes
2362
+ - data
2363
+ DocumentBlockContentRef:
2364
+ type: object
2365
+ properties:
2366
+ object:
2367
+ type: string
2368
+ enum:
2369
+ - block
2370
+ type:
2371
+ type: string
2372
+ enum:
2373
+ - content-ref
2374
+ key:
2375
+ type: string
2376
+ data:
2377
+ type: object
2378
+ properties:
2379
+ ref:
2380
+ $ref: "#/components/schemas/ContentRef"
2381
+ required:
2382
+ - ref
2383
+ isVoid:
2384
+ type: boolean
2385
+ enum:
2386
+ - true
2387
+ required:
2388
+ - object
2389
+ - type
2390
+ - data
2391
+ - isVoid
2392
+ DocumentBlockIntegration:
2393
+ type: object
2394
+ properties:
2395
+ object:
2396
+ type: string
2397
+ enum:
2398
+ - block
2399
+ type:
2400
+ type: string
2401
+ enum:
2402
+ - integration
2403
+ key:
2404
+ type: string
2405
+ data:
2406
+ type: object
2407
+ properties:
2408
+ integration:
2409
+ type: string
2410
+ description: Name of the integration
2411
+ block:
2412
+ type: string
2413
+ description: ID of the block in the integration
2414
+ props:
2415
+ type: object
2416
+ description: Properties passed to the block during rendering
2417
+ additionalProperties:
2418
+ description: Any value
2419
+ action:
2420
+ $ref: "#/components/schemas/ContentKitAction"
2421
+ url:
2422
+ type: string
2423
+ description: |
2424
+ URL associated with the content represented by the block.
2425
+ This property is set when creating a block from a URL (unfurl) to ensure
2426
+ we can convert the block back to an embed.
2427
+ fullWidth:
2428
+ type: boolean
2429
+ required:
2430
+ - integration
2431
+ - block
2432
+ - props
2433
+ isVoid:
2434
+ type: boolean
2435
+ enum:
2436
+ - true
2437
+ required:
2438
+ - object
2439
+ - type
2440
+ - data
2441
+ - isVoid
2442
+ DocumentBlockDivider:
2443
+ type: object
2444
+ properties:
2445
+ object:
2446
+ type: string
2447
+ enum:
2448
+ - block
2449
+ type:
2450
+ type: string
925
2451
  enum:
926
- - comment-reply
927
- id:
2452
+ - divider
2453
+ key:
928
2454
  type: string
929
- description: Unique identifier for the reply.
930
- postedBy:
931
- $ref: "#/components/schemas/User"
932
- postedAt:
933
- $ref: "#/components/schemas/Date"
934
- editedAt:
935
- description: Date when the reply was edited, if it has been edited.
936
- $ref: "#/components/schemas/Date"
937
- reactions:
938
- $ref: "#/components/schemas/EmojiReactions"
939
- body:
940
- $ref: "#/components/schemas/Document"
941
- urls:
942
- type: object
943
- description: URLs associated with the object
944
- properties:
945
- location:
946
- type: string
947
- description: URL of the comment reply in the API
948
- format: uri
949
- required:
950
- - location
2455
+ isVoid:
2456
+ type: boolean
2457
+ enum:
2458
+ - true
951
2459
  required:
952
2460
  - object
953
- - id
954
- - body
955
- - postedBy
956
- - postedAt
957
- - reactions
958
- - urls
959
- Document:
2461
+ - type
2462
+ - isVoid
2463
+ ContentRef:
960
2464
  oneOf:
961
- - $ref: "#/components/schemas/MarkdownDocument"
962
- - $ref: "#/components/schemas/JSONDocument"
963
- - type: object
964
- properties: {}
965
- additionalProperties: false
966
- MarkdownDocument:
2465
+ - $ref: "#/components/schemas/ContentRefFile"
2466
+ - $ref: "#/components/schemas/ContentRefURL"
2467
+ - $ref: "#/components/schemas/ContentRefPage"
2468
+ - $ref: "#/components/schemas/ContentRefAnchor"
2469
+ - $ref: "#/components/schemas/ContentRefUser"
2470
+ - $ref: "#/components/schemas/ContentRefCollection"
2471
+ - $ref: "#/components/schemas/ContentRefSpace"
2472
+ ContentRefURL:
967
2473
  type: object
968
2474
  properties:
969
- markdown:
2475
+ kind:
2476
+ type: string
2477
+ enum:
2478
+ - url
2479
+ url:
970
2480
  type: string
971
- description: Content of the document formatted as markdown
972
2481
  required:
973
- - markdown
974
- JSONDocument:
2482
+ - kind
2483
+ - url
2484
+ ContentRefFile:
975
2485
  type: object
976
2486
  properties:
977
- document:
978
- type: object
979
- properties:
980
- nodes:
981
- type: array
982
- items:
983
- type: object
984
- properties: {}
985
- required:
986
- - nodes
2487
+ kind:
2488
+ type: string
2489
+ enum:
2490
+ - file
2491
+ file:
2492
+ type: string
987
2493
  required:
988
- - document
2494
+ - kind
2495
+ - file
2496
+ ContentRefPage:
2497
+ type: object
2498
+ properties:
2499
+ kind:
2500
+ type: string
2501
+ enum:
2502
+ - page
2503
+ page:
2504
+ type: string
2505
+ space:
2506
+ type: string
2507
+ required:
2508
+ - kind
2509
+ - page
2510
+ - space
2511
+ ContentRefAnchor:
2512
+ type: object
2513
+ properties:
2514
+ kind:
2515
+ type: string
2516
+ enum:
2517
+ - anchor
2518
+ anchor:
2519
+ type: string
2520
+ space:
2521
+ type: string
2522
+ page:
2523
+ type: string
2524
+ required:
2525
+ - kind
2526
+ - anchor
2527
+ ContentRefUser:
2528
+ type: object
2529
+ properties:
2530
+ kind:
2531
+ type: string
2532
+ enum:
2533
+ - user
2534
+ user:
2535
+ type: string
2536
+ required:
2537
+ - kind
2538
+ - user
2539
+ ContentRefCollection:
2540
+ type: object
2541
+ properties:
2542
+ kind:
2543
+ type: string
2544
+ enum:
2545
+ - collection
2546
+ collection:
2547
+ type: string
2548
+ required:
2549
+ - kind
2550
+ - collection
2551
+ ContentRefSpace:
2552
+ type: object
2553
+ properties:
2554
+ kind:
2555
+ type: string
2556
+ enum:
2557
+ - space
2558
+ space:
2559
+ type: string
2560
+ required:
2561
+ - kind
2562
+ - space
989
2563
  Space:
990
2564
  type: object
991
2565
  properties:
@@ -997,8 +2571,6 @@ components:
997
2571
  id:
998
2572
  type: string
999
2573
  description: Unique identifier for the space
1000
- type:
1001
- $ref: "#/components/schemas/SpaceType"
1002
2574
  title:
1003
2575
  type: string
1004
2576
  description: Title of the space
@@ -1051,84 +2623,6 @@ components:
1051
2623
  - createdAt
1052
2624
  - updatedAt
1053
2625
  - urls
1054
- SpaceType:
1055
- type: string
1056
- description: |
1057
- - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
1058
- - `website`: A single web page or a collection of related web pages under a single domain.
1059
- - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
1060
- - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
1061
- - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
1062
- - `database`: A databse entity, persisting data. A database is typically used by services or applications.
1063
- - `other`: A space that doesn’t match the service, library, or application type.
1064
- enum:
1065
- - application
1066
- - website
1067
- - service
1068
- - library
1069
- - cloud-resource
1070
- - database
1071
- - other
1072
- SpaceRelationType:
1073
- type: string
1074
- enum:
1075
- - dependsOn
1076
- - dependencyOf
1077
- - partOf
1078
- - hasPart
1079
- SpaceRelationEdge:
1080
- type: object
1081
- description: Edge of a space relation (target or source)
1082
- properties:
1083
- id:
1084
- type: string
1085
- description: ID of the space
1086
- required:
1087
- - id
1088
- SpaceRelation:
1089
- type: object
1090
- description: Relation between an origin space and another space
1091
- properties:
1092
- id:
1093
- type: string
1094
- type:
1095
- $ref: "#/components/schemas/SpaceRelationType"
1096
- target:
1097
- description: Other space in the relation. If undefined, the current user doesn't have access to it.
1098
- oneOf:
1099
- - $ref: "#/components/schemas/Space"
1100
- - $ref: "#/components/schemas/SpaceRelationEdge"
1101
- createdAt:
1102
- $ref: "#/components/schemas/Date"
1103
- urls:
1104
- type: object
1105
- description: URLs associated with the object
1106
- properties:
1107
- location:
1108
- type: string
1109
- description: URL of the space relation in the API
1110
- format: uri
1111
- required:
1112
- - location
1113
- required:
1114
- - id
1115
- - type
1116
- - createdAt
1117
- - urls
1118
- - target
1119
- SpaceRelationPair:
1120
- allOf:
1121
- - $ref: "#/components/schemas/SpaceRelation"
1122
- - type: object
1123
- description: Relation between an origin space and another space
1124
- properties:
1125
- target:
1126
- $ref: "#/components/schemas/SpaceRelationEdge"
1127
- source:
1128
- $ref: "#/components/schemas/SpaceRelationEdge"
1129
- required:
1130
- - target
1131
- - source
1132
2626
  RevisionBase:
1133
2627
  type: object
1134
2628
  properties:
@@ -1680,11 +3174,22 @@ components:
1680
3174
  type: string
1681
3175
  description: |
1682
3176
  "The role of a team member.
1683
- "admin": Can administrate team members.
1684
- "participant": Can participate in a team.
3177
+ "owner": Can manage team members.
3178
+ "member": Is a member of the team.
1685
3179
  enum:
1686
- - admin
1687
- - participant
3180
+ - owner
3181
+ - member
3182
+ OrganizationTeamMember:
3183
+ type: object
3184
+ description: A member of a team in an organization, including its relationship to it
3185
+ properties:
3186
+ organization:
3187
+ $ref: "#/components/schemas/OrganizationMember"
3188
+ team:
3189
+ $ref: "#/components/schemas/TeamMember"
3190
+ required:
3191
+ - organization
3192
+ - team
1688
3193
  Capture:
1689
3194
  type: object
1690
3195
  properties:
@@ -1708,6 +3213,9 @@ components:
1708
3213
  stoppedAt:
1709
3214
  type: string
1710
3215
  format: date-time
3216
+ editedAt:
3217
+ type: string
3218
+ format: date-time
1711
3219
  events:
1712
3220
  description: Count of events recorded.
1713
3221
  properties:
@@ -1736,8 +3244,13 @@ components:
1736
3244
  type: string
1737
3245
  description: URL of the capture in the API
1738
3246
  format: uri
3247
+ app:
3248
+ type: string
3249
+ description: URL of the capture in the app
3250
+ format: uri
1739
3251
  required:
1740
3252
  - location
3253
+ - app
1741
3254
  required:
1742
3255
  - object
1743
3256
  - id
@@ -1901,6 +3414,15 @@ components:
1901
3414
  - type
1902
3415
  - filename
1903
3416
  - fileSnapshot
3417
+ UpdateCaptureSchema:
3418
+ type: object
3419
+ properties:
3420
+ title:
3421
+ type: string
3422
+ description: A new title for the capture.
3423
+ body:
3424
+ description: Content of the capture.
3425
+ $ref: "#/components/schemas/Document"
1904
3426
  ChangeRequest:
1905
3427
  type: object
1906
3428
  properties:
@@ -2295,22 +3817,25 @@ components:
2295
3817
  type: string
2296
3818
  enum:
2297
3819
  - entity
2298
- id:
3820
+ entityId:
2299
3821
  type: string
2300
3822
  description: ID of the entity
3823
+ entityType:
3824
+ $ref: "#/components/schemas/EntityType"
2301
3825
  integration:
2302
3826
  description: The name of the integration that manages this entity. If undefined, this entity is not managed by an integration.
2303
3827
  type: string
2304
3828
  required:
2305
- - id
2306
3829
  - type
3830
+ - entityId
3831
+ - entityType
2307
3832
  - type: object
2308
3833
  properties:
2309
3834
  type:
2310
3835
  type: string
2311
3836
  enum:
2312
3837
  - capture
2313
- id:
3838
+ captureId:
2314
3839
  type: string
2315
3840
  description: ID of the capture
2316
3841
  source:
@@ -2318,7 +3843,7 @@ components:
2318
3843
  description: Source of the capture
2319
3844
  required:
2320
3845
  - type
2321
- - id
3846
+ - captureId
2322
3847
  - source
2323
3848
  SearchAIRecommendedQuestions:
2324
3849
  type: object
@@ -2515,6 +4040,11 @@ components:
2515
4040
  maxItems: 3
2516
4041
  items:
2517
4042
  type: string
4043
+ target:
4044
+ $ref: "#/components/schemas/IntegrationTarget"
4045
+ verified:
4046
+ type: boolean
4047
+ description: If true, the integration has been verified by the GitBook team
2518
4048
  visibility:
2519
4049
  $ref: "#/components/schemas/IntegrationVisibility"
2520
4050
  scopes:
@@ -2527,10 +4057,16 @@ components:
2527
4057
  $ref: "#/components/schemas/IntegrationConfigurations"
2528
4058
  externalLinks:
2529
4059
  $ref: "#/components/schemas/IntegrationExternalLinks"
4060
+ owner:
4061
+ $ref: "#/components/schemas/Organization"
2530
4062
  urls:
2531
4063
  type: object
2532
4064
  description: URLs associated with the object
2533
4065
  properties:
4066
+ location:
4067
+ type: string
4068
+ description: URL of the integration in the API
4069
+ format: uri
2534
4070
  icon:
2535
4071
  type: string
2536
4072
  description: URL of the icon associated to the integration
@@ -2548,9 +4084,18 @@ components:
2548
4084
  description: Public HTTP endpoint for the integration
2549
4085
  format: uri
2550
4086
  required:
4087
+ - location
2551
4088
  - app
2552
4089
  - assets
2553
4090
  - publicEndpoint
4091
+ permissions:
4092
+ type: object
4093
+ description: The set of permissions for the integration
4094
+ properties:
4095
+ admin:
4096
+ type: boolean
4097
+ required:
4098
+ - admin
2554
4099
  contentSecurityPolicy:
2555
4100
  $ref: "#/components/schemas/IntegrationContentSecurityPolicy"
2556
4101
  required:
@@ -2561,8 +4106,12 @@ components:
2561
4106
  - scopes
2562
4107
  - categories
2563
4108
  - visibility
4109
+ - target
4110
+ - verified
2564
4111
  - previewImages
2565
4112
  - externalLinks
4113
+ - owner
4114
+ - permissions
2566
4115
  - urls
2567
4116
  IntegrationTitle:
2568
4117
  type: string
@@ -2725,10 +4274,11 @@ components:
2725
4274
  type: string
2726
4275
  enum:
2727
4276
  - analytics
4277
+ - captures
2728
4278
  - collaboration
2729
- - marketing
2730
4279
  - content
2731
4280
  - gitsync
4281
+ - marketing
2732
4282
  - other
2733
4283
  IntegrationConfigurations:
2734
4284
  type: object
@@ -2834,12 +4384,23 @@ components:
2834
4384
  $ref: "#/components/schemas/IntegrationInstallationStatus"
2835
4385
  space_selection:
2836
4386
  $ref: "#/components/schemas/IntegrationInstallationSpaceSelection"
4387
+ spaces:
4388
+ type: number
4389
+ description: Count of spaces, the installation is managing
2837
4390
  configuration:
2838
4391
  $ref: "#/components/schemas/IntegrationInstallationConfiguration"
4392
+ createdAt:
4393
+ $ref: "#/components/schemas/Date"
4394
+ updatedAt:
4395
+ $ref: "#/components/schemas/Date"
2839
4396
  urls:
2840
4397
  type: object
2841
4398
  description: URLs associated with the object
2842
4399
  properties:
4400
+ location:
4401
+ type: string
4402
+ description: URL of the installation in the API
4403
+ format: uri
2843
4404
  app:
2844
4405
  type: string
2845
4406
  description: URL of the integration's installation in the application
@@ -2849,6 +4410,7 @@ components:
2849
4410
  description: Public HTTP endpoint for the integration's installation
2850
4411
  format: uri
2851
4412
  required:
4413
+ - location
2852
4414
  - app
2853
4415
  - publicEndpoint
2854
4416
  externalIds:
@@ -2860,10 +4422,13 @@ components:
2860
4422
  - id
2861
4423
  - status
2862
4424
  - space_selection
4425
+ - spaces
2863
4426
  - configuration
2864
4427
  - urls
2865
4428
  - externalIds
2866
4429
  - target
4430
+ - createdAt
4431
+ - updatedAt
2867
4432
  IntegrationSpaceInstallation:
2868
4433
  type: object
2869
4434
  description: Installation of an integration at a space level
@@ -2888,11 +4453,16 @@ components:
2888
4453
  type: object
2889
4454
  description: URLs associated with the object
2890
4455
  properties:
4456
+ location:
4457
+ type: string
4458
+ description: URL of the integration's space installation in the API
4459
+ format: uri
2891
4460
  publicEndpoint:
2892
4461
  type: string
2893
4462
  description: Public HTTP endpoint for the integration's space installation
2894
4463
  format: uri
2895
4464
  required:
4465
+ - location
2896
4466
  - publicEndpoint
2897
4467
  required:
2898
4468
  - integration
@@ -2953,6 +4523,11 @@ components:
2953
4523
  - apiTokens
2954
4524
  - integration
2955
4525
  - secrets
4526
+ IntegrationTarget:
4527
+ type: string
4528
+ enum:
4529
+ - organization
4530
+ - all
2956
4531
  IntegrationInstallationTarget:
2957
4532
  oneOf:
2958
4533
  - $ref: "#/components/schemas/OrganizationTarget"
@@ -3084,6 +4659,10 @@ components:
3084
4659
  type: string
3085
4660
  description: Unique ID for the entity in GitBook
3086
4661
  type:
4662
+ deprecated: true
4663
+ description: Type of an entity. Deprecated, use entityType.
4664
+ $ref: "#/components/schemas/EntityType"
4665
+ entityType:
3087
4666
  $ref: "#/components/schemas/EntityType"
3088
4667
  urls:
3089
4668
  type: object
@@ -3098,6 +4677,7 @@ components:
3098
4677
  required:
3099
4678
  - id
3100
4679
  - type
4680
+ - entityType
3101
4681
  - urls
3102
4682
  EntityType:
3103
4683
  type: string
@@ -4876,15 +6456,12 @@ components:
4876
6456
  - $ref: "#/components/schemas/SpaceInfoChannel"
4877
6457
  - $ref: "#/components/schemas/SpaceGitInfoChannel"
4878
6458
  - $ref: "#/components/schemas/SpacePublishingAuthChannel"
4879
- - $ref: "#/components/schemas/SpaceRelationsChannel"
4880
6459
  - $ref: "#/components/schemas/SpaceEntitiesChannel"
4881
6460
  - $ref: "#/components/schemas/SpaceCustomFieldsChannel"
4882
6461
  - $ref: "#/components/schemas/BackofficeUserInfoChannel"
4883
6462
  - $ref: "#/components/schemas/SpaceIntegrationsChannel"
4884
6463
  - $ref: "#/components/schemas/OrganizationCustomFieldsChannel"
4885
- - $ref: "#/components/schemas/OrganizationEnvironmentsChannel"
4886
6464
  - $ref: "#/components/schemas/UserAPITokensChannel"
4887
- - $ref: "#/components/schemas/UserPreferencesChannel"
4888
6465
  - $ref: "#/components/schemas/UserProfileChannel"
4889
6466
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
4890
6467
  - $ref: "#/components/schemas/OrganizationMembersChannel"
@@ -4893,11 +6470,12 @@ components:
4893
6470
  - $ref: "#/components/schemas/OrganizationTeamChannel"
4894
6471
  - $ref: "#/components/schemas/OrganizationTeamMembersChannel"
4895
6472
  - $ref: "#/components/schemas/OrganizationTeamMemberChannel"
4896
- - $ref: "#/components/schemas/OrganizationSpaceRelationsChannel"
4897
6473
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
4898
6474
  - $ref: "#/components/schemas/OrganizationEntitiesChannel"
4899
6475
  - $ref: "#/components/schemas/OrganizationSchemasChannel"
4900
6476
  - $ref: "#/components/schemas/OrganizationCapturesChannel"
6477
+ - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
6478
+ - $ref: "#/components/schemas/OrganizationInstallationsChannel"
4901
6479
  - type: object
4902
6480
  properties:
4903
6481
  channel:
@@ -4962,6 +6540,10 @@ components:
4962
6540
  - channel
4963
6541
  - space
4964
6542
  - comment
6543
+ - $ref: "#/components/schemas/IntegrationChannel"
6544
+ - $ref: "#/components/schemas/IntegrationInstallationChannel"
6545
+ - $ref: "#/components/schemas/IntegrationSpaceInstallationChannel"
6546
+ - $ref: "#/components/schemas/IntegrationSpaceInstallationsChannel"
4965
6547
  discriminator:
4966
6548
  propertyName: channel
4967
6549
  SpaceInfoChannel:
@@ -5000,18 +6582,6 @@ components:
5000
6582
  required:
5001
6583
  - channel
5002
6584
  - space
5003
- SpaceRelationsChannel:
5004
- type: object
5005
- properties:
5006
- channel:
5007
- type: string
5008
- enum:
5009
- - space-relations
5010
- space:
5011
- type: string
5012
- required:
5013
- - channel
5014
- - space
5015
6585
  SpaceEntitiesChannel:
5016
6586
  type: object
5017
6587
  properties:
@@ -5059,26 +6629,14 @@ components:
5059
6629
  type: string
5060
6630
  required:
5061
6631
  - channel
5062
- - space
5063
- UserAPITokensChannel:
5064
- type: object
5065
- properties:
5066
- channel:
5067
- type: string
5068
- enum:
5069
- - user-api-tokens
5070
- user:
5071
- type: string
5072
- required:
5073
- - channel
5074
- - user
5075
- UserPreferencesChannel:
6632
+ - space
6633
+ UserAPITokensChannel:
5076
6634
  type: object
5077
6635
  properties:
5078
6636
  channel:
5079
6637
  type: string
5080
6638
  enum:
5081
- - user-preferences
6639
+ - user-api-tokens
5082
6640
  user:
5083
6641
  type: string
5084
6642
  required:
@@ -5209,19 +6767,6 @@ components:
5209
6767
  - channel
5210
6768
  - organization
5211
6769
  - member
5212
- OrganizationSpaceRelationsChannel:
5213
- type: object
5214
- description: Subscription channel for changes in relations between spaces in an organization.
5215
- properties:
5216
- channel:
5217
- type: string
5218
- enum:
5219
- - organization-space-relations
5220
- organization:
5221
- type: string
5222
- required:
5223
- - channel
5224
- - organization
5225
6770
  OrganizationSpacesChannel:
5226
6771
  type: object
5227
6772
  description: Subscription channel for changes in spaces in an organization.
@@ -5264,30 +6809,102 @@ components:
5264
6809
  required:
5265
6810
  - channel
5266
6811
  - organization
5267
- OrganizationEnvironmentsChannel:
6812
+ OrganizationCapturesChannel:
6813
+ type: object
6814
+ properties:
6815
+ channel:
6816
+ type: string
6817
+ enum:
6818
+ - organization-captures
6819
+ organization:
6820
+ type: string
6821
+ required:
6822
+ - channel
6823
+ - organization
6824
+ OrganizationIntegrationsChannel:
5268
6825
  type: object
5269
6826
  properties:
5270
6827
  channel:
5271
6828
  type: string
5272
6829
  enum:
5273
- - organization-environments
6830
+ - organization-integrations
5274
6831
  organization:
5275
6832
  type: string
5276
6833
  required:
5277
6834
  - channel
5278
6835
  - organization
5279
- OrganizationCapturesChannel:
6836
+ OrganizationInstallationsChannel:
5280
6837
  type: object
5281
6838
  properties:
5282
6839
  channel:
5283
6840
  type: string
5284
6841
  enum:
5285
- - organization-captures
6842
+ - organization-installations
5286
6843
  organization:
5287
6844
  type: string
5288
6845
  required:
5289
6846
  - channel
5290
6847
  - organization
6848
+ IntegrationChannel:
6849
+ type: object
6850
+ properties:
6851
+ channel:
6852
+ type: string
6853
+ enum:
6854
+ - integration
6855
+ integration:
6856
+ type: string
6857
+ required:
6858
+ - channel
6859
+ - integration
6860
+ IntegrationInstallationChannel:
6861
+ type: object
6862
+ properties:
6863
+ channel:
6864
+ type: string
6865
+ enum:
6866
+ - integration-installation
6867
+ integration:
6868
+ type: string
6869
+ installation:
6870
+ type: string
6871
+ required:
6872
+ - channel
6873
+ - integration
6874
+ - installation
6875
+ IntegrationSpaceInstallationChannel:
6876
+ type: object
6877
+ properties:
6878
+ channel:
6879
+ type: string
6880
+ enum:
6881
+ - integration-space-installation
6882
+ integration:
6883
+ type: string
6884
+ installation:
6885
+ type: string
6886
+ space:
6887
+ type: string
6888
+ required:
6889
+ - channel
6890
+ - integration
6891
+ - installation
6892
+ - space
6893
+ IntegrationSpaceInstallationsChannel:
6894
+ type: object
6895
+ properties:
6896
+ channel:
6897
+ type: string
6898
+ enum:
6899
+ - integration-space-installations
6900
+ integration:
6901
+ type: string
6902
+ installation:
6903
+ type: string
6904
+ required:
6905
+ - channel
6906
+ - integration
6907
+ - installation
5291
6908
  CustomField:
5292
6909
  type: object
5293
6910
  description: Custom field
@@ -5398,65 +7015,6 @@ components:
5398
7015
  CustomFieldPlaceholder:
5399
7016
  type: string
5400
7017
  maxLength: 100
5401
- Environment:
5402
- type: object
5403
- description: An environment
5404
- properties:
5405
- id:
5406
- type: string
5407
- name:
5408
- $ref: "#/components/schemas/EnvironmentName"
5409
- title:
5410
- $ref: "#/components/schemas/EnvironmentTitle"
5411
- primary:
5412
- $ref: "#/components/schemas/EnvironmentPrimary"
5413
- urls:
5414
- type: object
5415
- description: URLs associated with the object
5416
- properties:
5417
- location:
5418
- type: string
5419
- description: URL of the environment in the API
5420
- format: uri
5421
- required:
5422
- - location
5423
- required:
5424
- - id
5425
- - name
5426
- - title
5427
- - primary
5428
- - urls
5429
- EnvironmentTitle:
5430
- type: string
5431
- maxLength: 100
5432
- EnvironmentPrimary:
5433
- description: |
5434
- 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.
5435
- type: boolean
5436
- EnvironmentName:
5437
- type: string
5438
- pattern: ^[a-zA-Z_\-0-9]+$
5439
- maxLength: 50
5440
- CreateEnvironment:
5441
- type: object
5442
- properties:
5443
- name:
5444
- $ref: "#/components/schemas/EnvironmentName"
5445
- title:
5446
- $ref: "#/components/schemas/EnvironmentTitle"
5447
- primary:
5448
- $ref: "#/components/schemas/EnvironmentPrimary"
5449
- required:
5450
- - name
5451
- - title
5452
- UpdateEnvironment:
5453
- type: object
5454
- description: An object containing the new title for an Environment
5455
- properties:
5456
- title:
5457
- $ref: "#/components/schemas/EnvironmentTitle"
5458
- primary:
5459
- $ref: "#/components/schemas/EnvironmentPrimary"
5460
7018
  responses:
5461
7019
  UnexpectedError:
5462
7020
  description: Unexpected Error
@@ -5673,50 +7231,6 @@ paths:
5673
7231
  $ref: "#/components/schemas/User"
5674
7232
  default:
5675
7233
  $ref: "#/components/responses/UnexpectedError"
5676
- /user/preferences:
5677
- get:
5678
- operationId: getPreferencesForAuthenticatedUser
5679
- summary: Get the preferences for the currently authenticated user
5680
- tags:
5681
- - users
5682
- security:
5683
- - user: []
5684
- description: |
5685
- Returns the preferences for the user associated with the authentication provided in the request's authorization header.
5686
- responses:
5687
- "200":
5688
- description: OK
5689
- content:
5690
- application/json:
5691
- schema:
5692
- $ref: "#/components/schemas/UserPreferences"
5693
- default:
5694
- $ref: "#/components/responses/UnexpectedError"
5695
- patch:
5696
- operationId: updatePreferencesForAuthenticatedUser
5697
- summary: Update the preferences for the currently authenticated user
5698
- tags:
5699
- - users
5700
- requestBody:
5701
- required: true
5702
- content:
5703
- application/json:
5704
- schema:
5705
- type: object
5706
- properties:
5707
- theme:
5708
- $ref: "#/components/schemas/UserPreferencesTheme"
5709
- required:
5710
- - theme
5711
- responses:
5712
- "200":
5713
- description: The user preferences have been updated
5714
- content:
5715
- application/json:
5716
- schema:
5717
- $ref: "#/components/schemas/UserPreferences"
5718
- default:
5719
- $ref: "#/components/responses/UnexpectedError"
5720
7234
  "/users/{userId}":
5721
7235
  get:
5722
7236
  operationId: getUserById
@@ -5775,8 +7289,6 @@ paths:
5775
7289
  properties:
5776
7290
  visibility:
5777
7291
  $ref: "#/components/schemas/ContentVisibility"
5778
- type:
5779
- $ref: "#/components/schemas/SpaceType"
5780
7292
  responses:
5781
7293
  "200":
5782
7294
  description: The space has been updated
@@ -7237,128 +8749,34 @@ paths:
7237
8749
  - user: []
7238
8750
  parameters:
7239
8751
  - $ref: "#/components/parameters/spaceId"
7240
- - $ref: "#/components/parameters/commentId"
7241
- - $ref: "#/components/parameters/commentReplyId"
7242
- responses:
7243
- "200":
7244
- description: The comment has been deleted.
7245
- default:
7246
- $ref: "#/components/responses/UnexpectedError"
7247
- "/spaces/{spaceId}/permissions/aggregate":
7248
- get:
7249
- operationId: listPermissionsAggregateInSpace
7250
- summary: List permissions for all users in a space.
7251
- tags:
7252
- - permissions
7253
- - spaces
7254
- security:
7255
- - user: []
7256
- parameters:
7257
- - $ref: "#/components/parameters/spaceId"
7258
- - $ref: "#/components/parameters/listPage"
7259
- - $ref: "#/components/parameters/listLimit"
7260
- - name: role
7261
- in: query
7262
- description: If defined, only members with this role will be returned.
7263
- schema:
7264
- $ref: "#/components/schemas/MemberRole"
7265
- responses:
7266
- "200":
7267
- description: Listing of users who can access the space.
7268
- content:
7269
- application/json:
7270
- schema:
7271
- allOf:
7272
- - $ref: "#/components/schemas/List"
7273
- - type: object
7274
- required:
7275
- - items
7276
- properties:
7277
- items:
7278
- type: array
7279
- items:
7280
- $ref: "#/components/schemas/UserContentPermission"
7281
- default:
7282
- $ref: "#/components/responses/UnexpectedError"
7283
- "/spaces/{spaceId}/publishing/auth":
7284
- get:
7285
- operationId: getSpacePublishingAuthById
7286
- summary: Get the publishing authentication configuration for a space.
7287
- tags:
7288
- - spaces
7289
- security:
7290
- - user: []
7291
- parameters:
7292
- - $ref: "#/components/parameters/spaceId"
7293
- responses:
7294
- "200":
7295
- description: OK
7296
- content:
7297
- application/json:
7298
- schema:
7299
- $ref: "#/components/schemas/ContentPublishingAuth"
7300
- "400":
7301
- $ref: "#/components/responses/BadRequestError"
7302
- default:
7303
- $ref: "#/components/responses/UnexpectedError"
7304
- post:
7305
- operationId: updateSpacePublishingAuthById
7306
- summary: Update the publishing authentication configuration for a space.
7307
- tags:
7308
- - spaces
7309
- security:
7310
- - user: []
7311
- parameters:
7312
- - $ref: "#/components/parameters/spaceId"
7313
- requestBody:
7314
- required: true
7315
- content:
7316
- application/json:
7317
- schema:
7318
- $ref: "#/components/schemas/RequestUpdateContentPublishingAuth"
7319
- responses:
7320
- "200":
7321
- description: OK
7322
- content:
7323
- application/json:
7324
- schema:
7325
- $ref: "#/components/schemas/ContentPublishingAuth"
7326
- "400":
7327
- $ref: "#/components/responses/BadRequestError"
7328
- default:
7329
- $ref: "#/components/responses/UnexpectedError"
7330
- "/spaces/{spaceId}/integration-blocks":
7331
- get:
7332
- operationId: listSpaceIntegrationsBlocks
7333
- summary: List integrations blocks for a space
7334
- tags:
7335
- - integrations
7336
- parameters:
7337
- - $ref: "#/components/parameters/spaceId"
7338
- responses:
7339
- "200":
7340
- description: list of installed integration blocks
7341
- content:
7342
- application/json:
7343
- schema:
7344
- $ref: "#/components/schemas/SpaceIntegrationBlocks"
7345
- "404":
7346
- $ref: "#/components/responses/NotFoundError"
8752
+ - $ref: "#/components/parameters/commentId"
8753
+ - $ref: "#/components/parameters/commentReplyId"
8754
+ responses:
8755
+ "200":
8756
+ description: The comment has been deleted.
7347
8757
  default:
7348
8758
  $ref: "#/components/responses/UnexpectedError"
7349
- "/spaces/{spaceId}/relations":
8759
+ "/spaces/{spaceId}/permissions/aggregate":
7350
8760
  get:
7351
- operationId: listSpaceRelations
7352
- summary: List all relations for a space
8761
+ operationId: listPermissionsAggregateInSpace
8762
+ summary: List permissions for all users in a space.
7353
8763
  tags:
8764
+ - permissions
7354
8765
  - spaces
8766
+ security:
8767
+ - user: []
7355
8768
  parameters:
7356
8769
  - $ref: "#/components/parameters/spaceId"
7357
8770
  - $ref: "#/components/parameters/listPage"
7358
8771
  - $ref: "#/components/parameters/listLimit"
8772
+ - name: role
8773
+ in: query
8774
+ description: If defined, only members with this role will be returned.
8775
+ schema:
8776
+ $ref: "#/components/schemas/MemberRole"
7359
8777
  responses:
7360
8778
  "200":
7361
- description: OK
8779
+ description: Listing of users who can access the space.
7362
8780
  content:
7363
8781
  application/json:
7364
8782
  schema:
@@ -7371,93 +8789,73 @@ paths:
7371
8789
  items:
7372
8790
  type: array
7373
8791
  items:
7374
- $ref: "#/components/schemas/SpaceRelation"
8792
+ $ref: "#/components/schemas/UserContentPermission"
7375
8793
  default:
7376
8794
  $ref: "#/components/responses/UnexpectedError"
7377
- post:
7378
- operationId: createSpaceRelation
7379
- summary: Create a new relation between a source space and a target space
8795
+ "/spaces/{spaceId}/publishing/auth":
8796
+ get:
8797
+ operationId: getSpacePublishingAuthById
8798
+ summary: Get the publishing authentication configuration for a space.
7380
8799
  tags:
7381
8800
  - spaces
7382
8801
  security:
7383
8802
  - user: []
7384
8803
  parameters:
7385
8804
  - $ref: "#/components/parameters/spaceId"
7386
- requestBody:
7387
- required: true
7388
- content:
7389
- application/json:
7390
- schema:
7391
- type: object
7392
- properties:
7393
- target:
7394
- type: string
7395
- description: ID of the other space
7396
- type:
7397
- $ref: "#/components/schemas/SpaceRelationType"
7398
- required:
7399
- - target
7400
- - type
7401
8805
  responses:
7402
- "201":
7403
- description: Space relation created
7404
- headers:
7405
- Location:
7406
- description: API URL for the newly created space relation
7407
- schema:
7408
- type: string
8806
+ "200":
8807
+ description: OK
7409
8808
  content:
7410
8809
  application/json:
7411
8810
  schema:
7412
- $ref: "#/components/schemas/SpaceRelation"
8811
+ $ref: "#/components/schemas/ContentPublishingAuth"
8812
+ "400":
8813
+ $ref: "#/components/responses/BadRequestError"
7413
8814
  default:
7414
8815
  $ref: "#/components/responses/UnexpectedError"
7415
- "/spaces/{spaceId}/relations/{targetSpaceId}":
7416
- get:
7417
- operationId: getSpaceRelation
7418
- summary: Get the relation between 2 spaces.
8816
+ post:
8817
+ operationId: updateSpacePublishingAuthById
8818
+ summary: Update the publishing authentication configuration for a space.
7419
8819
  tags:
7420
8820
  - spaces
7421
8821
  security:
7422
8822
  - user: []
7423
8823
  parameters:
7424
8824
  - $ref: "#/components/parameters/spaceId"
7425
- - name: targetSpaceId
7426
- in: path
7427
- required: true
7428
- description: The ID of the other space
7429
- schema:
7430
- type: string
8825
+ requestBody:
8826
+ required: true
8827
+ content:
8828
+ application/json:
8829
+ schema:
8830
+ $ref: "#/components/schemas/RequestUpdateContentPublishingAuth"
7431
8831
  responses:
7432
8832
  "200":
7433
8833
  description: OK
7434
8834
  content:
7435
8835
  application/json:
7436
8836
  schema:
7437
- $ref: "#/components/schemas/SpaceRelation"
7438
- "404":
7439
- description: No matching relation found
7440
- $ref: "#/components/responses/NotFoundError"
8837
+ $ref: "#/components/schemas/ContentPublishingAuth"
8838
+ "400":
8839
+ $ref: "#/components/responses/BadRequestError"
7441
8840
  default:
7442
8841
  $ref: "#/components/responses/UnexpectedError"
7443
- delete:
7444
- operationId: deleteSpaceRelation
7445
- summary: Delete a relation between spaces
8842
+ "/spaces/{spaceId}/integration-blocks":
8843
+ get:
8844
+ operationId: listSpaceIntegrationsBlocks
8845
+ summary: List integrations blocks for a space
7446
8846
  tags:
7447
- - spaces
7448
- security:
7449
- - user: []
8847
+ - integrations
7450
8848
  parameters:
7451
8849
  - $ref: "#/components/parameters/spaceId"
7452
- - name: targetSpaceId
7453
- in: path
7454
- required: true
7455
- description: The ID of the other space
7456
- schema:
7457
- type: string
7458
8850
  responses:
7459
- "204":
7460
- description: Relation has been deleted
8851
+ "200":
8852
+ description: list of installed integration blocks
8853
+ content:
8854
+ application/json:
8855
+ schema:
8856
+ $ref: "#/components/schemas/SpaceIntegrationBlocks"
8857
+ "404":
8858
+ $ref: "#/components/responses/NotFoundError"
7461
8859
  default:
7462
8860
  $ref: "#/components/responses/UnexpectedError"
7463
8861
  "/spaces/{spaceId}/custom-fields":
@@ -7667,6 +9065,18 @@ paths:
7667
9065
  parameters:
7668
9066
  - $ref: "#/components/parameters/listPage"
7669
9067
  - $ref: "#/components/parameters/listLimit"
9068
+ - name: category
9069
+ in: query
9070
+ description: Filter the integrations by category
9071
+ schema:
9072
+ $ref: "#/components/schemas/IntegrationCategory"
9073
+ - name: blockDomain
9074
+ in: query
9075
+ description: Filter the integrations by block's domains
9076
+ schema:
9077
+ type: string
9078
+ pattern: ^[a-zA-Z0-9-_.]+$
9079
+ maxLength: 100
7670
9080
  responses:
7671
9081
  "200":
7672
9082
  description: Paginated list of integrations
@@ -8130,6 +9540,34 @@ paths:
8130
9540
  default:
8131
9541
  $ref: "#/components/responses/UnexpectedError"
8132
9542
  "/integrations/{integrationName}/installations/{installationId}/spaces":
9543
+ get:
9544
+ operationId: listIntegrationInstallationSpaces
9545
+ summary: List installations on spaces for an integration in an organization
9546
+ tags:
9547
+ - integrations
9548
+ parameters:
9549
+ - $ref: "#/components/parameters/integrationName"
9550
+ - $ref: "#/components/parameters/installationId"
9551
+ - $ref: "#/components/parameters/listPage"
9552
+ - $ref: "#/components/parameters/listLimit"
9553
+ responses:
9554
+ "200":
9555
+ description: OK
9556
+ content:
9557
+ application/json:
9558
+ schema:
9559
+ allOf:
9560
+ - $ref: "#/components/schemas/List"
9561
+ - type: object
9562
+ required:
9563
+ - items
9564
+ properties:
9565
+ items:
9566
+ type: array
9567
+ items:
9568
+ $ref: "#/components/schemas/IntegrationSpaceInstallation"
9569
+ default:
9570
+ $ref: "#/components/responses/UnexpectedError"
8133
9571
  post:
8134
9572
  operationId: installIntegrationOnSpace
8135
9573
  summary: Install integration on a space using an existing installation
@@ -8708,7 +10146,7 @@ paths:
8708
10146
  operationId: listTeamMembersInOrganizationById
8709
10147
  summary: List team members
8710
10148
  description: |
8711
- Lists members for the specified organization team.
10149
+ Lists members, and their roles, for the specified organization team.
8712
10150
  tags:
8713
10151
  - organizations
8714
10152
  security:
@@ -8733,7 +10171,7 @@ paths:
8733
10171
  items:
8734
10172
  type: array
8735
10173
  items:
8736
- $ref: "#/components/schemas/OrganizationMember"
10174
+ $ref: "#/components/schemas/OrganizationTeamMember"
8737
10175
  default:
8738
10176
  $ref: "#/components/responses/UnexpectedError"
8739
10177
  "/orgs/{organizationId}/teams/{teamId}/members/{userId}":
@@ -9429,10 +10867,10 @@ paths:
9429
10867
  description: Custom field has been deleted
9430
10868
  default:
9431
10869
  $ref: "#/components/responses/UnexpectedError"
9432
- "/orgs/{organizationId}/space-relations":
10870
+ "/orgs/{organizationId}/integrations":
9433
10871
  get:
9434
- operationId: listSpaceRelationsInOrganization
9435
- summary: List all relations between spaces in an organization
10872
+ operationId: listOrganizationIntegrations
10873
+ summary: List integrations owned by an organization
9436
10874
  tags:
9437
10875
  - spaces
9438
10876
  parameters:
@@ -9441,7 +10879,7 @@ paths:
9441
10879
  - $ref: "#/components/parameters/listLimit"
9442
10880
  responses:
9443
10881
  "200":
9444
- description: OK
10882
+ description: List of integrations.
9445
10883
  content:
9446
10884
  application/json:
9447
10885
  schema:
@@ -9454,130 +10892,43 @@ paths:
9454
10892
  items:
9455
10893
  type: array
9456
10894
  items:
9457
- $ref: "#/components/schemas/SpaceRelationPair"
10895
+ $ref: "#/components/schemas/Integration"
9458
10896
  default:
9459
10897
  $ref: "#/components/responses/UnexpectedError"
9460
- "/orgs/{organizationId}/environments":
10898
+ "/orgs/{organizationId}/installations":
9461
10899
  get:
9462
- operationId: listEnvironments
9463
- summary: Get the environments in an organization
10900
+ operationId: listOrganizationInstallations
10901
+ summary: List installations of integrations in an organization.
9464
10902
  tags:
9465
- - organizations
9466
- - environments
9467
- security:
9468
- - user: []
10903
+ - spaces
9469
10904
  parameters:
9470
10905
  - $ref: "#/components/parameters/organizationId"
9471
10906
  - $ref: "#/components/parameters/listPage"
9472
10907
  - $ref: "#/components/parameters/listLimit"
9473
10908
  responses:
9474
10909
  "200":
9475
- description: OK
10910
+ description: List of integrations with the associated installations.
9476
10911
  content:
9477
10912
  application/json:
9478
10913
  schema:
9479
10914
  allOf:
9480
10915
  - $ref: "#/components/schemas/List"
9481
10916
  - type: object
10917
+ required:
10918
+ - items
9482
10919
  properties:
9483
10920
  items:
9484
10921
  type: array
9485
10922
  items:
9486
- $ref: "#/components/schemas/Environment"
9487
- post:
9488
- operationId: createEnvironment
9489
- summary: Create a new environment within an organization
9490
- tags:
9491
- - organizations
9492
- - environments
9493
- security:
9494
- - user: []
9495
- parameters:
9496
- - $ref: "#/components/parameters/organizationId"
9497
- requestBody:
9498
- required: true
9499
- content:
9500
- application/json:
9501
- schema:
9502
- $ref: "#/components/schemas/CreateEnvironment"
9503
- responses:
9504
- "201":
9505
- description: OK
9506
- headers:
9507
- Location:
9508
- description: API URL for the newly created environment
9509
- schema:
9510
- type: string
9511
- content:
9512
- application/json:
9513
- schema:
9514
- $ref: "#/components/schemas/Environment"
9515
- default:
9516
- $ref: "#/components/responses/UnexpectedError"
9517
- "/orgs/{organizationId}/environments/{environmentName}":
9518
- get:
9519
- operationId: getEnvironmentByName
9520
- summary: Get an environment by its name
9521
- tags:
9522
- - organizations
9523
- - environments
9524
- security:
9525
- - user: []
9526
- parameters:
9527
- - $ref: "#/components/parameters/organizationId"
9528
- - $ref: "#/components/parameters/environmentName"
9529
- responses:
9530
- "200":
9531
- description: OK
9532
- content:
9533
- application/json:
9534
- schema:
9535
- $ref: "#/components/schemas/Environment"
9536
- "404":
9537
- description: No matching environment found
9538
- $ref: "#/components/responses/NotFoundError"
9539
- default:
9540
- $ref: "#/components/responses/UnexpectedError"
9541
- patch:
9542
- operationId: updateEnvironment
9543
- summary: Update an existing environment within an organization
9544
- tags:
9545
- - organizations
9546
- - environments
9547
- security:
9548
- - user: []
9549
- parameters:
9550
- - $ref: "#/components/parameters/organizationId"
9551
- - $ref: "#/components/parameters/environmentName"
9552
- requestBody:
9553
- required: true
9554
- content:
9555
- application/json:
9556
- schema:
9557
- $ref: "#/components/schemas/UpdateEnvironment"
9558
- responses:
9559
- "200":
9560
- description: OK
9561
- content:
9562
- application/json:
9563
- schema:
9564
- $ref: "#/components/schemas/Environment"
9565
- default:
9566
- $ref: "#/components/responses/UnexpectedError"
9567
- delete:
9568
- operationId: deleteEnvironment
9569
- summary: Delete an environment in an organization
9570
- tags:
9571
- - organizations
9572
- - environments
9573
- security:
9574
- - user: []
9575
- parameters:
9576
- - $ref: "#/components/parameters/organizationId"
9577
- - $ref: "#/components/parameters/environmentName"
9578
- responses:
9579
- "204":
9580
- description: Environment has been deleted
10923
+ type: object
10924
+ properties:
10925
+ installation:
10926
+ $ref: "#/components/schemas/IntegrationInstallation"
10927
+ integration:
10928
+ $ref: "#/components/schemas/Integration"
10929
+ required:
10930
+ - integration
10931
+ - installation
9581
10932
  default:
9582
10933
  $ref: "#/components/responses/UnexpectedError"
9583
10934
  "/orgs/{organizationId}/schemas":
@@ -9763,7 +11114,7 @@ paths:
9763
11114
  operationId: listCaptures
9764
11115
  summary: List captures
9765
11116
  description: |
9766
- List captures in an organization.
11117
+ List captures in an organization, newest first.
9767
11118
  tags:
9768
11119
  - organizations
9769
11120
  security:
@@ -9773,6 +11124,14 @@ paths:
9773
11124
  - $ref: "#/components/parameters/pageFormat"
9774
11125
  - $ref: "#/components/parameters/listPage"
9775
11126
  - $ref: "#/components/parameters/listLimit"
11127
+ - name: context
11128
+ in: query
11129
+ description: The context in which the item was captured
11130
+ schema:
11131
+ type: string
11132
+ enum:
11133
+ - walkthrough
11134
+ - thread
9776
11135
  responses:
9777
11136
  "200":
9778
11137
  description: OK
@@ -9854,6 +11213,47 @@ paths:
9854
11213
  $ref: "#/components/schemas/Capture"
9855
11214
  default:
9856
11215
  $ref: "#/components/responses/UnexpectedError"
11216
+ delete:
11217
+ operationId: deleteCapture
11218
+ summary: Delete a capture by its ID
11219
+ tags:
11220
+ - organizations
11221
+ security:
11222
+ - user: []
11223
+ parameters:
11224
+ - $ref: "#/components/parameters/organizationId"
11225
+ - $ref: "#/components/parameters/captureId"
11226
+ responses:
11227
+ "200":
11228
+ description: OK
11229
+ default:
11230
+ $ref: "#/components/responses/UnexpectedError"
11231
+ put:
11232
+ operationId: updateCapture
11233
+ summary: Update an existing capture
11234
+ tags:
11235
+ - organizations
11236
+ security:
11237
+ - user: []
11238
+ parameters:
11239
+ - $ref: "#/components/parameters/organizationId"
11240
+ - $ref: "#/components/parameters/captureId"
11241
+ - $ref: "#/components/parameters/ifUnmodifiedSince"
11242
+ requestBody:
11243
+ required: true
11244
+ content:
11245
+ application/json:
11246
+ schema:
11247
+ $ref: "#/components/schemas/UpdateCaptureSchema"
11248
+ responses:
11249
+ "200":
11250
+ description: OK
11251
+ content:
11252
+ application/json:
11253
+ schema:
11254
+ $ref: "#/components/schemas/Capture"
11255
+ default:
11256
+ $ref: "#/components/responses/UnexpectedError"
9857
11257
  "/orgs/{organizationId}/captures/{captureId}/events":
9858
11258
  post:
9859
11259
  operationId: addEventsToCapture
@@ -10018,3 +11418,25 @@ paths:
10018
11418
  - space
10019
11419
  default:
10020
11420
  $ref: "#/components/responses/UnexpectedError"
11421
+ /urls/embed:
11422
+ get:
11423
+ operationId: getEmbedByUrl
11424
+ summary: Resolve a URL to an embed
11425
+ tags:
11426
+ - urls
11427
+ parameters:
11428
+ - name: url
11429
+ in: query
11430
+ required: true
11431
+ description: URL to resolve
11432
+ schema:
11433
+ type: string
11434
+ responses:
11435
+ "200":
11436
+ description: OK
11437
+ content:
11438
+ application/json:
11439
+ schema:
11440
+ $ref: "#/components/schemas/Embed"
11441
+ default:
11442
+ $ref: "#/components/responses/UnexpectedError"