@gitbook/api 0.62.0 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.yaml CHANGED
@@ -990,7 +990,46 @@ paths:
990
990
  $ref: "#/components/schemas/RevisionPage"
991
991
  default:
992
992
  $ref: "#/components/responses/UnexpectedError"
993
- "/spaces/{spaceId}/content/pages/{pageId}/backlinks":
993
+ "/spaces/{spaceId}/content/page/{pageId}/links":
994
+ get:
995
+ operationId: listPageLinksInSpace
996
+ summary: List all links in a page
997
+ tags:
998
+ - spaces
999
+ - links
1000
+ security:
1001
+ - user: []
1002
+ parameters:
1003
+ - $ref: "#/components/parameters/spaceId"
1004
+ - $ref: "#/components/parameters/pageId"
1005
+ - $ref: "#/components/parameters/listPage"
1006
+ - $ref: "#/components/parameters/listLimit"
1007
+ - name: status
1008
+ in: query
1009
+ schema:
1010
+ $ref: "#/components/schemas/ContentReferenceStatus"
1011
+ responses:
1012
+ "200":
1013
+ description: OK
1014
+ content:
1015
+ application/json:
1016
+ schema:
1017
+ allOf:
1018
+ - $ref: "#/components/schemas/List"
1019
+ - type: object
1020
+ properties:
1021
+ stats:
1022
+ $ref: "#/components/schemas/ContentReferencesStats"
1023
+ items:
1024
+ type: array
1025
+ items:
1026
+ $ref: "#/components/schemas/ContentReferenceUsage"
1027
+ required:
1028
+ - items
1029
+ - stats
1030
+ default:
1031
+ $ref: "#/components/responses/UnexpectedError"
1032
+ "/spaces/{spaceId}/content/page/{pageId}/backlinks":
994
1033
  get:
995
1034
  operationId: listSpacePageBacklinks
996
1035
  summary: Get backlink locations for a page existing in a space.
@@ -1941,6 +1980,41 @@ paths:
1941
1980
  $ref: "#/components/schemas/RevisionPage"
1942
1981
  default:
1943
1982
  $ref: "#/components/responses/UnexpectedError"
1983
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links":
1984
+ get:
1985
+ operationId: listPageLinksInChangeRequest
1986
+ summary: List all links in a page inside a change request.
1987
+ tags:
1988
+ - spaces
1989
+ security:
1990
+ - user: []
1991
+ parameters:
1992
+ - $ref: "#/components/parameters/spaceId"
1993
+ - $ref: "#/components/parameters/changeRequestId"
1994
+ - $ref: "#/components/parameters/pageId"
1995
+ - $ref: "#/components/parameters/listPage"
1996
+ - $ref: "#/components/parameters/listLimit"
1997
+ responses:
1998
+ "200":
1999
+ description: OK
2000
+ content:
2001
+ application/json:
2002
+ schema:
2003
+ allOf:
2004
+ - $ref: "#/components/schemas/List"
2005
+ - type: object
2006
+ properties:
2007
+ stats:
2008
+ $ref: "#/components/schemas/ContentReferencesStats"
2009
+ items:
2010
+ type: array
2011
+ items:
2012
+ $ref: "#/components/schemas/ContentReferenceUsage"
2013
+ required:
2014
+ - items
2015
+ - stats
2016
+ default:
2017
+ $ref: "#/components/responses/UnexpectedError"
1944
2018
  "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks":
1945
2019
  get:
1946
2020
  operationId: listChangeRequestPageBacklinks
@@ -2879,7 +2953,7 @@ paths:
2879
2953
  "/spaces/{spaceId}/links":
2880
2954
  get:
2881
2955
  operationId: listSpaceLinks
2882
- summary: Get all links in the context of a space including their status and location where they appear.
2956
+ summary: Get all links in a space including their status and location where they appear.
2883
2957
  tags:
2884
2958
  - spaces
2885
2959
  - links
@@ -2891,7 +2965,6 @@ paths:
2891
2965
  - $ref: "#/components/parameters/listLimit"
2892
2966
  - name: status
2893
2967
  in: query
2894
- required: false
2895
2968
  schema:
2896
2969
  $ref: "#/components/schemas/ContentReferenceStatus"
2897
2970
  responses:
@@ -3278,6 +3351,11 @@ paths:
3278
3351
  type: string
3279
3352
  pattern: ^[a-zA-Z0-9-_.]+$
3280
3353
  maxLength: 100
3354
+ - name: blocks
3355
+ in: query
3356
+ description: If true, returns only integrations with blocks. If false, returns only integrations without blocks.
3357
+ schema:
3358
+ type: boolean
3281
3359
  responses:
3282
3360
  "200":
3283
3361
  description: Paginated list of integrations
@@ -3513,17 +3591,16 @@ paths:
3513
3591
  $ref: "#/components/schemas/IntegrationSpaceInstallation"
3514
3592
  default:
3515
3593
  $ref: "#/components/responses/UnexpectedError"
3516
- "/integrations/{integrationName}/spaces/{spaceId}/dev":
3594
+ "/integrations/{integrationName}/dev":
3517
3595
  put:
3518
- operationId: updateIntegrationDevSpace
3519
- summary: Update the development space for an integration
3596
+ operationId: setIntegrationDevelopmentMode
3597
+ summary: Update an integration to be in development mode.
3520
3598
  tags:
3521
3599
  - integrations
3522
3600
  security:
3523
3601
  - user: []
3524
3602
  parameters:
3525
3603
  - $ref: "#/components/parameters/integrationName"
3526
- - $ref: "#/components/parameters/spaceId"
3527
3604
  requestBody:
3528
3605
  required: true
3529
3606
  content:
@@ -3536,31 +3613,32 @@ paths:
3536
3613
  description: URL of the tunnel to dispatch integration events to
3537
3614
  minLength: 1
3538
3615
  maxLength: 256
3616
+ all:
3617
+ type: boolean
3618
+ default: false
3619
+ description: |
3620
+ If set to true, all requests will be forwarded to the tunnel, not just from the owning organization.
3539
3621
  required:
3540
3622
  - tunnelUrl
3541
3623
  responses:
3542
3624
  "204":
3543
- description: Updated development space successfully
3625
+ description: Updated development mode successfully
3544
3626
  "404":
3545
3627
  $ref: "#/components/responses/NotFoundError"
3546
3628
  default:
3547
3629
  $ref: "#/components/responses/UnexpectedError"
3548
3630
  delete:
3549
- operationId: removeIntegrationDevSpace
3550
- summary: Remove the development space for an integration
3631
+ operationId: disableIntegrationDevelopmentMode
3632
+ summary: Disable the development mode on an integration.
3551
3633
  tags:
3552
3634
  - integrations
3553
3635
  security:
3554
3636
  - user: []
3555
3637
  parameters:
3556
3638
  - $ref: "#/components/parameters/integrationName"
3557
- - $ref: "#/components/parameters/spaceId"
3558
3639
  responses:
3559
- "204":
3560
- description: Removed development space successfully
3561
- "404":
3562
- description: No matching integration dev space found
3563
- $ref: "#/components/responses/NotFoundError"
3640
+ "205":
3641
+ description: Disabled development mode successfully
3564
3642
  default:
3565
3643
  $ref: "#/components/responses/UnexpectedError"
3566
3644
  "/integrations/{integrationName}/render":
@@ -4764,6 +4842,8 @@ paths:
4764
4842
  - user-internal: []
4765
4843
  parameters:
4766
4844
  - $ref: "#/components/parameters/organizationId"
4845
+ - $ref: "#/components/parameters/successReturnURL"
4846
+ - $ref: "#/components/parameters/cancelReturnURL"
4767
4847
  responses:
4768
4848
  "200":
4769
4849
  description: OK
@@ -4829,9 +4909,9 @@ paths:
4829
4909
  description: The desired amount of published premium sites
4830
4910
  schema:
4831
4911
  type: number
4832
- - name: audienceSites
4912
+ - name: ultimateSites
4833
4913
  in: query
4834
- description: The desired amount of published audience sites
4914
+ description: The desired amount of published ultimate sites
4835
4915
  schema:
4836
4916
  type: number
4837
4917
  responses:
@@ -6150,6 +6230,14 @@ paths:
6150
6230
  - $ref: "#/components/parameters/organizationId"
6151
6231
  - $ref: "#/components/parameters/listPage"
6152
6232
  - $ref: "#/components/parameters/listLimit"
6233
+ - name: ids
6234
+ in: query
6235
+ description: A list of IDs to filter the synced blocks.
6236
+ required: false
6237
+ schema:
6238
+ type: array
6239
+ items:
6240
+ type: string
6153
6241
  responses:
6154
6242
  "200":
6155
6243
  description: OK
@@ -6184,12 +6272,13 @@ paths:
6184
6272
  schema:
6185
6273
  type: object
6186
6274
  required:
6187
- - document
6275
+ - content
6188
6276
  properties:
6189
6277
  title:
6190
6278
  type: string
6191
6279
  description: Title of synced block
6192
- document:
6280
+ content:
6281
+ description: The content of the synced block. For now, only JSON documents are supported.
6193
6282
  $ref: "#/components/schemas/Document"
6194
6283
  responses:
6195
6284
  "201":
@@ -6225,7 +6314,7 @@ paths:
6225
6314
  $ref: "#/components/schemas/SyncedBlock"
6226
6315
  default:
6227
6316
  $ref: "#/components/responses/UnexpectedError"
6228
- put:
6317
+ patch:
6229
6318
  operationId: updateSyncedBlock
6230
6319
  summary: Update an existing synced block.
6231
6320
  tags:
@@ -6245,11 +6334,29 @@ paths:
6245
6334
  title:
6246
6335
  type: string
6247
6336
  description: A new title for the Synced Block.
6337
+ description:
6338
+ type: string
6339
+ description: A new description for the Synced Block.
6248
6340
  responses:
6249
6341
  "200":
6250
6342
  description: OK
6251
6343
  default:
6252
6344
  $ref: "#/components/responses/UnexpectedError"
6345
+ delete:
6346
+ operationId: deleteSyncedBlock
6347
+ summary: Delete a synced block by its ID
6348
+ tags:
6349
+ - organizations
6350
+ security:
6351
+ - user: []
6352
+ parameters:
6353
+ - $ref: "#/components/parameters/organizationId"
6354
+ - $ref: "#/components/parameters/syncedBlockId"
6355
+ responses:
6356
+ "204":
6357
+ description: OK
6358
+ default:
6359
+ $ref: "#/components/responses/UnexpectedError"
6253
6360
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content":
6254
6361
  get:
6255
6362
  operationId: getSyncedBlockContent
@@ -6282,7 +6389,7 @@ paths:
6282
6389
  $ref: "#/components/responses/UnexpectedError"
6283
6390
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks":
6284
6391
  get:
6285
- operationId: getSyncedBlockBacklinks
6392
+ operationId: listSyncedBlockBacklinks
6286
6393
  summary: Get a list of pages that reference this synced block.
6287
6394
  tags:
6288
6395
  - organizations
@@ -6293,6 +6400,16 @@ paths:
6293
6400
  - $ref: "#/components/parameters/syncedBlockId"
6294
6401
  - $ref: "#/components/parameters/listPage"
6295
6402
  - $ref: "#/components/parameters/listLimit"
6403
+ - name: changeRequestId
6404
+ in: query
6405
+ description: Filter backlinks relative to a change request.
6406
+ schema:
6407
+ type: string
6408
+ - name: spaceId
6409
+ in: query
6410
+ description: Filter backlinks relative to a space.
6411
+ schema:
6412
+ type: string
6296
6413
  responses:
6297
6414
  "200":
6298
6415
  description: OK
@@ -6308,7 +6425,7 @@ paths:
6308
6425
  items:
6309
6426
  type: array
6310
6427
  items:
6311
- $ref: "#/components/schemas/ContentLocation"
6428
+ $ref: "#/components/schemas/ContentLocationPage"
6312
6429
  default:
6313
6430
  $ref: "#/components/responses/UnexpectedError"
6314
6431
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/usage/spaces":
@@ -6466,6 +6583,14 @@ paths:
6466
6583
  required: false
6467
6584
  schema:
6468
6585
  type: boolean
6586
+ - name: type
6587
+ in: query
6588
+ description: Filter by site type
6589
+ required: false
6590
+ schema:
6591
+ type: array
6592
+ items:
6593
+ $ref: "#/components/schemas/SiteType"
6469
6594
  responses:
6470
6595
  "200":
6471
6596
  description: OK
@@ -6798,6 +6923,50 @@ paths:
6798
6923
  description: Site share link has been deleted
6799
6924
  default:
6800
6925
  $ref: "#/components/responses/UnexpectedError"
6926
+ "/orgs/{organizationId}/sites/{siteId}/structure":
6927
+ get:
6928
+ operationId: getSiteStructure
6929
+ summary: Get the structure of a site which includes site-sections and site-spaces
6930
+ tags:
6931
+ - sites
6932
+ security:
6933
+ - user: []
6934
+ parameters:
6935
+ - $ref: "#/components/parameters/organizationId"
6936
+ - $ref: "#/components/parameters/siteId"
6937
+ - $ref: "#/components/parameters/siteShareKey"
6938
+ responses:
6939
+ "200":
6940
+ description: OK
6941
+ content:
6942
+ application/json:
6943
+ schema:
6944
+ oneOf:
6945
+ - type: object
6946
+ properties:
6947
+ type:
6948
+ type: string
6949
+ enum:
6950
+ - sections
6951
+ structure:
6952
+ type: array
6953
+ items:
6954
+ $ref: "#/components/schemas/SiteSection"
6955
+ - type: object
6956
+ properties:
6957
+ type:
6958
+ type: string
6959
+ enum:
6960
+ - siteSpaces
6961
+ structure:
6962
+ type: array
6963
+ items:
6964
+ $ref: "#/components/schemas/SiteSpace"
6965
+ "404":
6966
+ description: No matching site found
6967
+ $ref: "#/components/responses/NotFoundError"
6968
+ default:
6969
+ $ref: "#/components/responses/UnexpectedError"
6801
6970
  "/orgs/{organizationId}/sites/{siteId}/plan":
6802
6971
  post:
6803
6972
  operationId: updateSitePlan
@@ -6809,16 +6978,8 @@ paths:
6809
6978
  parameters:
6810
6979
  - $ref: "#/components/parameters/organizationId"
6811
6980
  - $ref: "#/components/parameters/siteId"
6812
- - in: query
6813
- name: successReturnURL
6814
- description: The app screen URL to bring the user back to after a succesfull checkout.
6815
- schema:
6816
- type: string
6817
- - in: query
6818
- name: cancelReturnURL
6819
- description: The app screen URL to bring the user back to after a canceled checkout.
6820
- schema:
6821
- type: string
6981
+ - $ref: "#/components/parameters/successReturnURL"
6982
+ - $ref: "#/components/parameters/cancelReturnURL"
6822
6983
  requestBody:
6823
6984
  required: true
6824
6985
  content:
@@ -7157,6 +7318,9 @@ paths:
7157
7318
  spaceId:
7158
7319
  type: string
7159
7320
  description: ID of the space
7321
+ sectionId:
7322
+ type: string
7323
+ 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.
7160
7324
  required:
7161
7325
  - spaceId
7162
7326
  responses:
@@ -7209,6 +7373,124 @@ paths:
7209
7373
  $ref: "#/components/schemas/SiteSpace"
7210
7374
  default:
7211
7375
  $ref: "#/components/responses/UnexpectedError"
7376
+ "/orgs/{organizationId}/sites/{siteId}/sections":
7377
+ post:
7378
+ operationId: addSectionToSite
7379
+ summary: Add a section to a site in an organization
7380
+ tags:
7381
+ - sites
7382
+ security:
7383
+ - user: []
7384
+ parameters:
7385
+ - $ref: "#/components/parameters/organizationId"
7386
+ - $ref: "#/components/parameters/siteId"
7387
+ requestBody:
7388
+ required: true
7389
+ content:
7390
+ application/json:
7391
+ schema:
7392
+ type: object
7393
+ properties:
7394
+ spaceId:
7395
+ type: string
7396
+ description: ID of the space to be added to the section as a site space variant
7397
+ title:
7398
+ type: string
7399
+ description: Title of the section
7400
+ maxLength: 64
7401
+ required:
7402
+ - spaceId
7403
+ responses:
7404
+ "201":
7405
+ description: Section added to the site
7406
+ headers:
7407
+ Location:
7408
+ description: API URL for the newly created site-section relationship
7409
+ schema:
7410
+ type: string
7411
+ content:
7412
+ application/json:
7413
+ schema:
7414
+ $ref: "#/components/schemas/SiteSection"
7415
+ default:
7416
+ $ref: "#/components/responses/UnexpectedError"
7417
+ get:
7418
+ operationId: listSiteSections
7419
+ summary: List all the site sections under a site in an organization
7420
+ tags:
7421
+ - sites
7422
+ security:
7423
+ - user: []
7424
+ parameters:
7425
+ - $ref: "#/components/parameters/organizationId"
7426
+ - $ref: "#/components/parameters/siteId"
7427
+ - $ref: "#/components/parameters/siteShareKey"
7428
+ - $ref: "#/components/parameters/listPage"
7429
+ - $ref: "#/components/parameters/listLimit"
7430
+ responses:
7431
+ "200":
7432
+ description: OK
7433
+ content:
7434
+ application/json:
7435
+ schema:
7436
+ allOf:
7437
+ - $ref: "#/components/schemas/List"
7438
+ - type: object
7439
+ required:
7440
+ - items
7441
+ properties:
7442
+ items:
7443
+ type: array
7444
+ items:
7445
+ $ref: "#/components/schemas/SiteSection"
7446
+ default:
7447
+ $ref: "#/components/responses/UnexpectedError"
7448
+ "/orgs/{organizationId}/sites/{siteId}/sections/{siteSectionId}":
7449
+ patch:
7450
+ operationId: updateSiteSectionById
7451
+ summary: Update a section on a site in an organization
7452
+ tags:
7453
+ - sites
7454
+ security:
7455
+ - user: []
7456
+ parameters:
7457
+ - $ref: "#/components/parameters/organizationId"
7458
+ - $ref: "#/components/parameters/siteId"
7459
+ - $ref: "#/components/parameters/siteSectionId"
7460
+ requestBody:
7461
+ required: true
7462
+ content:
7463
+ application/json:
7464
+ schema:
7465
+ type: object
7466
+ properties:
7467
+ path:
7468
+ $ref: "#/components/schemas/SiteSectionPath"
7469
+ responses:
7470
+ "200":
7471
+ description: OK
7472
+ content:
7473
+ application/json:
7474
+ schema:
7475
+ $ref: "#/components/schemas/SiteSection"
7476
+ default:
7477
+ $ref: "#/components/responses/UnexpectedError"
7478
+ delete:
7479
+ operationId: deleteSiteSectionById
7480
+ summary: Delete a section on a site in an organization
7481
+ tags:
7482
+ - sites
7483
+ security:
7484
+ - user: []
7485
+ parameters:
7486
+ - $ref: "#/components/parameters/organizationId"
7487
+ - $ref: "#/components/parameters/siteId"
7488
+ - $ref: "#/components/parameters/siteSectionId"
7489
+ responses:
7490
+ "205":
7491
+ description: Site section has been deleted
7492
+ default:
7493
+ $ref: "#/components/responses/UnexpectedError"
7212
7494
  "/orgs/{organizationId}/sites/{siteId}/search":
7213
7495
  post:
7214
7496
  operationId: searchSiteContent
@@ -7341,7 +7623,245 @@ paths:
7341
7623
  application/json:
7342
7624
  schema:
7343
7625
  description: The settings that overrides the site customization settings.
7344
- $ref: "#/components/schemas/SiteSpaceCustomizationOverrides"
7626
+ type: object
7627
+ properties:
7628
+ title:
7629
+ 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.
7630
+ oneOf:
7631
+ - $ref: "#/components/schemas/SiteTitle"
7632
+ - type: string
7633
+ nullable: true
7634
+ enum:
7635
+ - null
7636
+ styling:
7637
+ type: object
7638
+ properties:
7639
+ primaryColor:
7640
+ description: The primary color used for links and UI text. Set to null to reset the override.
7641
+ oneOf:
7642
+ - $ref: "#/components/schemas/CustomizationThemedColor"
7643
+ - type: string
7644
+ nullable: true
7645
+ enum:
7646
+ - null
7647
+ corners:
7648
+ description: The style of the corners to use. Set to null to reset the override.
7649
+ oneOf:
7650
+ - $ref: "#/components/schemas/CustomizationCorners"
7651
+ - type: string
7652
+ nullable: true
7653
+ enum:
7654
+ - null
7655
+ font:
7656
+ description: The font family to use for the content. Set to null to reset the override.
7657
+ oneOf:
7658
+ - $ref: "#/components/schemas/CustomizationFont"
7659
+ - type: string
7660
+ nullable: true
7661
+ enum:
7662
+ - null
7663
+ icons:
7664
+ description: The icons style to use for the content. Set to null to reset the override.
7665
+ oneOf:
7666
+ - $ref: "#/components/schemas/CustomizationIconsStyle"
7667
+ - type: string
7668
+ nullable: true
7669
+ enum:
7670
+ - null
7671
+ background:
7672
+ description: The style of background to use. Set to null to reset the override.
7673
+ oneOf:
7674
+ - $ref: "#/components/schemas/CustomizationBackground"
7675
+ - type: string
7676
+ nullable: true
7677
+ enum:
7678
+ - null
7679
+ internationalization:
7680
+ type: object
7681
+ properties:
7682
+ locale:
7683
+ description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
7684
+ oneOf:
7685
+ - $ref: "#/components/schemas/CustomizationLocale"
7686
+ - type: string
7687
+ nullable: true
7688
+ enum:
7689
+ - null
7690
+ required:
7691
+ - locale
7692
+ favicon:
7693
+ description: The favicon to use. Set to null to reset the override.
7694
+ oneOf:
7695
+ - type: object
7696
+ properties:
7697
+ icon:
7698
+ $ref: "#/components/schemas/CustomizationThemedURL"
7699
+ required:
7700
+ - icon
7701
+ - type: object
7702
+ properties:
7703
+ emoji:
7704
+ $ref: "#/components/schemas/Emoji"
7705
+ required:
7706
+ - emoji
7707
+ - type: object
7708
+ nullable: true
7709
+ properties: {}
7710
+ additionalProperties: false
7711
+ header:
7712
+ type: object
7713
+ properties:
7714
+ preset:
7715
+ description: The theme preset to use. Set to null to reset the override.
7716
+ oneOf:
7717
+ - $ref: "#/components/schemas/CustomizationHeaderPreset"
7718
+ - type: string
7719
+ nullable: true
7720
+ enum:
7721
+ - null
7722
+ logo:
7723
+ description: The header logo to use. Set to null to reset the override.
7724
+ oneOf:
7725
+ - $ref: "#/components/schemas/CustomizationThemedURL"
7726
+ - type: string
7727
+ nullable: true
7728
+ enum:
7729
+ - null
7730
+ backgroundColor:
7731
+ description: The background color used in the header. Set to null to reset the override.
7732
+ oneOf:
7733
+ - $ref: "#/components/schemas/CustomizationThemedColor"
7734
+ - type: string
7735
+ nullable: true
7736
+ enum:
7737
+ - null
7738
+ linkColor:
7739
+ description: The color used by the links in the header. Set to null to reset the override.
7740
+ oneOf:
7741
+ - $ref: "#/components/schemas/CustomizationThemedColor"
7742
+ - type: string
7743
+ nullable: true
7744
+ enum:
7745
+ - null
7746
+ links:
7747
+ type: array
7748
+ description: The links that are displayed in the header. Set to null to reset the override.
7749
+ nullable: true
7750
+ items:
7751
+ $ref: "#/components/schemas/CustomizationHeaderLink"
7752
+ footer:
7753
+ type: object
7754
+ properties:
7755
+ logo:
7756
+ description: The logo displayed in the footer. Set to null to reset the override.
7757
+ oneOf:
7758
+ - $ref: "#/components/schemas/CustomizationThemedURL"
7759
+ - type: string
7760
+ nullable: true
7761
+ enum:
7762
+ - null
7763
+ groups:
7764
+ type: array
7765
+ description: The links groups that are displayed in the footer. Set to null to reset the override.
7766
+ nullable: true
7767
+ items:
7768
+ $ref: "#/components/schemas/CustomizationFooterGroup"
7769
+ copyright:
7770
+ type: string
7771
+ description: The copyright text that is displayed in the footer. Set to null to reset the override.
7772
+ nullable: true
7773
+ maxLength: 300
7774
+ themes:
7775
+ type: object
7776
+ properties:
7777
+ default:
7778
+ description: The theme mode default value. Set to null to reset the override.
7779
+ oneOf:
7780
+ - $ref: "#/components/schemas/CustomizationThemeMode"
7781
+ - type: string
7782
+ nullable: true
7783
+ enum:
7784
+ - null
7785
+ toggeable:
7786
+ description: Should the reader be able to switch between dark and light mode. Set to null to reset the override.
7787
+ type: boolean
7788
+ nullable: true
7789
+ pdf:
7790
+ type: object
7791
+ properties:
7792
+ enabled:
7793
+ type: boolean
7794
+ description: If true, PDF export is enabled for the published site. Set to null to reset the override.
7795
+ nullable: true
7796
+ required:
7797
+ - enabled
7798
+ feedback:
7799
+ type: object
7800
+ properties:
7801
+ enabled:
7802
+ type: boolean
7803
+ description: If true, feedback gathering is enabled. Set to null to reset the override.
7804
+ nullable: true
7805
+ required:
7806
+ - enabled
7807
+ aiSearch:
7808
+ type: object
7809
+ properties:
7810
+ enabled:
7811
+ type: boolean
7812
+ description: If true, AI search is enabled. Set to null to reset the override.
7813
+ nullable: true
7814
+ required:
7815
+ - enabled
7816
+ git:
7817
+ type: object
7818
+ properties:
7819
+ showEditLink:
7820
+ type: boolean
7821
+ 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.
7822
+ nullable: true
7823
+ required:
7824
+ - showEditLink
7825
+ pagination:
7826
+ type: object
7827
+ properties:
7828
+ enabled:
7829
+ type: boolean
7830
+ description: Whether the pagination navigation should be displayed on pages. Set to null to reset the override.
7831
+ nullable: true
7832
+ required:
7833
+ - enabled
7834
+ trademark:
7835
+ type: object
7836
+ properties:
7837
+ enabled:
7838
+ type: boolean
7839
+ description: Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override.
7840
+ nullable: true
7841
+ required:
7842
+ - enabled
7843
+ privacyPolicy:
7844
+ type: object
7845
+ properties:
7846
+ url:
7847
+ description: The custom link to the privacy policy. Set to null to reset the override.
7848
+ oneOf:
7849
+ - $ref: "#/components/schemas/URL"
7850
+ - type: string
7851
+ nullable: true
7852
+ enum:
7853
+ - null
7854
+ socialPreview:
7855
+ type: object
7856
+ properties:
7857
+ url:
7858
+ description: The URL for the social preview image. Set to null to reset the override.
7859
+ oneOf:
7860
+ - $ref: "#/components/schemas/URL"
7861
+ - type: string
7862
+ nullable: true
7863
+ enum:
7864
+ - null
7345
7865
  responses:
7346
7866
  "200":
7347
7867
  description: OK
@@ -7397,6 +7917,10 @@ paths:
7397
7917
  - $ref: "#/components/parameters/organizationId"
7398
7918
  - $ref: "#/components/parameters/siteId"
7399
7919
  - $ref: "#/components/parameters/siteSpaceId"
7920
+ - name: period
7921
+ in: query
7922
+ schema:
7923
+ $ref: "#/components/schemas/AnalyticsSearchPeriod"
7400
7924
  responses:
7401
7925
  "200":
7402
7926
  description: Content analytics per page.
@@ -7541,6 +8065,38 @@ paths:
7541
8065
  application/json:
7542
8066
  schema:
7543
8067
  $ref: "#/components/schemas/SiteTrackPageView"
8068
+ "/orgs/{organizationId}/sites/{siteId}/insights/search":
8069
+ get:
8070
+ operationId: getSearchAnalyticsForSiteById
8071
+ summary: Get an overview of the top search queries in a site.
8072
+ tags:
8073
+ - analytics
8074
+ - sites
8075
+ security:
8076
+ - user: []
8077
+ parameters:
8078
+ - $ref: "#/components/parameters/organizationId"
8079
+ - $ref: "#/components/parameters/siteId"
8080
+ - name: period
8081
+ in: query
8082
+ schema:
8083
+ $ref: "#/components/schemas/AnalyticsSearchPeriod"
8084
+ - name: siteSpaceIds
8085
+ in: query
8086
+ schema:
8087
+ type: array
8088
+ items:
8089
+ type: string
8090
+ description: The site spaces to filter the search on
8091
+ responses:
8092
+ "200":
8093
+ description: Top queries searched on this site.
8094
+ content:
8095
+ application/json:
8096
+ schema:
8097
+ $ref: "#/components/schemas/AnalyticsTopSearches"
8098
+ default:
8099
+ $ref: "#/components/responses/UnexpectedError"
7544
8100
  "/orgs/{organizationId}/sites/{siteId}/ads":
7545
8101
  post:
7546
8102
  operationId: updateSiteAdsById
@@ -8187,6 +8743,18 @@ components:
8187
8743
  description: The unique id of the invite
8188
8744
  schema:
8189
8745
  type: string
8746
+ successReturnURL:
8747
+ name: successReturnURL
8748
+ in: query
8749
+ description: The app screen URL to bring the user back to after a successful checkout.
8750
+ schema:
8751
+ type: string
8752
+ cancelReturnURL:
8753
+ name: cancelReturnURL
8754
+ in: query
8755
+ description: The app screen URL to bring the user back to after a canceled checkout.
8756
+ schema:
8757
+ type: string
8190
8758
  samlProviderId:
8191
8759
  name: samlProviderId
8192
8760
  in: path
@@ -8230,6 +8798,13 @@ components:
8230
8798
  schema:
8231
8799
  type: boolean
8232
8800
  default: false
8801
+ siteSectionId:
8802
+ name: siteSectionId
8803
+ in: path
8804
+ required: true
8805
+ description: The unique id of the section within a site
8806
+ schema:
8807
+ type: string
8233
8808
  siteSpaceId:
8234
8809
  name: siteSpaceId
8235
8810
  in: path
@@ -12398,10 +12973,16 @@ components:
12398
12973
  createdAt:
12399
12974
  type: string
12400
12975
  format: date-time
12976
+ createdBy:
12977
+ $ref: "#/components/schemas/User"
12401
12978
  title:
12402
12979
  type: string
12403
12980
  description: Title describing the synced block.
12404
12981
  maxLength: 100
12982
+ description:
12983
+ type: string
12984
+ description: Description of the synced block.
12985
+ maxLength: 500
12405
12986
  usage:
12406
12987
  type: object
12407
12988
  description: Usage of synced block
@@ -12418,13 +12999,18 @@ components:
12418
12999
  location:
12419
13000
  description: URL of the synced block in the API
12420
13001
  $ref: "#/components/schemas/URL"
13002
+ app:
13003
+ description: URL of the synced block in the app
13004
+ $ref: "#/components/schemas/URL"
12421
13005
  required:
12422
13006
  - location
13007
+ - app
12423
13008
  required:
12424
13009
  - id
12425
13010
  - organization
12426
- - source
12427
13011
  - createdAt
13012
+ - createdBy
13013
+ - source
12428
13014
  - usage
12429
13015
  - urls
12430
13016
  ContentLocationSyncedBlock:
@@ -12455,6 +13041,53 @@ components:
12455
13041
  - $ref: "#/components/schemas/ContentLocationSyncedBlock"
12456
13042
  discriminator:
12457
13043
  propertyName: kind
13044
+ ContentReferenceStatus:
13045
+ type: string
13046
+ enum:
13047
+ - ok
13048
+ - broken
13049
+ - in-app
13050
+ description: |
13051
+ Text to display to represent the reference. Possible values include:
13052
+ - `ok` - No problems detected for this content reference.
13053
+ - `broken` - The target does not exist in the revision.
13054
+ - `in-app` - The target is a URL link pointing to an internal location in the app.
13055
+ ContentReferencesStats:
13056
+ type: object
13057
+ properties:
13058
+ total:
13059
+ description: Total count of links
13060
+ type: number
13061
+ broken:
13062
+ type: object
13063
+ properties:
13064
+ total:
13065
+ description: Count of broken links
13066
+ type: number
13067
+ changeRequest:
13068
+ description: Count of broken links that were broken in current change request, if applicable.
13069
+ type: number
13070
+ required:
13071
+ - total
13072
+ required:
13073
+ - total
13074
+ - broken
13075
+ ContentReferenceUsage:
13076
+ type: object
13077
+ properties:
13078
+ status:
13079
+ $ref: "#/components/schemas/ContentReferenceStatus"
13080
+ targetReference:
13081
+ description: The reference target where a list of pages are pointing at
13082
+ $ref: "#/components/schemas/ContentLocation"
13083
+ locationReferences:
13084
+ description: Pages locations where a link to the target is found.
13085
+ type: array
13086
+ items:
13087
+ $ref: "#/components/schemas/ContentLocation"
13088
+ required:
13089
+ - status
13090
+ - locationReferences
12458
13091
  CreateChangeRequest:
12459
13092
  type: object
12460
13093
  properties:
@@ -12721,54 +13354,7 @@ components:
12721
13354
  required:
12722
13355
  - kind
12723
13356
  - team
12724
- ContentReferenceStatus:
12725
- type: string
12726
- enum:
12727
- - ok
12728
- - broken
12729
- - in-app
12730
- description: |
12731
- Text to display to represent the reference. Possible values include:
12732
- - `ok` - No problems detected for this content reference.
12733
- - `broken` - The target does not exist in the revision.
12734
- - `in-app` - The target is a URL link pointing to an internal location in the app.
12735
- ContentReferencesStats:
12736
- type: object
12737
- properties:
12738
- total:
12739
- description: Total count of links
12740
- type: number
12741
- broken:
12742
- type: object
12743
- properties:
12744
- total:
12745
- description: Count of broken links
12746
- type: number
12747
- changeRequest:
12748
- description: Count of broken links that were broken in current change request, if applicable.
12749
- type: number
12750
- required:
12751
- - total
12752
- required:
12753
- - total
12754
- - broken
12755
- ContentReferenceUsage:
12756
- type: object
12757
- properties:
12758
- status:
12759
- $ref: "#/components/schemas/ContentReferenceStatus"
12760
- targetReference:
12761
- description: The reference target where a list of pages are pointing at
12762
- $ref: "#/components/schemas/ContentLocation"
12763
- locationReferences:
12764
- description: Pages locations where a link to the target is found.
12765
- type: array
12766
- items:
12767
- $ref: "#/components/schemas/ContentLocation"
12768
- required:
12769
- - status
12770
- - locationReferences
12771
- PostCommentSchema:
13357
+ PostCommentSchema:
12772
13358
  type: object
12773
13359
  properties:
12774
13360
  node:
@@ -13266,6 +13852,7 @@ components:
13266
13852
  - ja
13267
13853
  - de
13268
13854
  - nl
13855
+ - no
13269
13856
  - pt-br
13270
13857
  CustomizationThemedURL:
13271
13858
  type: object
@@ -13300,6 +13887,12 @@ components:
13300
13887
  - $ref: "#/components/schemas/CustomizationContentLink"
13301
13888
  - type: object
13302
13889
  properties:
13890
+ style:
13891
+ type: string
13892
+ enum:
13893
+ - link
13894
+ - button-primary
13895
+ - button-secondary
13303
13896
  links:
13304
13897
  type: array
13305
13898
  items:
@@ -14657,6 +15250,7 @@ components:
14657
15250
  - $ref: "#/components/schemas/ContentKitText"
14658
15251
  - $ref: "#/components/schemas/ContentKitHint"
14659
15252
  - $ref: "#/components/schemas/ContentKitLink"
15253
+ - $ref: "#/components/schemas/ContentKitStepperStep"
14660
15254
  discriminator:
14661
15255
  propertyName: type
14662
15256
  ContentKitHStack:
@@ -15150,6 +15744,33 @@ components:
15150
15744
  required:
15151
15745
  - type
15152
15746
  - children
15747
+ ContentKitStepperStep:
15748
+ type: object
15749
+ properties:
15750
+ type:
15751
+ type: string
15752
+ enum:
15753
+ - step
15754
+ id:
15755
+ description: unique identifier for the step
15756
+ type: string
15757
+ title:
15758
+ description: title of the step
15759
+ type: string
15760
+ maxLength: 50
15761
+ next:
15762
+ description: indicates if the user can progress to the next step based on some internal validation or condition
15763
+ type: boolean
15764
+ default: false
15765
+ children:
15766
+ type: array
15767
+ items:
15768
+ $ref: "#/components/schemas/ContentKitDescendantElement"
15769
+ minItems: 1
15770
+ required:
15771
+ - type
15772
+ - id
15773
+ - children
15153
15774
  ContentKitBlockControl:
15154
15775
  type: object
15155
15776
  description: Control menu item displayed for the block.
@@ -15220,11 +15841,59 @@ components:
15220
15841
  required:
15221
15842
  - type
15222
15843
  - children
15844
+ ContentKitStepper:
15845
+ type: object
15846
+ properties:
15847
+ type:
15848
+ type: string
15849
+ enum:
15850
+ - stepper
15851
+ activeStep:
15852
+ type: string
15853
+ description: id of the currently active step
15854
+ onStepChange:
15855
+ $ref: "#/components/schemas/ContentKitAction"
15856
+ onComplete:
15857
+ $ref: "#/components/schemas/ContentKitAction"
15858
+ children:
15859
+ type: array
15860
+ items:
15861
+ $ref: "#/components/schemas/ContentKitStepperStep"
15862
+ minItems: 1
15863
+ required:
15864
+ - type
15865
+ - activeStep
15866
+ - onStepChange
15867
+ - onComplete
15868
+ - children
15869
+ ContentKitConfiguration:
15870
+ type: object
15871
+ 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.
15872
+ properties:
15873
+ type:
15874
+ type: string
15875
+ enum:
15876
+ - configuration
15877
+ children:
15878
+ oneOf:
15879
+ - type: array
15880
+ items:
15881
+ $ref: "#/components/schemas/ContentKitStepper"
15882
+ minItems: 1
15883
+ maxItems: 1
15884
+ - type: array
15885
+ items:
15886
+ $ref: "#/components/schemas/ContentKitDescendantElement"
15887
+ minItems: 1
15888
+ required:
15889
+ - type
15890
+ - children
15223
15891
  ContentKitRootElement:
15224
15892
  description: Element used as root
15225
15893
  oneOf:
15226
15894
  - $ref: "#/components/schemas/ContentKitBlock"
15227
15895
  - $ref: "#/components/schemas/ContentKitModal"
15896
+ - $ref: "#/components/schemas/ContentKitConfiguration"
15228
15897
  discriminator:
15229
15898
  propertyName: type
15230
15899
  ContentKitRenderOutput:
@@ -15638,20 +16307,23 @@ components:
15638
16307
  minProperties: 1
15639
16308
  properties:
15640
16309
  members:
15641
- type: array
15642
- items:
15643
- type: string
15644
- description: A list of member identifiers to be removed
15645
- premiumSites:
15646
- type: array
15647
- items:
15648
- type: string
15649
- description: A list of premium site identifiers to be unpublished
15650
- audienceSites:
15651
- type: array
15652
- items:
15653
- type: string
15654
- description: A list of audience site identifiers to be unpublished
16310
+ description: A list of member identifiers to be removed, `all` to remove all members but the current admin
16311
+ oneOf:
16312
+ - type: array
16313
+ items:
16314
+ type: string
16315
+ - type: string
16316
+ enum:
16317
+ - all
16318
+ sites:
16319
+ description: A list of site identifiers to be unpublished, 'all' to unpublish all sites
16320
+ oneOf:
16321
+ - type: array
16322
+ items:
16323
+ type: string
16324
+ - type: string
16325
+ enum:
16326
+ - all
15655
16327
  reason:
15656
16328
  type: string
15657
16329
  description: Reason that triggered the billing upgrade
@@ -15897,28 +16569,39 @@ components:
15897
16569
  OrganizationUsageSites:
15898
16570
  type: object
15899
16571
  description: Sites usage metrics of an organization
15900
- properties:
15901
- total:
15902
- description: Count of all sites
15903
- type: number
15904
- public:
15905
- description: Count of all public sites
15906
- type: number
15907
- unlisted:
15908
- description: Count of all unlisted sites
15909
- type: number
15910
- shareLink:
15911
- description: Count of all link-shared sites
15912
- type: number
15913
- visitorAuth:
15914
- description: Count of all visitor-authenticated sites
15915
- type: number
15916
- required:
15917
- - total
15918
- - public
15919
- - unlisted
15920
- - shareLink
15921
- - visitorAuth
16572
+ oneOf:
16573
+ - properties:
16574
+ total:
16575
+ description: Count of all sites
16576
+ type: number
16577
+ legacyBasic:
16578
+ description: Count of all legacy basic sites
16579
+ type: number
16580
+ legacyPremium:
16581
+ description: Count of all legacy premium sites
16582
+ type: number
16583
+ required:
16584
+ - total
16585
+ - legacyBasic
16586
+ - legacyPremium
16587
+ - properties:
16588
+ total:
16589
+ description: Count of all sites
16590
+ type: number
16591
+ basic:
16592
+ description: Count of all basic sites
16593
+ type: number
16594
+ premium:
16595
+ description: Count of all premium sites
16596
+ type: number
16597
+ ultimate:
16598
+ description: Count of all ultimate sites
16599
+ type: number
16600
+ required:
16601
+ - total
16602
+ - basic
16603
+ - premium
16604
+ - ultimate
15922
16605
  OrganizationUsageTeams:
15923
16606
  type: object
15924
16607
  description: Team members usage metrics of an organization
@@ -16245,7 +16928,7 @@ components:
16245
16928
  enum:
16246
16929
  - basic
16247
16930
  - premium
16248
- - audience
16931
+ - ultimate
16249
16932
  - legacy-basic
16250
16933
  - legacy-premium
16251
16934
  SiteTitle:
@@ -16448,6 +17131,97 @@ components:
16448
17131
  required:
16449
17132
  - type
16450
17133
  - plan
17134
+ SiteSectionPath:
17135
+ type: string
17136
+ description: Path to the section on the site
17137
+ minLength: 1
17138
+ maxLength: 100
17139
+ SiteSpacePath:
17140
+ type: string
17141
+ description: Path to the space on the site
17142
+ minLength: 1
17143
+ maxLength: 100
17144
+ SiteSpace:
17145
+ type: object
17146
+ properties:
17147
+ object:
17148
+ type: string
17149
+ description: The object type, which is always "site-space"
17150
+ enum:
17151
+ - site-space
17152
+ id:
17153
+ type: string
17154
+ description: Unique identifier of the site-space
17155
+ path:
17156
+ $ref: "#/components/schemas/SiteSpacePath"
17157
+ section:
17158
+ type: string
17159
+ description: ID of the section the space belongs to in the site
17160
+ space:
17161
+ $ref: "#/components/schemas/Space"
17162
+ title:
17163
+ type: string
17164
+ default:
17165
+ type: boolean
17166
+ description: Whether this is the default space for the site
17167
+ hasAdvancedCustomizationFeature:
17168
+ type: boolean
17169
+ description: Whether the space has advanced customization feature enabled
17170
+ urls:
17171
+ type: object
17172
+ description: URLs associated with the object
17173
+ properties:
17174
+ published:
17175
+ type: string
17176
+ description: URL of the published version of the site-space. Only defined when site is published.
17177
+ format: uri
17178
+ required:
17179
+ - location
17180
+ required:
17181
+ - id
17182
+ - space
17183
+ - title
17184
+ - path
17185
+ - urls
17186
+ SiteSection:
17187
+ type: object
17188
+ properties:
17189
+ object:
17190
+ type: string
17191
+ description: The object type, which is always "site-section"
17192
+ enum:
17193
+ - site-section
17194
+ id:
17195
+ type: string
17196
+ description: Unique identifier of the site section
17197
+ title:
17198
+ type: string
17199
+ description: Title of the site section
17200
+ default:
17201
+ type: boolean
17202
+ description: Whether this is the default section for the site
17203
+ path:
17204
+ $ref: "#/components/schemas/SiteSectionPath"
17205
+ siteSpaces:
17206
+ type: array
17207
+ items:
17208
+ $ref: "#/components/schemas/SiteSpace"
17209
+ urls:
17210
+ type: object
17211
+ description: URLs associated with the object
17212
+ properties:
17213
+ published:
17214
+ type: string
17215
+ description: URL of the published version of the site section. Only defined when site is published.
17216
+ format: uri
17217
+ required:
17218
+ - location
17219
+ required:
17220
+ - id
17221
+ - title
17222
+ - path
17223
+ - siteSpaces
17224
+ - urls
16451
17225
  SitePublishingAuth:
16452
17226
  allOf:
16453
17227
  - oneOf:
@@ -16683,285 +17457,6 @@ components:
16683
17457
  required:
16684
17458
  - script
16685
17459
  - cookies
16686
- SiteSpacePath:
16687
- type: string
16688
- description: Path to the space on the site
16689
- minLength: 1
16690
- maxLength: 100
16691
- SiteSpace:
16692
- type: object
16693
- properties:
16694
- object:
16695
- type: string
16696
- description: The object type, which is always "site-space"
16697
- enum:
16698
- - site-space
16699
- id:
16700
- type: string
16701
- description: Unique identifier of the site-space
16702
- path:
16703
- $ref: "#/components/schemas/SiteSpacePath"
16704
- space:
16705
- $ref: "#/components/schemas/Space"
16706
- title:
16707
- type: string
16708
- default:
16709
- type: boolean
16710
- description: Whether this is the default space for the site
16711
- hasAdvancedCustomizationFeature:
16712
- type: boolean
16713
- description: Whether the space has advanced customization feature enabled
16714
- urls:
16715
- type: object
16716
- description: URLs associated with the object
16717
- properties:
16718
- published:
16719
- type: string
16720
- description: URL of the published version of the site-space. Only defined when site is published.
16721
- format: uri
16722
- required:
16723
- - location
16724
- required:
16725
- - id
16726
- - space
16727
- - title
16728
- - path
16729
- - urls
16730
- SiteSpaceCustomizationOverrides:
16731
- type: object
16732
- properties:
16733
- title:
16734
- description: Title to use for the published site variant. If not defined, it'll fallback to the content title.
16735
- $ref: "#/components/schemas/SiteTitle"
16736
- styling:
16737
- type: object
16738
- properties:
16739
- primaryColor:
16740
- description: The primary color used for links and UI text. Set to null to reset the override.
16741
- oneOf:
16742
- - $ref: "#/components/schemas/CustomizationThemedColor"
16743
- - type: string
16744
- nullable: true
16745
- enum:
16746
- - null
16747
- corners:
16748
- description: The style of the corners to use. Set to null to reset the override.
16749
- oneOf:
16750
- - $ref: "#/components/schemas/CustomizationCorners"
16751
- - type: string
16752
- nullable: true
16753
- enum:
16754
- - null
16755
- font:
16756
- description: The font family to use for the content. Set to null to reset the override.
16757
- oneOf:
16758
- - $ref: "#/components/schemas/CustomizationFont"
16759
- - type: string
16760
- nullable: true
16761
- enum:
16762
- - null
16763
- icons:
16764
- description: The icons style to use for the content. Set to null to reset the override.
16765
- oneOf:
16766
- - $ref: "#/components/schemas/CustomizationIconsStyle"
16767
- - type: string
16768
- nullable: true
16769
- enum:
16770
- - null
16771
- background:
16772
- description: The style of background to use. Set to null to reset the override.
16773
- oneOf:
16774
- - $ref: "#/components/schemas/CustomizationBackground"
16775
- - type: string
16776
- nullable: true
16777
- enum:
16778
- - null
16779
- internationalization:
16780
- type: object
16781
- properties:
16782
- locale:
16783
- description: The locale to use for the non-custom elements of the UI. Set to null to reset the override.
16784
- oneOf:
16785
- - $ref: "#/components/schemas/CustomizationLocale"
16786
- - type: string
16787
- nullable: true
16788
- enum:
16789
- - null
16790
- required:
16791
- - locale
16792
- favicon:
16793
- description: The favicon to use. Set to null to reset the override.
16794
- oneOf:
16795
- - type: object
16796
- properties:
16797
- icon:
16798
- $ref: "#/components/schemas/CustomizationThemedURL"
16799
- required:
16800
- - icon
16801
- - type: object
16802
- properties:
16803
- emoji:
16804
- $ref: "#/components/schemas/Emoji"
16805
- required:
16806
- - emoji
16807
- - type: object
16808
- nullable: true
16809
- properties: {}
16810
- additionalProperties: false
16811
- header:
16812
- type: object
16813
- properties:
16814
- preset:
16815
- description: The theme preset to use. Set to null to reset the override.
16816
- oneOf:
16817
- - $ref: "#/components/schemas/CustomizationHeaderPreset"
16818
- - type: string
16819
- nullable: true
16820
- enum:
16821
- - null
16822
- logo:
16823
- description: The header logo to use. Set to null to reset the override.
16824
- oneOf:
16825
- - $ref: "#/components/schemas/CustomizationThemedURL"
16826
- - type: string
16827
- nullable: true
16828
- enum:
16829
- - null
16830
- backgroundColor:
16831
- description: The background color used in the header. Set to null to reset the override.
16832
- oneOf:
16833
- - $ref: "#/components/schemas/CustomizationThemedColor"
16834
- - type: string
16835
- nullable: true
16836
- enum:
16837
- - null
16838
- linkColor:
16839
- description: The color used by the links in the header. Set to null to reset the override.
16840
- oneOf:
16841
- - $ref: "#/components/schemas/CustomizationThemedColor"
16842
- - type: string
16843
- nullable: true
16844
- enum:
16845
- - null
16846
- links:
16847
- type: array
16848
- description: The links that are displayed in the header. Set to null to reset the override.
16849
- nullable: true
16850
- items:
16851
- $ref: "#/components/schemas/CustomizationHeaderLink"
16852
- footer:
16853
- type: object
16854
- properties:
16855
- logo:
16856
- description: The logo displayed in the footer. Set to null to reset the override.
16857
- oneOf:
16858
- - $ref: "#/components/schemas/CustomizationThemedURL"
16859
- - type: string
16860
- nullable: true
16861
- enum:
16862
- - null
16863
- groups:
16864
- type: array
16865
- description: The links groups that are displayed in the footer. Set to null to reset the override.
16866
- nullable: true
16867
- items:
16868
- $ref: "#/components/schemas/CustomizationFooterGroup"
16869
- copyright:
16870
- type: string
16871
- description: The copyright text that is displayed in the footer. Set to null to reset the override.
16872
- nullable: true
16873
- maxLength: 300
16874
- themes:
16875
- type: object
16876
- properties:
16877
- default:
16878
- description: The theme mode default value. Set to null to reset the override.
16879
- oneOf:
16880
- - $ref: "#/components/schemas/CustomizationThemeMode"
16881
- - type: string
16882
- nullable: true
16883
- enum:
16884
- - null
16885
- toggeable:
16886
- description: Should the reader be able to switch between dark and light mode. Set to null to reset the override.
16887
- type: boolean
16888
- nullable: true
16889
- pdf:
16890
- type: object
16891
- properties:
16892
- enabled:
16893
- type: boolean
16894
- description: If true, PDF export is enabled for the published site. Set to null to reset the override.
16895
- nullable: true
16896
- required:
16897
- - enabled
16898
- feedback:
16899
- type: object
16900
- properties:
16901
- enabled:
16902
- type: boolean
16903
- description: If true, feedback gathering is enabled. Set to null to reset the override.
16904
- nullable: true
16905
- required:
16906
- - enabled
16907
- aiSearch:
16908
- type: object
16909
- properties:
16910
- enabled:
16911
- type: boolean
16912
- description: If true, AI search is enabled. Set to null to reset the override.
16913
- nullable: true
16914
- required:
16915
- - enabled
16916
- git:
16917
- type: object
16918
- properties:
16919
- showEditLink:
16920
- type: boolean
16921
- 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.
16922
- nullable: true
16923
- required:
16924
- - showEditLink
16925
- pagination:
16926
- type: object
16927
- properties:
16928
- enabled:
16929
- type: boolean
16930
- description: Whether the pagination navigation should be displayed on pages. Set to null to reset the override.
16931
- nullable: true
16932
- required:
16933
- - enabled
16934
- trademark:
16935
- type: object
16936
- properties:
16937
- enabled:
16938
- type: boolean
16939
- description: Whether the GitBook trademark ("Powered by GitBook") should be visible. Set to null to reset the override.
16940
- nullable: true
16941
- required:
16942
- - enabled
16943
- privacyPolicy:
16944
- type: object
16945
- properties:
16946
- url:
16947
- description: The custom link to the privacy policy. Set to null to reset the override.
16948
- oneOf:
16949
- - $ref: "#/components/schemas/URL"
16950
- - type: string
16951
- nullable: true
16952
- enum:
16953
- - null
16954
- socialPreview:
16955
- type: object
16956
- properties:
16957
- url:
16958
- description: The URL for the social preview image. Set to null to reset the override.
16959
- oneOf:
16960
- - $ref: "#/components/schemas/URL"
16961
- - type: string
16962
- nullable: true
16963
- enum:
16964
- - null
16965
17460
  SiteSpacePointer:
16966
17461
  type: object
16967
17462
  properties:
@@ -17540,6 +18035,9 @@ components:
17540
18035
  shareKey:
17541
18036
  type: string
17542
18037
  description: Share link key of the site in case the site was published with share-links.
18038
+ complete:
18039
+ type: boolean
18040
+ 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.
17543
18041
  required:
17544
18042
  - site
17545
18043
  - siteSpace
@@ -17548,6 +18046,7 @@ components:
17548
18046
  - basePath
17549
18047
  - apiToken
17550
18048
  - organization
18049
+ - complete
17551
18050
  UpdateContentPublishingAuth:
17552
18051
  type: object
17553
18052
  properties:
@@ -17718,6 +18217,83 @@ components:
17718
18217
  anyOf:
17719
18218
  - $ref: "#/components/schemas/IntegrationScope"
17720
18219
  - $ref: "#/components/schemas/APIIntegrationScope"
18220
+ ContentAPIBaseToken:
18221
+ type: object
18222
+ description: Common properties for all Content API tokens.
18223
+ properties:
18224
+ organization:
18225
+ type: string
18226
+ description: ID of the organization that owns the content. A content token is always scoped to spaces from the same organization.
18227
+ spaces:
18228
+ type: array
18229
+ items:
18230
+ type: string
18231
+ description: List of spaces that the token is allowed to access.
18232
+ rateLimitMultiplier:
18233
+ type: number
18234
+ description: Multiplier for the rate limit applied to the token.
18235
+ required:
18236
+ - organization
18237
+ - spaces
18238
+ SpaceAPIToken:
18239
+ allOf:
18240
+ - $ref: "#/components/schemas/ContentAPIBaseToken"
18241
+ - type: object
18242
+ properties:
18243
+ kind:
18244
+ type: string
18245
+ enum:
18246
+ - space
18247
+ space:
18248
+ type: string
18249
+ description: ID of the space that the token is allowed to access.
18250
+ required:
18251
+ - kind
18252
+ - space
18253
+ CollectionAPIToken:
18254
+ allOf:
18255
+ - $ref: "#/components/schemas/ContentAPIBaseToken"
18256
+ - type: object
18257
+ properties:
18258
+ kind:
18259
+ type: string
18260
+ enum:
18261
+ - collection
18262
+ collection:
18263
+ type: string
18264
+ description: ID of the collection that the token is allowed to access.
18265
+ required:
18266
+ - kind
18267
+ - collection
18268
+ SiteAPIToken:
18269
+ allOf:
18270
+ - $ref: "#/components/schemas/ContentAPIBaseToken"
18271
+ - type: object
18272
+ properties:
18273
+ kind:
18274
+ type: string
18275
+ enum:
18276
+ - site
18277
+ site:
18278
+ type: string
18279
+ description: ID of the site that the token is allowed to access.
18280
+ siteSpace:
18281
+ type: string
18282
+ description: ID of the site-space to be used when using this token for rendering published content.
18283
+ space:
18284
+ type: string
18285
+ description: ID of the space to be used when using this token for rendering published content.
18286
+ required:
18287
+ - kind
18288
+ - site
18289
+ - siteSpace
18290
+ - space
18291
+ ContentAPITokenPayload:
18292
+ description: Content properties stored in a Content API token.
18293
+ oneOf:
18294
+ - $ref: "#/components/schemas/SpaceAPIToken"
18295
+ - $ref: "#/components/schemas/CollectionAPIToken"
18296
+ - $ref: "#/components/schemas/SiteAPIToken"
17721
18297
  SpaceInfoChannel:
17722
18298
  type: object
17723
18299
  properties:
@@ -18448,6 +19024,34 @@ components:
18448
19024
  - channel
18449
19025
  - site
18450
19026
  - siteShareLink
19027
+ SiteSectionsChannel:
19028
+ type: object
19029
+ description: Subscription channel for changes in site sections in an organization.
19030
+ properties:
19031
+ channel:
19032
+ type: string
19033
+ enum:
19034
+ - site-sections
19035
+ site:
19036
+ type: string
19037
+ required:
19038
+ - channel
19039
+ - site
19040
+ SiteSectionChannel:
19041
+ type: object
19042
+ properties:
19043
+ channel:
19044
+ type: string
19045
+ enum:
19046
+ - site-section
19047
+ site:
19048
+ type: string
19049
+ siteSection:
19050
+ type: string
19051
+ required:
19052
+ - channel
19053
+ - site
19054
+ - siteSection
18451
19055
  CustomHostnameChannel:
18452
19056
  type: object
18453
19057
  properties:
@@ -18517,6 +19121,8 @@ components:
18517
19121
  - $ref: "#/components/schemas/SitePublishingAuthChannel"
18518
19122
  - $ref: "#/components/schemas/SiteShareLinksChannel"
18519
19123
  - $ref: "#/components/schemas/SiteShareLinkChannel"
19124
+ - $ref: "#/components/schemas/SiteSectionsChannel"
19125
+ - $ref: "#/components/schemas/SiteSectionChannel"
18520
19126
  - $ref: "#/components/schemas/CustomHostnameChannel"
18521
19127
  discriminator:
18522
19128
  propertyName: channel