@gitbook/api 0.63.0 → 0.65.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
@@ -829,6 +829,7 @@ paths:
829
829
  parameters:
830
830
  - $ref: "#/components/parameters/spaceId"
831
831
  - $ref: "#/components/parameters/revisionMetadata"
832
+ - $ref: "#/components/parameters/revisionComputed"
832
833
  responses:
833
834
  "200":
834
835
  description: OK
@@ -875,6 +876,7 @@ paths:
875
876
  parameters:
876
877
  - $ref: "#/components/parameters/spaceId"
877
878
  - $ref: "#/components/parameters/revisionMetadata"
879
+ - $ref: "#/components/parameters/revisionComputed"
878
880
  responses:
879
881
  "200":
880
882
  description: OK
@@ -902,6 +904,7 @@ paths:
902
904
  - $ref: "#/components/parameters/listPage"
903
905
  - $ref: "#/components/parameters/listLimit"
904
906
  - $ref: "#/components/parameters/revisionMetadata"
907
+ - $ref: "#/components/parameters/revisionComputed"
905
908
  responses:
906
909
  "200":
907
910
  description: OK
@@ -930,6 +933,7 @@ paths:
930
933
  - $ref: "#/components/parameters/spaceId"
931
934
  - $ref: "#/components/parameters/fileId"
932
935
  - $ref: "#/components/parameters/revisionMetadata"
936
+ - $ref: "#/components/parameters/revisionComputed"
933
937
  responses:
934
938
  "200":
935
939
  description: OK
@@ -981,6 +985,7 @@ paths:
981
985
  - $ref: "#/components/parameters/pageId"
982
986
  - $ref: "#/components/parameters/documentFormat"
983
987
  - $ref: "#/components/parameters/revisionMetadata"
988
+ - $ref: "#/components/parameters/revisionComputed"
984
989
  responses:
985
990
  "200":
986
991
  description: OK
@@ -990,7 +995,46 @@ paths:
990
995
  $ref: "#/components/schemas/RevisionPage"
991
996
  default:
992
997
  $ref: "#/components/responses/UnexpectedError"
993
- "/spaces/{spaceId}/content/pages/{pageId}/backlinks":
998
+ "/spaces/{spaceId}/content/page/{pageId}/links":
999
+ get:
1000
+ operationId: listPageLinksInSpace
1001
+ summary: List all links in a page
1002
+ tags:
1003
+ - spaces
1004
+ - links
1005
+ security:
1006
+ - user: []
1007
+ parameters:
1008
+ - $ref: "#/components/parameters/spaceId"
1009
+ - $ref: "#/components/parameters/pageId"
1010
+ - $ref: "#/components/parameters/listPage"
1011
+ - $ref: "#/components/parameters/listLimit"
1012
+ - name: status
1013
+ in: query
1014
+ schema:
1015
+ $ref: "#/components/schemas/ContentReferenceStatus"
1016
+ responses:
1017
+ "200":
1018
+ description: OK
1019
+ content:
1020
+ application/json:
1021
+ schema:
1022
+ allOf:
1023
+ - $ref: "#/components/schemas/List"
1024
+ - type: object
1025
+ properties:
1026
+ stats:
1027
+ $ref: "#/components/schemas/ContentReferencesStats"
1028
+ items:
1029
+ type: array
1030
+ items:
1031
+ $ref: "#/components/schemas/ContentReferenceUsage"
1032
+ required:
1033
+ - items
1034
+ - stats
1035
+ default:
1036
+ $ref: "#/components/responses/UnexpectedError"
1037
+ "/spaces/{spaceId}/content/page/{pageId}/backlinks":
994
1038
  get:
995
1039
  operationId: listSpacePageBacklinks
996
1040
  summary: Get backlink locations for a page existing in a space.
@@ -1061,6 +1105,7 @@ paths:
1061
1105
  - $ref: "#/components/parameters/pagePath"
1062
1106
  - $ref: "#/components/parameters/documentFormat"
1063
1107
  - $ref: "#/components/parameters/revisionMetadata"
1108
+ - $ref: "#/components/parameters/revisionComputed"
1064
1109
  responses:
1065
1110
  "200":
1066
1111
  description: OK
@@ -1072,6 +1117,35 @@ paths:
1072
1117
  - $ref: "#/components/schemas/RevisionPageGroup"
1073
1118
  default:
1074
1119
  $ref: "#/components/responses/UnexpectedError"
1120
+ "/spaces/{spaceId}/content/computed/document":
1121
+ post:
1122
+ operationId: computePageDocument
1123
+ summary: Get the document for a page in a computed content.
1124
+ security:
1125
+ - user: []
1126
+ parameters:
1127
+ - $ref: "#/components/parameters/spaceId"
1128
+ - $ref: "#/components/parameters/documentFormat"
1129
+ requestBody:
1130
+ required: true
1131
+ content:
1132
+ application/json:
1133
+ schema:
1134
+ type: object
1135
+ properties:
1136
+ source:
1137
+ $ref: "#/components/schemas/ComputedContentSource"
1138
+ required:
1139
+ - source
1140
+ responses:
1141
+ "200":
1142
+ description: Document computed
1143
+ content:
1144
+ application/json:
1145
+ schema:
1146
+ $ref: "#/components/schemas/Document"
1147
+ default:
1148
+ $ref: "#/components/responses/UnexpectedError"
1075
1149
  "/spaces/{spaceId}/documents/{documentId}":
1076
1150
  get:
1077
1151
  operationId: getDocumentById
@@ -1774,6 +1848,7 @@ paths:
1774
1848
  - $ref: "#/components/parameters/spaceId"
1775
1849
  - $ref: "#/components/parameters/changeRequestId"
1776
1850
  - $ref: "#/components/parameters/revisionMetadata"
1851
+ - $ref: "#/components/parameters/revisionComputed"
1777
1852
  responses:
1778
1853
  "200":
1779
1854
  description: OK
@@ -1822,6 +1897,7 @@ paths:
1822
1897
  - $ref: "#/components/parameters/spaceId"
1823
1898
  - $ref: "#/components/parameters/changeRequestId"
1824
1899
  - $ref: "#/components/parameters/revisionMetadata"
1900
+ - $ref: "#/components/parameters/revisionComputed"
1825
1901
  responses:
1826
1902
  "200":
1827
1903
  description: OK
@@ -1850,6 +1926,7 @@ paths:
1850
1926
  - $ref: "#/components/parameters/listPage"
1851
1927
  - $ref: "#/components/parameters/listLimit"
1852
1928
  - $ref: "#/components/parameters/revisionMetadata"
1929
+ - $ref: "#/components/parameters/revisionComputed"
1853
1930
  responses:
1854
1931
  "200":
1855
1932
  description: OK
@@ -1879,6 +1956,7 @@ paths:
1879
1956
  - $ref: "#/components/parameters/changeRequestId"
1880
1957
  - $ref: "#/components/parameters/fileId"
1881
1958
  - $ref: "#/components/parameters/revisionMetadata"
1959
+ - $ref: "#/components/parameters/revisionComputed"
1882
1960
  responses:
1883
1961
  "200":
1884
1962
  description: OK
@@ -1932,6 +2010,7 @@ paths:
1932
2010
  - $ref: "#/components/parameters/pageId"
1933
2011
  - $ref: "#/components/parameters/documentFormat"
1934
2012
  - $ref: "#/components/parameters/revisionMetadata"
2013
+ - $ref: "#/components/parameters/revisionComputed"
1935
2014
  responses:
1936
2015
  "200":
1937
2016
  description: OK
@@ -1941,6 +2020,41 @@ paths:
1941
2020
  $ref: "#/components/schemas/RevisionPage"
1942
2021
  default:
1943
2022
  $ref: "#/components/responses/UnexpectedError"
2023
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links":
2024
+ get:
2025
+ operationId: listPageLinksInChangeRequest
2026
+ summary: List all links in a page inside a change request.
2027
+ tags:
2028
+ - spaces
2029
+ security:
2030
+ - user: []
2031
+ parameters:
2032
+ - $ref: "#/components/parameters/spaceId"
2033
+ - $ref: "#/components/parameters/changeRequestId"
2034
+ - $ref: "#/components/parameters/pageId"
2035
+ - $ref: "#/components/parameters/listPage"
2036
+ - $ref: "#/components/parameters/listLimit"
2037
+ responses:
2038
+ "200":
2039
+ description: OK
2040
+ content:
2041
+ application/json:
2042
+ schema:
2043
+ allOf:
2044
+ - $ref: "#/components/schemas/List"
2045
+ - type: object
2046
+ properties:
2047
+ stats:
2048
+ $ref: "#/components/schemas/ContentReferencesStats"
2049
+ items:
2050
+ type: array
2051
+ items:
2052
+ $ref: "#/components/schemas/ContentReferenceUsage"
2053
+ required:
2054
+ - items
2055
+ - stats
2056
+ default:
2057
+ $ref: "#/components/responses/UnexpectedError"
1944
2058
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks":
1945
2059
  get:
1946
2060
  operationId: listChangeRequestPageBacklinks
@@ -2015,6 +2129,7 @@ paths:
2015
2129
  - $ref: "#/components/parameters/pagePath"
2016
2130
  - $ref: "#/components/parameters/documentFormat"
2017
2131
  - $ref: "#/components/parameters/revisionMetadata"
2132
+ - $ref: "#/components/parameters/revisionComputed"
2018
2133
  responses:
2019
2134
  "200":
2020
2135
  description: OK
@@ -2114,6 +2229,7 @@ paths:
2114
2229
  - $ref: "#/components/parameters/spaceId"
2115
2230
  - $ref: "#/components/parameters/revisionId"
2116
2231
  - $ref: "#/components/parameters/revisionMetadata"
2232
+ - $ref: "#/components/parameters/revisionComputed"
2117
2233
  responses:
2118
2234
  "200":
2119
2235
  description: OK
@@ -2133,6 +2249,7 @@ paths:
2133
2249
  - $ref: "#/components/parameters/spaceId"
2134
2250
  - $ref: "#/components/parameters/revisionId"
2135
2251
  - $ref: "#/components/parameters/revisionMetadata"
2252
+ - $ref: "#/components/parameters/revisionComputed"
2136
2253
  - name: limit
2137
2254
  in: query
2138
2255
  description: Limit the number of changes returned
@@ -2158,6 +2275,7 @@ paths:
2158
2275
  - $ref: "#/components/parameters/spaceId"
2159
2276
  - $ref: "#/components/parameters/revisionId"
2160
2277
  - $ref: "#/components/parameters/revisionMetadata"
2278
+ - $ref: "#/components/parameters/revisionComputed"
2161
2279
  responses:
2162
2280
  "200":
2163
2281
  description: OK
@@ -2186,6 +2304,7 @@ paths:
2186
2304
  - $ref: "#/components/parameters/listPage"
2187
2305
  - $ref: "#/components/parameters/listLimit"
2188
2306
  - $ref: "#/components/parameters/revisionMetadata"
2307
+ - $ref: "#/components/parameters/revisionComputed"
2189
2308
  responses:
2190
2309
  "200":
2191
2310
  description: OK
@@ -2215,6 +2334,7 @@ paths:
2215
2334
  - $ref: "#/components/parameters/revisionId"
2216
2335
  - $ref: "#/components/parameters/fileId"
2217
2336
  - $ref: "#/components/parameters/revisionMetadata"
2337
+ - $ref: "#/components/parameters/revisionComputed"
2218
2338
  responses:
2219
2339
  "200":
2220
2340
  description: OK
@@ -2236,6 +2356,7 @@ paths:
2236
2356
  - $ref: "#/components/parameters/pageId"
2237
2357
  - $ref: "#/components/parameters/documentFormat"
2238
2358
  - $ref: "#/components/parameters/revisionMetadata"
2359
+ - $ref: "#/components/parameters/revisionComputed"
2239
2360
  responses:
2240
2361
  "200":
2241
2362
  description: OK
@@ -2257,6 +2378,7 @@ paths:
2257
2378
  - $ref: "#/components/parameters/pagePath"
2258
2379
  - $ref: "#/components/parameters/documentFormat"
2259
2380
  - $ref: "#/components/parameters/revisionMetadata"
2381
+ - $ref: "#/components/parameters/revisionComputed"
2260
2382
  responses:
2261
2383
  "200":
2262
2384
  description: OK
@@ -2879,7 +3001,7 @@ paths:
2879
3001
  "/spaces/{spaceId}/links":
2880
3002
  get:
2881
3003
  operationId: listSpaceLinks
2882
- summary: Get all links in the context of a space including their status and location where they appear.
3004
+ summary: Get all links in a space including their status and location where they appear.
2883
3005
  tags:
2884
3006
  - spaces
2885
3007
  - links
@@ -2891,7 +3013,6 @@ paths:
2891
3013
  - $ref: "#/components/parameters/listLimit"
2892
3014
  - name: status
2893
3015
  in: query
2894
- required: false
2895
3016
  schema:
2896
3017
  $ref: "#/components/schemas/ContentReferenceStatus"
2897
3018
  responses:
@@ -3278,6 +3399,11 @@ paths:
3278
3399
  type: string
3279
3400
  pattern: ^[a-zA-Z0-9-_.]+$
3280
3401
  maxLength: 100
3402
+ - name: blocks
3403
+ in: query
3404
+ description: If true, returns only integrations with blocks. If false, returns only integrations without blocks.
3405
+ schema:
3406
+ type: boolean
3281
3407
  responses:
3282
3408
  "200":
3283
3409
  description: Paginated list of integrations
@@ -3513,17 +3639,16 @@ paths:
3513
3639
  $ref: "#/components/schemas/IntegrationSpaceInstallation"
3514
3640
  default:
3515
3641
  $ref: "#/components/responses/UnexpectedError"
3516
- "/integrations/{integrationName}/spaces/{spaceId}/dev":
3642
+ "/integrations/{integrationName}/dev":
3517
3643
  put:
3518
- operationId: updateIntegrationDevSpace
3519
- summary: Update the development space for an integration
3644
+ operationId: setIntegrationDevelopmentMode
3645
+ summary: Update an integration to be in development mode.
3520
3646
  tags:
3521
3647
  - integrations
3522
3648
  security:
3523
3649
  - user: []
3524
3650
  parameters:
3525
3651
  - $ref: "#/components/parameters/integrationName"
3526
- - $ref: "#/components/parameters/spaceId"
3527
3652
  requestBody:
3528
3653
  required: true
3529
3654
  content:
@@ -3536,31 +3661,32 @@ paths:
3536
3661
  description: URL of the tunnel to dispatch integration events to
3537
3662
  minLength: 1
3538
3663
  maxLength: 256
3664
+ all:
3665
+ type: boolean
3666
+ default: false
3667
+ description: |
3668
+ If set to true, all requests will be forwarded to the tunnel, not just from the owning organization.
3539
3669
  required:
3540
3670
  - tunnelUrl
3541
3671
  responses:
3542
3672
  "204":
3543
- description: Updated development space successfully
3673
+ description: Updated development mode successfully
3544
3674
  "404":
3545
3675
  $ref: "#/components/responses/NotFoundError"
3546
3676
  default:
3547
3677
  $ref: "#/components/responses/UnexpectedError"
3548
3678
  delete:
3549
- operationId: removeIntegrationDevSpace
3550
- summary: Remove the development space for an integration
3679
+ operationId: disableIntegrationDevelopmentMode
3680
+ summary: Disable the development mode on an integration.
3551
3681
  tags:
3552
3682
  - integrations
3553
3683
  security:
3554
3684
  - user: []
3555
3685
  parameters:
3556
3686
  - $ref: "#/components/parameters/integrationName"
3557
- - $ref: "#/components/parameters/spaceId"
3558
3687
  responses:
3559
- "204":
3560
- description: Removed development space successfully
3561
- "404":
3562
- description: No matching integration dev space found
3563
- $ref: "#/components/responses/NotFoundError"
3688
+ "205":
3689
+ description: Disabled development mode successfully
3564
3690
  default:
3565
3691
  $ref: "#/components/responses/UnexpectedError"
3566
3692
  "/integrations/{integrationName}/render":
@@ -4764,6 +4890,8 @@ paths:
4764
4890
  - user-internal: []
4765
4891
  parameters:
4766
4892
  - $ref: "#/components/parameters/organizationId"
4893
+ - $ref: "#/components/parameters/successReturnURL"
4894
+ - $ref: "#/components/parameters/cancelReturnURL"
4767
4895
  responses:
4768
4896
  "200":
4769
4897
  description: OK
@@ -4829,9 +4957,9 @@ paths:
4829
4957
  description: The desired amount of published premium sites
4830
4958
  schema:
4831
4959
  type: number
4832
- - name: audienceSites
4960
+ - name: ultimateSites
4833
4961
  in: query
4834
- description: The desired amount of published audience sites
4962
+ description: The desired amount of published ultimate sites
4835
4963
  schema:
4836
4964
  type: number
4837
4965
  responses:
@@ -6150,6 +6278,14 @@ paths:
6150
6278
  - $ref: "#/components/parameters/organizationId"
6151
6279
  - $ref: "#/components/parameters/listPage"
6152
6280
  - $ref: "#/components/parameters/listLimit"
6281
+ - name: ids
6282
+ in: query
6283
+ description: A list of IDs to filter the synced blocks.
6284
+ required: false
6285
+ schema:
6286
+ type: array
6287
+ items:
6288
+ type: string
6153
6289
  responses:
6154
6290
  "200":
6155
6291
  description: OK
@@ -6183,15 +6319,10 @@ paths:
6183
6319
  application/json:
6184
6320
  schema:
6185
6321
  type: object
6186
- required:
6187
- - content
6188
6322
  properties:
6189
6323
  title:
6190
6324
  type: string
6191
6325
  description: Title of synced block
6192
- content:
6193
- description: The content of the synced block. For now, only JSON documents are supported.
6194
- $ref: "#/components/schemas/Document"
6195
6326
  responses:
6196
6327
  "201":
6197
6328
  description: Synced block created
@@ -6226,7 +6357,7 @@ paths:
6226
6357
  $ref: "#/components/schemas/SyncedBlock"
6227
6358
  default:
6228
6359
  $ref: "#/components/responses/UnexpectedError"
6229
- put:
6360
+ patch:
6230
6361
  operationId: updateSyncedBlock
6231
6362
  summary: Update an existing synced block.
6232
6363
  tags:
@@ -6246,11 +6377,29 @@ paths:
6246
6377
  title:
6247
6378
  type: string
6248
6379
  description: A new title for the Synced Block.
6380
+ description:
6381
+ type: string
6382
+ description: A new description for the Synced Block.
6249
6383
  responses:
6250
6384
  "200":
6251
6385
  description: OK
6252
6386
  default:
6253
6387
  $ref: "#/components/responses/UnexpectedError"
6388
+ delete:
6389
+ operationId: deleteSyncedBlock
6390
+ summary: Delete a synced block by its ID
6391
+ tags:
6392
+ - organizations
6393
+ security:
6394
+ - user: []
6395
+ parameters:
6396
+ - $ref: "#/components/parameters/organizationId"
6397
+ - $ref: "#/components/parameters/syncedBlockId"
6398
+ responses:
6399
+ "204":
6400
+ description: OK
6401
+ default:
6402
+ $ref: "#/components/responses/UnexpectedError"
6254
6403
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content":
6255
6404
  get:
6256
6405
  operationId: getSyncedBlockContent
@@ -6294,6 +6443,16 @@ paths:
6294
6443
  - $ref: "#/components/parameters/syncedBlockId"
6295
6444
  - $ref: "#/components/parameters/listPage"
6296
6445
  - $ref: "#/components/parameters/listLimit"
6446
+ - name: changeRequestId
6447
+ in: query
6448
+ description: Filter backlinks relative to a change request.
6449
+ schema:
6450
+ type: string
6451
+ - name: spaceId
6452
+ in: query
6453
+ description: Filter backlinks relative to a space.
6454
+ schema:
6455
+ type: string
6297
6456
  responses:
6298
6457
  "200":
6299
6458
  description: OK
@@ -6467,6 +6626,14 @@ paths:
6467
6626
  required: false
6468
6627
  schema:
6469
6628
  type: boolean
6629
+ - name: type
6630
+ in: query
6631
+ description: Filter by site type
6632
+ required: false
6633
+ schema:
6634
+ type: array
6635
+ items:
6636
+ $ref: "#/components/schemas/SiteType"
6470
6637
  responses:
6471
6638
  "200":
6472
6639
  description: OK
@@ -6605,7 +6772,10 @@ paths:
6605
6772
  $ref: "#/components/schemas/SiteBasename"
6606
6773
  defaultSiteSpace:
6607
6774
  type: string
6608
- description: ID of the site-space to be used as the default
6775
+ description: ID of the site-space to be used as the default at the root level. If site has sections, this will mark the default site space in the site's default section.
6776
+ defaultSiteSection:
6777
+ type: string
6778
+ description: ID of the site-section to be used as the default.
6609
6779
  responses:
6610
6780
  "200":
6611
6781
  description: OK
@@ -6799,6 +6969,50 @@ paths:
6799
6969
  description: Site share link has been deleted
6800
6970
  default:
6801
6971
  $ref: "#/components/responses/UnexpectedError"
6972
+ "/orgs/{organizationId}/sites/{siteId}/structure":
6973
+ get:
6974
+ operationId: getSiteStructure
6975
+ summary: Get the structure of a site which includes site-sections and site-spaces
6976
+ tags:
6977
+ - sites
6978
+ security:
6979
+ - user: []
6980
+ parameters:
6981
+ - $ref: "#/components/parameters/organizationId"
6982
+ - $ref: "#/components/parameters/siteId"
6983
+ - $ref: "#/components/parameters/siteShareKey"
6984
+ responses:
6985
+ "200":
6986
+ description: OK
6987
+ content:
6988
+ application/json:
6989
+ schema:
6990
+ oneOf:
6991
+ - type: object
6992
+ properties:
6993
+ type:
6994
+ type: string
6995
+ enum:
6996
+ - sections
6997
+ structure:
6998
+ type: array
6999
+ items:
7000
+ $ref: "#/components/schemas/SiteSection"
7001
+ - type: object
7002
+ properties:
7003
+ type:
7004
+ type: string
7005
+ enum:
7006
+ - siteSpaces
7007
+ structure:
7008
+ type: array
7009
+ items:
7010
+ $ref: "#/components/schemas/SiteSpace"
7011
+ "404":
7012
+ description: No matching site found
7013
+ $ref: "#/components/responses/NotFoundError"
7014
+ default:
7015
+ $ref: "#/components/responses/UnexpectedError"
6802
7016
  "/orgs/{organizationId}/sites/{siteId}/plan":
6803
7017
  post:
6804
7018
  operationId: updateSitePlan
@@ -6810,16 +7024,8 @@ paths:
6810
7024
  parameters:
6811
7025
  - $ref: "#/components/parameters/organizationId"
6812
7026
  - $ref: "#/components/parameters/siteId"
6813
- - in: query
6814
- name: successReturnURL
6815
- description: The app screen URL to bring the user back to after a succesfull checkout.
6816
- schema:
6817
- type: string
6818
- - in: query
6819
- name: cancelReturnURL
6820
- description: The app screen URL to bring the user back to after a canceled checkout.
6821
- schema:
6822
- type: string
7027
+ - $ref: "#/components/parameters/successReturnURL"
7028
+ - $ref: "#/components/parameters/cancelReturnURL"
6823
7029
  requestBody:
6824
7030
  required: true
6825
7031
  content:
@@ -7158,6 +7364,9 @@ paths:
7158
7364
  spaceId:
7159
7365
  type: string
7160
7366
  description: ID of the space
7367
+ sectionId:
7368
+ type: string
7369
+ description: ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections.
7161
7370
  required:
7162
7371
  - spaceId
7163
7372
  responses:
@@ -7210,17 +7419,17 @@ paths:
7210
7419
  $ref: "#/components/schemas/SiteSpace"
7211
7420
  default:
7212
7421
  $ref: "#/components/responses/UnexpectedError"
7213
- "/orgs/{organizationId}/sites/{siteId}/search":
7422
+ "/orgs/{organizationId}/sites/{siteId}/sections":
7214
7423
  post:
7215
- operationId: searchSiteContent
7216
- summary: Search content in a site
7424
+ operationId: addSectionToSite
7425
+ summary: Add a section to a site in an organization
7426
+ tags:
7427
+ - sites
7217
7428
  security:
7218
7429
  - user: []
7219
7430
  parameters:
7220
7431
  - $ref: "#/components/parameters/organizationId"
7221
7432
  - $ref: "#/components/parameters/siteId"
7222
- - $ref: "#/components/parameters/listPage"
7223
- - $ref: "#/components/parameters/listLimit"
7224
7433
  requestBody:
7225
7434
  required: true
7226
7435
  content:
@@ -7228,15 +7437,42 @@ paths:
7228
7437
  schema:
7229
7438
  type: object
7230
7439
  properties:
7231
- query:
7440
+ spaceId:
7232
7441
  type: string
7233
- siteSpaceIds:
7234
- type: array
7235
- minLength: 1
7236
- items:
7237
- type: string
7442
+ description: ID of the space to be added to the section as a site space variant
7443
+ title:
7444
+ type: string
7445
+ description: Title of the section
7446
+ maxLength: 64
7238
7447
  required:
7239
- - query
7448
+ - spaceId
7449
+ responses:
7450
+ "201":
7451
+ description: Section added to the site
7452
+ headers:
7453
+ Location:
7454
+ description: API URL for the newly created site-section relationship
7455
+ schema:
7456
+ type: string
7457
+ content:
7458
+ application/json:
7459
+ schema:
7460
+ $ref: "#/components/schemas/SiteSection"
7461
+ default:
7462
+ $ref: "#/components/responses/UnexpectedError"
7463
+ get:
7464
+ operationId: listSiteSections
7465
+ summary: List all the site sections under a site in an organization
7466
+ tags:
7467
+ - sites
7468
+ security:
7469
+ - user: []
7470
+ parameters:
7471
+ - $ref: "#/components/parameters/organizationId"
7472
+ - $ref: "#/components/parameters/siteId"
7473
+ - $ref: "#/components/parameters/siteShareKey"
7474
+ - $ref: "#/components/parameters/listPage"
7475
+ - $ref: "#/components/parameters/listLimit"
7240
7476
  responses:
7241
7477
  "200":
7242
7478
  description: OK
@@ -7252,13 +7488,13 @@ paths:
7252
7488
  items:
7253
7489
  type: array
7254
7490
  items:
7255
- $ref: "#/components/schemas/SearchSpaceResult"
7491
+ $ref: "#/components/schemas/SiteSection"
7256
7492
  default:
7257
7493
  $ref: "#/components/responses/UnexpectedError"
7258
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
7494
+ "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}":
7259
7495
  patch:
7260
- operationId: updateSiteSpaceById
7261
- summary: Update a space on a site in an organization
7496
+ operationId: updateSiteSectionById
7497
+ summary: Update a section on a site in an organization
7262
7498
  tags:
7263
7499
  - sites
7264
7500
  security:
@@ -7266,7 +7502,7 @@ paths:
7266
7502
  parameters:
7267
7503
  - $ref: "#/components/parameters/organizationId"
7268
7504
  - $ref: "#/components/parameters/siteId"
7269
- - $ref: "#/components/parameters/siteSpaceId"
7505
+ - $ref: "#/components/parameters/siteSectionId"
7270
7506
  requestBody:
7271
7507
  required: true
7272
7508
  content:
@@ -7274,20 +7510,25 @@ paths:
7274
7510
  schema:
7275
7511
  type: object
7276
7512
  properties:
7513
+ title:
7514
+ $ref: "#/components/schemas/SiteSectionTitle"
7277
7515
  path:
7278
- $ref: "#/components/schemas/SiteSpacePath"
7516
+ $ref: "#/components/schemas/SiteSectionPath"
7517
+ defaultSiteSpace:
7518
+ type: string
7519
+ description: ID of the site-space to be used as the default in this section.
7279
7520
  responses:
7280
7521
  "200":
7281
7522
  description: OK
7282
7523
  content:
7283
7524
  application/json:
7284
7525
  schema:
7285
- $ref: "#/components/schemas/SiteSpace"
7526
+ $ref: "#/components/schemas/SiteSection"
7286
7527
  default:
7287
7528
  $ref: "#/components/responses/UnexpectedError"
7288
7529
  delete:
7289
- operationId: deleteSiteSpaceById
7290
- summary: Delete a space on a site in an organization
7530
+ operationId: deleteSiteSectionById
7531
+ summary: Delete a section on a site in an organization
7291
7532
  tags:
7292
7533
  - sites
7293
7534
  security:
@@ -7295,31 +7536,122 @@ paths:
7295
7536
  parameters:
7296
7537
  - $ref: "#/components/parameters/organizationId"
7297
7538
  - $ref: "#/components/parameters/siteId"
7298
- - $ref: "#/components/parameters/siteSpaceId"
7539
+ - $ref: "#/components/parameters/siteSectionId"
7299
7540
  responses:
7300
7541
  "205":
7301
- description: Site space has been deleted
7542
+ description: Site section has been deleted
7302
7543
  default:
7303
7544
  $ref: "#/components/responses/UnexpectedError"
7304
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization":
7305
- get:
7306
- operationId: getSiteSpaceCustomizationById
7307
- summary: Get the customization configuration for a site space.
7308
- tags:
7309
- - sites
7545
+ "/orgs/{organizationId}/sites/{siteId}/search":
7546
+ post:
7547
+ operationId: searchSiteContent
7548
+ summary: Search content in a site
7310
7549
  security:
7311
7550
  - user: []
7312
7551
  parameters:
7313
7552
  - $ref: "#/components/parameters/organizationId"
7314
7553
  - $ref: "#/components/parameters/siteId"
7315
- - $ref: "#/components/parameters/siteSpaceId"
7316
- - $ref: "#/components/parameters/siteCustomizationUnmasked"
7317
- responses:
7318
- "200":
7319
- description: OK
7320
- content:
7321
- application/json:
7322
- schema:
7554
+ - $ref: "#/components/parameters/listPage"
7555
+ - $ref: "#/components/parameters/listLimit"
7556
+ requestBody:
7557
+ required: true
7558
+ content:
7559
+ application/json:
7560
+ schema:
7561
+ type: object
7562
+ properties:
7563
+ query:
7564
+ type: string
7565
+ siteSpaceIds:
7566
+ type: array
7567
+ minLength: 1
7568
+ items:
7569
+ type: string
7570
+ required:
7571
+ - query
7572
+ responses:
7573
+ "200":
7574
+ description: OK
7575
+ content:
7576
+ application/json:
7577
+ schema:
7578
+ allOf:
7579
+ - $ref: "#/components/schemas/List"
7580
+ - type: object
7581
+ required:
7582
+ - items
7583
+ properties:
7584
+ items:
7585
+ type: array
7586
+ items:
7587
+ $ref: "#/components/schemas/SearchSpaceResult"
7588
+ default:
7589
+ $ref: "#/components/responses/UnexpectedError"
7590
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
7591
+ patch:
7592
+ operationId: updateSiteSpaceById
7593
+ summary: Update a space on a site in an organization
7594
+ tags:
7595
+ - sites
7596
+ security:
7597
+ - user: []
7598
+ parameters:
7599
+ - $ref: "#/components/parameters/organizationId"
7600
+ - $ref: "#/components/parameters/siteId"
7601
+ - $ref: "#/components/parameters/siteSpaceId"
7602
+ requestBody:
7603
+ required: true
7604
+ content:
7605
+ application/json:
7606
+ schema:
7607
+ type: object
7608
+ properties:
7609
+ path:
7610
+ $ref: "#/components/schemas/SiteSpacePath"
7611
+ responses:
7612
+ "200":
7613
+ description: OK
7614
+ content:
7615
+ application/json:
7616
+ schema:
7617
+ $ref: "#/components/schemas/SiteSpace"
7618
+ default:
7619
+ $ref: "#/components/responses/UnexpectedError"
7620
+ delete:
7621
+ operationId: deleteSiteSpaceById
7622
+ summary: Delete a space on a site in an organization
7623
+ tags:
7624
+ - sites
7625
+ security:
7626
+ - user: []
7627
+ parameters:
7628
+ - $ref: "#/components/parameters/organizationId"
7629
+ - $ref: "#/components/parameters/siteId"
7630
+ - $ref: "#/components/parameters/siteSpaceId"
7631
+ responses:
7632
+ "205":
7633
+ description: Site space has been deleted
7634
+ default:
7635
+ $ref: "#/components/responses/UnexpectedError"
7636
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization":
7637
+ get:
7638
+ operationId: getSiteSpaceCustomizationById
7639
+ summary: Get the customization configuration for a site space.
7640
+ tags:
7641
+ - sites
7642
+ security:
7643
+ - user: []
7644
+ parameters:
7645
+ - $ref: "#/components/parameters/organizationId"
7646
+ - $ref: "#/components/parameters/siteId"
7647
+ - $ref: "#/components/parameters/siteSpaceId"
7648
+ - $ref: "#/components/parameters/siteCustomizationUnmasked"
7649
+ responses:
7650
+ "200":
7651
+ description: OK
7652
+ content:
7653
+ application/json:
7654
+ schema:
7323
7655
  $ref: "#/components/schemas/SiteCustomizationSettings"
7324
7656
  "400":
7325
7657
  $ref: "#/components/responses/BadRequestError"
@@ -7342,7 +7674,245 @@ paths:
7342
7674
  application/json:
7343
7675
  schema:
7344
7676
  description: The settings that overrides the site customization settings.
7345
- $ref: "#/components/schemas/SiteSpaceCustomizationOverrides"
7677
+ type: object
7678
+ properties:
7679
+ title:
7680
+ description: Title to use for the published site variant. If not defined, the title will not be changed. If set to null, the title will be unset and will fallback to the content title.
7681
+ oneOf:
7682
+ - $ref: "#/components/schemas/SiteTitle"
7683
+ - type: string
7684
+ nullable: true
7685
+ enum:
7686
+ - null
7687
+ styling:
7688
+ type: object
7689
+ properties:
7690
+ primaryColor:
7691
+ description: The primary color used for links and UI text. Set to null to reset the override.
7692
+ oneOf:
7693
+ - $ref: "#/components/schemas/CustomizationThemedColor"
7694
+ - type: string
7695
+ nullable: true
7696
+ enum:
7697
+ - null
7698
+ corners:
7699
+ description: The style of the corners to use. Set to null to reset the override.
7700
+ oneOf:
7701
+ - $ref: "#/components/schemas/CustomizationCorners"
7702
+ - type: string
7703
+ nullable: true
7704
+ enum:
7705
+ - null
7706
+ font:
7707
+ description: The font family to use for the content. Set to null to reset the override.
7708
+ oneOf:
7709
+ - $ref: "#/components/schemas/CustomizationFont"
7710
+ - type: string
7711
+ nullable: true
7712
+ enum:
7713
+ - null
7714
+ icons:
7715
+ description: The icons style to use for the content. Set to null to reset the override.
7716
+ oneOf:
7717
+ - $ref: "#/components/schemas/CustomizationIconsStyle"
7718
+ - type: string
7719
+ nullable: true
7720
+ enum:
7721
+ - null
7722
+ background:
7723
+ description: The style of background to use. Set to null to reset the override.
7724
+ oneOf:
7725
+ - $ref: "#/components/schemas/CustomizationBackground"
7726
+ - type: string
7727
+ nullable: true
7728
+ enum:
7729
+ - null
7730
+ internationalization:
7731
+ type: object
7732
+ properties:
7733
+ locale:
7734
+ description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
7735
+ oneOf:
7736
+ - $ref: "#/components/schemas/CustomizationLocale"
7737
+ - type: string
7738
+ nullable: true
7739
+ enum:
7740
+ - null
7741
+ required:
7742
+ - locale
7743
+ favicon:
7744
+ description: The favicon to use. Set to null to reset the override.
7745
+ oneOf:
7746
+ - type: object
7747
+ properties:
7748
+ icon:
7749
+ $ref: "#/components/schemas/CustomizationThemedURL"
7750
+ required:
7751
+ - icon
7752
+ - type: object
7753
+ properties:
7754
+ emoji:
7755
+ $ref: "#/components/schemas/Emoji"
7756
+ required:
7757
+ - emoji
7758
+ - type: object
7759
+ nullable: true
7760
+ properties: {}
7761
+ additionalProperties: false
7762
+ header:
7763
+ type: object
7764
+ properties:
7765
+ preset:
7766
+ description: The theme preset to use. Set to null to reset the override.
7767
+ oneOf:
7768
+ - $ref: "#/components/schemas/CustomizationHeaderPreset"
7769
+ - type: string
7770
+ nullable: true
7771
+ enum:
7772
+ - null
7773
+ logo:
7774
+ description: The header logo to use. Set to null to reset the override.
7775
+ oneOf:
7776
+ - $ref: "#/components/schemas/CustomizationThemedURL"
7777
+ - type: string
7778
+ nullable: true
7779
+ enum:
7780
+ - null
7781
+ backgroundColor:
7782
+ description: The background color used in the header. Set to null to reset the override.
7783
+ oneOf:
7784
+ - $ref: "#/components/schemas/CustomizationThemedColor"
7785
+ - type: string
7786
+ nullable: true
7787
+ enum:
7788
+ - null
7789
+ linkColor:
7790
+ description: The color used by the links in the header. Set to null to reset the override.
7791
+ oneOf:
7792
+ - $ref: "#/components/schemas/CustomizationThemedColor"
7793
+ - type: string
7794
+ nullable: true
7795
+ enum:
7796
+ - null
7797
+ links:
7798
+ type: array
7799
+ description: The links that are displayed in the header. Set to null to reset the override.
7800
+ nullable: true
7801
+ items:
7802
+ $ref: "#/components/schemas/CustomizationHeaderLink"
7803
+ footer:
7804
+ type: object
7805
+ properties:
7806
+ logo:
7807
+ description: The logo displayed in the footer. Set to null to reset the override.
7808
+ oneOf:
7809
+ - $ref: "#/components/schemas/CustomizationThemedURL"
7810
+ - type: string
7811
+ nullable: true
7812
+ enum:
7813
+ - null
7814
+ groups:
7815
+ type: array
7816
+ description: The links groups that are displayed in the footer. Set to null to reset the override.
7817
+ nullable: true
7818
+ items:
7819
+ $ref: "#/components/schemas/CustomizationFooterGroup"
7820
+ copyright:
7821
+ type: string
7822
+ description: The copyright text that is displayed in the footer. Set to null to reset the override.
7823
+ nullable: true
7824
+ maxLength: 300
7825
+ themes:
7826
+ type: object
7827
+ properties:
7828
+ default:
7829
+ description: The theme mode default value. Set to null to reset the override.
7830
+ oneOf:
7831
+ - $ref: "#/components/schemas/CustomizationThemeMode"
7832
+ - type: string
7833
+ nullable: true
7834
+ enum:
7835
+ - null
7836
+ toggeable:
7837
+ description: Should the reader be able to switch between dark and light mode. Set to null to reset the override.
7838
+ type: boolean
7839
+ nullable: true
7840
+ pdf:
7841
+ type: object
7842
+ properties:
7843
+ enabled:
7844
+ type: boolean
7845
+ description: If true, PDF export is enabled for the published site. Set to null to reset the override.
7846
+ nullable: true
7847
+ required:
7848
+ - enabled
7849
+ feedback:
7850
+ type: object
7851
+ properties:
7852
+ enabled:
7853
+ type: boolean
7854
+ description: If true, feedback gathering is enabled. Set to null to reset the override.
7855
+ nullable: true
7856
+ required:
7857
+ - enabled
7858
+ aiSearch:
7859
+ type: object
7860
+ properties:
7861
+ enabled:
7862
+ type: boolean
7863
+ description: If true, AI search is enabled. Set to null to reset the override.
7864
+ nullable: true
7865
+ required:
7866
+ - enabled
7867
+ git:
7868
+ type: object
7869
+ properties:
7870
+ showEditLink:
7871
+ type: boolean
7872
+ description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override.
7873
+ nullable: true
7874
+ required:
7875
+ - showEditLink
7876
+ pagination:
7877
+ type: object
7878
+ properties:
7879
+ enabled:
7880
+ type: boolean
7881
+ description: Whether the pagination navigation should be displayed on pages. Set to null to reset the override.
7882
+ nullable: true
7883
+ required:
7884
+ - enabled
7885
+ trademark:
7886
+ type: object
7887
+ properties:
7888
+ enabled:
7889
+ type: boolean
7890
+ description: Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override.
7891
+ nullable: true
7892
+ required:
7893
+ - enabled
7894
+ privacyPolicy:
7895
+ type: object
7896
+ properties:
7897
+ url:
7898
+ description: The custom link to the privacy policy. Set to null to reset the override.
7899
+ oneOf:
7900
+ - $ref: "#/components/schemas/URL"
7901
+ - type: string
7902
+ nullable: true
7903
+ enum:
7904
+ - null
7905
+ socialPreview:
7906
+ type: object
7907
+ properties:
7908
+ url:
7909
+ description: The URL for the social preview image. Set to null to reset the override.
7910
+ oneOf:
7911
+ - $ref: "#/components/schemas/URL"
7912
+ - type: string
7913
+ nullable: true
7914
+ enum:
7915
+ - null
7346
7916
  responses:
7347
7917
  "200":
7348
7918
  description: OK
@@ -7398,6 +7968,10 @@ paths:
7398
7968
  - $ref: "#/components/parameters/organizationId"
7399
7969
  - $ref: "#/components/parameters/siteId"
7400
7970
  - $ref: "#/components/parameters/siteSpaceId"
7971
+ - name: period
7972
+ in: query
7973
+ schema:
7974
+ $ref: "#/components/schemas/AnalyticsSearchPeriod"
7401
7975
  responses:
7402
7976
  "200":
7403
7977
  description: Content analytics per page.
@@ -7543,7 +8117,7 @@ paths:
7543
8117
  schema:
7544
8118
  $ref: "#/components/schemas/SiteTrackPageView"
7545
8119
  "/orgs/{organizationId}/sites/{siteId}/insights/search":
7546
- post:
8120
+ get:
7547
8121
  operationId: getSearchAnalyticsForSiteById
7548
8122
  summary: Get an overview of the top search queries in a site.
7549
8123
  tags:
@@ -7554,18 +8128,17 @@ paths:
7554
8128
  parameters:
7555
8129
  - $ref: "#/components/parameters/organizationId"
7556
8130
  - $ref: "#/components/parameters/siteId"
7557
- requestBody:
7558
- content:
7559
- application/json:
7560
- schema:
7561
- type: object
7562
- properties:
7563
- siteSpaceIds:
7564
- type: array
7565
- items:
7566
- type: string
7567
- period:
7568
- $ref: "#/components/schemas/AnalyticsSearchPeriod"
8131
+ - name: period
8132
+ in: query
8133
+ schema:
8134
+ $ref: "#/components/schemas/AnalyticsSearchPeriod"
8135
+ - name: siteSpaceIds
8136
+ in: query
8137
+ schema:
8138
+ type: array
8139
+ items:
8140
+ type: string
8141
+ description: The site spaces to filter the search on
7569
8142
  responses:
7570
8143
  "200":
7571
8144
  description: Top queries searched on this site.
@@ -8064,6 +8637,13 @@ components:
8064
8637
  schema:
8065
8638
  type: boolean
8066
8639
  default: true
8640
+ revisionComputed:
8641
+ name: computed
8642
+ in: query
8643
+ description: If `false` is passed, content will not be computed
8644
+ schema:
8645
+ type: boolean
8646
+ default: true
8067
8647
  fileId:
8068
8648
  name: fileId
8069
8649
  in: path
@@ -8221,8 +8801,20 @@ components:
8221
8801
  description: The unique id of the invite
8222
8802
  schema:
8223
8803
  type: string
8224
- samlProviderId:
8225
- name: samlProviderId
8804
+ successReturnURL:
8805
+ name: successReturnURL
8806
+ in: query
8807
+ description: The app screen URL to bring the user back to after a successful checkout.
8808
+ schema:
8809
+ type: string
8810
+ cancelReturnURL:
8811
+ name: cancelReturnURL
8812
+ in: query
8813
+ description: The app screen URL to bring the user back to after a canceled checkout.
8814
+ schema:
8815
+ type: string
8816
+ samlProviderId:
8817
+ name: samlProviderId
8226
8818
  in: path
8227
8819
  required: true
8228
8820
  description: The unique id of the SAML provider
@@ -8264,6 +8856,13 @@ components:
8264
8856
  schema:
8265
8857
  type: boolean
8266
8858
  default: false
8859
+ siteSectionId:
8860
+ name: siteSectionId
8861
+ in: path
8862
+ required: true
8863
+ description: The unique id of the section within a site
8864
+ schema:
8865
+ type: string
8267
8866
  siteSpaceId:
8268
8867
  name: siteSpaceId
8269
8868
  in: path
@@ -9669,7 +10268,7 @@ components:
9669
10268
  - $ref: "#/components/schemas/DocumentFragment"
9670
10269
  - type: object
9671
10270
  properties:
9672
- type:
10271
+ fragment:
9673
10272
  type: string
9674
10273
  enum:
9675
10274
  - caption
@@ -9679,7 +10278,7 @@ components:
9679
10278
  $ref: "#/components/schemas/DocumentBlockParagraph"
9680
10279
  required:
9681
10280
  - nodes
9682
- - type
10281
+ - fragment
9683
10282
  isVoid:
9684
10283
  type: boolean
9685
10284
  enum:
@@ -9721,7 +10320,7 @@ components:
9721
10320
  isVoid:
9722
10321
  type: boolean
9723
10322
  enum:
9724
- - true
10323
+ - false
9725
10324
  required:
9726
10325
  - object
9727
10326
  - type
@@ -9930,6 +10529,21 @@ components:
9930
10529
  - type
9931
10530
  - data
9932
10531
  - isVoid
10532
+ PlainObject:
10533
+ properties: {}
10534
+ additionalProperties:
10535
+ oneOf:
10536
+ - $ref: "#/components/schemas/PlainObject"
10537
+ - type: string
10538
+ - type: boolean
10539
+ - type: number
10540
+ - type: array
10541
+ items:
10542
+ oneOf:
10543
+ - type: string
10544
+ - type: boolean
10545
+ - type: number
10546
+ - $ref: "#/components/schemas/PlainObject"
9933
10547
  ContentKitDefaultAction:
9934
10548
  oneOf:
9935
10549
  - type: object
@@ -9942,7 +10556,7 @@ components:
9942
10556
  componentId:
9943
10557
  type: string
9944
10558
  props:
9945
- type: object
10559
+ $ref: "#/components/schemas/PlainObject"
9946
10560
  required:
9947
10561
  - action
9948
10562
  - componentId
@@ -9955,7 +10569,19 @@ components:
9955
10569
  enum:
9956
10570
  - "@ui.modal.close"
9957
10571
  returnValue:
9958
- type: object
10572
+ $ref: "#/components/schemas/PlainObject"
10573
+ required:
10574
+ - action
10575
+ - returnValue
10576
+ - type: object
10577
+ description: Action to submit the current flow the user is in.
10578
+ properties:
10579
+ action:
10580
+ type: string
10581
+ enum:
10582
+ - "@ui.submit"
10583
+ returnValue:
10584
+ $ref: "#/components/schemas/PlainObject"
9959
10585
  required:
9960
10586
  - action
9961
10587
  - returnValue
@@ -9991,7 +10617,7 @@ components:
9991
10617
  enum:
9992
10618
  - "@editor.node.updateProps"
9993
10619
  props:
9994
- type: object
10620
+ $ref: "#/components/schemas/PlainObject"
9995
10621
  required:
9996
10622
  - action
9997
10623
  - props
@@ -10029,10 +10655,8 @@ components:
10029
10655
  type: string
10030
10656
  description: ID of the block in the integration
10031
10657
  props:
10032
- type: object
10033
10658
  description: Properties passed to the block during rendering
10034
- additionalProperties:
10035
- description: Any value
10659
+ $ref: "#/components/schemas/PlainObject"
10036
10660
  action:
10037
10661
  $ref: "#/components/schemas/ContentKitAction"
10038
10662
  url:
@@ -10984,7 +11608,7 @@ components:
10984
11608
  title:
10985
11609
  description: Title of the page
10986
11610
  type: string
10987
- maxLength: 100
11611
+ minLength: 1
10988
11612
  emoji:
10989
11613
  description: Emoji of the page, if one has been set.
10990
11614
  $ref: "#/components/schemas/Emoji"
@@ -11039,6 +11663,7 @@ components:
11039
11663
  oneOf:
11040
11664
  - $ref: "#/components/schemas/RevisionPageDocument"
11041
11665
  - $ref: "#/components/schemas/RevisionPageLink"
11666
+ - $ref: "#/components/schemas/RevisionPageComputed"
11042
11667
  git:
11043
11668
  $ref: "#/components/schemas/GitSyncBlob"
11044
11669
  layout:
@@ -11057,6 +11682,9 @@ components:
11057
11682
  type: boolean
11058
11683
  description: If true, the page is not indexable by search engine robots.
11059
11684
  default: false
11685
+ computed:
11686
+ description: Defined when the page was generated by a computed content.
11687
+ $ref: "#/components/schemas/ComputedContentSource"
11060
11688
  required:
11061
11689
  - kind
11062
11690
  - type
@@ -11091,6 +11719,45 @@ components:
11091
11719
  - kind
11092
11720
  - type
11093
11721
  - target
11722
+ ComputedContentDependency:
11723
+ oneOf:
11724
+ - $ref: "#/components/schemas/ContentRefSpace"
11725
+ ComputedContentSource:
11726
+ type: object
11727
+ description: Parameters for a computed content
11728
+ properties:
11729
+ integration:
11730
+ type: string
11731
+ description: Name of the integration
11732
+ source:
11733
+ type: string
11734
+ description: Identifier of the source used for computation
11735
+ props:
11736
+ description: Properties to be passed to the computation
11737
+ $ref: "#/components/schemas/PlainObject"
11738
+ dependsOn:
11739
+ type: array
11740
+ description: Dependencies the computation depend on. When the dependency's targets are updated, the computation will be updated.
11741
+ items:
11742
+ $ref: "#/components/schemas/ComputedContentDependency"
11743
+ required:
11744
+ - integration
11745
+ - source
11746
+ - props
11747
+ RevisionPageComputed:
11748
+ allOf:
11749
+ - $ref: "#/components/schemas/RevisionPageBase"
11750
+ - type: object
11751
+ properties:
11752
+ type:
11753
+ type: string
11754
+ enum:
11755
+ - computed
11756
+ computed:
11757
+ $ref: "#/components/schemas/ComputedContentSource"
11758
+ required:
11759
+ - type
11760
+ - computed
11094
11761
  GitSyncBlob:
11095
11762
  type: object
11096
11763
  properties:
@@ -11368,6 +12035,7 @@ components:
11368
12035
  oneOf:
11369
12036
  - $ref: "#/components/schemas/RevisionPageDocument"
11370
12037
  - $ref: "#/components/schemas/RevisionPageLink"
12038
+ - $ref: "#/components/schemas/RevisionPageComputed"
11371
12039
  required:
11372
12040
  - kind
11373
12041
  - type
@@ -11379,6 +12047,7 @@ components:
11379
12047
  - $ref: "#/components/schemas/RevisionPageDocument"
11380
12048
  - $ref: "#/components/schemas/RevisionPageGroup"
11381
12049
  - $ref: "#/components/schemas/RevisionPageLink"
12050
+ - $ref: "#/components/schemas/RevisionPageComputed"
11382
12051
  discriminator:
11383
12052
  propertyName: type
11384
12053
  RevisionFile:
@@ -11606,12 +12275,25 @@ components:
11606
12275
  - update
11607
12276
  required:
11608
12277
  - type
12278
+ RevisionTypeComputed:
12279
+ allOf:
12280
+ - $ref: "#/components/schemas/RevisionBase"
12281
+ - type: object
12282
+ properties:
12283
+ type:
12284
+ type: string
12285
+ description: Virtual revision, computed from a source revision
12286
+ enum:
12287
+ - computed
12288
+ required:
12289
+ - type
11609
12290
  Revision:
11610
12291
  oneOf:
11611
12292
  - $ref: "#/components/schemas/RevisionTypeEdits"
11612
12293
  - $ref: "#/components/schemas/RevisionTypeMerge"
11613
12294
  - $ref: "#/components/schemas/RevisionTypeRollback"
11614
12295
  - $ref: "#/components/schemas/RevisionTypeUpdate"
12296
+ - $ref: "#/components/schemas/RevisionTypeComputed"
11615
12297
  discriminator:
11616
12298
  propertyName: type
11617
12299
  ImportContentSource:
@@ -12062,6 +12744,40 @@ components:
12062
12744
  description: Custom blocks defined by this integration.
12063
12745
  items:
12064
12746
  $ref: "#/components/schemas/IntegrationBlock"
12747
+ IntegrationConfigurationComponent:
12748
+ type: object
12749
+ description: ContentKit component for configuration
12750
+ properties:
12751
+ componentId:
12752
+ type: string
12753
+ description: ID of the ContentKit component defined in the integration
12754
+ required:
12755
+ - componentId
12756
+ IntegrationContentSource:
12757
+ type: object
12758
+ description: Definition of a content source provided by the integration.
12759
+ properties:
12760
+ id:
12761
+ type: string
12762
+ description: Unique ID in the integration for the source.
12763
+ title:
12764
+ type: string
12765
+ description: Short descriptive title for the source.
12766
+ minLength: 2
12767
+ maxLength: 40
12768
+ description:
12769
+ type: string
12770
+ description: Long descriptive text for the source.
12771
+ minLength: 0
12772
+ maxLength: 150
12773
+ icon:
12774
+ type: string
12775
+ description: URL of the icon to represent this source.
12776
+ configuration:
12777
+ $ref: "#/components/schemas/IntegrationConfigurationComponent"
12778
+ required:
12779
+ - id
12780
+ - title
12065
12781
  IntegrationConfigurationSchema:
12066
12782
  type: object
12067
12783
  description: Schema for a configuration
@@ -12130,15 +12846,6 @@ components:
12130
12846
  type: string
12131
12847
  required:
12132
12848
  - properties
12133
- IntegrationConfigurationComponent:
12134
- type: object
12135
- description: ContentKit component for configuration
12136
- properties:
12137
- componentId:
12138
- type: string
12139
- description: ID of the ContentKit component defined in the integration
12140
- required:
12141
- - componentId
12142
12849
  IntegrationConfiguration:
12143
12850
  oneOf:
12144
12851
  - $ref: "#/components/schemas/IntegrationConfigurationSchema"
@@ -12274,6 +12981,10 @@ components:
12274
12981
  $ref: "#/components/schemas/IntegrationCategories"
12275
12982
  blocks:
12276
12983
  $ref: "#/components/schemas/IntegrationBlocks"
12984
+ contentSources:
12985
+ type: array
12986
+ items:
12987
+ $ref: "#/components/schemas/IntegrationContentSource"
12277
12988
  configurations:
12278
12989
  $ref: "#/components/schemas/IntegrationConfigurations"
12279
12990
  externalLinks:
@@ -12432,10 +13143,16 @@ components:
12432
13143
  createdAt:
12433
13144
  type: string
12434
13145
  format: date-time
13146
+ createdBy:
13147
+ $ref: "#/components/schemas/User"
12435
13148
  title:
12436
13149
  type: string
12437
13150
  description: Title describing the synced block.
12438
13151
  maxLength: 100
13152
+ description:
13153
+ type: string
13154
+ description: Description of the synced block.
13155
+ maxLength: 500
12439
13156
  usage:
12440
13157
  type: object
12441
13158
  description: Usage of synced block
@@ -12452,13 +13169,18 @@ components:
12452
13169
  location:
12453
13170
  description: URL of the synced block in the API
12454
13171
  $ref: "#/components/schemas/URL"
13172
+ app:
13173
+ description: URL of the synced block in the app
13174
+ $ref: "#/components/schemas/URL"
12455
13175
  required:
12456
13176
  - location
13177
+ - app
12457
13178
  required:
12458
13179
  - id
12459
13180
  - organization
12460
- - source
12461
13181
  - createdAt
13182
+ - createdBy
13183
+ - source
12462
13184
  - usage
12463
13185
  - urls
12464
13186
  ContentLocationSyncedBlock:
@@ -12489,6 +13211,53 @@ components:
12489
13211
  - $ref: "#/components/schemas/ContentLocationSyncedBlock"
12490
13212
  discriminator:
12491
13213
  propertyName: kind
13214
+ ContentReferenceStatus:
13215
+ type: string
13216
+ enum:
13217
+ - ok
13218
+ - broken
13219
+ - in-app
13220
+ description: |
13221
+ Text to display to represent the reference. Possible values include:
13222
+ - `ok` - No problems detected for this content reference.
13223
+ - `broken` - The target does not exist in the revision.
13224
+ - `in-app` - The target is a URL link pointing to an internal location in the app.
13225
+ ContentReferencesStats:
13226
+ type: object
13227
+ properties:
13228
+ total:
13229
+ description: Total count of links
13230
+ type: number
13231
+ broken:
13232
+ type: object
13233
+ properties:
13234
+ total:
13235
+ description: Count of broken links
13236
+ type: number
13237
+ changeRequest:
13238
+ description: Count of broken links that were broken in current change request, if applicable.
13239
+ type: number
13240
+ required:
13241
+ - total
13242
+ required:
13243
+ - total
13244
+ - broken
13245
+ ContentReferenceUsage:
13246
+ type: object
13247
+ properties:
13248
+ status:
13249
+ $ref: "#/components/schemas/ContentReferenceStatus"
13250
+ targetReference:
13251
+ description: The reference target where a list of pages are pointing at
13252
+ $ref: "#/components/schemas/ContentLocation"
13253
+ locationReferences:
13254
+ description: Pages locations where a link to the target is found.
13255
+ type: array
13256
+ items:
13257
+ $ref: "#/components/schemas/ContentLocation"
13258
+ required:
13259
+ - status
13260
+ - locationReferences
12492
13261
  CreateChangeRequest:
12493
13262
  type: object
12494
13263
  properties:
@@ -12755,53 +13524,6 @@ components:
12755
13524
  required:
12756
13525
  - kind
12757
13526
  - team
12758
- ContentReferenceStatus:
12759
- type: string
12760
- enum:
12761
- - ok
12762
- - broken
12763
- - in-app
12764
- description: |
12765
- Text to display to represent the reference. Possible values include:
12766
- - `ok` - No problems detected for this content reference.
12767
- - `broken` - The target does not exist in the revision.
12768
- - `in-app` - The target is a URL link pointing to an internal location in the app.
12769
- ContentReferencesStats:
12770
- type: object
12771
- properties:
12772
- total:
12773
- description: Total count of links
12774
- type: number
12775
- broken:
12776
- type: object
12777
- properties:
12778
- total:
12779
- description: Count of broken links
12780
- type: number
12781
- changeRequest:
12782
- description: Count of broken links that were broken in current change request, if applicable.
12783
- type: number
12784
- required:
12785
- - total
12786
- required:
12787
- - total
12788
- - broken
12789
- ContentReferenceUsage:
12790
- type: object
12791
- properties:
12792
- status:
12793
- $ref: "#/components/schemas/ContentReferenceStatus"
12794
- targetReference:
12795
- description: The reference target where a list of pages are pointing at
12796
- $ref: "#/components/schemas/ContentLocation"
12797
- locationReferences:
12798
- description: Pages locations where a link to the target is found.
12799
- type: array
12800
- items:
12801
- $ref: "#/components/schemas/ContentLocation"
12802
- required:
12803
- - status
12804
- - locationReferences
12805
13527
  PostCommentSchema:
12806
13528
  type: object
12807
13529
  properties:
@@ -12903,6 +13625,7 @@ components:
12903
13625
  - document
12904
13626
  - group
12905
13627
  - link
13628
+ - computed
12906
13629
  ChangedRevisionPage:
12907
13630
  type: object
12908
13631
  properties:
@@ -13335,6 +14058,12 @@ components:
13335
14058
  - $ref: "#/components/schemas/CustomizationContentLink"
13336
14059
  - type: object
13337
14060
  properties:
14061
+ style:
14062
+ type: string
14063
+ enum:
14064
+ - link
14065
+ - button-primary
14066
+ - button-secondary
13338
14067
  links:
13339
14068
  type: array
13340
14069
  items:
@@ -13781,6 +14510,10 @@ components:
13781
14510
  $ref: "#/components/schemas/IntegrationCategories"
13782
14511
  blocks:
13783
14512
  $ref: "#/components/schemas/IntegrationBlocks"
14513
+ contentSources:
14514
+ type: array
14515
+ items:
14516
+ $ref: "#/components/schemas/IntegrationContentSource"
13784
14517
  externalLinks:
13785
14518
  $ref: "#/components/schemas/IntegrationExternalLinks"
13786
14519
  configurations:
@@ -14386,6 +15119,22 @@ components:
14386
15119
  required:
14387
15120
  - type
14388
15121
  - siteId
15122
+ ContentKitContextConfigurationContentSource:
15123
+ allOf:
15124
+ - $ref: "#/components/schemas/ContentKitContextBase"
15125
+ - type: object
15126
+ description: Context while rendering the configuration flow of a content source.
15127
+ properties:
15128
+ type:
15129
+ type: string
15130
+ enum:
15131
+ - configuration_contentsource
15132
+ organizationId:
15133
+ type: string
15134
+ description: ID of the organization the content source installation configuration is in.
15135
+ required:
15136
+ - type
15137
+ - organizationId
14389
15138
  ContentKitContextDocument:
14390
15139
  allOf:
14391
15140
  - $ref: "#/components/schemas/ContentKitContextBase"
@@ -14411,6 +15160,7 @@ components:
14411
15160
  - $ref: "#/components/schemas/ContentKitContextConfigurationAccount"
14412
15161
  - $ref: "#/components/schemas/ContentKitContextConfigurationSpace"
14413
15162
  - $ref: "#/components/schemas/ContentKitContextConfigurationSite"
15163
+ - $ref: "#/components/schemas/ContentKitContextConfigurationContentSource"
14414
15164
  - $ref: "#/components/schemas/ContentKitContextDocument"
14415
15165
  UIRenderEvent:
14416
15166
  allOf:
@@ -14450,33 +15200,77 @@ components:
14450
15200
  - componentId
14451
15201
  - props
14452
15202
  - context
14453
- Event:
14454
- description: Any event that can be received from GitBook.
14455
- oneOf:
14456
- - $ref: "#/components/schemas/InstallationSetupEvent"
14457
- - $ref: "#/components/schemas/SpaceInstallationSetupEvent"
14458
- - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
14459
- - $ref: "#/components/schemas/SiteInstallationSetupEvent"
14460
- - $ref: "#/components/schemas/SiteInstallationDeletedEvent"
14461
- - $ref: "#/components/schemas/SpaceViewEvent"
14462
- - $ref: "#/components/schemas/SiteViewEvent"
14463
- - $ref: "#/components/schemas/SpaceContentUpdatedEvent"
14464
- - $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
14465
- - $ref: "#/components/schemas/SpaceGitSyncStartedEvent"
14466
- - $ref: "#/components/schemas/SpaceVisibilityUpdatedEvent"
14467
- - $ref: "#/components/schemas/FetchEvent"
14468
- - $ref: "#/components/schemas/FetchPublishedScriptEvent"
14469
- - $ref: "#/components/schemas/FetchVisitorAuthenticationEvent"
14470
- - $ref: "#/components/schemas/UIRenderEvent"
14471
- discriminator:
14472
- propertyName: type
14473
- IntegrationEvent:
14474
- type: object
14475
- properties:
14476
- id:
14477
- type: string
14478
- description: Unique ID of the event.
14479
- integrationId:
15203
+ ContentComputeEvent:
15204
+ allOf:
15205
+ - $ref: "#/components/schemas/SpaceEvent"
15206
+ - type: object
15207
+ description: Generic event when computing the content of a space
15208
+ properties:
15209
+ sourceId:
15210
+ type: string
15211
+ props:
15212
+ description: Properties passed to the rendering.
15213
+ $ref: "#/components/schemas/PlainObject"
15214
+ required:
15215
+ - sourceId
15216
+ - props
15217
+ ContentComputeDocumentEvent:
15218
+ allOf:
15219
+ - $ref: "#/components/schemas/ContentComputeEvent"
15220
+ - type: object
15221
+ description: |
15222
+ Event generated when computing the document of a pages.
15223
+ The integration should respond with a `Document`.
15224
+ properties:
15225
+ type:
15226
+ type: string
15227
+ enum:
15228
+ - content_compute_document
15229
+ required:
15230
+ - type
15231
+ ContentComputeRevisionEvent:
15232
+ allOf:
15233
+ - $ref: "#/components/schemas/ContentComputeEvent"
15234
+ - type: object
15235
+ description: |
15236
+ Event generated when computing revision in a content.
15237
+ The integration should respond with an array of pages and files.
15238
+ properties:
15239
+ type:
15240
+ type: string
15241
+ enum:
15242
+ - content_compute_revision
15243
+ required:
15244
+ - type
15245
+ Event:
15246
+ description: Any event that can be received from GitBook.
15247
+ oneOf:
15248
+ - $ref: "#/components/schemas/InstallationSetupEvent"
15249
+ - $ref: "#/components/schemas/SpaceInstallationSetupEvent"
15250
+ - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
15251
+ - $ref: "#/components/schemas/SiteInstallationSetupEvent"
15252
+ - $ref: "#/components/schemas/SiteInstallationDeletedEvent"
15253
+ - $ref: "#/components/schemas/SpaceViewEvent"
15254
+ - $ref: "#/components/schemas/SiteViewEvent"
15255
+ - $ref: "#/components/schemas/SpaceContentUpdatedEvent"
15256
+ - $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
15257
+ - $ref: "#/components/schemas/SpaceGitSyncStartedEvent"
15258
+ - $ref: "#/components/schemas/SpaceVisibilityUpdatedEvent"
15259
+ - $ref: "#/components/schemas/FetchEvent"
15260
+ - $ref: "#/components/schemas/FetchPublishedScriptEvent"
15261
+ - $ref: "#/components/schemas/FetchVisitorAuthenticationEvent"
15262
+ - $ref: "#/components/schemas/UIRenderEvent"
15263
+ - $ref: "#/components/schemas/ContentComputeDocumentEvent"
15264
+ - $ref: "#/components/schemas/ContentComputeRevisionEvent"
15265
+ discriminator:
15266
+ propertyName: type
15267
+ IntegrationEvent:
15268
+ type: object
15269
+ properties:
15270
+ id:
15271
+ type: string
15272
+ description: Unique ID of the event.
15273
+ integrationId:
14480
15274
  type: string
14481
15275
  description: Unique ID of the integration.
14482
15276
  installationId:
@@ -14692,6 +15486,7 @@ components:
14692
15486
  - $ref: "#/components/schemas/ContentKitText"
14693
15487
  - $ref: "#/components/schemas/ContentKitHint"
14694
15488
  - $ref: "#/components/schemas/ContentKitLink"
15489
+ - $ref: "#/components/schemas/ContentKitStepperStep"
14695
15490
  discriminator:
14696
15491
  propertyName: type
14697
15492
  ContentKitHStack:
@@ -15185,6 +15980,33 @@ components:
15185
15980
  required:
15186
15981
  - type
15187
15982
  - children
15983
+ ContentKitStepperStep:
15984
+ type: object
15985
+ properties:
15986
+ type:
15987
+ type: string
15988
+ enum:
15989
+ - step
15990
+ id:
15991
+ description: unique identifier for the step
15992
+ type: string
15993
+ title:
15994
+ description: title of the step
15995
+ type: string
15996
+ maxLength: 50
15997
+ next:
15998
+ description: indicates if the user can progress to the next step based on some internal validation or condition
15999
+ type: boolean
16000
+ default: false
16001
+ children:
16002
+ type: array
16003
+ items:
16004
+ $ref: "#/components/schemas/ContentKitDescendantElement"
16005
+ minItems: 1
16006
+ required:
16007
+ - type
16008
+ - id
16009
+ - children
15188
16010
  ContentKitBlockControl:
15189
16011
  type: object
15190
16012
  description: Control menu item displayed for the block.
@@ -15255,11 +16077,59 @@ components:
15255
16077
  required:
15256
16078
  - type
15257
16079
  - children
16080
+ ContentKitStepper:
16081
+ type: object
16082
+ properties:
16083
+ type:
16084
+ type: string
16085
+ enum:
16086
+ - stepper
16087
+ activeStep:
16088
+ type: string
16089
+ description: id of the currently active step
16090
+ onStepChange:
16091
+ $ref: "#/components/schemas/ContentKitAction"
16092
+ onComplete:
16093
+ $ref: "#/components/schemas/ContentKitAction"
16094
+ children:
16095
+ type: array
16096
+ items:
16097
+ $ref: "#/components/schemas/ContentKitStepperStep"
16098
+ minItems: 1
16099
+ required:
16100
+ - type
16101
+ - activeStep
16102
+ - onStepChange
16103
+ - onComplete
16104
+ - children
16105
+ ContentKitConfiguration:
16106
+ type: object
16107
+ description: Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component.
16108
+ properties:
16109
+ type:
16110
+ type: string
16111
+ enum:
16112
+ - configuration
16113
+ children:
16114
+ oneOf:
16115
+ - type: array
16116
+ items:
16117
+ $ref: "#/components/schemas/ContentKitStepper"
16118
+ minItems: 1
16119
+ maxItems: 1
16120
+ - type: array
16121
+ items:
16122
+ $ref: "#/components/schemas/ContentKitDescendantElement"
16123
+ minItems: 1
16124
+ required:
16125
+ - type
16126
+ - children
15258
16127
  ContentKitRootElement:
15259
16128
  description: Element used as root
15260
16129
  oneOf:
15261
16130
  - $ref: "#/components/schemas/ContentKitBlock"
15262
16131
  - $ref: "#/components/schemas/ContentKitModal"
16132
+ - $ref: "#/components/schemas/ContentKitConfiguration"
15263
16133
  discriminator:
15264
16134
  propertyName: type
15265
16135
  ContentKitRenderOutput:
@@ -15271,7 +16141,7 @@ components:
15271
16141
  state:
15272
16142
  type: object
15273
16143
  props:
15274
- type: object
16144
+ $ref: "#/components/schemas/PlainObject"
15275
16145
  required:
15276
16146
  - element
15277
16147
  - state
@@ -15283,8 +16153,8 @@ components:
15283
16153
  type: string
15284
16154
  description: ID of the component to render in the integration.
15285
16155
  props:
15286
- type: object
15287
16156
  description: Current properties of the UI.
16157
+ $ref: "#/components/schemas/PlainObject"
15288
16158
  state:
15289
16159
  type: object
15290
16160
  description: Current local state of the UI.
@@ -15673,20 +16543,23 @@ components:
15673
16543
  minProperties: 1
15674
16544
  properties:
15675
16545
  members:
15676
- type: array
15677
- items:
15678
- type: string
15679
- description: A list of member identifiers to be removed
15680
- premiumSites:
15681
- type: array
15682
- items:
15683
- type: string
15684
- description: A list of premium site identifiers to be unpublished
15685
- audienceSites:
15686
- type: array
15687
- items:
15688
- type: string
15689
- description: A list of audience site identifiers to be unpublished
16546
+ description: A list of member identifiers to be removed, `all` to remove all members but the current admin
16547
+ oneOf:
16548
+ - type: array
16549
+ items:
16550
+ type: string
16551
+ - type: string
16552
+ enum:
16553
+ - all
16554
+ sites:
16555
+ description: A list of site identifiers to be unpublished, 'all' to unpublish all sites
16556
+ oneOf:
16557
+ - type: array
16558
+ items:
16559
+ type: string
16560
+ - type: string
16561
+ enum:
16562
+ - all
15690
16563
  reason:
15691
16564
  type: string
15692
16565
  description: Reason that triggered the billing upgrade
@@ -15957,14 +16830,14 @@ components:
15957
16830
  premium:
15958
16831
  description: Count of all premium sites
15959
16832
  type: number
15960
- audience:
15961
- description: Count of all audience sites
16833
+ ultimate:
16834
+ description: Count of all ultimate sites
15962
16835
  type: number
15963
16836
  required:
15964
16837
  - total
15965
16838
  - basic
15966
16839
  - premium
15967
- - audience
16840
+ - ultimate
15968
16841
  OrganizationUsageTeams:
15969
16842
  type: object
15970
16843
  description: Team members usage metrics of an organization
@@ -16291,7 +17164,7 @@ components:
16291
17164
  enum:
16292
17165
  - basic
16293
17166
  - premium
16294
- - audience
17167
+ - ultimate
16295
17168
  - legacy-basic
16296
17169
  - legacy-premium
16297
17170
  SiteTitle:
@@ -16494,6 +17367,101 @@ components:
16494
17367
  required:
16495
17368
  - type
16496
17369
  - plan
17370
+ SiteSectionTitle:
17371
+ type: string
17372
+ description: Title of the site section
17373
+ minLength: 2
17374
+ maxLength: 128
17375
+ SiteSectionPath:
17376
+ type: string
17377
+ description: Path to the section on the site
17378
+ minLength: 1
17379
+ maxLength: 100
17380
+ SiteSpacePath:
17381
+ type: string
17382
+ description: Path to the space on the site
17383
+ minLength: 1
17384
+ maxLength: 100
17385
+ SiteSpace:
17386
+ type: object
17387
+ properties:
17388
+ object:
17389
+ type: string
17390
+ description: The object type, which is always "site-space"
17391
+ enum:
17392
+ - site-space
17393
+ id:
17394
+ type: string
17395
+ description: Unique identifier of the site-space
17396
+ path:
17397
+ $ref: "#/components/schemas/SiteSpacePath"
17398
+ section:
17399
+ type: string
17400
+ description: ID of the section the space belongs to in the site
17401
+ space:
17402
+ $ref: "#/components/schemas/Space"
17403
+ title:
17404
+ type: string
17405
+ default:
17406
+ type: boolean
17407
+ description: Whether this is the default space for the site
17408
+ hasAdvancedCustomizationFeature:
17409
+ type: boolean
17410
+ description: Whether the space has advanced customization feature enabled
17411
+ urls:
17412
+ type: object
17413
+ description: URLs associated with the object
17414
+ properties:
17415
+ published:
17416
+ type: string
17417
+ description: URL of the published version of the site-space. Only defined when site is published.
17418
+ format: uri
17419
+ required:
17420
+ - location
17421
+ required:
17422
+ - id
17423
+ - space
17424
+ - title
17425
+ - path
17426
+ - urls
17427
+ SiteSection:
17428
+ type: object
17429
+ properties:
17430
+ object:
17431
+ type: string
17432
+ description: The object type, which is always "site-section"
17433
+ enum:
17434
+ - site-section
17435
+ id:
17436
+ type: string
17437
+ description: Unique identifier of the site section
17438
+ title:
17439
+ $ref: "#/components/schemas/SiteSectionTitle"
17440
+ default:
17441
+ type: boolean
17442
+ description: Whether this is the default section for the site
17443
+ path:
17444
+ $ref: "#/components/schemas/SiteSectionPath"
17445
+ siteSpaces:
17446
+ type: array
17447
+ items:
17448
+ $ref: "#/components/schemas/SiteSpace"
17449
+ urls:
17450
+ type: object
17451
+ description: URLs associated with the object
17452
+ properties:
17453
+ published:
17454
+ type: string
17455
+ description: URL of the published version of the site section. Only defined when site is published.
17456
+ format: uri
17457
+ required:
17458
+ - location
17459
+ required:
17460
+ - id
17461
+ - title
17462
+ - path
17463
+ - siteSpaces
17464
+ - urls
16497
17465
  SitePublishingAuth:
16498
17466
  allOf:
16499
17467
  - oneOf:
@@ -16552,291 +17520,27 @@ components:
16552
17520
  primaryColor:
16553
17521
  $ref: "#/components/schemas/CustomizationThemedColor"
16554
17522
  corners:
16555
- $ref: "#/components/schemas/CustomizationCorners"
16556
- font:
16557
- $ref: "#/components/schemas/CustomizationFont"
16558
- background:
16559
- $ref: "#/components/schemas/CustomizationBackground"
16560
- icons:
16561
- $ref: "#/components/schemas/CustomizationIconsStyle"
16562
- required:
16563
- - primaryColor
16564
- - corners
16565
- - font
16566
- - background
16567
- - icons
16568
- internationalization:
16569
- type: object
16570
- properties:
16571
- locale:
16572
- $ref: "#/components/schemas/CustomizationLocale"
16573
- required:
16574
- - locale
16575
- favicon:
16576
- oneOf:
16577
- - type: object
16578
- properties:
16579
- icon:
16580
- $ref: "#/components/schemas/CustomizationThemedURL"
16581
- required:
16582
- - icon
16583
- - type: object
16584
- properties:
16585
- emoji:
16586
- $ref: "#/components/schemas/Emoji"
16587
- required:
16588
- - emoji
16589
- - type: object
16590
- properties: {}
16591
- additionalProperties: false
16592
- header:
16593
- type: object
16594
- properties:
16595
- preset:
16596
- $ref: "#/components/schemas/CustomizationHeaderPreset"
16597
- logo:
16598
- $ref: "#/components/schemas/CustomizationThemedURL"
16599
- backgroundColor:
16600
- $ref: "#/components/schemas/CustomizationThemedColor"
16601
- linkColor:
16602
- $ref: "#/components/schemas/CustomizationThemedColor"
16603
- links:
16604
- type: array
16605
- items:
16606
- $ref: "#/components/schemas/CustomizationHeaderLink"
16607
- required:
16608
- - preset
16609
- - links
16610
- footer:
16611
- type: object
16612
- properties:
16613
- logo:
16614
- $ref: "#/components/schemas/CustomizationThemedURL"
16615
- groups:
16616
- type: array
16617
- items:
16618
- $ref: "#/components/schemas/CustomizationFooterGroup"
16619
- copyright:
16620
- type: string
16621
- maxLength: 300
16622
- required:
16623
- - groups
16624
- themes:
16625
- type: object
16626
- properties:
16627
- default:
16628
- $ref: "#/components/schemas/CustomizationThemeMode"
16629
- toggeable:
16630
- description: Should the reader be able to switch between dark and light mode
16631
- type: boolean
16632
- required:
16633
- - default
16634
- - toggeable
16635
- pdf:
16636
- type: object
16637
- properties:
16638
- enabled:
16639
- type: boolean
16640
- description: If true, PDF export is enabled for the published site.
16641
- required:
16642
- - enabled
16643
- feedback:
16644
- type: object
16645
- properties:
16646
- enabled:
16647
- type: boolean
16648
- description: If true, feedback gathering is enabled
16649
- required:
16650
- - enabled
16651
- aiSearch:
16652
- type: object
16653
- properties:
16654
- enabled:
16655
- type: boolean
16656
- description: If true, AI search is enabled
16657
- required:
16658
- - enabled
16659
- advancedCustomization:
16660
- type: object
16661
- properties:
16662
- enabled:
16663
- type: boolean
16664
- description: If true, Advanced customization is enabled
16665
- required:
16666
- - enabled
16667
- git:
16668
- type: object
16669
- properties:
16670
- showEditLink:
16671
- type: boolean
16672
- description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync
16673
- required:
16674
- - showEditLink
16675
- pagination:
16676
- type: object
16677
- properties:
16678
- enabled:
16679
- type: boolean
16680
- description: Whether the pagination navigation should be displayed on pages.
16681
- required:
16682
- - enabled
16683
- trademark:
16684
- type: object
16685
- properties:
16686
- enabled:
16687
- type: boolean
16688
- description: Whether the GitBook trademark ("Powered by GitBook") should be visible
16689
- required:
16690
- - enabled
16691
- privacyPolicy:
16692
- type: object
16693
- properties:
16694
- url:
16695
- $ref: "#/components/schemas/URL"
16696
- socialPreview:
16697
- type: object
16698
- properties:
16699
- url:
16700
- $ref: "#/components/schemas/URL"
16701
- required:
16702
- - styling
16703
- - internationalization
16704
- - favicon
16705
- - header
16706
- - footer
16707
- - themes
16708
- - pdf
16709
- - feedback
16710
- - aiSearch
16711
- - advancedCustomization
16712
- - trademark
16713
- - pagination
16714
- - git
16715
- - privacyPolicy
16716
- - socialPreview
16717
- SiteIntegrationScript:
16718
- type: object
16719
- properties:
16720
- script:
16721
- description: Script URL to load.
16722
- $ref: "#/components/schemas/URL"
16723
- contentSecurityPolicy:
16724
- description: Content Security Policy to secure the loading of this script.
16725
- type: string
16726
- cookies:
16727
- type: boolean
16728
- description: If true, the script will potentially load use cookies and visitors should be aware.
16729
- required:
16730
- - script
16731
- - cookies
16732
- SiteSpacePath:
16733
- type: string
16734
- description: Path to the space on the site
16735
- minLength: 1
16736
- maxLength: 100
16737
- SiteSpace:
16738
- type: object
16739
- properties:
16740
- object:
16741
- type: string
16742
- description: The object type, which is always "site-space"
16743
- enum:
16744
- - site-space
16745
- id:
16746
- type: string
16747
- description: Unique identifier of the site-space
16748
- path:
16749
- $ref: "#/components/schemas/SiteSpacePath"
16750
- space:
16751
- $ref: "#/components/schemas/Space"
16752
- title:
16753
- type: string
16754
- default:
16755
- type: boolean
16756
- description: Whether this is the default space for the site
16757
- hasAdvancedCustomizationFeature:
16758
- type: boolean
16759
- description: Whether the space has advanced customization feature enabled
16760
- urls:
16761
- type: object
16762
- description: URLs associated with the object
16763
- properties:
16764
- published:
16765
- type: string
16766
- description: URL of the published version of the site-space. Only defined when site is published.
16767
- format: uri
16768
- required:
16769
- - location
16770
- required:
16771
- - id
16772
- - space
16773
- - title
16774
- - path
16775
- - urls
16776
- SiteSpaceCustomizationOverrides:
16777
- type: object
16778
- properties:
16779
- title:
16780
- description: Title to use for the published site variant. If not defined, it'll fallback to the content title.
16781
- $ref: "#/components/schemas/SiteTitle"
16782
- styling:
16783
- type: object
16784
- properties:
16785
- primaryColor:
16786
- description: The primary color used for links and UI text. Set to null to reset the override.
16787
- oneOf:
16788
- - $ref: "#/components/schemas/CustomizationThemedColor"
16789
- - type: string
16790
- nullable: true
16791
- enum:
16792
- - null
16793
- corners:
16794
- description: The style of the corners to use. Set to null to reset the override.
16795
- oneOf:
16796
- - $ref: "#/components/schemas/CustomizationCorners"
16797
- - type: string
16798
- nullable: true
16799
- enum:
16800
- - null
16801
- font:
16802
- description: The font family to use for the content. Set to null to reset the override.
16803
- oneOf:
16804
- - $ref: "#/components/schemas/CustomizationFont"
16805
- - type: string
16806
- nullable: true
16807
- enum:
16808
- - null
16809
- icons:
16810
- description: The icons style to use for the content. Set to null to reset the override.
16811
- oneOf:
16812
- - $ref: "#/components/schemas/CustomizationIconsStyle"
16813
- - type: string
16814
- nullable: true
16815
- enum:
16816
- - null
17523
+ $ref: "#/components/schemas/CustomizationCorners"
17524
+ font:
17525
+ $ref: "#/components/schemas/CustomizationFont"
16817
17526
  background:
16818
- description: The style of background to use. Set to null to reset the override.
16819
- oneOf:
16820
- - $ref: "#/components/schemas/CustomizationBackground"
16821
- - type: string
16822
- nullable: true
16823
- enum:
16824
- - null
17527
+ $ref: "#/components/schemas/CustomizationBackground"
17528
+ icons:
17529
+ $ref: "#/components/schemas/CustomizationIconsStyle"
17530
+ required:
17531
+ - primaryColor
17532
+ - corners
17533
+ - font
17534
+ - background
17535
+ - icons
16825
17536
  internationalization:
16826
17537
  type: object
16827
17538
  properties:
16828
17539
  locale:
16829
- description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
16830
- oneOf:
16831
- - $ref: "#/components/schemas/CustomizationLocale"
16832
- - type: string
16833
- nullable: true
16834
- enum:
16835
- - null
17540
+ $ref: "#/components/schemas/CustomizationLocale"
16836
17541
  required:
16837
17542
  - locale
16838
17543
  favicon:
16839
- description: The favicon to use. Set to null to reset the override.
16840
17544
  oneOf:
16841
17545
  - type: object
16842
17546
  properties:
@@ -16851,94 +17555,57 @@ components:
16851
17555
  required:
16852
17556
  - emoji
16853
17557
  - type: object
16854
- nullable: true
16855
17558
  properties: {}
16856
17559
  additionalProperties: false
16857
17560
  header:
16858
17561
  type: object
16859
17562
  properties:
16860
17563
  preset:
16861
- description: The theme preset to use. Set to null to reset the override.
16862
- oneOf:
16863
- - $ref: "#/components/schemas/CustomizationHeaderPreset"
16864
- - type: string
16865
- nullable: true
16866
- enum:
16867
- - null
17564
+ $ref: "#/components/schemas/CustomizationHeaderPreset"
16868
17565
  logo:
16869
- description: The header logo to use. Set to null to reset the override.
16870
- oneOf:
16871
- - $ref: "#/components/schemas/CustomizationThemedURL"
16872
- - type: string
16873
- nullable: true
16874
- enum:
16875
- - null
17566
+ $ref: "#/components/schemas/CustomizationThemedURL"
16876
17567
  backgroundColor:
16877
- description: The background color used in the header. Set to null to reset the override.
16878
- oneOf:
16879
- - $ref: "#/components/schemas/CustomizationThemedColor"
16880
- - type: string
16881
- nullable: true
16882
- enum:
16883
- - null
17568
+ $ref: "#/components/schemas/CustomizationThemedColor"
16884
17569
  linkColor:
16885
- description: The color used by the links in the header. Set to null to reset the override.
16886
- oneOf:
16887
- - $ref: "#/components/schemas/CustomizationThemedColor"
16888
- - type: string
16889
- nullable: true
16890
- enum:
16891
- - null
17570
+ $ref: "#/components/schemas/CustomizationThemedColor"
16892
17571
  links:
16893
17572
  type: array
16894
- description: The links that are displayed in the header. Set to null to reset the override.
16895
- nullable: true
16896
17573
  items:
16897
17574
  $ref: "#/components/schemas/CustomizationHeaderLink"
17575
+ required:
17576
+ - preset
17577
+ - links
16898
17578
  footer:
16899
17579
  type: object
16900
17580
  properties:
16901
17581
  logo:
16902
- description: The logo displayed in the footer. Set to null to reset the override.
16903
- oneOf:
16904
- - $ref: "#/components/schemas/CustomizationThemedURL"
16905
- - type: string
16906
- nullable: true
16907
- enum:
16908
- - null
17582
+ $ref: "#/components/schemas/CustomizationThemedURL"
16909
17583
  groups:
16910
17584
  type: array
16911
- description: The links groups that are displayed in the footer. Set to null to reset the override.
16912
- nullable: true
16913
17585
  items:
16914
17586
  $ref: "#/components/schemas/CustomizationFooterGroup"
16915
17587
  copyright:
16916
17588
  type: string
16917
- description: The copyright text that is displayed in the footer. Set to null to reset the override.
16918
- nullable: true
16919
17589
  maxLength: 300
17590
+ required:
17591
+ - groups
16920
17592
  themes:
16921
17593
  type: object
16922
17594
  properties:
16923
17595
  default:
16924
- description: The theme mode default value. Set to null to reset the override.
16925
- oneOf:
16926
- - $ref: "#/components/schemas/CustomizationThemeMode"
16927
- - type: string
16928
- nullable: true
16929
- enum:
16930
- - null
17596
+ $ref: "#/components/schemas/CustomizationThemeMode"
16931
17597
  toggeable:
16932
- description: Should the reader be able to switch between dark and light mode. Set to null to reset the override.
17598
+ description: Should the reader be able to switch between dark and light mode
16933
17599
  type: boolean
16934
- nullable: true
17600
+ required:
17601
+ - default
17602
+ - toggeable
16935
17603
  pdf:
16936
17604
  type: object
16937
17605
  properties:
16938
17606
  enabled:
16939
17607
  type: boolean
16940
- description: If true, PDF export is enabled for the published site. Set to null to reset the override.
16941
- nullable: true
17608
+ description: If true, PDF export is enabled for the published site.
16942
17609
  required:
16943
17610
  - enabled
16944
17611
  feedback:
@@ -16946,8 +17613,7 @@ components:
16946
17613
  properties:
16947
17614
  enabled:
16948
17615
  type: boolean
16949
- description: If true, feedback gathering is enabled. Set to null to reset the override.
16950
- nullable: true
17616
+ description: If true, feedback gathering is enabled
16951
17617
  required:
16952
17618
  - enabled
16953
17619
  aiSearch:
@@ -16955,8 +17621,15 @@ components:
16955
17621
  properties:
16956
17622
  enabled:
16957
17623
  type: boolean
16958
- description: If true, AI search is enabled. Set to null to reset the override.
16959
- nullable: true
17624
+ description: If true, AI search is enabled
17625
+ required:
17626
+ - enabled
17627
+ advancedCustomization:
17628
+ type: object
17629
+ properties:
17630
+ enabled:
17631
+ type: boolean
17632
+ description: If true, Advanced customization is enabled
16960
17633
  required:
16961
17634
  - enabled
16962
17635
  git:
@@ -16964,8 +17637,7 @@ components:
16964
17637
  properties:
16965
17638
  showEditLink:
16966
17639
  type: boolean
16967
- description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync. Set to null to reset the override.
16968
- nullable: true
17640
+ description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync
16969
17641
  required:
16970
17642
  - showEditLink
16971
17643
  pagination:
@@ -16973,8 +17645,7 @@ components:
16973
17645
  properties:
16974
17646
  enabled:
16975
17647
  type: boolean
16976
- description: Whether the pagination navigation should be displayed on pages. Set to null to reset the override.
16977
- nullable: true
17648
+ description: Whether the pagination navigation should be displayed on pages.
16978
17649
  required:
16979
17650
  - enabled
16980
17651
  trademark:
@@ -16982,32 +17653,50 @@ components:
16982
17653
  properties:
16983
17654
  enabled:
16984
17655
  type: boolean
16985
- description: Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override.
16986
- nullable: true
17656
+ description: Whether the GitBook trademark ("Powered by GitBook") should be visible
16987
17657
  required:
16988
17658
  - enabled
16989
17659
  privacyPolicy:
16990
17660
  type: object
16991
17661
  properties:
16992
17662
  url:
16993
- description: The custom link to the privacy policy. Set to null to reset the override.
16994
- oneOf:
16995
- - $ref: "#/components/schemas/URL"
16996
- - type: string
16997
- nullable: true
16998
- enum:
16999
- - null
17663
+ $ref: "#/components/schemas/URL"
17000
17664
  socialPreview:
17001
17665
  type: object
17002
17666
  properties:
17003
17667
  url:
17004
- description: The URL for the social preview image. Set to null to reset the override.
17005
- oneOf:
17006
- - $ref: "#/components/schemas/URL"
17007
- - type: string
17008
- nullable: true
17009
- enum:
17010
- - null
17668
+ $ref: "#/components/schemas/URL"
17669
+ required:
17670
+ - styling
17671
+ - internationalization
17672
+ - favicon
17673
+ - header
17674
+ - footer
17675
+ - themes
17676
+ - pdf
17677
+ - feedback
17678
+ - aiSearch
17679
+ - advancedCustomization
17680
+ - trademark
17681
+ - pagination
17682
+ - git
17683
+ - privacyPolicy
17684
+ - socialPreview
17685
+ SiteIntegrationScript:
17686
+ type: object
17687
+ properties:
17688
+ script:
17689
+ description: Script URL to load.
17690
+ $ref: "#/components/schemas/URL"
17691
+ contentSecurityPolicy:
17692
+ description: Content Security Policy to secure the loading of this script.
17693
+ type: string
17694
+ cookies:
17695
+ type: boolean
17696
+ description: If true, the script will potentially load use cookies and visitors should be aware.
17697
+ required:
17698
+ - script
17699
+ - cookies
17011
17700
  SiteSpacePointer:
17012
17701
  type: object
17013
17702
  properties:
@@ -17586,6 +18275,9 @@ components:
17586
18275
  shareKey:
17587
18276
  type: string
17588
18277
  description: Share link key of the site in case the site was published with share-links.
18278
+ complete:
18279
+ type: boolean
18280
+ description: Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments.
17589
18281
  required:
17590
18282
  - site
17591
18283
  - siteSpace
@@ -17594,6 +18286,7 @@ components:
17594
18286
  - basePath
17595
18287
  - apiToken
17596
18288
  - organization
18289
+ - complete
17597
18290
  UpdateContentPublishingAuth:
17598
18291
  type: object
17599
18292
  properties:
@@ -17663,6 +18356,146 @@ components:
17663
18356
  - $ref: "#/components/schemas/DocumentBlockContentRef"
17664
18357
  - $ref: "#/components/schemas/DocumentBlockIntegration"
17665
18358
  - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
18359
+ InputPageBase:
18360
+ allOf:
18361
+ - type: object
18362
+ properties:
18363
+ id:
18364
+ type: string
18365
+ description: |
18366
+ Optional unique identifier for the page.
18367
+ It can be used to reference pages in document links.
18368
+ title:
18369
+ type: string
18370
+ minLength: 1
18371
+ required:
18372
+ - title
18373
+ - oneOf:
18374
+ - type: object
18375
+ properties:
18376
+ emoji:
18377
+ description: Emoji of the page.
18378
+ $ref: "#/components/schemas/Emoji"
18379
+ required:
18380
+ - emoji
18381
+ - type: object
18382
+ properties:
18383
+ icon:
18384
+ description: Icon of the page.
18385
+ $ref: "#/components/schemas/Icon"
18386
+ InputPageDocument:
18387
+ allOf:
18388
+ - $ref: "#/components/schemas/InputPageBase"
18389
+ - type: object
18390
+ properties:
18391
+ type:
18392
+ type: string
18393
+ enum:
18394
+ - document
18395
+ description:
18396
+ type: string
18397
+ maxLength: 300
18398
+ minLength: 0
18399
+ slug:
18400
+ description: Page's slug in its direct parent
18401
+ type: string
18402
+ pages:
18403
+ type: array
18404
+ items:
18405
+ oneOf:
18406
+ - $ref: "#/components/schemas/InputPageDocument"
18407
+ - $ref: "#/components/schemas/InputPageLink"
18408
+ - $ref: "#/components/schemas/InputPageComputed"
18409
+ computed:
18410
+ $ref: "#/components/schemas/ComputedContentSource"
18411
+ required:
18412
+ - type
18413
+ InputPageLink:
18414
+ allOf:
18415
+ - $ref: "#/components/schemas/InputPageBase"
18416
+ - type: object
18417
+ properties:
18418
+ type:
18419
+ type: string
18420
+ enum:
18421
+ - link
18422
+ target:
18423
+ $ref: "#/components/schemas/ContentRef"
18424
+ required:
18425
+ - type
18426
+ - target
18427
+ InputPageComputed:
18428
+ allOf:
18429
+ - $ref: "#/components/schemas/InputPageBase"
18430
+ - type: object
18431
+ properties:
18432
+ type:
18433
+ type: string
18434
+ enum:
18435
+ - computed
18436
+ computed:
18437
+ $ref: "#/components/schemas/ComputedContentSource"
18438
+ required:
18439
+ - type
18440
+ - computed
18441
+ InputPageGroup:
18442
+ allOf:
18443
+ - $ref: "#/components/schemas/InputPageBase"
18444
+ - type: object
18445
+ properties:
18446
+ type:
18447
+ type: string
18448
+ enum:
18449
+ - group
18450
+ slug:
18451
+ description: Page's slug in its direct parent
18452
+ type: string
18453
+ pages:
18454
+ type: array
18455
+ minLength: 1
18456
+ items:
18457
+ oneOf:
18458
+ - $ref: "#/components/schemas/InputPageDocument"
18459
+ - $ref: "#/components/schemas/InputPageLink"
18460
+ - $ref: "#/components/schemas/InputPageComputed"
18461
+ required:
18462
+ - type
18463
+ - pages
18464
+ InputPage:
18465
+ oneOf:
18466
+ - $ref: "#/components/schemas/InputPageDocument"
18467
+ - $ref: "#/components/schemas/InputPageLink"
18468
+ - $ref: "#/components/schemas/InputPageComputed"
18469
+ - $ref: "#/components/schemas/InputPageGroup"
18470
+ InputFile:
18471
+ type: object
18472
+ properties:
18473
+ id:
18474
+ type: string
18475
+ name:
18476
+ type: string
18477
+ contentType:
18478
+ type: string
18479
+ downloadURL:
18480
+ type: string
18481
+ size:
18482
+ type: number
18483
+ dimensions:
18484
+ type: object
18485
+ description: For images, it contains the dimensions of it.
18486
+ properties:
18487
+ width:
18488
+ type: number
18489
+ height:
18490
+ type: number
18491
+ required:
18492
+ - width
18493
+ - height
18494
+ required:
18495
+ - name
18496
+ - contentType
18497
+ - downloadURL
18498
+ - size
17666
18499
  RevisionSemanticChangeType:
17667
18500
  type: string
17668
18501
  description: The type of semantic change.
@@ -17745,6 +18578,26 @@ components:
17745
18578
  - integration
17746
18579
  - signingSecrets
17747
18580
  - secrets
18581
+ ContentComputeDocumentEventResponse:
18582
+ type: object
18583
+ description: Response expected for an event of type `content_compute_document`.
18584
+ properties:
18585
+ document:
18586
+ $ref: "#/components/schemas/Document"
18587
+ required:
18588
+ - document
18589
+ ContentComputeRevisionEventResponse:
18590
+ type: object
18591
+ description: Response expected for an event of type `content_compute_pages`.
18592
+ properties:
18593
+ pages:
18594
+ type: array
18595
+ items:
18596
+ $ref: "#/components/schemas/InputPage"
18597
+ files:
18598
+ type: array
18599
+ items:
18600
+ $ref: "#/components/schemas/InputFile"
17748
18601
  BillingTrialStatus:
17749
18602
  type: string
17750
18603
  enum:
@@ -18571,6 +19424,34 @@ components:
18571
19424
  - channel
18572
19425
  - site
18573
19426
  - siteShareLink
19427
+ SiteSectionsChannel:
19428
+ type: object
19429
+ description: Subscription channel for changes in site sections in an organization.
19430
+ properties:
19431
+ channel:
19432
+ type: string
19433
+ enum:
19434
+ - site-sections
19435
+ site:
19436
+ type: string
19437
+ required:
19438
+ - channel
19439
+ - site
19440
+ SiteSectionChannel:
19441
+ type: object
19442
+ properties:
19443
+ channel:
19444
+ type: string
19445
+ enum:
19446
+ - site-section
19447
+ site:
19448
+ type: string
19449
+ siteSection:
19450
+ type: string
19451
+ required:
19452
+ - channel
19453
+ - site
19454
+ - siteSection
18574
19455
  CustomHostnameChannel:
18575
19456
  type: object
18576
19457
  properties:
@@ -18640,6 +19521,8 @@ components:
18640
19521
  - $ref: "#/components/schemas/SitePublishingAuthChannel"
18641
19522
  - $ref: "#/components/schemas/SiteShareLinksChannel"
18642
19523
  - $ref: "#/components/schemas/SiteShareLinkChannel"
19524
+ - $ref: "#/components/schemas/SiteSectionsChannel"
19525
+ - $ref: "#/components/schemas/SiteSectionChannel"
18643
19526
  - $ref: "#/components/schemas/CustomHostnameChannel"
18644
19527
  discriminator:
18645
19528
  propertyName: channel