@gitbook/api 0.27.0 → 0.29.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
@@ -314,6 +314,24 @@
314
314
  "type": "string"
315
315
  }
316
316
  },
317
+ "inviteId": {
318
+ "name": "inviteId",
319
+ "in": "path",
320
+ "required": true,
321
+ "description": "The unique id of the invite",
322
+ "schema": {
323
+ "type": "string"
324
+ }
325
+ },
326
+ "shareLinkId": {
327
+ "name": "shareLinkId",
328
+ "in": "path",
329
+ "required": true,
330
+ "description": "The unique id of the share link",
331
+ "schema": {
332
+ "type": "string"
333
+ }
334
+ },
317
335
  "backofficeHostname": {
318
336
  "name": "hostname",
319
337
  "in": "path",
@@ -896,6 +914,18 @@
896
914
  "build"
897
915
  ]
898
916
  },
917
+ "BlockContext": {
918
+ "type": "object",
919
+ "description": "The context to send when blocking/unblocking",
920
+ "properties": {
921
+ "block": {
922
+ "type": "boolean"
923
+ }
924
+ },
925
+ "required": [
926
+ "block"
927
+ ]
928
+ },
899
929
  "RequestPurgeCDNCacheContext": {
900
930
  "type": "object",
901
931
  "description": "The context to send when purging the CDN Cache",
@@ -916,18 +946,6 @@
916
946
  "values"
917
947
  ]
918
948
  },
919
- "RequestBlockUserContext": {
920
- "type": "object",
921
- "description": "The context to send when blocking/unblocking a user",
922
- "properties": {
923
- "block": {
924
- "type": "boolean"
925
- }
926
- },
927
- "required": [
928
- "block"
929
- ]
930
- },
931
949
  "TriggerContentIndexingContext": {
932
950
  "type": "object",
933
951
  "description": "The context to send when triggering a content indexing.",
@@ -1162,6 +1180,7 @@
1162
1180
  "oneOf": [
1163
1181
  {
1164
1182
  "type": "object",
1183
+ "title": "Link",
1165
1184
  "properties": {
1166
1185
  "type": {
1167
1186
  "type": "string",
@@ -1176,6 +1195,7 @@
1176
1195
  },
1177
1196
  {
1178
1197
  "type": "object",
1198
+ "title": "HTML",
1179
1199
  "properties": {
1180
1200
  "type": {
1181
1201
  "type": "string",
@@ -1333,6 +1353,7 @@
1333
1353
  "oneOf": [
1334
1354
  {
1335
1355
  "type": "object",
1356
+ "title": "Resolved",
1336
1357
  "properties": {
1337
1358
  "status": {
1338
1359
  "description": "Status of the comment.",
@@ -1358,6 +1379,7 @@
1358
1379
  },
1359
1380
  {
1360
1381
  "type": "object",
1382
+ "title": "Open",
1361
1383
  "properties": {
1362
1384
  "status": {
1363
1385
  "description": "Status of the comment.",
@@ -1434,6 +1456,7 @@
1434
1456
  "oneOf": [
1435
1457
  {
1436
1458
  "type": "object",
1459
+ "title": "Redirect",
1437
1460
  "properties": {
1438
1461
  "target": {
1439
1462
  "type": "string",
@@ -1455,6 +1478,7 @@
1455
1478
  },
1456
1479
  {
1457
1480
  "type": "object",
1481
+ "title": "Content",
1458
1482
  "properties": {
1459
1483
  "space": {
1460
1484
  "type": "string",
@@ -1490,13 +1514,79 @@
1490
1514
  }
1491
1515
  ]
1492
1516
  },
1517
+ "SpacePointer": {
1518
+ "type": "object",
1519
+ "properties": {
1520
+ "type": {
1521
+ "type": "string",
1522
+ "enum": [
1523
+ "space"
1524
+ ]
1525
+ },
1526
+ "space": {
1527
+ "type": "string",
1528
+ "description": "Unique identifier for the space"
1529
+ }
1530
+ },
1531
+ "required": [
1532
+ "type",
1533
+ "space"
1534
+ ]
1535
+ },
1536
+ "CollectionPointer": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "type": {
1540
+ "type": "string",
1541
+ "enum": [
1542
+ "collection"
1543
+ ]
1544
+ },
1545
+ "collection": {
1546
+ "type": "string",
1547
+ "description": "Unique identifier for the collection"
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "type",
1552
+ "collection"
1553
+ ]
1554
+ },
1555
+ "ContentPosition": {
1556
+ "type": "object",
1557
+ "description": "Position at which to insert an item",
1558
+ "properties": {
1559
+ "before": {
1560
+ "oneOf": [
1561
+ {
1562
+ "$ref": "#/components/schemas/SpacePointer"
1563
+ },
1564
+ {
1565
+ "$ref": "#/components/schemas/CollectionPointer"
1566
+ }
1567
+ ]
1568
+ },
1569
+ "after": {
1570
+ "oneOf": [
1571
+ {
1572
+ "$ref": "#/components/schemas/SpacePointer"
1573
+ },
1574
+ {
1575
+ "$ref": "#/components/schemas/CollectionPointer"
1576
+ }
1577
+ ]
1578
+ }
1579
+ }
1580
+ },
1493
1581
  "Document": {
1494
1582
  "oneOf": [
1495
1583
  {
1496
- "$ref": "#/components/schemas/MarkdownDocument"
1584
+ "$ref": "#/components/schemas/MarkdownDocument",
1585
+ "title": "Markdown"
1497
1586
  },
1498
1587
  {
1499
1588
  "type": "object",
1589
+ "title": "JSON Document",
1500
1590
  "properties": {
1501
1591
  "document": {
1502
1592
  "$ref": "#/components/schemas/JSONDocument"
@@ -1508,6 +1598,7 @@
1508
1598
  },
1509
1599
  {
1510
1600
  "type": "object",
1601
+ "title": "Empty",
1511
1602
  "properties": {},
1512
1603
  "additionalProperties": false
1513
1604
  }
@@ -1526,6 +1617,7 @@
1526
1617
  ]
1527
1618
  },
1528
1619
  "JSONDocument": {
1620
+ "type": "object",
1529
1621
  "properties": {
1530
1622
  "object": {
1531
1623
  "type": "string",
@@ -1535,8 +1627,13 @@
1535
1627
  },
1536
1628
  "data": {
1537
1629
  "type": "object",
1538
- "properties": {},
1539
- "additionalProperties": false
1630
+ "properties": {
1631
+ "schemaVersion": {
1632
+ "description": "The schema version of the document. If undefined, the document is considered to be of the latest schema version.",
1633
+ "type": "integer"
1634
+ }
1635
+ },
1636
+ "additionalProperties": true
1540
1637
  },
1541
1638
  "nodes": {
1542
1639
  "type": "array",
@@ -4398,6 +4495,7 @@
4398
4495
  "oneOf": [
4399
4496
  {
4400
4497
  "type": "object",
4498
+ "title": "Custom",
4401
4499
  "properties": {
4402
4500
  "backend": {
4403
4501
  "type": "string",
@@ -4413,6 +4511,7 @@
4413
4511
  },
4414
4512
  {
4415
4513
  "type": "object",
4514
+ "title": "Integration",
4416
4515
  "properties": {
4417
4516
  "backend": {
4418
4517
  "type": "string",
@@ -4432,6 +4531,10 @@
4432
4531
  ]
4433
4532
  }
4434
4533
  ]
4534
+ },
4535
+ "revision": {
4536
+ "type": "string",
4537
+ "description": "ID of the active revision in the space."
4435
4538
  }
4436
4539
  },
4437
4540
  "required": [
@@ -4442,6 +4545,7 @@
4442
4545
  "emoji",
4443
4546
  "organization",
4444
4547
  "visibility",
4548
+ "revision",
4445
4549
  "createdAt",
4446
4550
  "updatedAt",
4447
4551
  "urls"
@@ -5602,6 +5706,24 @@
5602
5706
  "communityType": {
5603
5707
  "$ref": "#/components/schemas/OrganizationCommunityType"
5604
5708
  },
5709
+ "defaultRole": {
5710
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
5711
+ },
5712
+ "defaultContent": {
5713
+ "$ref": "#/components/schemas/OrganizationDefaultContent"
5714
+ },
5715
+ "sso": {
5716
+ "description": "Whether SSO is enforced organization wide",
5717
+ "type": "boolean"
5718
+ },
5719
+ "aiSearch": {
5720
+ "description": "If true, the organization is configured to use our AI-powered natural language search",
5721
+ "type": "boolean"
5722
+ },
5723
+ "aiInsights": {
5724
+ "description": "If true, the organization is configured to run content audits on any space update",
5725
+ "type": "boolean"
5726
+ },
5605
5727
  "urls": {
5606
5728
  "type": "object",
5607
5729
  "description": "URLs associated with the object",
@@ -5615,6 +5737,10 @@
5615
5737
  "type": "string",
5616
5738
  "description": "URL of the organization in the application",
5617
5739
  "format": "uri"
5740
+ },
5741
+ "logo": {
5742
+ "description": "URL of the logo of this organization, if defined.",
5743
+ "$ref": "#/components/schemas/URL"
5618
5744
  }
5619
5745
  },
5620
5746
  "required": [
@@ -5890,6 +6016,116 @@
5890
6016
  "team"
5891
6017
  ]
5892
6018
  },
6019
+ "OrganizationDefaultContent": {
6020
+ "description": "The default content for the organization",
6021
+ "oneOf": [
6022
+ {
6023
+ "$ref": "#/components/schemas/SpacePointer"
6024
+ },
6025
+ {
6026
+ "$ref": "#/components/schemas/CollectionPointer"
6027
+ }
6028
+ ]
6029
+ },
6030
+ "OrganizationInvite": {
6031
+ "oneOf": [
6032
+ {
6033
+ "type": "object",
6034
+ "properties": {
6035
+ "object": {
6036
+ "type": "string",
6037
+ "description": "Type of Object, always equals to \"invite\"",
6038
+ "enum": [
6039
+ "invite"
6040
+ ]
6041
+ },
6042
+ "id": {
6043
+ "type": "string",
6044
+ "description": "Unique identifier for the organization invite"
6045
+ },
6046
+ "role": {
6047
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6048
+ "description": "The role of the member in the organization"
6049
+ }
6050
+ },
6051
+ "required": [
6052
+ "object",
6053
+ "id",
6054
+ "role"
6055
+ ]
6056
+ },
6057
+ {
6058
+ "type": "object",
6059
+ "properties": {
6060
+ "object": {
6061
+ "type": "string",
6062
+ "description": "Type of Object, always equals to \"invite\"",
6063
+ "enum": [
6064
+ "invite"
6065
+ ]
6066
+ },
6067
+ "id": {
6068
+ "type": "string",
6069
+ "description": "Unique identifier for the organization invite"
6070
+ },
6071
+ "role": {
6072
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6073
+ "description": "The role of the member in the organization"
6074
+ },
6075
+ "contentLevel": {
6076
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6077
+ "description": "The role of the member in the target space"
6078
+ },
6079
+ "space": {
6080
+ "$ref": "#/components/schemas/Space",
6081
+ "description": "The space the member has been invited to"
6082
+ }
6083
+ },
6084
+ "required": [
6085
+ "object",
6086
+ "id",
6087
+ "role",
6088
+ "contentLevel",
6089
+ "space"
6090
+ ]
6091
+ },
6092
+ {
6093
+ "type": "object",
6094
+ "properties": {
6095
+ "object": {
6096
+ "type": "string",
6097
+ "description": "Type of Object, always equals to \"invite\"",
6098
+ "enum": [
6099
+ "invite"
6100
+ ]
6101
+ },
6102
+ "id": {
6103
+ "type": "string",
6104
+ "description": "Unique identifier for the organization invite"
6105
+ },
6106
+ "role": {
6107
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6108
+ "description": "The role of the member in the organization"
6109
+ },
6110
+ "contentLevel": {
6111
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
6112
+ "description": "The role of the member in the target collection"
6113
+ },
6114
+ "collection": {
6115
+ "$ref": "#/components/schemas/Collection",
6116
+ "description": "The collection the member has been invited to"
6117
+ }
6118
+ },
6119
+ "required": [
6120
+ "object",
6121
+ "id",
6122
+ "role",
6123
+ "contentLevel",
6124
+ "collection"
6125
+ ]
6126
+ }
6127
+ ]
6128
+ },
5893
6129
  "Capture": {
5894
6130
  "type": "object",
5895
6131
  "properties": {
@@ -6256,123 +6492,103 @@
6256
6492
  }
6257
6493
  ]
6258
6494
  },
6259
- "UpdateCaptureSchema": {
6495
+ "Snippet": {
6260
6496
  "type": "object",
6261
6497
  "properties": {
6262
- "title": {
6498
+ "id": {
6263
6499
  "type": "string",
6264
- "description": "A new title for the capture."
6500
+ "description": "Unique identifier for the snippet"
6265
6501
  },
6266
- "body": {
6267
- "description": "Content of the capture.",
6268
- "$ref": "#/components/schemas/Document"
6269
- }
6270
- }
6271
- },
6272
- "Snippet": {
6273
- "allOf": [
6274
- {
6275
- "$ref": "#/components/schemas/Document"
6502
+ "organization": {
6503
+ "type": "string",
6504
+ "description": "ID of the organization owning this snippet"
6276
6505
  },
6277
- {
6506
+ "createdAt": {
6507
+ "type": "string",
6508
+ "format": "date-time"
6509
+ },
6510
+ "editedAt": {
6511
+ "type": "string",
6512
+ "format": "date-time",
6513
+ "description": "Timestamp of when the snippet was last edited, if it has been edited since its creation."
6514
+ },
6515
+ "archived": {
6516
+ "type": "boolean",
6517
+ "description": "Whether the snippet is archived. Archived snippets don't appear in search results or in the app."
6518
+ },
6519
+ "title": {
6520
+ "type": "string",
6521
+ "description": "Title describing the snippet.",
6522
+ "maxLength": 100
6523
+ },
6524
+ "source": {
6525
+ "description": "The source of the snippet.",
6278
6526
  "type": "object",
6279
6527
  "properties": {
6280
- "id": {
6528
+ "sourceId": {
6281
6529
  "type": "string",
6282
- "description": "Unique identifier for the snippet"
6530
+ "description": "An ID identifying the source, unique across all sources."
6283
6531
  },
6284
- "organization": {
6285
- "type": "string",
6286
- "description": "ID of the organization owning this snippet"
6287
- },
6288
- "createdAt": {
6289
- "type": "string",
6290
- "format": "date-time"
6291
- },
6292
- "editedAt": {
6532
+ "name": {
6293
6533
  "type": "string",
6294
- "format": "date-time",
6295
- "description": "Timestamp of when the snippet was last edited, if it has been edited since its creation."
6534
+ "description": "A display name for the source."
6296
6535
  },
6297
- "archived": {
6298
- "type": "boolean",
6299
- "description": "Whether the snippet is archived. Archived snippets don't appear in search results or in the app."
6300
- },
6301
- "title": {
6536
+ "externalId": {
6302
6537
  "type": "string",
6303
- "description": "Title describing the snippet.",
6304
- "maxLength": 100
6538
+ "description": "An ID identifying the snippet in the source system, if available."
6305
6539
  },
6306
- "source": {
6307
- "description": "The source of the snippet.",
6308
- "type": "object",
6309
- "properties": {
6310
- "sourceId": {
6311
- "type": "string",
6312
- "description": "An ID identifying the source, unique across all sources."
6313
- },
6314
- "name": {
6315
- "type": "string",
6316
- "description": "A display name for the source."
6317
- },
6318
- "externalId": {
6319
- "type": "string",
6320
- "description": "An ID identifying the snippet in the source system, if available."
6321
- },
6322
- "externalUrl": {
6323
- "description": "URL of the snippet in the source system, if available.",
6324
- "$ref": "#/components/schemas/URL"
6325
- }
6540
+ "externalUrl": {
6541
+ "description": "URL of the snippet in the source system, if available.",
6542
+ "$ref": "#/components/schemas/URL"
6543
+ }
6544
+ },
6545
+ "required": [
6546
+ "sourceId",
6547
+ "name"
6548
+ ]
6549
+ },
6550
+ "contributors": {
6551
+ "description": "An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.",
6552
+ "type": "array",
6553
+ "minItems": 1,
6554
+ "items": {
6555
+ "oneOf": [
6556
+ {
6557
+ "$ref": "#/components/schemas/Integration"
6326
6558
  },
6327
- "required": [
6328
- "sourceId",
6329
- "name"
6330
- ]
6331
- },
6332
- "contributors": {
6333
- "description": "An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.",
6334
- "type": "array",
6335
- "minItems": 1,
6336
- "items": {
6337
- "oneOf": [
6338
- {
6339
- "$ref": "#/components/schemas/Integration"
6340
- },
6341
- {
6342
- "$ref": "#/components/schemas/User"
6343
- }
6344
- ]
6559
+ {
6560
+ "$ref": "#/components/schemas/User"
6345
6561
  }
6562
+ ]
6563
+ }
6564
+ },
6565
+ "urls": {
6566
+ "type": "object",
6567
+ "description": "URLs associated with the object",
6568
+ "properties": {
6569
+ "location": {
6570
+ "description": "URL of the snippet in the API",
6571
+ "$ref": "#/components/schemas/URL"
6346
6572
  },
6347
- "urls": {
6348
- "type": "object",
6349
- "description": "URLs associated with the object",
6350
- "properties": {
6351
- "location": {
6352
- "description": "URL of the snippet in the API",
6353
- "$ref": "#/components/schemas/URL"
6354
- },
6355
- "app": {
6356
- "description": "URL of the snippet in the app",
6357
- "$ref": "#/components/schemas/URL"
6358
- }
6359
- },
6360
- "required": [
6361
- "location",
6362
- "app"
6363
- ]
6573
+ "app": {
6574
+ "description": "URL of the snippet in the app",
6575
+ "$ref": "#/components/schemas/URL"
6364
6576
  }
6365
6577
  },
6366
6578
  "required": [
6367
- "id",
6368
- "organization",
6369
- "source",
6370
- "createdAt",
6371
- "archived",
6372
- "contributors",
6373
- "urls"
6579
+ "location",
6580
+ "app"
6374
6581
  ]
6375
6582
  }
6583
+ },
6584
+ "required": [
6585
+ "id",
6586
+ "organization",
6587
+ "source",
6588
+ "createdAt",
6589
+ "archived",
6590
+ "contributors",
6591
+ "urls"
6376
6592
  ]
6377
6593
  },
6378
6594
  "UpdateSnippetSchema": {
@@ -6381,10 +6597,6 @@
6381
6597
  "title": {
6382
6598
  "type": "string",
6383
6599
  "description": "A new title for the snippet."
6384
- },
6385
- "body": {
6386
- "description": "Content of the snippet.",
6387
- "$ref": "#/components/schemas/Document"
6388
6600
  }
6389
6601
  }
6390
6602
  },
@@ -6510,10 +6722,7 @@
6510
6722
  "$ref": "#/components/schemas/ChangeRequestStatus"
6511
6723
  },
6512
6724
  "subject": {
6513
- "type": "string",
6514
- "description": "Subject of the change request",
6515
- "minLength": 0,
6516
- "maxLength": 100
6725
+ "$ref": "#/components/schemas/ChangeRequestSubject"
6517
6726
  },
6518
6727
  "createdBy": {
6519
6728
  "$ref": "#/components/schemas/User"
@@ -6524,6 +6733,10 @@
6524
6733
  "updatedAt": {
6525
6734
  "$ref": "#/components/schemas/Timestamp"
6526
6735
  },
6736
+ "revision": {
6737
+ "type": "string",
6738
+ "description": "ID of the active revision in the change request."
6739
+ },
6527
6740
  "urls": {
6528
6741
  "type": "object",
6529
6742
  "description": "URLs associated with the object",
@@ -6548,6 +6761,7 @@
6548
6761
  "createdBy",
6549
6762
  "createdAt",
6550
6763
  "updatedAt",
6764
+ "revision",
6551
6765
  "urls"
6552
6766
  ]
6553
6767
  },
@@ -6695,6 +6909,12 @@
6695
6909
  }
6696
6910
  ]
6697
6911
  },
6912
+ "ChangeRequestSubject": {
6913
+ "type": "string",
6914
+ "description": "Subject of the change request",
6915
+ "minLength": 0,
6916
+ "maxLength": 100
6917
+ },
6698
6918
  "UpdateCommentSchema": {
6699
6919
  "type": "object",
6700
6920
  "properties": {
@@ -7014,9 +7234,13 @@
7014
7234
  ]
7015
7235
  },
7016
7236
  {
7237
+ "discriminator": {
7238
+ "propertyName": "type"
7239
+ },
7017
7240
  "oneOf": [
7018
7241
  {
7019
7242
  "type": "object",
7243
+ "title": "Page",
7020
7244
  "properties": {
7021
7245
  "type": {
7022
7246
  "type": "string",
@@ -7050,6 +7274,7 @@
7050
7274
  },
7051
7275
  {
7052
7276
  "type": "object",
7277
+ "title": "Entity",
7053
7278
  "properties": {
7054
7279
  "type": {
7055
7280
  "type": "string",
@@ -7077,6 +7302,7 @@
7077
7302
  },
7078
7303
  {
7079
7304
  "type": "object",
7305
+ "title": "Snippet",
7080
7306
  "properties": {
7081
7307
  "type": {
7082
7308
  "type": "string",
@@ -7238,15 +7464,11 @@
7238
7464
  "description": "Page entry in the content analytics.",
7239
7465
  "required": [
7240
7466
  "page",
7241
- "title",
7242
7467
  "pageViews"
7243
7468
  ],
7244
7469
  "properties": {
7245
7470
  "page": {
7246
- "type": "string"
7247
- },
7248
- "title": {
7249
- "type": "string"
7471
+ "$ref": "#/components/schemas/RevisionPageDocument"
7250
7472
  },
7251
7473
  "pageViews": {
7252
7474
  "type": "number"
@@ -7556,6 +7778,14 @@
7556
7778
  "space:visitor:auth"
7557
7779
  ]
7558
7780
  },
7781
+ "IntegrationSearchQuery": {
7782
+ "name": "search",
7783
+ "in": "query",
7784
+ "description": "A search string to filter integrations by name\n",
7785
+ "schema": {
7786
+ "type": "string"
7787
+ }
7788
+ },
7559
7789
  "IntegrationCategories": {
7560
7790
  "type": "array",
7561
7791
  "description": "Categories for which the integration is listed in the marketplace",
@@ -8070,7 +8300,28 @@
8070
8300
  },
8071
8301
  "signingSecret": {
8072
8302
  "type": "string",
8073
- "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the integration."
8303
+ "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.",
8304
+ "deprecated": true
8305
+ },
8306
+ "signingSecrets": {
8307
+ "type": "object",
8308
+ "properties": {
8309
+ "integration": {
8310
+ "type": "string",
8311
+ "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the integration."
8312
+ },
8313
+ "installation": {
8314
+ "type": "string",
8315
+ "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the installation."
8316
+ },
8317
+ "spaceInstallation": {
8318
+ "type": "string",
8319
+ "description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation."
8320
+ }
8321
+ },
8322
+ "required": [
8323
+ "integration"
8324
+ ]
8074
8325
  },
8075
8326
  "apiEndpoint": {
8076
8327
  "type": "string",
@@ -8097,6 +8348,7 @@
8097
8348
  "apiEndpoint",
8098
8349
  "apiTokens",
8099
8350
  "integration",
8351
+ "signingSecrets",
8100
8352
  "secrets"
8101
8353
  ]
8102
8354
  },
@@ -9845,6 +10097,17 @@
9845
10097
  "activeDaysRemaining"
9846
10098
  ]
9847
10099
  },
10100
+ "SpaceBlockReason": {
10101
+ "type": "string",
10102
+ "description": "Reason for a space to be blocked",
10103
+ "enum": [
10104
+ "DMCA",
10105
+ "THREAT_TYPE_UNSPECIFIED",
10106
+ "MALWARE",
10107
+ "SOCIAL_ENGINEERING",
10108
+ "UNWANTED_SOFTWARE"
10109
+ ]
10110
+ },
9848
10111
  "HiveAccessToken": {
9849
10112
  "type": "object",
9850
10113
  "description": "JWT tokens to authenticate in Hive for all content.",
@@ -11338,6 +11601,12 @@
11338
11601
  {
11339
11602
  "$ref": "#/components/schemas/UserProfileChannel"
11340
11603
  },
11604
+ {
11605
+ "$ref": "#/components/schemas/ChangeRequestChannel"
11606
+ },
11607
+ {
11608
+ "$ref": "#/components/schemas/ChangeRequestsChannel"
11609
+ },
11341
11610
  {
11342
11611
  "$ref": "#/components/schemas/ChangeRequestReviewsChannel"
11343
11612
  },
@@ -11776,6 +12045,46 @@
11776
12045
  "collection"
11777
12046
  ]
11778
12047
  },
12048
+ "ChangeRequestChannel": {
12049
+ "type": "object",
12050
+ "properties": {
12051
+ "channel": {
12052
+ "type": "string",
12053
+ "enum": [
12054
+ "space-change-request"
12055
+ ]
12056
+ },
12057
+ "space": {
12058
+ "type": "string"
12059
+ },
12060
+ "changeRequest": {
12061
+ "type": "string"
12062
+ }
12063
+ },
12064
+ "required": [
12065
+ "channel",
12066
+ "space",
12067
+ "changeRequest"
12068
+ ]
12069
+ },
12070
+ "ChangeRequestsChannel": {
12071
+ "type": "object",
12072
+ "properties": {
12073
+ "channel": {
12074
+ "type": "string",
12075
+ "enum": [
12076
+ "space-change-requests"
12077
+ ]
12078
+ },
12079
+ "space": {
12080
+ "type": "string"
12081
+ }
12082
+ },
12083
+ "required": [
12084
+ "channel",
12085
+ "space"
12086
+ ]
12087
+ },
11779
12088
  "ChangeRequestReviewsChannel": {
11780
12089
  "type": "object",
11781
12090
  "properties": {
@@ -12364,6 +12673,9 @@
12364
12673
  },
12365
12674
  "font": {
12366
12675
  "$ref": "#/components/schemas/CustomizationFont"
12676
+ },
12677
+ "background": {
12678
+ "$ref": "#/components/schemas/CustomizationBackground"
12367
12679
  }
12368
12680
  },
12369
12681
  "required": [
@@ -12720,6 +13032,13 @@
12720
13032
  "rounded"
12721
13033
  ]
12722
13034
  },
13035
+ "CustomizationBackground": {
13036
+ "type": "string",
13037
+ "enum": [
13038
+ "plain",
13039
+ "match"
13040
+ ]
13041
+ },
12723
13042
  "CustomizationThemedURL": {
12724
13043
  "type": "object",
12725
13044
  "properties": {
@@ -12804,21 +13123,81 @@
12804
13123
  "ok",
12805
13124
  "good"
12806
13125
  ]
13126
+ },
13127
+ "ShareLink": {
13128
+ "type": "object",
13129
+ "properties": {
13130
+ "object": {
13131
+ "type": "string",
13132
+ "description": "Type of Object, always equals to \"share-link\"",
13133
+ "enum": [
13134
+ "share-link"
13135
+ ]
13136
+ },
13137
+ "id": {
13138
+ "type": "string",
13139
+ "description": "Unique identifier for the share-link"
13140
+ },
13141
+ "createdAt": {
13142
+ "$ref": "#/components/schemas/Timestamp"
13143
+ },
13144
+ "name": {
13145
+ "$ref": "#/components/schemas/ShareLinkName"
13146
+ },
13147
+ "active": {
13148
+ "type": "boolean"
13149
+ }
13150
+ },
13151
+ "required": [
13152
+ "object",
13153
+ "id",
13154
+ "createdAt"
13155
+ ]
13156
+ },
13157
+ "ShareLinkName": {
13158
+ "type": "string",
13159
+ "description": "Name of the share link",
13160
+ "minLength": 0,
13161
+ "maxLength": 50
12807
13162
  }
12808
13163
  },
12809
13164
  "responses": {
12810
- "UnexpectedError": {
12811
- "description": "Unexpected Error",
13165
+ "BadRequestError": {
13166
+ "description": "Bad Request",
12812
13167
  "content": {
12813
13168
  "application/json": {
12814
13169
  "schema": {
12815
- "$ref": "#/components/schemas/Error"
13170
+ "type": "object",
13171
+ "required": [
13172
+ "error"
13173
+ ],
13174
+ "properties": {
13175
+ "error": {
13176
+ "type": "object",
13177
+ "properties": {
13178
+ "code": {
13179
+ "type": "integer",
13180
+ "format": "int32",
13181
+ "enum": [
13182
+ 400
13183
+ ]
13184
+ },
13185
+ "message": {
13186
+ "type": "string"
13187
+ }
13188
+ },
13189
+ "required": [
13190
+ "code",
13191
+ "message"
13192
+ ]
13193
+ }
13194
+ }
12816
13195
  }
12817
13196
  }
12818
13197
  }
12819
13198
  },
12820
- "BadRequestError": {
12821
- "description": "Bad Request",
13199
+ "ConflictError": {
13200
+ "description": "Conflict",
12822
13201
  "content": {
12823
13202
  "application/json": {
12824
13203
  "schema": {
@@ -12834,7 +13213,7 @@
12834
13213
  "type": "integer",
12835
13214
  "format": "int32",
12836
13215
  "enum": [
12837
- 400
13216
+ 409
12838
13217
  ]
12839
13218
  },
12840
13219
  "message": {
@@ -12884,6 +13263,16 @@
12884
13263
  }
12885
13264
  }
12886
13265
  }
13266
+ },
13267
+ "UnexpectedError": {
13268
+ "description": "Unexpected Error",
13269
+ "content": {
13270
+ "application/json": {
13271
+ "schema": {
13272
+ "$ref": "#/components/schemas/Error"
13273
+ }
13274
+ }
13275
+ }
12887
13276
  }
12888
13277
  }
12889
13278
  },
@@ -13259,6 +13648,7 @@
13259
13648
  "oneOf": [
13260
13649
  {
13261
13650
  "type": "object",
13651
+ "title": "Emoji",
13262
13652
  "properties": {
13263
13653
  "emoji": {
13264
13654
  "$ref": "#/components/schemas/Emoji"
@@ -13270,6 +13660,7 @@
13270
13660
  },
13271
13661
  {
13272
13662
  "type": "object",
13663
+ "title": "Icon",
13273
13664
  "properties": {
13274
13665
  "icon": {
13275
13666
  "$ref": "#/components/schemas/URL"
@@ -13281,6 +13672,7 @@
13281
13672
  },
13282
13673
  {
13283
13674
  "type": "object",
13675
+ "title": "Remove icon or emoji",
13284
13676
  "properties": {
13285
13677
  "emoji": {
13286
13678
  "type": "string",
@@ -13452,45 +13844,174 @@
13452
13844
  }
13453
13845
  }
13454
13846
  },
13455
- "/spaces/{spaceId}/search": {
13456
- "get": {
13457
- "operationId": "searchSpaceContent",
13458
- "summary": "Search content in a space",
13847
+ "/spaces/{spaceId}/move": {
13848
+ "post": {
13849
+ "operationId": "moveSpace",
13850
+ "summary": "Move a space to a new position.",
13851
+ "tags": [
13852
+ "spaces"
13853
+ ],
13459
13854
  "security": [
13460
13855
  {
13461
13856
  "user": []
13462
13857
  }
13463
13858
  ],
13464
13859
  "parameters": [
13465
- {
13466
- "name": "query",
13467
- "in": "query",
13468
- "required": true,
13469
- "schema": {
13470
- "type": "string"
13471
- }
13472
- },
13473
13860
  {
13474
13861
  "$ref": "#/components/parameters/spaceId"
13475
- },
13476
- {
13477
- "$ref": "#/components/parameters/listPage"
13478
- },
13479
- {
13480
- "$ref": "#/components/parameters/listLimit"
13481
13862
  }
13482
13863
  ],
13864
+ "requestBody": {
13865
+ "required": true,
13866
+ "content": {
13867
+ "application/json": {
13868
+ "schema": {
13869
+ "type": "object",
13870
+ "minProperties": 1,
13871
+ "properties": {
13872
+ "parent": {
13873
+ "description": "The unique id of the parent collection",
13874
+ "type": "string",
13875
+ "nullable": true
13876
+ },
13877
+ "position": {
13878
+ "description": "Where to move the space. By default, it will be moved at the end.",
13879
+ "$ref": "#/components/schemas/ContentPosition"
13880
+ }
13881
+ }
13882
+ }
13883
+ }
13884
+ }
13885
+ },
13483
13886
  "responses": {
13484
13887
  "200": {
13485
- "description": "OK",
13888
+ "description": "Space moved",
13486
13889
  "content": {
13487
13890
  "application/json": {
13488
13891
  "schema": {
13489
- "allOf": [
13490
- {
13491
- "$ref": "#/components/schemas/List"
13492
- },
13493
- {
13892
+ "$ref": "#/components/schemas/Space"
13893
+ }
13894
+ }
13895
+ }
13896
+ },
13897
+ "400": {
13898
+ "description": "Invalid position space or collection provided",
13899
+ "$ref": "#/components/responses/BadRequestError"
13900
+ },
13901
+ "404": {
13902
+ "description": "No matching Space found for given ID",
13903
+ "$ref": "#/components/responses/NotFoundError"
13904
+ },
13905
+ "409": {
13906
+ "description": "Operation would not result in any update",
13907
+ "$ref": "#/components/responses/ConflictError"
13908
+ },
13909
+ "default": {
13910
+ "$ref": "#/components/responses/UnexpectedError"
13911
+ }
13912
+ }
13913
+ }
13914
+ },
13915
+ "/spaces/{spaceId}/transfer": {
13916
+ "post": {
13917
+ "operationId": "transferSpace",
13918
+ "summary": "Transfer a space to another organization, collection or both.",
13919
+ "tags": [
13920
+ "spaces"
13921
+ ],
13922
+ "security": [
13923
+ {
13924
+ "user": []
13925
+ }
13926
+ ],
13927
+ "parameters": [
13928
+ {
13929
+ "$ref": "#/components/parameters/spaceId"
13930
+ }
13931
+ ],
13932
+ "requestBody": {
13933
+ "required": true,
13934
+ "content": {
13935
+ "application/json": {
13936
+ "schema": {
13937
+ "type": "object",
13938
+ "properties": {
13939
+ "organization": {
13940
+ "type": "string",
13941
+ "description": "The unique id of the target organization"
13942
+ }
13943
+ },
13944
+ "required": [
13945
+ "organization"
13946
+ ]
13947
+ }
13948
+ }
13949
+ }
13950
+ },
13951
+ "responses": {
13952
+ "200": {
13953
+ "description": "Space transferred",
13954
+ "content": {
13955
+ "application/json": {
13956
+ "schema": {
13957
+ "$ref": "#/components/schemas/Space"
13958
+ }
13959
+ }
13960
+ }
13961
+ },
13962
+ "404": {
13963
+ "description": "No matching Space found for given ID",
13964
+ "$ref": "#/components/responses/NotFoundError"
13965
+ },
13966
+ "409": {
13967
+ "description": "Transfer would not result in any update",
13968
+ "$ref": "#/components/responses/ConflictError"
13969
+ },
13970
+ "default": {
13971
+ "$ref": "#/components/responses/UnexpectedError"
13972
+ }
13973
+ }
13974
+ }
13975
+ },
13976
+ "/spaces/{spaceId}/search": {
13977
+ "get": {
13978
+ "operationId": "searchSpaceContent",
13979
+ "summary": "Search content in a space",
13980
+ "security": [
13981
+ {
13982
+ "user": []
13983
+ }
13984
+ ],
13985
+ "parameters": [
13986
+ {
13987
+ "name": "query",
13988
+ "in": "query",
13989
+ "required": true,
13990
+ "schema": {
13991
+ "type": "string"
13992
+ }
13993
+ },
13994
+ {
13995
+ "$ref": "#/components/parameters/spaceId"
13996
+ },
13997
+ {
13998
+ "$ref": "#/components/parameters/listPage"
13999
+ },
14000
+ {
14001
+ "$ref": "#/components/parameters/listLimit"
14002
+ }
14003
+ ],
14004
+ "responses": {
14005
+ "200": {
14006
+ "description": "OK",
14007
+ "content": {
14008
+ "application/json": {
14009
+ "schema": {
14010
+ "allOf": [
14011
+ {
14012
+ "$ref": "#/components/schemas/List"
14013
+ },
14014
+ {
13494
14015
  "type": "object",
13495
14016
  "required": [
13496
14017
  "items"
@@ -14308,23 +14829,7 @@
14308
14829
  "content": {
14309
14830
  "application/json": {
14310
14831
  "schema": {
14311
- "allOf": [
14312
- {
14313
- "$ref": "#/components/schemas/ChangeRequest"
14314
- },
14315
- {
14316
- "type": "object",
14317
- "properties": {
14318
- "changeRequest": {
14319
- "type": "string",
14320
- "deprecated": true
14321
- }
14322
- },
14323
- "required": [
14324
- "changeRequest"
14325
- ]
14326
- }
14327
- ]
14832
+ "$ref": "#/components/schemas/ChangeRequest"
14328
14833
  }
14329
14834
  }
14330
14835
  }
@@ -14450,6 +14955,56 @@
14450
14955
  "$ref": "#/components/responses/UnexpectedError"
14451
14956
  }
14452
14957
  }
14958
+ },
14959
+ "patch": {
14960
+ "operationId": "updateChangeRequestById",
14961
+ "summary": "Update the details of a change request",
14962
+ "tags": [
14963
+ "spaces"
14964
+ ],
14965
+ "security": [
14966
+ {
14967
+ "user": []
14968
+ }
14969
+ ],
14970
+ "parameters": [
14971
+ {
14972
+ "$ref": "#/components/parameters/spaceId"
14973
+ },
14974
+ {
14975
+ "$ref": "#/components/parameters/changeRequestId"
14976
+ }
14977
+ ],
14978
+ "requestBody": {
14979
+ "required": true,
14980
+ "content": {
14981
+ "application/json": {
14982
+ "schema": {
14983
+ "type": "object",
14984
+ "properties": {
14985
+ "subject": {
14986
+ "$ref": "#/components/schemas/ChangeRequestSubject"
14987
+ }
14988
+ }
14989
+ }
14990
+ }
14991
+ }
14992
+ },
14993
+ "responses": {
14994
+ "200": {
14995
+ "description": "The change request has been updated",
14996
+ "content": {
14997
+ "application/json": {
14998
+ "schema": {
14999
+ "$ref": "#/components/schemas/ChangeRequest"
15000
+ }
15001
+ }
15002
+ }
15003
+ },
15004
+ "default": {
15005
+ "$ref": "#/components/responses/UnexpectedError"
15006
+ }
15007
+ }
14453
15008
  }
14454
15009
  },
14455
15010
  "/spaces/{spaceId}/change-requests/{changeRequestId}/merge": {
@@ -17067,12 +17622,12 @@
17067
17622
  }
17068
17623
  }
17069
17624
  },
17070
- "/collections/{collectionId}": {
17071
- "get": {
17072
- "operationId": "getCollectionById",
17073
- "summary": "Get the details about a collection using its ID",
17625
+ "/spaces/{spaceId}/share-links": {
17626
+ "post": {
17627
+ "operationId": "createSpaceShareLink",
17628
+ "summary": "Creates a new space share link",
17074
17629
  "tags": [
17075
- "collections"
17630
+ "spaces"
17076
17631
  ],
17077
17632
  "security": [
17078
17633
  {
@@ -17081,16 +17636,33 @@
17081
17636
  ],
17082
17637
  "parameters": [
17083
17638
  {
17084
- "$ref": "#/components/parameters/collectionId"
17639
+ "$ref": "#/components/parameters/spaceId"
17085
17640
  }
17086
17641
  ],
17642
+ "requestBody": {
17643
+ "content": {
17644
+ "application/json": {
17645
+ "schema": {
17646
+ "type": "object",
17647
+ "properties": {
17648
+ "name": {
17649
+ "$ref": "#/components/schemas/ShareLinkName"
17650
+ }
17651
+ },
17652
+ "required": [
17653
+ "name"
17654
+ ]
17655
+ }
17656
+ }
17657
+ }
17658
+ },
17087
17659
  "responses": {
17088
- "200": {
17089
- "description": "OK",
17660
+ "201": {
17661
+ "description": "The space share link has been created",
17090
17662
  "content": {
17091
17663
  "application/json": {
17092
17664
  "schema": {
17093
- "$ref": "#/components/schemas/Collection"
17665
+ "$ref": "#/components/schemas/ShareLink"
17094
17666
  }
17095
17667
  }
17096
17668
  }
@@ -17099,12 +17671,14 @@
17099
17671
  "$ref": "#/components/responses/UnexpectedError"
17100
17672
  }
17101
17673
  }
17102
- },
17674
+ }
17675
+ },
17676
+ "/spaces/{spaceId}/share-links/{shareLinkId}": {
17103
17677
  "patch": {
17104
- "operationId": "updateCollectionById",
17105
- "summary": "Update the details of a collection",
17678
+ "operationId": "updateSpaceShareLinkById",
17679
+ "summary": "Update the details of a space share link",
17106
17680
  "tags": [
17107
- "collections"
17681
+ "spaces"
17108
17682
  ],
17109
17683
  "security": [
17110
17684
  {
@@ -17113,7 +17687,10 @@
17113
17687
  ],
17114
17688
  "parameters": [
17115
17689
  {
17116
- "$ref": "#/components/parameters/collectionId"
17690
+ "$ref": "#/components/parameters/spaceId"
17691
+ },
17692
+ {
17693
+ "$ref": "#/components/parameters/shareLinkId"
17117
17694
  }
17118
17695
  ],
17119
17696
  "requestBody": {
@@ -17122,15 +17699,13 @@
17122
17699
  "application/json": {
17123
17700
  "schema": {
17124
17701
  "type": "object",
17702
+ "minProperties": 1,
17125
17703
  "properties": {
17126
- "visibility": {
17127
- "$ref": "#/components/schemas/ContentVisibility"
17704
+ "active": {
17705
+ "type": "boolean"
17128
17706
  },
17129
- "title": {
17130
- "$ref": "#/components/schemas/CollectionTitle"
17131
- },
17132
- "description": {
17133
- "$ref": "#/components/schemas/CollectionDescription"
17707
+ "name": {
17708
+ "$ref": "#/components/schemas/ShareLinkName"
17134
17709
  }
17135
17710
  }
17136
17711
  }
@@ -17139,11 +17714,11 @@
17139
17714
  },
17140
17715
  "responses": {
17141
17716
  "200": {
17142
- "description": "The collection has been updated",
17717
+ "description": "The space share link has been updated",
17143
17718
  "content": {
17144
17719
  "application/json": {
17145
17720
  "schema": {
17146
- "$ref": "#/components/schemas/Collection"
17721
+ "$ref": "#/components/schemas/ShareLink"
17147
17722
  }
17148
17723
  }
17149
17724
  }
@@ -17154,10 +17729,10 @@
17154
17729
  }
17155
17730
  },
17156
17731
  "delete": {
17157
- "operationId": "deleteCollectionById",
17158
- "summary": "Deletes a collection",
17732
+ "operationId": "deleteSpaceShareLinkById",
17733
+ "summary": "Deletes a space share link",
17159
17734
  "tags": [
17160
- "collections"
17735
+ "spaces"
17161
17736
  ],
17162
17737
  "security": [
17163
17738
  {
@@ -17166,12 +17741,15 @@
17166
17741
  ],
17167
17742
  "parameters": [
17168
17743
  {
17169
- "$ref": "#/components/parameters/collectionId"
17744
+ "$ref": "#/components/parameters/spaceId"
17745
+ },
17746
+ {
17747
+ "$ref": "#/components/parameters/shareLinkId"
17170
17748
  }
17171
17749
  ],
17172
17750
  "responses": {
17173
17751
  "205": {
17174
- "description": "Collection has been deleted"
17752
+ "description": "Space share link has been deleted"
17175
17753
  },
17176
17754
  "default": {
17177
17755
  "$ref": "#/components/responses/UnexpectedError"
@@ -17179,10 +17757,10 @@
17179
17757
  }
17180
17758
  }
17181
17759
  },
17182
- "/collections/{collectionId}/spaces": {
17760
+ "/collections/{collectionId}": {
17183
17761
  "get": {
17184
- "operationId": "listSpacesInCollectionById",
17185
- "summary": "List all the spaces in a collection by its ID.",
17762
+ "operationId": "getCollectionById",
17763
+ "summary": "Get the details about a collection using its ID",
17186
17764
  "tags": [
17187
17765
  "collections"
17188
17766
  ],
@@ -17194,12 +17772,6 @@
17194
17772
  "parameters": [
17195
17773
  {
17196
17774
  "$ref": "#/components/parameters/collectionId"
17197
- },
17198
- {
17199
- "$ref": "#/components/parameters/listPage"
17200
- },
17201
- {
17202
- "$ref": "#/components/parameters/listLimit"
17203
17775
  }
17204
17776
  ],
17205
17777
  "responses": {
@@ -17208,21 +17780,139 @@
17208
17780
  "content": {
17209
17781
  "application/json": {
17210
17782
  "schema": {
17211
- "allOf": [
17212
- {
17213
- "$ref": "#/components/schemas/List"
17214
- },
17215
- {
17216
- "type": "object",
17217
- "required": [
17218
- "items"
17219
- ],
17220
- "properties": {
17221
- "items": {
17222
- "type": "array",
17223
- "items": {
17224
- "$ref": "#/components/schemas/Space"
17225
- }
17783
+ "$ref": "#/components/schemas/Collection"
17784
+ }
17785
+ }
17786
+ }
17787
+ },
17788
+ "default": {
17789
+ "$ref": "#/components/responses/UnexpectedError"
17790
+ }
17791
+ }
17792
+ },
17793
+ "patch": {
17794
+ "operationId": "updateCollectionById",
17795
+ "summary": "Update the details of a collection",
17796
+ "tags": [
17797
+ "collections"
17798
+ ],
17799
+ "security": [
17800
+ {
17801
+ "user": []
17802
+ }
17803
+ ],
17804
+ "parameters": [
17805
+ {
17806
+ "$ref": "#/components/parameters/collectionId"
17807
+ }
17808
+ ],
17809
+ "requestBody": {
17810
+ "required": true,
17811
+ "content": {
17812
+ "application/json": {
17813
+ "schema": {
17814
+ "type": "object",
17815
+ "properties": {
17816
+ "visibility": {
17817
+ "$ref": "#/components/schemas/ContentVisibility"
17818
+ },
17819
+ "title": {
17820
+ "$ref": "#/components/schemas/CollectionTitle"
17821
+ },
17822
+ "description": {
17823
+ "$ref": "#/components/schemas/CollectionDescription"
17824
+ }
17825
+ }
17826
+ }
17827
+ }
17828
+ }
17829
+ },
17830
+ "responses": {
17831
+ "200": {
17832
+ "description": "The collection has been updated",
17833
+ "content": {
17834
+ "application/json": {
17835
+ "schema": {
17836
+ "$ref": "#/components/schemas/Collection"
17837
+ }
17838
+ }
17839
+ }
17840
+ },
17841
+ "default": {
17842
+ "$ref": "#/components/responses/UnexpectedError"
17843
+ }
17844
+ }
17845
+ },
17846
+ "delete": {
17847
+ "operationId": "deleteCollectionById",
17848
+ "summary": "Deletes a collection",
17849
+ "tags": [
17850
+ "collections"
17851
+ ],
17852
+ "security": [
17853
+ {
17854
+ "user": []
17855
+ }
17856
+ ],
17857
+ "parameters": [
17858
+ {
17859
+ "$ref": "#/components/parameters/collectionId"
17860
+ }
17861
+ ],
17862
+ "responses": {
17863
+ "205": {
17864
+ "description": "Collection has been deleted"
17865
+ },
17866
+ "default": {
17867
+ "$ref": "#/components/responses/UnexpectedError"
17868
+ }
17869
+ }
17870
+ }
17871
+ },
17872
+ "/collections/{collectionId}/spaces": {
17873
+ "get": {
17874
+ "operationId": "listSpacesInCollectionById",
17875
+ "summary": "List all the spaces in a collection by its ID.",
17876
+ "tags": [
17877
+ "collections"
17878
+ ],
17879
+ "security": [
17880
+ {
17881
+ "user": []
17882
+ }
17883
+ ],
17884
+ "parameters": [
17885
+ {
17886
+ "$ref": "#/components/parameters/collectionId"
17887
+ },
17888
+ {
17889
+ "$ref": "#/components/parameters/listPage"
17890
+ },
17891
+ {
17892
+ "$ref": "#/components/parameters/listLimit"
17893
+ }
17894
+ ],
17895
+ "responses": {
17896
+ "200": {
17897
+ "description": "OK",
17898
+ "content": {
17899
+ "application/json": {
17900
+ "schema": {
17901
+ "allOf": [
17902
+ {
17903
+ "$ref": "#/components/schemas/List"
17904
+ },
17905
+ {
17906
+ "type": "object",
17907
+ "required": [
17908
+ "items"
17909
+ ],
17910
+ "properties": {
17911
+ "items": {
17912
+ "type": "array",
17913
+ "items": {
17914
+ "$ref": "#/components/schemas/Space"
17915
+ }
17226
17916
  }
17227
17917
  }
17228
17918
  }
@@ -17237,6 +17927,135 @@
17237
17927
  }
17238
17928
  }
17239
17929
  },
17930
+ "/collections/{collectionId}/move": {
17931
+ "post": {
17932
+ "operationId": "moveCollection",
17933
+ "summary": "Move a collection to a new position.",
17934
+ "tags": [
17935
+ "collections"
17936
+ ],
17937
+ "security": [
17938
+ {
17939
+ "user": []
17940
+ }
17941
+ ],
17942
+ "parameters": [
17943
+ {
17944
+ "$ref": "#/components/parameters/collectionId"
17945
+ }
17946
+ ],
17947
+ "requestBody": {
17948
+ "required": true,
17949
+ "content": {
17950
+ "application/json": {
17951
+ "schema": {
17952
+ "type": "object",
17953
+ "minProperties": 1,
17954
+ "properties": {
17955
+ "parent": {
17956
+ "description": "The unique id of the parent collection",
17957
+ "type": "string",
17958
+ "nullable": true
17959
+ },
17960
+ "position": {
17961
+ "description": "Where to move the collection. By default, it will be moved at the end.",
17962
+ "$ref": "#/components/schemas/ContentPosition"
17963
+ }
17964
+ }
17965
+ }
17966
+ }
17967
+ }
17968
+ },
17969
+ "responses": {
17970
+ "200": {
17971
+ "description": "Collection moved",
17972
+ "content": {
17973
+ "application/json": {
17974
+ "schema": {
17975
+ "$ref": "#/components/schemas/Collection"
17976
+ }
17977
+ }
17978
+ }
17979
+ },
17980
+ "400": {
17981
+ "description": "Invalid position space or collection provided",
17982
+ "$ref": "#/components/responses/BadRequestError"
17983
+ },
17984
+ "404": {
17985
+ "description": "No matching Collection found for given ID",
17986
+ "$ref": "#/components/responses/NotFoundError"
17987
+ },
17988
+ "409": {
17989
+ "description": "Operation would not result in any update",
17990
+ "$ref": "#/components/responses/ConflictError"
17991
+ },
17992
+ "default": {
17993
+ "$ref": "#/components/responses/UnexpectedError"
17994
+ }
17995
+ }
17996
+ }
17997
+ },
17998
+ "/collections/{collectionId}/transfer": {
17999
+ "post": {
18000
+ "operationId": "transferCollection",
18001
+ "summary": "Transfer a collection to another organization.",
18002
+ "tags": [
18003
+ "collections"
18004
+ ],
18005
+ "security": [
18006
+ {
18007
+ "user": []
18008
+ }
18009
+ ],
18010
+ "parameters": [
18011
+ {
18012
+ "$ref": "#/components/parameters/collectionId"
18013
+ }
18014
+ ],
18015
+ "requestBody": {
18016
+ "required": true,
18017
+ "content": {
18018
+ "application/json": {
18019
+ "schema": {
18020
+ "type": "object",
18021
+ "properties": {
18022
+ "organization": {
18023
+ "type": "string",
18024
+ "description": "The unique id of the target organization"
18025
+ }
18026
+ },
18027
+ "required": [
18028
+ "organization"
18029
+ ]
18030
+ }
18031
+ }
18032
+ }
18033
+ },
18034
+ "responses": {
18035
+ "200": {
18036
+ "description": "Collection transferred",
18037
+ "content": {
18038
+ "application/json": {
18039
+ "schema": {
18040
+ "$ref": "#/components/schemas/Collection"
18041
+ }
18042
+ }
18043
+ }
18044
+ },
18045
+ "404": {
18046
+ "description": "No matching Collection found for given ID",
18047
+ "$ref": "#/components/responses/NotFoundError"
18048
+ },
18049
+ "409": {
18050
+ "description": "Transfer would not result in any update",
18051
+ "$ref": "#/components/responses/ConflictError"
18052
+ },
18053
+ "default": {
18054
+ "$ref": "#/components/responses/UnexpectedError"
18055
+ }
18056
+ }
18057
+ }
18058
+ },
17240
18059
  "/collections/{collectionId}/permissions/aggregate": {
17241
18060
  "get": {
17242
18061
  "operationId": "listPermissionsAggregateInCollection",
@@ -17438,29 +18257,164 @@
17438
18257
  "$ref": "#/components/parameters/collectionId"
17439
18258
  }
17440
18259
  ],
17441
- "requestBody": {
17442
- "required": true,
17443
- "content": {
17444
- "application/json": {
17445
- "schema": {
17446
- "$ref": "#/components/schemas/CustomizationCollectionSettings"
17447
- }
17448
- }
17449
- }
17450
- },
18260
+ "requestBody": {
18261
+ "required": true,
18262
+ "content": {
18263
+ "application/json": {
18264
+ "schema": {
18265
+ "$ref": "#/components/schemas/CustomizationCollectionSettings"
18266
+ }
18267
+ }
18268
+ }
18269
+ },
18270
+ "responses": {
18271
+ "200": {
18272
+ "description": "OK",
18273
+ "content": {
18274
+ "application/json": {
18275
+ "schema": {
18276
+ "$ref": "#/components/schemas/CustomizationCollectionSettings"
18277
+ }
18278
+ }
18279
+ }
18280
+ },
18281
+ "400": {
18282
+ "$ref": "#/components/responses/BadRequestError"
18283
+ },
18284
+ "default": {
18285
+ "$ref": "#/components/responses/UnexpectedError"
18286
+ }
18287
+ }
18288
+ }
18289
+ },
18290
+ "/collections/{collectionId}/share-links": {
18291
+ "post": {
18292
+ "operationId": "createCollectionShareLink",
18293
+ "summary": "Creates a new collection share link",
18294
+ "tags": [
18295
+ "collections"
18296
+ ],
18297
+ "security": [
18298
+ {
18299
+ "user": []
18300
+ }
18301
+ ],
18302
+ "parameters": [
18303
+ {
18304
+ "$ref": "#/components/parameters/collectionId"
18305
+ }
18306
+ ],
18307
+ "requestBody": {
18308
+ "content": {
18309
+ "application/json": {
18310
+ "schema": {
18311
+ "type": "object",
18312
+ "properties": {
18313
+ "name": {
18314
+ "$ref": "#/components/schemas/ShareLinkName"
18315
+ }
18316
+ },
18317
+ "required": [
18318
+ "name"
18319
+ ]
18320
+ }
18321
+ }
18322
+ }
18323
+ },
18324
+ "responses": {
18325
+ "201": {
18326
+ "description": "The collection share link has been created",
18327
+ "content": {
18328
+ "application/json": {
18329
+ "schema": {
18330
+ "$ref": "#/components/schemas/ShareLink"
18331
+ }
18332
+ }
18333
+ }
18334
+ },
18335
+ "default": {
18336
+ "$ref": "#/components/responses/UnexpectedError"
18337
+ }
18338
+ }
18339
+ }
18340
+ },
18341
+ "/collections/{collectionId}/share-links/{shareLinkId}": {
18342
+ "patch": {
18343
+ "operationId": "updateCollectionShareLinkById",
18344
+ "summary": "Update the details of a collection share link",
18345
+ "tags": [
18346
+ "collections"
18347
+ ],
18348
+ "security": [
18349
+ {
18350
+ "user": []
18351
+ }
18352
+ ],
18353
+ "parameters": [
18354
+ {
18355
+ "$ref": "#/components/parameters/collectionId"
18356
+ },
18357
+ {
18358
+ "$ref": "#/components/parameters/shareLinkId"
18359
+ }
18360
+ ],
18361
+ "requestBody": {
18362
+ "required": true,
18363
+ "content": {
18364
+ "application/json": {
18365
+ "schema": {
18366
+ "type": "object",
18367
+ "minProperties": 1,
18368
+ "properties": {
18369
+ "active": {
18370
+ "type": "boolean"
18371
+ },
18372
+ "name": {
18373
+ "$ref": "#/components/schemas/ShareLinkName"
18374
+ }
18375
+ }
18376
+ }
18377
+ }
18378
+ }
18379
+ },
18380
+ "responses": {
18381
+ "200": {
18382
+ "description": "The collection share link has been updated",
18383
+ "content": {
18384
+ "application/json": {
18385
+ "schema": {
18386
+ "$ref": "#/components/schemas/ShareLink"
18387
+ }
18388
+ }
18389
+ }
18390
+ },
18391
+ "default": {
18392
+ "$ref": "#/components/responses/UnexpectedError"
18393
+ }
18394
+ }
18395
+ },
18396
+ "delete": {
18397
+ "operationId": "deleteCollectionShareLinkById",
18398
+ "summary": "Deletes a collection share link",
18399
+ "tags": [
18400
+ "collections"
18401
+ ],
18402
+ "security": [
18403
+ {
18404
+ "user": []
18405
+ }
18406
+ ],
18407
+ "parameters": [
18408
+ {
18409
+ "$ref": "#/components/parameters/collectionId"
18410
+ },
18411
+ {
18412
+ "$ref": "#/components/parameters/shareLinkId"
18413
+ }
18414
+ ],
17451
18415
  "responses": {
17452
- "200": {
17453
- "description": "OK",
17454
- "content": {
17455
- "application/json": {
17456
- "schema": {
17457
- "$ref": "#/components/schemas/CustomizationCollectionSettings"
17458
- }
17459
- }
17460
- }
17461
- },
17462
- "400": {
17463
- "$ref": "#/components/responses/BadRequestError"
18416
+ "205": {
18417
+ "description": "Collection share link has been deleted"
17464
18418
  },
17465
18419
  "default": {
17466
18420
  "$ref": "#/components/responses/UnexpectedError"
@@ -17482,6 +18436,9 @@
17482
18436
  {
17483
18437
  "$ref": "#/components/parameters/listLimit"
17484
18438
  },
18439
+ {
18440
+ "$ref": "#/components/schemas/IntegrationSearchQuery"
18441
+ },
17485
18442
  {
17486
18443
  "name": "category",
17487
18444
  "in": "query",
@@ -18690,6 +19647,100 @@
18690
19647
  "$ref": "#/components/responses/UnexpectedError"
18691
19648
  }
18692
19649
  }
19650
+ },
19651
+ "patch": {
19652
+ "operationId": "updateOrganizationById",
19653
+ "summary": "Update an organization by its ID",
19654
+ "tags": [
19655
+ "organizations"
19656
+ ],
19657
+ "security": [
19658
+ {
19659
+ "user": []
19660
+ }
19661
+ ],
19662
+ "parameters": [
19663
+ {
19664
+ "$ref": "#/components/parameters/organizationId"
19665
+ }
19666
+ ],
19667
+ "requestBody": {
19668
+ "required": true,
19669
+ "content": {
19670
+ "application/json": {
19671
+ "schema": {
19672
+ "type": "object",
19673
+ "properties": {
19674
+ "title": {
19675
+ "$ref": "#/components/schemas/OrganizationTitle"
19676
+ },
19677
+ "emailDomains": {
19678
+ "$ref": "#/components/schemas/OrganizationEmailDomains"
19679
+ },
19680
+ "defaultRole": {
19681
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
19682
+ },
19683
+ "defaultContent": {
19684
+ "oneOf": [
19685
+ {
19686
+ "$ref": "#/components/schemas/OrganizationDefaultContent"
19687
+ },
19688
+ {
19689
+ "type": "string",
19690
+ "nullable": true,
19691
+ "enum": [
19692
+ null
19693
+ ]
19694
+ }
19695
+ ]
19696
+ },
19697
+ "logo": {
19698
+ "oneOf": [
19699
+ {
19700
+ "$ref": "#/components/schemas/URL"
19701
+ },
19702
+ {
19703
+ "type": "string",
19704
+ "nullable": true,
19705
+ "enum": [
19706
+ null
19707
+ ]
19708
+ }
19709
+ ]
19710
+ },
19711
+ "sso": {
19712
+ "type": "boolean"
19713
+ },
19714
+ "aiSearch": {
19715
+ "type": "boolean"
19716
+ },
19717
+ "aiInsights": {
19718
+ "type": "boolean"
19719
+ }
19720
+ }
19721
+ }
19722
+ }
19723
+ }
19724
+ },
19725
+ "responses": {
19726
+ "200": {
19727
+ "description": "The organization has been updated",
19728
+ "content": {
19729
+ "application/json": {
19730
+ "schema": {
19731
+ "$ref": "#/components/schemas/Organization"
19732
+ }
19733
+ }
19734
+ }
19735
+ },
19736
+ "400": {
19737
+ "description": "Invalid default content space or collection provided",
19738
+ "$ref": "#/components/responses/BadRequestError"
19739
+ },
19740
+ "default": {
19741
+ "$ref": "#/components/responses/UnexpectedError"
19742
+ }
19743
+ }
18693
19744
  }
18694
19745
  },
18695
19746
  "/orgs/{organizationId}/members": {
@@ -19647,13 +20698,7 @@
19647
20698
  "$ref": "#/components/parameters/organizationId"
19648
20699
  },
19649
20700
  {
19650
- "name": "inviteId",
19651
- "in": "path",
19652
- "required": true,
19653
- "description": "The unique id of the invite",
19654
- "schema": {
19655
- "type": "string"
19656
- }
20701
+ "$ref": "#/components/parameters/inviteId"
19657
20702
  }
19658
20703
  ],
19659
20704
  "responses": {
@@ -19672,6 +20717,87 @@
19672
20717
  "$ref": "#/components/responses/UnexpectedError"
19673
20718
  }
19674
20719
  }
20720
+ },
20721
+ "patch": {
20722
+ "operationId": "updateOrganizationInviteById",
20723
+ "summary": "Update an organization invite.",
20724
+ "tags": [
20725
+ "organizations"
20726
+ ],
20727
+ "security": [
20728
+ {
20729
+ "user": []
20730
+ }
20731
+ ],
20732
+ "parameters": [
20733
+ {
20734
+ "$ref": "#/components/parameters/organizationId"
20735
+ },
20736
+ {
20737
+ "$ref": "#/components/parameters/inviteId"
20738
+ }
20739
+ ],
20740
+ "requestBody": {
20741
+ "required": true,
20742
+ "content": {
20743
+ "application/json": {
20744
+ "schema": {
20745
+ "type": "object",
20746
+ "properties": {
20747
+ "role": {
20748
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
20749
+ },
20750
+ "contentLevel": {
20751
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
20752
+ }
20753
+ }
20754
+ }
20755
+ }
20756
+ }
20757
+ },
20758
+ "responses": {
20759
+ "200": {
20760
+ "description": "The organization invite has been updated",
20761
+ "content": {
20762
+ "application/json": {
20763
+ "schema": {
20764
+ "$ref": "#/components/schemas/OrganizationInvite"
20765
+ }
20766
+ }
20767
+ }
20768
+ },
20769
+ "default": {
20770
+ "$ref": "#/components/responses/UnexpectedError"
20771
+ }
20772
+ }
20773
+ },
20774
+ "delete": {
20775
+ "operationId": "deleteOrganizationInviteById",
20776
+ "summary": "Deletes an organization invite.",
20777
+ "tags": [
20778
+ "organizations"
20779
+ ],
20780
+ "security": [
20781
+ {
20782
+ "user": []
20783
+ }
20784
+ ],
20785
+ "parameters": [
20786
+ {
20787
+ "$ref": "#/components/parameters/organizationId"
20788
+ },
20789
+ {
20790
+ "$ref": "#/components/parameters/inviteId"
20791
+ }
20792
+ ],
20793
+ "responses": {
20794
+ "205": {
20795
+ "description": "The organization invite has been deleted"
20796
+ },
20797
+ "default": {
20798
+ "$ref": "#/components/responses/UnexpectedError"
20799
+ }
20800
+ }
19675
20801
  }
19676
20802
  },
19677
20803
  "/orgs/{organizationId}/billing": {
@@ -20548,6 +21674,9 @@
20548
21674
  },
20549
21675
  {
20550
21676
  "$ref": "#/components/parameters/listLimit"
21677
+ },
21678
+ {
21679
+ "$ref": "#/components/schemas/IntegrationSearchQuery"
20551
21680
  }
20552
21681
  ],
20553
21682
  "responses": {
@@ -20648,6 +21777,9 @@
20648
21777
  },
20649
21778
  {
20650
21779
  "$ref": "#/components/parameters/listLimit"
21780
+ },
21781
+ {
21782
+ "$ref": "#/components/schemas/IntegrationSearchQuery"
20651
21783
  }
20652
21784
  ],
20653
21785
  "responses": {
@@ -21287,84 +22419,6 @@
21287
22419
  "$ref": "#/components/responses/UnexpectedError"
21288
22420
  }
21289
22421
  }
21290
- },
21291
- "delete": {
21292
- "operationId": "deleteCapture",
21293
- "deprecated": true,
21294
- "summary": "Delete a capture by its ID. Deprecated, use deleteSnippet.",
21295
- "tags": [
21296
- "organizations"
21297
- ],
21298
- "security": [
21299
- {
21300
- "user": []
21301
- }
21302
- ],
21303
- "parameters": [
21304
- {
21305
- "$ref": "#/components/parameters/organizationId"
21306
- },
21307
- {
21308
- "$ref": "#/components/parameters/captureId"
21309
- }
21310
- ],
21311
- "responses": {
21312
- "200": {
21313
- "description": "OK"
21314
- },
21315
- "default": {
21316
- "$ref": "#/components/responses/UnexpectedError"
21317
- }
21318
- }
21319
- },
21320
- "put": {
21321
- "operationId": "updateCapture",
21322
- "deprecated": true,
21323
- "summary": "Update an existing capture. Deprecated, use updateSnippet.",
21324
- "tags": [
21325
- "organizations"
21326
- ],
21327
- "security": [
21328
- {
21329
- "user": []
21330
- }
21331
- ],
21332
- "parameters": [
21333
- {
21334
- "$ref": "#/components/parameters/organizationId"
21335
- },
21336
- {
21337
- "$ref": "#/components/parameters/captureId"
21338
- },
21339
- {
21340
- "$ref": "#/components/parameters/ifUnmodifiedSince"
21341
- }
21342
- ],
21343
- "requestBody": {
21344
- "required": true,
21345
- "content": {
21346
- "application/json": {
21347
- "schema": {
21348
- "$ref": "#/components/schemas/UpdateCaptureSchema"
21349
- }
21350
- }
21351
- }
21352
- },
21353
- "responses": {
21354
- "200": {
21355
- "description": "OK",
21356
- "content": {
21357
- "application/json": {
21358
- "schema": {
21359
- "$ref": "#/components/schemas/Capture"
21360
- }
21361
- }
21362
- }
21363
- },
21364
- "default": {
21365
- "$ref": "#/components/responses/UnexpectedError"
21366
- }
21367
- }
21368
22422
  }
21369
22423
  },
21370
22424
  "/orgs/{organizationId}/captures/{captureId}/events": {
@@ -21499,9 +22553,6 @@
21499
22553
  {
21500
22554
  "$ref": "#/components/parameters/organizationId"
21501
22555
  },
21502
- {
21503
- "$ref": "#/components/parameters/pageFormat"
21504
- },
21505
22556
  {
21506
22557
  "$ref": "#/components/parameters/listPage"
21507
22558
  },
@@ -21619,9 +22670,6 @@
21619
22670
  },
21620
22671
  {
21621
22672
  "$ref": "#/components/parameters/snippetId"
21622
- },
21623
- {
21624
- "$ref": "#/components/parameters/pageFormat"
21625
22673
  }
21626
22674
  ],
21627
22675
  "responses": {