@gitbook/api 0.12.0 → 0.14.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.yaml CHANGED
@@ -241,6 +241,9 @@ components:
241
241
  URL:
242
242
  type: string
243
243
  format: uri
244
+ Color:
245
+ type: string
246
+ pattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
244
247
  Date:
245
248
  type: string
246
249
  format: date
@@ -1000,32 +1003,41 @@ components:
1000
1003
  - object
1001
1004
  - data
1002
1005
  - nodes
1003
- DocumentBlocksEssentials:
1006
+ DocumentBlock:
1004
1007
  oneOf:
1005
1008
  - $ref: "#/components/schemas/DocumentBlockParagraph"
1006
1009
  - $ref: "#/components/schemas/DocumentBlockHeading"
1007
1010
  - $ref: "#/components/schemas/DocumentBlockListOrdered"
1008
1011
  - $ref: "#/components/schemas/DocumentBlockListUnordered"
1009
1012
  - $ref: "#/components/schemas/DocumentBlockListTasks"
1013
+ - $ref: "#/components/schemas/DocumentBlockListItem"
1010
1014
  - $ref: "#/components/schemas/DocumentBlockDivider"
1011
- DocumentBlocksTopLevels:
1012
- oneOf:
1013
- - $ref: "#/components/schemas/DocumentBlocksEssentials"
1014
1015
  - $ref: "#/components/schemas/DocumentBlockQuote"
1015
1016
  - $ref: "#/components/schemas/DocumentBlockHint"
1016
1017
  - $ref: "#/components/schemas/DocumentBlockImages"
1018
+ - $ref: "#/components/schemas/DocumentBlockImage"
1017
1019
  - $ref: "#/components/schemas/DocumentBlockFile"
1018
1020
  - $ref: "#/components/schemas/DocumentBlockDrawing"
1019
1021
  - $ref: "#/components/schemas/DocumentBlockEmbed"
1020
1022
  - $ref: "#/components/schemas/DocumentBlockCode"
1023
+ - $ref: "#/components/schemas/DocumentBlockCodeLine"
1021
1024
  - $ref: "#/components/schemas/DocumentBlockMath"
1022
1025
  - $ref: "#/components/schemas/DocumentBlockExpandable"
1023
1026
  - $ref: "#/components/schemas/DocumentBlockTabs"
1027
+ - $ref: "#/components/schemas/DocumentBlockTabsItem"
1024
1028
  - $ref: "#/components/schemas/DocumentBlockTable"
1025
1029
  - $ref: "#/components/schemas/DocumentBlockSwagger"
1026
1030
  - $ref: "#/components/schemas/DocumentBlockContentRef"
1027
1031
  - $ref: "#/components/schemas/DocumentBlockIntegration"
1028
- DocumentNodeText:
1032
+ DocumentInline:
1033
+ oneOf:
1034
+ - $ref: "#/components/schemas/DocumentInlineLink"
1035
+ - $ref: "#/components/schemas/DocumentInlineEmoji"
1036
+ - $ref: "#/components/schemas/DocumentInlineMath"
1037
+ - $ref: "#/components/schemas/DocumentInlineImage"
1038
+ - $ref: "#/components/schemas/DocumentInlineAnnotation"
1039
+ - $ref: "#/components/schemas/DocumentInlineMention"
1040
+ DocumentText:
1029
1041
  type: object
1030
1042
  properties:
1031
1043
  object:
@@ -1041,7 +1053,7 @@ components:
1041
1053
  required:
1042
1054
  - object
1043
1055
  - leaves
1044
- DocumentNodeFragment:
1056
+ DocumentFragment:
1045
1057
  type: object
1046
1058
  properties:
1047
1059
  object:
@@ -1061,6 +1073,31 @@ components:
1061
1073
  required:
1062
1074
  - object
1063
1075
  - nodes
1076
+ DocumentBlocksEssentials:
1077
+ oneOf:
1078
+ - $ref: "#/components/schemas/DocumentBlockParagraph"
1079
+ - $ref: "#/components/schemas/DocumentBlockHeading"
1080
+ - $ref: "#/components/schemas/DocumentBlockListOrdered"
1081
+ - $ref: "#/components/schemas/DocumentBlockListUnordered"
1082
+ - $ref: "#/components/schemas/DocumentBlockListTasks"
1083
+ - $ref: "#/components/schemas/DocumentBlockDivider"
1084
+ DocumentBlocksTopLevels:
1085
+ oneOf:
1086
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
1087
+ - $ref: "#/components/schemas/DocumentBlockQuote"
1088
+ - $ref: "#/components/schemas/DocumentBlockHint"
1089
+ - $ref: "#/components/schemas/DocumentBlockImages"
1090
+ - $ref: "#/components/schemas/DocumentBlockFile"
1091
+ - $ref: "#/components/schemas/DocumentBlockDrawing"
1092
+ - $ref: "#/components/schemas/DocumentBlockEmbed"
1093
+ - $ref: "#/components/schemas/DocumentBlockCode"
1094
+ - $ref: "#/components/schemas/DocumentBlockMath"
1095
+ - $ref: "#/components/schemas/DocumentBlockExpandable"
1096
+ - $ref: "#/components/schemas/DocumentBlockTabs"
1097
+ - $ref: "#/components/schemas/DocumentBlockTable"
1098
+ - $ref: "#/components/schemas/DocumentBlockSwagger"
1099
+ - $ref: "#/components/schemas/DocumentBlockContentRef"
1100
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
1064
1101
  DocumentTextLeaf:
1065
1102
  type: object
1066
1103
  properties:
@@ -1199,7 +1236,7 @@ components:
1199
1236
  type: array
1200
1237
  items:
1201
1238
  oneOf:
1202
- - $ref: "#/components/schemas/DocumentNodeText"
1239
+ - $ref: "#/components/schemas/DocumentText"
1203
1240
  - $ref: "#/components/schemas/DocumentInlineImage"
1204
1241
  data:
1205
1242
  type: object
@@ -1363,7 +1400,7 @@ components:
1363
1400
  type: array
1364
1401
  items:
1365
1402
  allOf:
1366
- - $ref: "#/components/schemas/DocumentNodeFragment"
1403
+ - $ref: "#/components/schemas/DocumentFragment"
1367
1404
  - type: object
1368
1405
  properties:
1369
1406
  type:
@@ -1383,11 +1420,11 @@ components:
1383
1420
  isVoid:
1384
1421
  type: boolean
1385
1422
  enum:
1386
- - true
1423
+ - false
1387
1424
  nodes:
1388
1425
  type: array
1389
1426
  items:
1390
- $ref: "#/components/schemas/DocumentNodeText"
1427
+ $ref: "#/components/schemas/DocumentText"
1391
1428
  data:
1392
1429
  type: object
1393
1430
  properties: {}
@@ -1398,15 +1435,6 @@ components:
1398
1435
  - fragments
1399
1436
  - isVoid
1400
1437
  - nodes
1401
- DocumentInlinesRich:
1402
- oneOf:
1403
- - $ref: "#/components/schemas/DocumentNodeText"
1404
- - $ref: "#/components/schemas/DocumentInlineLink"
1405
- - $ref: "#/components/schemas/DocumentInlineEmoji"
1406
- - $ref: "#/components/schemas/DocumentInlineMath"
1407
- - $ref: "#/components/schemas/DocumentInlineImage"
1408
- - $ref: "#/components/schemas/DocumentInlineAnnotation"
1409
- - $ref: "#/components/schemas/DocumentInlineMention"
1410
1438
  DocumentBlockParagraph:
1411
1439
  type: object
1412
1440
  properties:
@@ -1423,7 +1451,9 @@ components:
1423
1451
  nodes:
1424
1452
  type: array
1425
1453
  items:
1426
- $ref: "#/components/schemas/DocumentInlinesRich"
1454
+ oneOf:
1455
+ - $ref: "#/components/schemas/DocumentInline"
1456
+ - $ref: "#/components/schemas/DocumentText"
1427
1457
  isVoid:
1428
1458
  type: boolean
1429
1459
  enum:
@@ -1454,7 +1484,9 @@ components:
1454
1484
  nodes:
1455
1485
  type: array
1456
1486
  items:
1457
- $ref: "#/components/schemas/DocumentInlinesRich"
1487
+ oneOf:
1488
+ - $ref: "#/components/schemas/DocumentInline"
1489
+ - $ref: "#/components/schemas/DocumentText"
1458
1490
  data:
1459
1491
  type: object
1460
1492
  properties:
@@ -1626,7 +1658,7 @@ components:
1626
1658
  type: array
1627
1659
  items:
1628
1660
  oneOf:
1629
- - $ref: "#/components/schemas/DocumentBlockTaskListItem"
1661
+ - $ref: "#/components/schemas/DocumentBlockListItem"
1630
1662
  isVoid:
1631
1663
  type: boolean
1632
1664
  enum:
@@ -1663,26 +1695,13 @@ components:
1663
1695
  - false
1664
1696
  data:
1665
1697
  type: object
1666
- properties: {}
1667
- additionalProperties: false
1698
+ properties:
1699
+ checked:
1700
+ type: boolean
1668
1701
  required:
1669
1702
  - object
1670
1703
  - type
1671
1704
  - nodes
1672
- DocumentBlockTaskListItem:
1673
- allOf:
1674
- - $ref: "#/components/schemas/DocumentBlockListItem"
1675
- - type: object
1676
- properties:
1677
- data:
1678
- type: object
1679
- properties:
1680
- checked:
1681
- type: boolean
1682
- required:
1683
- - checked
1684
- required:
1685
- - data
1686
1705
  DocumentBlockImages:
1687
1706
  type: object
1688
1707
  properties:
@@ -1759,13 +1778,15 @@ components:
1759
1778
  - value
1760
1779
  height:
1761
1780
  $ref: "#/components/schemas/DocumentBlockImage/properties/data/properties/width"
1781
+ alt:
1782
+ type: string
1762
1783
  required:
1763
1784
  - ref
1764
1785
  fragments:
1765
1786
  type: array
1766
1787
  items:
1767
1788
  allOf:
1768
- - $ref: "#/components/schemas/DocumentNodeFragment"
1789
+ - $ref: "#/components/schemas/DocumentFragment"
1769
1790
  - type: object
1770
1791
  properties:
1771
1792
  type:
@@ -1938,7 +1959,7 @@ components:
1938
1959
  type: array
1939
1960
  items:
1940
1961
  oneOf:
1941
- - $ref: "#/components/schemas/DocumentNodeText"
1962
+ - $ref: "#/components/schemas/DocumentText"
1942
1963
  - $ref: "#/components/schemas/DocumentInlineAnnotation"
1943
1964
  data:
1944
1965
  type: object
@@ -2009,7 +2030,7 @@ components:
2009
2030
  items:
2010
2031
  oneOf:
2011
2032
  - allOf:
2012
- - $ref: "#/components/schemas/DocumentNodeFragment"
2033
+ - $ref: "#/components/schemas/DocumentFragment"
2013
2034
  - type: object
2014
2035
  properties:
2015
2036
  fragment:
@@ -2031,7 +2052,7 @@ components:
2031
2052
  - fragment
2032
2053
  - type
2033
2054
  - allOf:
2034
- - $ref: "#/components/schemas/DocumentNodeFragment"
2055
+ - $ref: "#/components/schemas/DocumentFragment"
2035
2056
  - type: object
2036
2057
  properties:
2037
2058
  fragment:
@@ -2187,7 +2208,7 @@ components:
2187
2208
  fragments:
2188
2209
  type: array
2189
2210
  items:
2190
- $ref: "#/components/schemas/DocumentNodeFragment"
2211
+ $ref: "#/components/schemas/DocumentFragment"
2191
2212
  required:
2192
2213
  - object
2193
2214
  - type
@@ -2962,11 +2983,14 @@ components:
2962
2983
  type: string
2963
2984
  enum:
2964
2985
  - link
2986
+ target:
2987
+ $ref: "#/components/schemas/ContentRef"
2965
2988
  href:
2966
2989
  type: string
2967
2990
  required:
2968
2991
  - kind
2969
2992
  - type
2993
+ - target
2970
2994
  RevisionFile:
2971
2995
  type: object
2972
2996
  properties:
@@ -4155,7 +4179,7 @@ components:
4155
4179
  type: string
4156
4180
  description: Title of the collection
4157
4181
  minLength: 0
4158
- maxLength: 100
4182
+ maxLength: 50
4159
4183
  path:
4160
4184
  type: string
4161
4185
  description: Path in the published URL
@@ -4165,17 +4189,38 @@ components:
4165
4189
  type: string
4166
4190
  enum:
4167
4191
  - variants
4168
- primarySpace:
4192
+ organization:
4193
+ type: string
4194
+ description: ID of the organization owning this collection
4195
+ parent:
4169
4196
  type: string
4170
- description: ID of the primary space for this collection
4197
+ description: ID of the parent collection, if any
4171
4198
  collection:
4172
4199
  type: string
4200
+ deprecated: true
4173
4201
  description: ID of the parent collection, if any
4202
+ urls:
4203
+ type: object
4204
+ description: URLs associated with the object
4205
+ properties:
4206
+ location:
4207
+ type: string
4208
+ description: URL of the collection in the API
4209
+ format: uri
4210
+ app:
4211
+ type: string
4212
+ description: URL of the collection in the application
4213
+ format: uri
4214
+ required:
4215
+ - app
4216
+ - location
4174
4217
  required:
4175
4218
  - object
4176
4219
  - id
4177
4220
  - title
4221
+ - organization
4178
4222
  - visibility
4223
+ - urls
4179
4224
  Integration:
4180
4225
  type: object
4181
4226
  properties:
@@ -5668,6 +5713,75 @@ components:
5668
5713
  required:
5669
5714
  - authURL
5670
5715
  - impersonatorId
5716
+ UserPermissions:
5717
+ type: object
5718
+ description: All the permissions of a user
5719
+ properties:
5720
+ updatedAt:
5721
+ $ref: "#/components/schemas/Date"
5722
+ searchKey:
5723
+ type: string
5724
+ organizations:
5725
+ type: object
5726
+ additionalProperties:
5727
+ type: object
5728
+ description: The organizations permissions of a user
5729
+ properties:
5730
+ role:
5731
+ $ref: "#/components/schemas/MemberRoleOrGuest"
5732
+ teams:
5733
+ type: object
5734
+ additionalProperties:
5735
+ type: object
5736
+ description: The teams permissions of a user
5737
+ properties:
5738
+ role:
5739
+ $ref: "#/components/schemas/TeamMemberRole"
5740
+ required:
5741
+ - role
5742
+ required:
5743
+ - role
5744
+ disabled:
5745
+ type: boolean
5746
+ required:
5747
+ - role
5748
+ - teams
5749
+ collections:
5750
+ type: object
5751
+ additionalProperties:
5752
+ type: object
5753
+ description: The collections permissions of a user
5754
+ properties:
5755
+ organization:
5756
+ type: string
5757
+ level:
5758
+ $ref: "#/components/schemas/MemberRoleOrGuest"
5759
+ collection:
5760
+ type: string
5761
+ required:
5762
+ - organization
5763
+ - level
5764
+ spaces:
5765
+ type: object
5766
+ additionalProperties:
5767
+ type: object
5768
+ description: The spaces permissions of a user
5769
+ properties:
5770
+ organization:
5771
+ type: string
5772
+ level:
5773
+ $ref: "#/components/schemas/MemberRoleOrGuest"
5774
+ collection:
5775
+ type: string
5776
+ required:
5777
+ - organization
5778
+ - level
5779
+ required:
5780
+ - updatedAt
5781
+ - searchKey
5782
+ - organizations
5783
+ - collections
5784
+ - spaces
5671
5785
  UserRiskEvaluation:
5672
5786
  type: object
5673
5787
  description: The GitBook User risk evaluation.
@@ -6617,6 +6731,7 @@ components:
6617
6731
  - $ref: "#/components/schemas/SpaceInfoChannel"
6618
6732
  - $ref: "#/components/schemas/SpaceGitInfoChannel"
6619
6733
  - $ref: "#/components/schemas/SpacePublishingAuthChannel"
6734
+ - $ref: "#/components/schemas/SpacePublishingCustomizationChannel"
6620
6735
  - $ref: "#/components/schemas/SpaceEntitiesChannel"
6621
6736
  - $ref: "#/components/schemas/SpaceCustomFieldsChannel"
6622
6737
  - $ref: "#/components/schemas/BackofficeUserInfoChannel"
@@ -6625,6 +6740,7 @@ components:
6625
6740
  - $ref: "#/components/schemas/UserAPITokensChannel"
6626
6741
  - $ref: "#/components/schemas/UserProfileChannel"
6627
6742
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
6743
+ - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
6628
6744
  - $ref: "#/components/schemas/OrganizationMembersChannel"
6629
6745
  - $ref: "#/components/schemas/OrganizationMemberChannel"
6630
6746
  - $ref: "#/components/schemas/OrganizationTeamsChannel"
@@ -6632,6 +6748,7 @@ components:
6632
6748
  - $ref: "#/components/schemas/OrganizationTeamMembersChannel"
6633
6749
  - $ref: "#/components/schemas/OrganizationTeamMemberChannel"
6634
6750
  - $ref: "#/components/schemas/OrganizationSpacesChannel"
6751
+ - $ref: "#/components/schemas/OrganizationCollectionsChannel"
6635
6752
  - $ref: "#/components/schemas/OrganizationEntitiesChannel"
6636
6753
  - $ref: "#/components/schemas/OrganizationSchemasChannel"
6637
6754
  - $ref: "#/components/schemas/OrganizationCapturesChannel"
@@ -6743,6 +6860,18 @@ components:
6743
6860
  required:
6744
6861
  - channel
6745
6862
  - space
6863
+ SpacePublishingCustomizationChannel:
6864
+ type: object
6865
+ properties:
6866
+ channel:
6867
+ type: string
6868
+ enum:
6869
+ - space-publishing-customization
6870
+ space:
6871
+ type: string
6872
+ required:
6873
+ - channel
6874
+ - space
6746
6875
  SpaceEntitiesChannel:
6747
6876
  type: object
6748
6877
  properties:
@@ -6815,6 +6944,18 @@ components:
6815
6944
  required:
6816
6945
  - channel
6817
6946
  - user
6947
+ CollectionPublishingCustomizationChannel:
6948
+ type: object
6949
+ properties:
6950
+ channel:
6951
+ type: string
6952
+ enum:
6953
+ - collection-publishing-customization
6954
+ collection:
6955
+ type: string
6956
+ required:
6957
+ - channel
6958
+ - collection
6818
6959
  ChangeRequestReviewsChannel:
6819
6960
  type: object
6820
6961
  properties:
@@ -6941,6 +7082,19 @@ components:
6941
7082
  required:
6942
7083
  - channel
6943
7084
  - organization
7085
+ OrganizationCollectionsChannel:
7086
+ type: object
7087
+ description: Subscription channel for changes in collections in an organization.
7088
+ properties:
7089
+ channel:
7090
+ type: string
7091
+ enum:
7092
+ - organization-collections
7093
+ organization:
7094
+ type: string
7095
+ required:
7096
+ - channel
7097
+ - organization
6944
7098
  OrganizationEntitiesChannel:
6945
7099
  type: object
6946
7100
  description: Subscription channel for entities in an organization.
@@ -7176,6 +7330,281 @@ components:
7176
7330
  CustomFieldPlaceholder:
7177
7331
  type: string
7178
7332
  maxLength: 100
7333
+ CustomizationSettings:
7334
+ type: object
7335
+ properties:
7336
+ inherit:
7337
+ type: boolean
7338
+ description: Inherit customization settings from the parent collection.
7339
+ title:
7340
+ type: string
7341
+ description: Title to use for the published content. If not defined, it'll fallback to the content title.
7342
+ styling:
7343
+ type: object
7344
+ properties:
7345
+ primaryColor:
7346
+ $ref: "#/components/schemas/CustomizationThemedColor"
7347
+ corners:
7348
+ $ref: "#/components/schemas/CustomizationCorners"
7349
+ font:
7350
+ $ref: "#/components/schemas/CustomizationFont"
7351
+ required:
7352
+ - primaryColor
7353
+ - corners
7354
+ - font
7355
+ internationalization:
7356
+ type: object
7357
+ properties:
7358
+ locale:
7359
+ $ref: "#/components/schemas/CustomizationLocale"
7360
+ inherit:
7361
+ type: boolean
7362
+ description: Inherit locale from the parent collection.
7363
+ required:
7364
+ - locale
7365
+ - inherit
7366
+ favicon:
7367
+ oneOf:
7368
+ - type: object
7369
+ properties:
7370
+ icon:
7371
+ $ref: "#/components/schemas/CustomizationThemedURL"
7372
+ required:
7373
+ - icon
7374
+ - type: object
7375
+ properties:
7376
+ emoji:
7377
+ $ref: "#/components/schemas/Emoji"
7378
+ required:
7379
+ - emoji
7380
+ - type: object
7381
+ properties: {}
7382
+ additionalProperties: false
7383
+ header:
7384
+ type: object
7385
+ properties:
7386
+ preset:
7387
+ $ref: "#/components/schemas/CustomizationHeaderPreset"
7388
+ logo:
7389
+ $ref: "#/components/schemas/CustomizationThemedURL"
7390
+ backgroundColor:
7391
+ $ref: "#/components/schemas/CustomizationThemedColor"
7392
+ linkColor:
7393
+ $ref: "#/components/schemas/CustomizationThemedColor"
7394
+ links:
7395
+ type: array
7396
+ items:
7397
+ $ref: "#/components/schemas/CustomizationHeaderLink"
7398
+ required:
7399
+ - preset
7400
+ - links
7401
+ footer:
7402
+ type: object
7403
+ properties:
7404
+ logo:
7405
+ $ref: "#/components/schemas/CustomizationThemedURL"
7406
+ groups:
7407
+ type: array
7408
+ items:
7409
+ $ref: "#/components/schemas/CustomizationFooterGroup"
7410
+ copyright:
7411
+ type: string
7412
+ maxLength: 300
7413
+ required:
7414
+ - groups
7415
+ themes:
7416
+ type: object
7417
+ properties:
7418
+ default:
7419
+ $ref: "#/components/schemas/CustomizationThemeMode"
7420
+ toggeable:
7421
+ description: Should the reader be able to switch between dark and light mode
7422
+ type: boolean
7423
+ required:
7424
+ - default
7425
+ - toggeable
7426
+ pdf:
7427
+ type: object
7428
+ properties:
7429
+ enabled:
7430
+ type: boolean
7431
+ description: If true, PDF export is enabled for the published content.
7432
+ required:
7433
+ - enabled
7434
+ feedback:
7435
+ type: object
7436
+ properties:
7437
+ enabled:
7438
+ type: boolean
7439
+ description: If true, feedback gathering is enabled
7440
+ required:
7441
+ - enabled
7442
+ aiSearch:
7443
+ type: object
7444
+ properties:
7445
+ enabled:
7446
+ type: boolean
7447
+ description: If true, AI search is enabled
7448
+ required:
7449
+ - enabled
7450
+ git:
7451
+ type: object
7452
+ properties:
7453
+ showEditLink:
7454
+ type: boolean
7455
+ description: Whether the public content should show a link to edit the content on the git provider set up in the GitSync
7456
+ required:
7457
+ - showEditLink
7458
+ pagination:
7459
+ type: object
7460
+ properties:
7461
+ enabled:
7462
+ type: boolean
7463
+ description: Whether the pagination navigation should be displayed on pages.
7464
+ required:
7465
+ - enabled
7466
+ trademark:
7467
+ type: object
7468
+ properties:
7469
+ enabled:
7470
+ type: boolean
7471
+ description: Whether the GitBook trademark ("Powered by GitBook") should be visible
7472
+ required:
7473
+ - enabled
7474
+ privacyPolicy:
7475
+ type: object
7476
+ properties:
7477
+ url:
7478
+ $ref: "#/components/schemas/URL"
7479
+ socialPreview:
7480
+ type: object
7481
+ properties:
7482
+ url:
7483
+ $ref: "#/components/schemas/URL"
7484
+ required:
7485
+ - inherit
7486
+ - styling
7487
+ - internationalization
7488
+ - favicon
7489
+ - header
7490
+ - footer
7491
+ - themes
7492
+ - pdf
7493
+ - feedback
7494
+ - aiSearch
7495
+ - trademark
7496
+ - pagination
7497
+ - git
7498
+ - privacyPolicy
7499
+ - socialPreview
7500
+ CustomizationCollectionSettings:
7501
+ allOf:
7502
+ - $ref: "#/components/schemas/CustomizationSettings"
7503
+ - type: object
7504
+ properties:
7505
+ collection:
7506
+ type: object
7507
+ properties:
7508
+ defaultSpace:
7509
+ type: string
7510
+ description: ID of the space used by default in the collection
7511
+ required:
7512
+ - collection
7513
+ CustomizationLocale:
7514
+ type: string
7515
+ description: Language for the UI element
7516
+ enum:
7517
+ - en
7518
+ - fr
7519
+ - es
7520
+ - zh
7521
+ - ja
7522
+ CustomizationFont:
7523
+ type: string
7524
+ enum:
7525
+ - Inter
7526
+ - Roboto
7527
+ - RobotoSlab
7528
+ - OpenSans
7529
+ - SourceSansPro
7530
+ - Lato
7531
+ - Ubuntu
7532
+ - Raleway
7533
+ - Merriweather
7534
+ - Overpass
7535
+ - NotoSans
7536
+ - IBMPlexSerif
7537
+ - Poppins
7538
+ - FiraSans
7539
+ CustomizationHeaderPreset:
7540
+ type: string
7541
+ enum:
7542
+ - default
7543
+ - bold
7544
+ - contrast
7545
+ - custom
7546
+ - none
7547
+ CustomizationThemeMode:
7548
+ type: string
7549
+ enum:
7550
+ - light
7551
+ - dark
7552
+ CustomizationHeaderLink:
7553
+ allOf:
7554
+ - $ref: "#/components/schemas/CustomizationContentLink"
7555
+ - type: object
7556
+ properties:
7557
+ links:
7558
+ type: array
7559
+ items:
7560
+ $ref: "#/components/schemas/CustomizationContentLink"
7561
+ CustomizationContentLink:
7562
+ type: object
7563
+ properties:
7564
+ title:
7565
+ type: string
7566
+ to:
7567
+ $ref: "#/components/schemas/ContentRef"
7568
+ required:
7569
+ - title
7570
+ - to
7571
+ CustomizationFooterGroup:
7572
+ type: object
7573
+ properties:
7574
+ title:
7575
+ type: string
7576
+ links:
7577
+ type: array
7578
+ items:
7579
+ $ref: "#/components/schemas/CustomizationContentLink"
7580
+ required:
7581
+ - title
7582
+ - links
7583
+ CustomizationCorners:
7584
+ type: string
7585
+ enum:
7586
+ - straight
7587
+ - rounded
7588
+ CustomizationThemedURL:
7589
+ type: object
7590
+ properties:
7591
+ light:
7592
+ $ref: "#/components/schemas/URL"
7593
+ dark:
7594
+ $ref: "#/components/schemas/URL"
7595
+ required:
7596
+ - light
7597
+ - dark
7598
+ CustomizationThemedColor:
7599
+ type: object
7600
+ properties:
7601
+ light:
7602
+ $ref: "#/components/schemas/Color"
7603
+ dark:
7604
+ $ref: "#/components/schemas/Color"
7605
+ required:
7606
+ - light
7607
+ - dark
7179
7608
  responses:
7180
7609
  UnexpectedError:
7181
7610
  description: Unexpected Error
@@ -8953,6 +9382,53 @@ paths:
8953
9382
  $ref: "#/components/schemas/UserContentPermission"
8954
9383
  default:
8955
9384
  $ref: "#/components/responses/UnexpectedError"
9385
+ "/spaces/{spaceId}/publishing/customization":
9386
+ get:
9387
+ operationId: getSpacePublishingCustomizationById
9388
+ summary: Get the publishing customization configuration for a space.
9389
+ tags:
9390
+ - spaces
9391
+ security:
9392
+ - user: []
9393
+ parameters:
9394
+ - $ref: "#/components/parameters/spaceId"
9395
+ responses:
9396
+ "200":
9397
+ description: OK
9398
+ content:
9399
+ application/json:
9400
+ schema:
9401
+ $ref: "#/components/schemas/CustomizationSettings"
9402
+ "400":
9403
+ $ref: "#/components/responses/BadRequestError"
9404
+ default:
9405
+ $ref: "#/components/responses/UnexpectedError"
9406
+ put:
9407
+ operationId: updateSpacePublishingCustomizationById
9408
+ summary: Update the publishing customization configuration for a space.
9409
+ tags:
9410
+ - spaces
9411
+ security:
9412
+ - user: []
9413
+ parameters:
9414
+ - $ref: "#/components/parameters/spaceId"
9415
+ requestBody:
9416
+ required: true
9417
+ content:
9418
+ application/json:
9419
+ schema:
9420
+ $ref: "#/components/schemas/CustomizationSettings"
9421
+ responses:
9422
+ "200":
9423
+ description: OK
9424
+ content:
9425
+ application/json:
9426
+ schema:
9427
+ $ref: "#/components/schemas/CustomizationSettings"
9428
+ "400":
9429
+ $ref: "#/components/responses/BadRequestError"
9430
+ default:
9431
+ $ref: "#/components/responses/UnexpectedError"
8956
9432
  "/spaces/{spaceId}/publishing/auth":
8957
9433
  get:
8958
9434
  operationId: getSpacePublishingAuthById
@@ -9217,6 +9693,53 @@ paths:
9217
9693
  $ref: "#/components/responses/BadRequestError"
9218
9694
  default:
9219
9695
  $ref: "#/components/responses/UnexpectedError"
9696
+ "/collections/{collectionId}/publishing/customization":
9697
+ get:
9698
+ operationId: getCollectionPublishingCustomizationById
9699
+ summary: Get the publishing customization configuration for a collection.
9700
+ tags:
9701
+ - collections
9702
+ security:
9703
+ - user: []
9704
+ parameters:
9705
+ - $ref: "#/components/parameters/collectionId"
9706
+ responses:
9707
+ "200":
9708
+ description: OK
9709
+ content:
9710
+ application/json:
9711
+ schema:
9712
+ $ref: "#/components/schemas/CustomizationCollectionSettings"
9713
+ "400":
9714
+ $ref: "#/components/responses/BadRequestError"
9715
+ default:
9716
+ $ref: "#/components/responses/UnexpectedError"
9717
+ put:
9718
+ operationId: updateCollectionPublishingCustomizationById
9719
+ summary: Update the publishing customization configuration for a collection.
9720
+ tags:
9721
+ - collections
9722
+ security:
9723
+ - user: []
9724
+ parameters:
9725
+ - $ref: "#/components/parameters/collectionId"
9726
+ requestBody:
9727
+ required: true
9728
+ content:
9729
+ application/json:
9730
+ schema:
9731
+ $ref: "#/components/schemas/CustomizationCollectionSettings"
9732
+ responses:
9733
+ "200":
9734
+ description: OK
9735
+ content:
9736
+ application/json:
9737
+ schema:
9738
+ $ref: "#/components/schemas/CustomizationCollectionSettings"
9739
+ "400":
9740
+ $ref: "#/components/responses/BadRequestError"
9741
+ default:
9742
+ $ref: "#/components/responses/UnexpectedError"
9220
9743
  /integrations:
9221
9744
  get:
9222
9745
  operationId: listIntegrations
@@ -10743,6 +11266,41 @@ paths:
10743
11266
  $ref: "#/components/schemas/Collection"
10744
11267
  default:
10745
11268
  $ref: "#/components/responses/UnexpectedError"
11269
+ post:
11270
+ operationId: createCollection
11271
+ summary: Create an organization collection
11272
+ tags:
11273
+ - collections
11274
+ security:
11275
+ - user: []
11276
+ parameters:
11277
+ - $ref: "#/components/parameters/organizationId"
11278
+ requestBody:
11279
+ content:
11280
+ application/json:
11281
+ schema:
11282
+ type: object
11283
+ properties:
11284
+ title:
11285
+ type: string
11286
+ maxLength: 50
11287
+ parent:
11288
+ type: string
11289
+ description: ID of a parent collection
11290
+ responses:
11291
+ "201":
11292
+ description: Collection created
11293
+ headers:
11294
+ Location:
11295
+ description: API URL for the newly created collection
11296
+ schema:
11297
+ type: string
11298
+ content:
11299
+ application/json:
11300
+ schema:
11301
+ $ref: "#/components/schemas/Collection"
11302
+ default:
11303
+ $ref: "#/components/responses/UnexpectedError"
10746
11304
  "/orgs/{organizationId}/dsync":
10747
11305
  post:
10748
11306
  operationId: setupDirectorySync