@gitbook/api 0.191.0 → 0.192.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
@@ -721,7 +721,7 @@ paths:
721
721
  post:
722
722
  operationId: duplicateSpace
723
723
  summary: Create a full copy of a space
724
- description: Creates a new space that is a complete copy of the specified space, including all pages and their content. The duplicate is created in the same organization. Returns the newly created space. Use this to create a template-based copy or to snapshot a space before making large changes.
724
+ description: Creates a new space that is a complete copy of the specified space, including all pages and their content. The duplicate is created in the same organization. It does not preserve or create a placement in a site. When duplicating from a site context, use duplicateSiteSpace instead. Use this operation for an organization-level or orphan-space copy.
725
725
  x-gitbook-mcp: true
726
726
  tags:
727
727
  - spaces
@@ -879,7 +879,7 @@ paths:
879
879
  post:
880
880
  operationId: importGitRepository
881
881
  summary: Pull content into a space from a connected Git repository
882
- description: Triggers an import from the linked Git repository into the space, updating the space's content to match the repository. This is an async operation — it runs in the background after the request returns 204. Use getSpaceGitInfo to check sync status. The space must already have a Git provider configured.
882
+ description: Triggers an import from provided Git repository into the space, updating the space's content to match the repository (if not standalone). This is an async operation — it runs in the background after the request returns 204.
883
883
  x-gitbook-mcp: true
884
884
  tags:
885
885
  - space-git
@@ -893,7 +893,7 @@ paths:
893
893
  - $ref: "#/components/parameters/spaceId"
894
894
  responses:
895
895
  "204":
896
- description: Operation to import the repository has been started.
896
+ description: Operation to import the repository has been queued.
897
897
  requestBody:
898
898
  required: true
899
899
  content:
@@ -904,7 +904,7 @@ paths:
904
904
  post:
905
905
  operationId: exportToGitRepository
906
906
  summary: Push space content to a connected Git repository
907
- description: Triggers an export of the space's current content to the linked Git repository. This is an async operation — the export runs in the background after the request returns 204. Use getSpaceGitInfo to check the current git sync status. The space must already have a Git provider configured.
907
+ description: Triggers an export of the space's current content to the provided Git repository. This is an async operation — the export runs in the background after the request returns 204.
908
908
  x-gitbook-mcp: true
909
909
  tags:
910
910
  - space-git
@@ -918,7 +918,7 @@ paths:
918
918
  - $ref: "#/components/parameters/spaceId"
919
919
  responses:
920
920
  "204":
921
- description: Operation to export the space has been started.
921
+ description: Operation to export the space has been queued.
922
922
  requestBody:
923
923
  required: true
924
924
  content:
@@ -8663,6 +8663,11 @@ paths:
8663
8663
  oneOf:
8664
8664
  - $ref: "#/components/schemas/SiteTriageFilterQuestions"
8665
8665
  - $ref: "#/components/schemas/SiteTriageFilterConnections"
8666
+ - name: orderBy
8667
+ in: query
8668
+ description: Sort findings by the given field.
8669
+ schema:
8670
+ $ref: "#/components/schemas/SiteFindingOrderBy"
8666
8671
  responses:
8667
8672
  "200":
8668
8673
  description: OK
@@ -8875,6 +8880,61 @@ paths:
8875
8880
  type: array
8876
8881
  items:
8877
8882
  $ref: "#/components/schemas/ContextRecord"
8883
+ /orgs/{organizationId}/sites/{siteId}/stats/findings:
8884
+ get:
8885
+ operationId: getSiteFindingStats
8886
+ summary: Get aggregate statistics about the findings identified on a site
8887
+ description: Returns aggregate statistics about the findings GitBook identified on a site — how many were found, how they break down by status and severity, which connectors surfaced them, and how many change requests created to fix them have been merged. Accepts the same filters as the finding list endpoint, so the stats can follow the list the user is looking at. Use it for a high-level view before drilling into individual findings.
8888
+ tags:
8889
+ - site-context
8890
+ security:
8891
+ - user: []
8892
+ - oauth:
8893
+ - site:read
8894
+ parameters:
8895
+ - $ref: "#/components/parameters/organizationId"
8896
+ - $ref: "#/components/parameters/siteId"
8897
+ - name: topic
8898
+ in: query
8899
+ description: Filter findings by associated site topic ID.
8900
+ schema:
8901
+ type: string
8902
+ - name: status
8903
+ in: query
8904
+ description: Filter findings by status.
8905
+ schema:
8906
+ $ref: "#/components/schemas/SiteFindingStatus"
8907
+ - name: type
8908
+ in: query
8909
+ description: Filter findings by type.
8910
+ schema:
8911
+ $ref: "#/components/schemas/SiteFindingType"
8912
+ - name: severity
8913
+ in: query
8914
+ description: Filter findings by estimated severity.
8915
+ schema:
8916
+ $ref: "#/components/schemas/SiteFindingSeverity"
8917
+ - name: hasChangeRequests
8918
+ in: query
8919
+ description: Filter findings that have at least one associated change request.
8920
+ schema:
8921
+ type: boolean
8922
+ - name: source
8923
+ in: query
8924
+ description: Filter findings by the source of their evidence. Each entry is either `connection:<connectionId>` (findings with at least one piece of evidence coming from the given connection) or `questions` (findings with at least one piece of evidence coming from a site question). When multiple entries are given, findings matching any of them are counted.
8925
+ schema:
8926
+ type: array
8927
+ items:
8928
+ oneOf:
8929
+ - $ref: "#/components/schemas/SiteTriageFilterQuestions"
8930
+ - $ref: "#/components/schemas/SiteTriageFilterConnections"
8931
+ responses:
8932
+ "200":
8933
+ description: OK
8934
+ content:
8935
+ application/json:
8936
+ schema:
8937
+ $ref: "#/components/schemas/SiteFindingStats"
8878
8938
  /orgs/{organizationId}/sites/{siteId}/context-connections:
8879
8939
  get:
8880
8940
  operationId: listSiteContextConnections
@@ -9668,6 +9728,46 @@ paths:
9668
9728
  description: Site space did not exist
9669
9729
  "205":
9670
9730
  description: Site space has been deleted
9731
+ /orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/duplicate:
9732
+ post:
9733
+ operationId: duplicateSiteSpace
9734
+ summary: Duplicate a space in a site
9735
+ description: Creates a full copy of the space linked by the specified site space. When the site space is the only variant in a section, the copy is placed in a new sibling section. Otherwise, it is added as a variant under the same parent. Prefer this operation over duplicateSpace whenever the request originates from a site or needs to preserve site placement.
9736
+ x-gitbook-mcp: true
9737
+ tags:
9738
+ - site-spaces
9739
+ - spaces
9740
+ security:
9741
+ - user: []
9742
+ - oauth:
9743
+ - space:write
9744
+ - site:write
9745
+ parameters:
9746
+ - $ref: "#/components/parameters/organizationId"
9747
+ - $ref: "#/components/parameters/siteId"
9748
+ - $ref: "#/components/parameters/siteSpaceId"
9749
+ requestBody:
9750
+ content:
9751
+ application/json:
9752
+ schema:
9753
+ type: object
9754
+ properties:
9755
+ draft:
9756
+ type: boolean
9757
+ default: false
9758
+ description: Whether the duplicated site space and any new section should be created as drafts.
9759
+ responses:
9760
+ "201":
9761
+ description: Space duplicated in the site structure
9762
+ headers:
9763
+ Location:
9764
+ description: API URL for the newly created site-space
9765
+ schema:
9766
+ type: string
9767
+ content:
9768
+ application/json:
9769
+ schema:
9770
+ $ref: "#/components/schemas/SiteSpace"
9671
9771
  /orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization:
9672
9772
  get:
9673
9773
  operationId: getSiteSpaceCustomizationById
@@ -10387,6 +10487,25 @@ paths:
10387
10487
  text/event-stream:
10388
10488
  schema:
10389
10489
  $ref: "#/components/schemas/AIStreamResponse"
10490
+ /orgs/{organizationId}/sites/{siteId}/template:
10491
+ post:
10492
+ operationId: applyTemplateToSite
10493
+ summary: Apply the default documentation template to a site
10494
+ description: Populates an empty site with GitBook's default documentation structure, content, and customization. Use this after creating a site without spaces to give it a ready-to-edit starting point.
10495
+ x-gitbook-mcp: true
10496
+ tags:
10497
+ - sites
10498
+ security:
10499
+ - user-internal: []
10500
+ - user: []
10501
+ - oauth:
10502
+ - site:write
10503
+ parameters:
10504
+ - $ref: "#/components/parameters/organizationId"
10505
+ - $ref: "#/components/parameters/siteId"
10506
+ responses:
10507
+ "200":
10508
+ description: Template applied to site.
10390
10509
  /orgs/{organizationId}/sites/{siteId}/agent-settings:
10391
10510
  get:
10392
10511
  operationId: getSiteAgentSettingsById
@@ -12833,6 +12952,11 @@ components:
12833
12952
  - failure
12834
12953
  - success
12835
12954
  - timeout
12955
+ GitSyncOperationDirection:
12956
+ type: string
12957
+ enum:
12958
+ - export
12959
+ - import
12836
12960
  GitSyncState:
12837
12961
  type: object
12838
12962
  properties:
@@ -12850,6 +12974,9 @@ components:
12850
12974
  installationId:
12851
12975
  type: string
12852
12976
  description: The ID of the Git Sync installation.
12977
+ parentInstallationId:
12978
+ type: string
12979
+ description: The ID of the parent Git Sync installation, if any.
12853
12980
  url:
12854
12981
  type: string
12855
12982
  description: The URL to the repository tree, used when rendering public content.
@@ -12859,11 +12986,26 @@ components:
12859
12986
  properties:
12860
12987
  state:
12861
12988
  $ref: "#/components/schemas/GitSyncOperationState"
12989
+ direction:
12990
+ $ref: "#/components/schemas/GitSyncOperationDirection"
12991
+ startedAt:
12992
+ $ref: "#/components/schemas/Timestamp"
12993
+ endedAt:
12994
+ $ref: "#/components/schemas/Timestamp"
12995
+ error:
12996
+ type: string
12997
+ description: Why the operation failed, when it did.
12862
12998
  required:
12863
12999
  - state
13000
+ - direction
13001
+ - startedAt
12864
13002
  updatedAt:
12865
13003
  description: When the Git provider details were last updated
12866
13004
  $ref: "#/components/schemas/Timestamp"
13005
+ required:
13006
+ - installationId
13007
+ - installationProvider
13008
+ - installationStatus
12867
13009
  VisitorAuthCustomBackend:
12868
13010
  type: object
12869
13011
  title: Custom backend for authenticated access
@@ -13232,6 +13374,12 @@ components:
13232
13374
  type: string
13233
13375
  score:
13234
13376
  $ref: "#/components/schemas/SearchResultScore"
13377
+ resultType:
13378
+ type: string
13379
+ description: Whether the result matched on the page fields (title, description) or on the section content. When "page", the section is an arbitrary section of the matching page.
13380
+ enum:
13381
+ - page
13382
+ - section
13235
13383
  body:
13236
13384
  type: string
13237
13385
  urls:
@@ -13263,6 +13411,12 @@ components:
13263
13411
  type: string
13264
13412
  score:
13265
13413
  $ref: "#/components/schemas/SearchResultScore"
13414
+ resultType:
13415
+ type: string
13416
+ description: Whether the page matched on its own fields (title, description) or on the content of one of its sections.
13417
+ enum:
13418
+ - page
13419
+ - section
13266
13420
  sections:
13267
13421
  type: array
13268
13422
  items:
@@ -14305,7 +14459,7 @@ components:
14305
14459
  - type
14306
14460
  - data
14307
14461
  - nodes
14308
- DocumentBlockHint:
14462
+ DocumentBlockEmbed:
14309
14463
  type: object
14310
14464
  properties:
14311
14465
  object:
@@ -14315,37 +14469,119 @@ components:
14315
14469
  type:
14316
14470
  type: string
14317
14471
  enum:
14318
- - hint
14472
+ - embed
14319
14473
  key:
14320
14474
  type: string
14321
14475
  data:
14322
14476
  type: object
14323
14477
  properties:
14324
- style:
14478
+ url:
14325
14479
  type: string
14326
- enum:
14327
- - info
14328
- - warning
14329
- - danger
14330
- - success
14331
- icon:
14332
- $ref: "#/components/schemas/Icon"
14480
+ fullWidth:
14481
+ type: boolean
14333
14482
  required:
14334
- - style
14335
- nodes:
14336
- type: array
14337
- items:
14338
- $ref: "#/components/schemas/DocumentBlocksEssentials"
14483
+ - url
14339
14484
  isVoid:
14340
14485
  type: boolean
14341
14486
  enum:
14342
- - false
14487
+ - true
14343
14488
  required:
14344
14489
  - object
14345
14490
  - type
14346
14491
  - data
14347
- - nodes
14348
- DocumentBlockQuote:
14492
+ - isVoid
14493
+ PlainObject:
14494
+ properties: {}
14495
+ additionalProperties:
14496
+ oneOf:
14497
+ - $ref: "#/components/schemas/PlainObject"
14498
+ - type: string
14499
+ - type: boolean
14500
+ - type: number
14501
+ - type: array
14502
+ items:
14503
+ oneOf:
14504
+ - type: string
14505
+ - type: boolean
14506
+ - type: number
14507
+ - $ref: "#/components/schemas/PlainObject"
14508
+ ContentKitDefaultAction:
14509
+ oneOf:
14510
+ - type: object
14511
+ description: Action to open an overlay modal defined by "componentId".
14512
+ properties:
14513
+ action:
14514
+ type: string
14515
+ enum:
14516
+ - "@ui.modal.open"
14517
+ componentId:
14518
+ type: string
14519
+ props:
14520
+ $ref: "#/components/schemas/PlainObject"
14521
+ required:
14522
+ - action
14523
+ - componentId
14524
+ - props
14525
+ - type: object
14526
+ description: Action when a modal overlay is closed, with a return value to the higher level component in the stack. This action will be triggered on the parent component instance.
14527
+ properties:
14528
+ action:
14529
+ type: string
14530
+ enum:
14531
+ - "@ui.modal.close"
14532
+ returnValue:
14533
+ $ref: "#/components/schemas/PlainObject"
14534
+ required:
14535
+ - action
14536
+ - returnValue
14537
+ - type: object
14538
+ description: Action to open an url.
14539
+ properties:
14540
+ action:
14541
+ type: string
14542
+ enum:
14543
+ - "@ui.url.open"
14544
+ url:
14545
+ type: string
14546
+ required:
14547
+ - action
14548
+ - url
14549
+ - type: object
14550
+ description: Action when a link is being unfurled into a block.
14551
+ properties:
14552
+ action:
14553
+ type: string
14554
+ enum:
14555
+ - "@link.unfurl"
14556
+ url:
14557
+ type: string
14558
+ required:
14559
+ - action
14560
+ - url
14561
+ - type: object
14562
+ description: Action to update the properties stored in the related node.
14563
+ properties:
14564
+ action:
14565
+ type: string
14566
+ enum:
14567
+ - "@editor.node.updateProps"
14568
+ props:
14569
+ $ref: "#/components/schemas/PlainObject"
14570
+ required:
14571
+ - action
14572
+ - props
14573
+ ContentKitAction:
14574
+ anyOf:
14575
+ - type: object
14576
+ description: Custom action to re-render the block.
14577
+ properties:
14578
+ action:
14579
+ type: string
14580
+ additionalProperties: true
14581
+ required:
14582
+ - action
14583
+ - $ref: "#/components/schemas/ContentKitDefaultAction"
14584
+ DocumentBlockIntegration:
14349
14585
  type: object
14350
14586
  properties:
14351
14587
  object:
@@ -14355,27 +14591,127 @@ components:
14355
14591
  type:
14356
14592
  type: string
14357
14593
  enum:
14358
- - blockquote
14594
+ - integration
14359
14595
  key:
14360
14596
  type: string
14361
- nodes:
14362
- type: array
14363
- items:
14364
- oneOf:
14365
- - $ref: "#/components/schemas/DocumentBlocksEssentials"
14366
- - $ref: "#/components/schemas/DocumentBlockQuote"
14367
- isVoid:
14368
- type: boolean
14369
- enum:
14370
- - false
14371
14597
  data:
14372
14598
  type: object
14373
- properties: {}
14374
- additionalProperties: false
14375
- required:
14376
- - object
14377
- - type
14378
- - nodes
14599
+ properties:
14600
+ integration:
14601
+ type: string
14602
+ description: Name of the integration
14603
+ block:
14604
+ type: string
14605
+ description: ID of the block in the integration
14606
+ props:
14607
+ description: Properties passed to the block during rendering
14608
+ $ref: "#/components/schemas/PlainObject"
14609
+ action:
14610
+ $ref: "#/components/schemas/ContentKitAction"
14611
+ url:
14612
+ type: string
14613
+ description: |
14614
+ URL associated with the content represented by the block.
14615
+ This property is set when creating a block from a URL (unfurl) to ensure
14616
+ we can convert the block back to an embed.
14617
+ fullWidth:
14618
+ type: boolean
14619
+ required:
14620
+ - integration
14621
+ - block
14622
+ - props
14623
+ isVoid:
14624
+ type: boolean
14625
+ enum:
14626
+ - true
14627
+ meta:
14628
+ type: object
14629
+ properties:
14630
+ token:
14631
+ type: string
14632
+ description: A content token that can be used to authenticate requests for cross-space integration blocks.
14633
+ spaceId:
14634
+ type: string
14635
+ description: ID of the space the integration block originates from
14636
+ required:
14637
+ - object
14638
+ - type
14639
+ - data
14640
+ - isVoid
14641
+ DocumentBlockHint:
14642
+ type: object
14643
+ properties:
14644
+ object:
14645
+ type: string
14646
+ enum:
14647
+ - block
14648
+ type:
14649
+ type: string
14650
+ enum:
14651
+ - hint
14652
+ key:
14653
+ type: string
14654
+ data:
14655
+ type: object
14656
+ properties:
14657
+ style:
14658
+ type: string
14659
+ enum:
14660
+ - info
14661
+ - warning
14662
+ - danger
14663
+ - success
14664
+ icon:
14665
+ $ref: "#/components/schemas/Icon"
14666
+ required:
14667
+ - style
14668
+ nodes:
14669
+ type: array
14670
+ items:
14671
+ oneOf:
14672
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
14673
+ - $ref: "#/components/schemas/DocumentBlockEmbed"
14674
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
14675
+ isVoid:
14676
+ type: boolean
14677
+ enum:
14678
+ - false
14679
+ required:
14680
+ - object
14681
+ - type
14682
+ - data
14683
+ - nodes
14684
+ DocumentBlockQuote:
14685
+ type: object
14686
+ properties:
14687
+ object:
14688
+ type: string
14689
+ enum:
14690
+ - block
14691
+ type:
14692
+ type: string
14693
+ enum:
14694
+ - blockquote
14695
+ key:
14696
+ type: string
14697
+ nodes:
14698
+ type: array
14699
+ items:
14700
+ oneOf:
14701
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
14702
+ - $ref: "#/components/schemas/DocumentBlockQuote"
14703
+ isVoid:
14704
+ type: boolean
14705
+ enum:
14706
+ - false
14707
+ data:
14708
+ type: object
14709
+ properties: {}
14710
+ additionalProperties: false
14711
+ required:
14712
+ - object
14713
+ - type
14714
+ - nodes
14379
14715
  DocumentBlockMath:
14380
14716
  type: object
14381
14717
  properties:
@@ -15200,7 +15536,7 @@ components:
15200
15536
  - type
15201
15537
  - data
15202
15538
  - isVoid
15203
- DocumentBlockEmbed:
15539
+ DocumentBlockReusableContent:
15204
15540
  type: object
15205
15541
  properties:
15206
15542
  object:
@@ -15210,28 +15546,32 @@ components:
15210
15546
  type:
15211
15547
  type: string
15212
15548
  enum:
15213
- - embed
15549
+ - reusable-content
15214
15550
  key:
15215
15551
  type: string
15216
15552
  data:
15217
15553
  type: object
15218
15554
  properties:
15219
- url:
15220
- type: string
15221
- fullWidth:
15222
- type: boolean
15555
+ ref:
15556
+ $ref: "#/components/schemas/ContentRefReusableContent"
15223
15557
  required:
15224
- - url
15558
+ - ref
15225
15559
  isVoid:
15226
15560
  type: boolean
15227
15561
  enum:
15228
15562
  - true
15563
+ meta:
15564
+ type: object
15565
+ properties:
15566
+ token:
15567
+ description: A content token that can be used to fetch the reusable content from the API.
15568
+ type: string
15229
15569
  required:
15230
15570
  - object
15231
15571
  - type
15232
15572
  - data
15233
15573
  - isVoid
15234
- DocumentBlockReusableContent:
15574
+ DocumentBlockExpandable:
15235
15575
  type: object
15236
15576
  properties:
15237
15577
  object:
@@ -15241,291 +15581,108 @@ components:
15241
15581
  type:
15242
15582
  type: string
15243
15583
  enum:
15244
- - reusable-content
15584
+ - expandable
15585
+ key:
15586
+ type: string
15587
+ isVoid:
15588
+ type: boolean
15589
+ enum:
15590
+ - true
15591
+ data:
15592
+ type: object
15593
+ properties:
15594
+ defaultExpanded:
15595
+ type: boolean
15596
+ additionalProperties: false
15597
+ fragments:
15598
+ type: array
15599
+ items:
15600
+ oneOf:
15601
+ - allOf:
15602
+ - $ref: "#/components/schemas/DocumentFragment"
15603
+ - type: object
15604
+ properties:
15605
+ fragment:
15606
+ type: string
15607
+ enum:
15608
+ - expandable-title
15609
+ type:
15610
+ type: string
15611
+ enum:
15612
+ - expandable-title
15613
+ nodes:
15614
+ type: array
15615
+ items:
15616
+ $ref: "#/components/schemas/DocumentBlockParagraph"
15617
+ minItems: 1
15618
+ maxItems: 1
15619
+ required:
15620
+ - nodes
15621
+ - fragment
15622
+ - type
15623
+ - allOf:
15624
+ - $ref: "#/components/schemas/DocumentFragment"
15625
+ - type: object
15626
+ properties:
15627
+ fragment:
15628
+ type: string
15629
+ enum:
15630
+ - expandable-body
15631
+ type:
15632
+ type: string
15633
+ enum:
15634
+ - expandable-body
15635
+ nodes:
15636
+ type: array
15637
+ items:
15638
+ oneOf:
15639
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
15640
+ - $ref: "#/components/schemas/DocumentBlockFile"
15641
+ - $ref: "#/components/schemas/DocumentBlockImages"
15642
+ - $ref: "#/components/schemas/DocumentBlockCode"
15643
+ - $ref: "#/components/schemas/DocumentBlockTable"
15644
+ - $ref: "#/components/schemas/DocumentBlockHint"
15645
+ - $ref: "#/components/schemas/DocumentBlockPrompt"
15646
+ - $ref: "#/components/schemas/DocumentBlockQuote"
15647
+ - $ref: "#/components/schemas/DocumentBlockReusableContent"
15648
+ - $ref: "#/components/schemas/DocumentBlockIntegration"
15649
+ minItems: 1
15650
+ required:
15651
+ - nodes
15652
+ - fragment
15653
+ - type
15654
+ meta:
15655
+ type: object
15656
+ properties:
15657
+ id:
15658
+ description: Unique ID to be used in an URL for the block.
15659
+ type: string
15660
+ required:
15661
+ - id
15662
+ required:
15663
+ - object
15664
+ - type
15665
+ - isVoid
15666
+ - fragments
15667
+ - data
15668
+ DocumentBlockContentRef:
15669
+ type: object
15670
+ properties:
15671
+ object:
15672
+ type: string
15673
+ enum:
15674
+ - block
15675
+ type:
15676
+ type: string
15677
+ enum:
15678
+ - content-ref
15245
15679
  key:
15246
15680
  type: string
15247
15681
  data:
15248
15682
  type: object
15249
15683
  properties:
15250
15684
  ref:
15251
- $ref: "#/components/schemas/ContentRefReusableContent"
15252
- required:
15253
- - ref
15254
- isVoid:
15255
- type: boolean
15256
- enum:
15257
- - true
15258
- meta:
15259
- type: object
15260
- properties:
15261
- token:
15262
- description: A content token that can be used to fetch the reusable content from the API.
15263
- type: string
15264
- required:
15265
- - object
15266
- - type
15267
- - data
15268
- - isVoid
15269
- PlainObject:
15270
- properties: {}
15271
- additionalProperties:
15272
- oneOf:
15273
- - $ref: "#/components/schemas/PlainObject"
15274
- - type: string
15275
- - type: boolean
15276
- - type: number
15277
- - type: array
15278
- items:
15279
- oneOf:
15280
- - type: string
15281
- - type: boolean
15282
- - type: number
15283
- - $ref: "#/components/schemas/PlainObject"
15284
- ContentKitDefaultAction:
15285
- oneOf:
15286
- - type: object
15287
- description: Action to open an overlay modal defined by "componentId".
15288
- properties:
15289
- action:
15290
- type: string
15291
- enum:
15292
- - "@ui.modal.open"
15293
- componentId:
15294
- type: string
15295
- props:
15296
- $ref: "#/components/schemas/PlainObject"
15297
- required:
15298
- - action
15299
- - componentId
15300
- - props
15301
- - type: object
15302
- description: Action when a modal overlay is closed, with a return value to the higher level component in the stack. This action will be triggered on the parent component instance.
15303
- properties:
15304
- action:
15305
- type: string
15306
- enum:
15307
- - "@ui.modal.close"
15308
- returnValue:
15309
- $ref: "#/components/schemas/PlainObject"
15310
- required:
15311
- - action
15312
- - returnValue
15313
- - type: object
15314
- description: Action to open an url.
15315
- properties:
15316
- action:
15317
- type: string
15318
- enum:
15319
- - "@ui.url.open"
15320
- url:
15321
- type: string
15322
- required:
15323
- - action
15324
- - url
15325
- - type: object
15326
- description: Action when a link is being unfurled into a block.
15327
- properties:
15328
- action:
15329
- type: string
15330
- enum:
15331
- - "@link.unfurl"
15332
- url:
15333
- type: string
15334
- required:
15335
- - action
15336
- - url
15337
- - type: object
15338
- description: Action to update the properties stored in the related node.
15339
- properties:
15340
- action:
15341
- type: string
15342
- enum:
15343
- - "@editor.node.updateProps"
15344
- props:
15345
- $ref: "#/components/schemas/PlainObject"
15346
- required:
15347
- - action
15348
- - props
15349
- ContentKitAction:
15350
- anyOf:
15351
- - type: object
15352
- description: Custom action to re-render the block.
15353
- properties:
15354
- action:
15355
- type: string
15356
- additionalProperties: true
15357
- required:
15358
- - action
15359
- - $ref: "#/components/schemas/ContentKitDefaultAction"
15360
- DocumentBlockIntegration:
15361
- type: object
15362
- properties:
15363
- object:
15364
- type: string
15365
- enum:
15366
- - block
15367
- type:
15368
- type: string
15369
- enum:
15370
- - integration
15371
- key:
15372
- type: string
15373
- data:
15374
- type: object
15375
- properties:
15376
- integration:
15377
- type: string
15378
- description: Name of the integration
15379
- block:
15380
- type: string
15381
- description: ID of the block in the integration
15382
- props:
15383
- description: Properties passed to the block during rendering
15384
- $ref: "#/components/schemas/PlainObject"
15385
- action:
15386
- $ref: "#/components/schemas/ContentKitAction"
15387
- url:
15388
- type: string
15389
- description: |
15390
- URL associated with the content represented by the block.
15391
- This property is set when creating a block from a URL (unfurl) to ensure
15392
- we can convert the block back to an embed.
15393
- fullWidth:
15394
- type: boolean
15395
- required:
15396
- - integration
15397
- - block
15398
- - props
15399
- isVoid:
15400
- type: boolean
15401
- enum:
15402
- - true
15403
- meta:
15404
- type: object
15405
- properties:
15406
- token:
15407
- type: string
15408
- description: A content token that can be used to authenticate requests for cross-space integration blocks.
15409
- spaceId:
15410
- type: string
15411
- description: ID of the space the integration block originates from
15412
- required:
15413
- - object
15414
- - type
15415
- - data
15416
- - isVoid
15417
- DocumentBlockExpandable:
15418
- type: object
15419
- properties:
15420
- object:
15421
- type: string
15422
- enum:
15423
- - block
15424
- type:
15425
- type: string
15426
- enum:
15427
- - expandable
15428
- key:
15429
- type: string
15430
- isVoid:
15431
- type: boolean
15432
- enum:
15433
- - true
15434
- data:
15435
- type: object
15436
- properties:
15437
- defaultExpanded:
15438
- type: boolean
15439
- additionalProperties: false
15440
- fragments:
15441
- type: array
15442
- items:
15443
- oneOf:
15444
- - allOf:
15445
- - $ref: "#/components/schemas/DocumentFragment"
15446
- - type: object
15447
- properties:
15448
- fragment:
15449
- type: string
15450
- enum:
15451
- - expandable-title
15452
- type:
15453
- type: string
15454
- enum:
15455
- - expandable-title
15456
- nodes:
15457
- type: array
15458
- items:
15459
- $ref: "#/components/schemas/DocumentBlockParagraph"
15460
- minItems: 1
15461
- maxItems: 1
15462
- required:
15463
- - nodes
15464
- - fragment
15465
- - type
15466
- - allOf:
15467
- - $ref: "#/components/schemas/DocumentFragment"
15468
- - type: object
15469
- properties:
15470
- fragment:
15471
- type: string
15472
- enum:
15473
- - expandable-body
15474
- type:
15475
- type: string
15476
- enum:
15477
- - expandable-body
15478
- nodes:
15479
- type: array
15480
- items:
15481
- oneOf:
15482
- - $ref: "#/components/schemas/DocumentBlocksEssentials"
15483
- - $ref: "#/components/schemas/DocumentBlockFile"
15484
- - $ref: "#/components/schemas/DocumentBlockImages"
15485
- - $ref: "#/components/schemas/DocumentBlockCode"
15486
- - $ref: "#/components/schemas/DocumentBlockTable"
15487
- - $ref: "#/components/schemas/DocumentBlockHint"
15488
- - $ref: "#/components/schemas/DocumentBlockPrompt"
15489
- - $ref: "#/components/schemas/DocumentBlockQuote"
15490
- - $ref: "#/components/schemas/DocumentBlockReusableContent"
15491
- - $ref: "#/components/schemas/DocumentBlockIntegration"
15492
- minItems: 1
15493
- required:
15494
- - nodes
15495
- - fragment
15496
- - type
15497
- meta:
15498
- type: object
15499
- properties:
15500
- id:
15501
- description: Unique ID to be used in an URL for the block.
15502
- type: string
15503
- required:
15504
- - id
15505
- required:
15506
- - object
15507
- - type
15508
- - isVoid
15509
- - fragments
15510
- - data
15511
- DocumentBlockContentRef:
15512
- type: object
15513
- properties:
15514
- object:
15515
- type: string
15516
- enum:
15517
- - block
15518
- type:
15519
- type: string
15520
- enum:
15521
- - content-ref
15522
- key:
15523
- type: string
15524
- data:
15525
- type: object
15526
- properties:
15527
- ref:
15528
- $ref: "#/components/schemas/ContentRef"
15685
+ $ref: "#/components/schemas/ContentRef"
15529
15686
  required:
15530
15687
  - ref
15531
15688
  isVoid:
@@ -16151,9 +16308,11 @@ components:
16151
16308
  - data
16152
16309
  - isVoid
16153
16310
  DocumentAction:
16311
+ description: Action to perform when an inline button is clicked.
16154
16312
  type: object
16155
16313
  oneOf:
16156
16314
  - type: object
16315
+ description: Open a search input, optionally prefilled with a search query.
16157
16316
  properties:
16158
16317
  action:
16159
16318
  type: string
@@ -16161,10 +16320,12 @@ components:
16161
16320
  - search
16162
16321
  query:
16163
16322
  type: string
16323
+ description: The search query to prefill.
16164
16324
  required:
16165
16325
  - action
16166
16326
  additionalProperties: false
16167
16327
  - type: object
16328
+ description: Open an AI input, optionally prefilled with a question.
16168
16329
  properties:
16169
16330
  action:
16170
16331
  type: string
@@ -16172,10 +16333,25 @@ components:
16172
16333
  - ask
16173
16334
  query:
16174
16335
  type: string
16336
+ description: The question to prefill.
16175
16337
  required:
16176
16338
  - action
16177
16339
  additionalProperties: false
16178
- DocumentInlineButton:
16340
+ - type: object
16341
+ description: Open a selection input for the option identified by its slug.
16342
+ properties:
16343
+ action:
16344
+ type: string
16345
+ enum:
16346
+ - select
16347
+ slug:
16348
+ type: string
16349
+ description: The slug of the option to select.
16350
+ required:
16351
+ - action
16352
+ - slug
16353
+ additionalProperties: false
16354
+ DocumentInlineButton:
16179
16355
  type: object
16180
16356
  properties:
16181
16357
  object:
@@ -23829,6 +24005,102 @@ components:
23829
24005
  - siteId
23830
24006
  discriminator:
23831
24007
  propertyName: type
24008
+ GitSyncInstallationProvider:
24009
+ type: string
24010
+ description: The provider of the Git Sync installation.
24011
+ enum:
24012
+ - github
24013
+ - gitlab
24014
+ GitRepositoryConnection:
24015
+ type: object
24016
+ properties:
24017
+ object:
24018
+ type: string
24019
+ enum:
24020
+ - git-repository-connection
24021
+ id:
24022
+ type: string
24023
+ description: Unique identifier of the repository connection.
24024
+ provider:
24025
+ $ref: "#/components/schemas/GitSyncInstallationProvider"
24026
+ repositoryId:
24027
+ type: string
24028
+ description: Repository identifier assigned by the provider.
24029
+ repositoryName:
24030
+ type: string
24031
+ description: Full repository name assigned by the provider.
24032
+ repositoryUrl:
24033
+ type: string
24034
+ format: uri
24035
+ description: URL of the repository on the provider.
24036
+ defaultBranch:
24037
+ type: string
24038
+ description: Default branch reported by the provider.
24039
+ authState:
24040
+ type: string
24041
+ enum:
24042
+ - pending
24043
+ - active
24044
+ - unauthenticated
24045
+ capabilities:
24046
+ type: object
24047
+ description: Provider operations available to this repository connection.
24048
+ properties:
24049
+ pullRequests:
24050
+ type: boolean
24051
+ description: Whether the connection can create and update GitHub pull requests or GitLab merge requests.
24052
+ commitStatuses:
24053
+ type: boolean
24054
+ description: Whether the connection can publish GitBook synchronization results as provider commit statuses.
24055
+ required:
24056
+ - pullRequests
24057
+ - commitStatuses
24058
+ createdAt:
24059
+ $ref: "#/components/schemas/Timestamp"
24060
+ updatedAt:
24061
+ $ref: "#/components/schemas/Timestamp"
24062
+ required:
24063
+ - object
24064
+ - id
24065
+ - provider
24066
+ - repositoryId
24067
+ - repositoryName
24068
+ - repositoryUrl
24069
+ - authState
24070
+ - capabilities
24071
+ - createdAt
24072
+ - updatedAt
24073
+ GitRepositoryRef:
24074
+ type: object
24075
+ properties:
24076
+ object:
24077
+ type: string
24078
+ enum:
24079
+ - git-repository-ref
24080
+ id:
24081
+ type: string
24082
+ description: Unique identifier of the repository ref.
24083
+ name:
24084
+ type: string
24085
+ description: Fully qualified provider ref name.
24086
+ type:
24087
+ type: string
24088
+ enum:
24089
+ - branch
24090
+ - tag
24091
+ - change-request-head
24092
+ latestObservedCommitId:
24093
+ type: string
24094
+ latestImportedCommitId:
24095
+ type: string
24096
+ updatedAt:
24097
+ $ref: "#/components/schemas/Timestamp"
24098
+ required:
24099
+ - object
24100
+ - id
24101
+ - name
24102
+ - type
24103
+ - updatedAt
23832
24104
  GitSyncInstallation:
23833
24105
  allOf:
23834
24106
  - $ref: "#/components/schemas/GitSyncInstallationSetup"
@@ -23841,10 +24113,17 @@ components:
23841
24113
  id:
23842
24114
  type: string
23843
24115
  description: Unique identifier of the Git Sync installation.
24116
+ parentInstallationId:
24117
+ type: string
24118
+ description: The ID of the parent Git Sync installation, if any.
23844
24119
  target:
23845
24120
  $ref: "#/components/schemas/GitSyncInstallationTarget"
23846
24121
  status:
23847
24122
  $ref: "#/components/schemas/GitSyncInstallationStatus"
24123
+ repositoryConnection:
24124
+ $ref: "#/components/schemas/GitRepositoryConnection"
24125
+ repositoryRef:
24126
+ $ref: "#/components/schemas/GitRepositoryRef"
23848
24127
  createdAt:
23849
24128
  $ref: "#/components/schemas/Timestamp"
23850
24129
  createdBy:
@@ -24415,6 +24694,10 @@ components:
24415
24694
  items:
24416
24695
  $ref: "#/components/schemas/CustomizationSuggestedQuestion"
24417
24696
  maxItems: 5
24697
+ CustomizationAIInstructions:
24698
+ type: string
24699
+ description: Additional instructions for the AI Assistant, injected after the base system prompt. Use them to adjust tone of voice and contribute site-specific knowledge. These instructions refine, but never override, the assistant's built-in guardrails. Only available to site admins and never exposed on the published site.
24700
+ maxLength: 10000
24418
24701
  CustomizationPageActionType:
24419
24702
  type: string
24420
24703
  description: Type of a built-in page action that can be displayed in the page actions menu of a published page.
@@ -24645,6 +24928,8 @@ components:
24645
24928
  $ref: "#/components/schemas/CustomizationAIMode"
24646
24929
  suggestions:
24647
24930
  $ref: "#/components/schemas/CustomizationSuggestedQuestions"
24931
+ instructions:
24932
+ $ref: "#/components/schemas/CustomizationAIInstructions"
24648
24933
  required:
24649
24934
  - mode
24650
24935
  advancedCustomization:
@@ -25311,6 +25596,14 @@ components:
25311
25596
  Findings source filter matching evidence coming from a given connection,
25312
25597
  encoded as `connection:<connectionId>`.
25313
25598
  pattern: ^connection:.+$
25599
+ SiteFindingOrderBy:
25600
+ type: string
25601
+ enum:
25602
+ - updatedAt
25603
+ - severity
25604
+ - questions
25605
+ default: updatedAt
25606
+ description: The field to sort site findings by. `updatedAt` returns the most recently updated findings first. `severity` returns the most severe findings first. `questions` returns the most asked-about findings first. Defaults to 'updatedAt'.
25314
25607
  SiteFindingTitle:
25315
25608
  type: string
25316
25609
  description: Short finding title
@@ -25573,6 +25866,71 @@ components:
25573
25866
  - askedAt
25574
25867
  - stats
25575
25868
  - urls
25869
+ SiteFindingStatsStatuses:
25870
+ type: object
25871
+ description: Count of findings by status. Candidate findings are never counted.
25872
+ properties:
25873
+ open:
25874
+ type: number
25875
+ description: Count of findings surfaced to users and still under investigation.
25876
+ done:
25877
+ type: number
25878
+ description: Count of findings that have been resolved.
25879
+ canceled:
25880
+ type: number
25881
+ description: Count of findings that have been canceled.
25882
+ required:
25883
+ - open
25884
+ - done
25885
+ - canceled
25886
+ SiteFindingStatsSeverities:
25887
+ type: object
25888
+ description: Count of findings by estimated end-user severity.
25889
+ properties:
25890
+ low:
25891
+ type: number
25892
+ description: Count of findings with a low estimated severity.
25893
+ medium:
25894
+ type: number
25895
+ description: Count of findings with a medium estimated severity.
25896
+ high:
25897
+ type: number
25898
+ description: Count of findings with a high estimated severity.
25899
+ required:
25900
+ - low
25901
+ - medium
25902
+ - high
25903
+ SiteFindingStatsConnectors:
25904
+ type: object
25905
+ description: Count of findings by the connector their evidence came from, keyed by connector (e.g. `builtin:intercom`). A finding is counted once per connector that contributed at least one piece of evidence to it, so the counts can add up to more than the total.
25906
+ additionalProperties:
25907
+ type: number
25908
+ SiteFindingStats:
25909
+ type: object
25910
+ description: Aggregated stats for the findings identified on a site.
25911
+ properties:
25912
+ total:
25913
+ type: number
25914
+ description: Total count of findings included in the aggregation.
25915
+ statuses:
25916
+ $ref: "#/components/schemas/SiteFindingStatsStatuses"
25917
+ severities:
25918
+ $ref: "#/components/schemas/SiteFindingStatsSeverities"
25919
+ connectors:
25920
+ $ref: "#/components/schemas/SiteFindingStatsConnectors"
25921
+ questions:
25922
+ type: number
25923
+ description: Count of findings with at least one piece of evidence coming from a site question.
25924
+ mergedChangeRequests:
25925
+ type: number
25926
+ description: Count of change requests created to fix a finding that have been merged.
25927
+ required:
25928
+ - total
25929
+ - statuses
25930
+ - severities
25931
+ - connectors
25932
+ - questions
25933
+ - mergedChangeRequests
25576
25934
  ContextConnectionLabel:
25577
25935
  type: string
25578
25936
  description: Optional label for the connection
@@ -28143,21 +28501,8 @@ components:
28143
28501
  type: string
28144
28502
  enum:
28145
28503
  - agent_feedback
28146
- feedback:
28147
- type: object
28148
- properties:
28149
- content:
28150
- type: string
28151
- minLength: 1
28152
- maxLength: 2048
28153
- category:
28154
- $ref: "#/components/schemas/SiteFindingType"
28155
- required:
28156
- - content
28157
- - category
28158
28504
  required:
28159
28505
  - type
28160
- - feedback
28161
28506
  SiteInsightsEventAskQuestion:
28162
28507
  allOf:
28163
28508
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -30063,6 +30408,18 @@ components:
30063
30408
  type: string
30064
30409
  required:
30065
30410
  - contents
30411
+ APIIntercomMessengerToken:
30412
+ type: object
30413
+ properties:
30414
+ token:
30415
+ type: string
30416
+ description: Short-lived JWT used to authenticate the user with Intercom Messenger
30417
+ expiresAt:
30418
+ type: integer
30419
+ description: Unix timestamp in seconds when the token expires
30420
+ required:
30421
+ - token
30422
+ - expiresAt
30066
30423
  SignedURL:
30067
30424
  type: object
30068
30425
  properties:
@@ -30490,12 +30847,6 @@ components:
30490
30847
  description: JWT token generated for a authenticated access session.
30491
30848
  unsignedClaims:
30492
30849
  $ref: "#/components/schemas/PlainObject"
30493
- GitSyncInstallationProvider:
30494
- type: string
30495
- description: The provider of the Git Sync installation.
30496
- enum:
30497
- - github
30498
- - gitlab
30499
30850
  GitSyncGitHubRepository:
30500
30851
  type: object
30501
30852
  description: GitHub repository that can be selected for Git Sync.
@@ -31103,11 +31454,6 @@ components:
31103
31454
  - tag_created
31104
31455
  - tag_deleted
31105
31456
  - tag_edited
31106
- GitSyncOperationDirection:
31107
- type: string
31108
- enum:
31109
- - export
31110
- - import
31111
31457
  GitSyncOperationStage:
31112
31458
  type: string
31113
31459
  description: |
@@ -31203,10 +31549,11 @@ components:
31203
31549
  A space — a single content unit in the site's navigation tree. Discriminated
31204
31550
  by `type: space`.
31205
31551
 
31206
- The space's content lives in the synced repository at the directory pointed
31207
- to by `content.directory`. Hierarchy comes from where the space appears in
31208
- the YAML (under a section, a section group, or at the root), not from an
31209
- explicit parent reference.
31552
+ The space's content either lives in the synced repository at the directory
31553
+ pointed to by `content.directory`, or does not inherit the site's repository
31554
+ when `content.directory` is `null`. Hierarchy comes from where the space
31555
+ appears in the YAML (under a section, a section group, or at the root), not
31556
+ from an explicit parent reference.
31210
31557
  properties:
31211
31558
  type:
31212
31559
  type: string
@@ -31241,12 +31588,15 @@ components:
31241
31588
  content:
31242
31589
  type: object
31243
31590
  additionalProperties: false
31244
- description: Where the space's content lives in the synced repository.
31591
+ description: Where the space's content is managed.
31245
31592
  properties:
31246
31593
  directory:
31247
- type: string
31248
- description: Repository-relative directory containing this space's content.
31249
- minLength: 1
31594
+ oneOf:
31595
+ - type: string
31596
+ description: Repository-relative directory containing this space's content.
31597
+ minLength: 1
31598
+ - type: "null"
31599
+ description: The space does not inherit the site's repository.
31250
31600
  language:
31251
31601
  $ref: "#/components/schemas/TranslationLanguage"
31252
31602
  required:
@@ -31292,9 +31642,6 @@ components:
31292
31642
  default:
31293
31643
  type: boolean
31294
31644
  description: Whether this is the default section for the site.
31295
- draft:
31296
- type: boolean
31297
- description: Whether the section is draft and not live.
31298
31645
  path:
31299
31646
  $ref: "#/components/schemas/SiteSectionPath"
31300
31647
  condition:
@@ -31324,542 +31671,6 @@ components:
31324
31671
  three node types: a section group, a section, or a space.
31325
31672
  items:
31326
31673
  $ref: "#/components/schemas/GitSyncSiteStructureNode"
31327
- GitSyncSiteCustomizationFontSource:
31328
- type: string
31329
- description: |
31330
- Reserved repository-relative path to the font file:
31331
- `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
31332
- font definition's `key`, `<weight>` is this face's `weight`, and
31333
- `<ext>` is one of `woff2`, `woff`.
31334
-
31335
- For example, a font with `key: brand` and a `700` face is read from
31336
- `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
31337
- minLength: 1
31338
- GitSyncSiteCustomizationFontDefinition:
31339
- type: object
31340
- description: |
31341
- Custom font definition for a `site.fonts[]` entry. Referenced from
31342
- `customization.styling.font` or `customization.styling.monospaceFont` via
31343
- its `key`.
31344
-
31345
- Rules enforced on a definition:
31346
- - It must declare exactly one face for the `400` weight and one for the
31347
- `700` weight; the `600` weight is optional. No other weights are allowed,
31348
- and a weight may not be declared more than once.
31349
- - Each face has a single source file whose `url` is the reserved repository
31350
- asset path `.gitbook/assets/<key>-<weight>.<ext>` (`<ext>` is `woff2` or
31351
- `woff`). For example a definition with `key: brand` is read from
31352
- `.gitbook/assets/brand-400.woff2` and `.gitbook/assets/brand-700.woff2`.
31353
- properties:
31354
- key:
31355
- type: string
31356
- description: |
31357
- Stable identifier referenced from `styling.font` /
31358
- `styling.monospaceFont`, and used as the prefix of each face's
31359
- reserved asset path (`.gitbook/assets/<key>-<weight>.<ext>`).
31360
- minLength: 1
31361
- pattern: ^[A-Za-z0-9][A-Za-z0-9_-]*$
31362
- fontFamily:
31363
- $ref: "#/components/schemas/FontFamily"
31364
- fontFaces:
31365
- type: object
31366
- description: |
31367
- Font-face declarations keyed by weight, each specifying its single
31368
- source file. The `400` and `700` weights are required; `600` is
31369
- optional.
31370
- properties:
31371
- "400":
31372
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
31373
- "600":
31374
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
31375
- "700":
31376
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
31377
- required:
31378
- - "400"
31379
- - "700"
31380
- additionalProperties: false
31381
- required:
31382
- - key
31383
- - fontFamily
31384
- - fontFaces
31385
- GitSyncSiteCustomizationThemedColor:
31386
- type: object
31387
- description: |
31388
- Themed color (light + dark).
31389
- properties:
31390
- light:
31391
- $ref: "#/components/schemas/Color"
31392
- dark:
31393
- $ref: "#/components/schemas/Color"
31394
- required:
31395
- - light
31396
- - dark
31397
- GitSyncSiteCustomizationTint:
31398
- type: object
31399
- description: |
31400
- Tint configuration.
31401
- properties:
31402
- color:
31403
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31404
- required:
31405
- - color
31406
- GitSyncSiteCustomizationFontReference:
31407
- type: object
31408
- description: |
31409
- Reference to a custom font defined under `site.fonts[]`. Matches by `key`.
31410
- properties:
31411
- key:
31412
- type: string
31413
- description: Matches the `key` of an entry in `site.fonts[]`.
31414
- minLength: 1
31415
- required:
31416
- - key
31417
- GitSyncSiteCustomizationFont:
31418
- description: |
31419
- Body font for the site. Either one of the built-in `CustomizationDefaultFont`
31420
- values, or a reference to a custom font declared in `site.fonts[]`.
31421
- oneOf:
31422
- - $ref: "#/components/schemas/CustomizationDefaultFont"
31423
- - $ref: "#/components/schemas/GitSyncSiteCustomizationFontReference"
31424
- GitSyncSiteCustomizationMonospaceFont:
31425
- description: |
31426
- Monospace font for the site. Either one of the built-in
31427
- `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
31428
- declared in `site.fonts[]`.
31429
- oneOf:
31430
- - $ref: "#/components/schemas/CustomizationDefaultMonospaceFont"
31431
- - $ref: "#/components/schemas/GitSyncSiteCustomizationFontReference"
31432
- GitSyncSiteCustomizationThemedCodeTheme:
31433
- type: object
31434
- description: |
31435
- Themed code theme (light + dark).
31436
- properties:
31437
- light:
31438
- $ref: "#/components/schemas/CustomizationCodeTheme"
31439
- dark:
31440
- $ref: "#/components/schemas/CustomizationCodeTheme"
31441
- required:
31442
- - light
31443
- - dark
31444
- GitSyncSiteCustomizationCodeThemes:
31445
- type: object
31446
- description: |
31447
- Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples.
31448
- properties:
31449
- default:
31450
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
31451
- openapi:
31452
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
31453
- required:
31454
- - default
31455
- - openapi
31456
- GitSyncSiteCustomizationSidebar:
31457
- type: object
31458
- description: |
31459
- Sidebar style settings.
31460
- properties:
31461
- background:
31462
- $ref: "#/components/schemas/CustomizationSidebarBackgroundStyle"
31463
- list:
31464
- $ref: "#/components/schemas/CustomizationSidebarListStyle"
31465
- required:
31466
- - background
31467
- - list
31468
- GitSyncSiteCustomizationStyling:
31469
- type: object
31470
- description: |
31471
- Styling settings.
31472
- properties:
31473
- theme:
31474
- $ref: "#/components/schemas/CustomizationTheme"
31475
- primaryColor:
31476
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31477
- tint:
31478
- $ref: "#/components/schemas/GitSyncSiteCustomizationTint"
31479
- infoColor:
31480
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31481
- successColor:
31482
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31483
- warningColor:
31484
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31485
- dangerColor:
31486
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31487
- corners:
31488
- $ref: "#/components/schemas/CustomizationCorners"
31489
- depth:
31490
- $ref: "#/components/schemas/CustomizationDepth"
31491
- links:
31492
- $ref: "#/components/schemas/CustomizationLinksStyle"
31493
- font:
31494
- $ref: "#/components/schemas/GitSyncSiteCustomizationFont"
31495
- monospaceFont:
31496
- $ref: "#/components/schemas/GitSyncSiteCustomizationMonospaceFont"
31497
- icons:
31498
- $ref: "#/components/schemas/CustomizationIconsStyle"
31499
- codeTheme:
31500
- $ref: "#/components/schemas/GitSyncSiteCustomizationCodeThemes"
31501
- sidebar:
31502
- $ref: "#/components/schemas/GitSyncSiteCustomizationSidebar"
31503
- search:
31504
- $ref: "#/components/schemas/CustomizationSearchStyle"
31505
- GitSyncSiteCustomizationAssetPath:
31506
- type: string
31507
- description: |
31508
- Repository-relative path to an asset in a site Git Sync, e.g.
31509
- `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
31510
- here — Git Sync assets must live in the synced repository under
31511
- `.gitbook/assets/`.
31512
-
31513
- This is the shared base type and only validates the `.gitbook/assets/`
31514
- prefix. Each field that uses it additionally reserves a specific filename
31515
- and set of allowed extensions (e.g. the header logo must be
31516
- `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
31517
- on the consuming field for the exact reserved path.
31518
- pattern: ^\.gitbook/assets/.+
31519
- maxLength: 2048
31520
- GitSyncSiteCustomizationThemedAssetPath:
31521
- type: object
31522
- description: |
31523
- Light/dark variants of a Git Sync repository asset path. Used for logos and
31524
- favicons that switch with the active theme. Both variants are required.
31525
-
31526
- Each consuming field reserves the exact light/dark filenames and allowed
31527
- extensions (e.g. header logo → `header-logo-light.<ext>` /
31528
- `header-logo-dark.<ext>`); see the description on the consuming field.
31529
- properties:
31530
- light:
31531
- $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
31532
- dark:
31533
- $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
31534
- required:
31535
- - light
31536
- - dark
31537
- GitSyncSiteCustomizationFavicon:
31538
- description: |
31539
- Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character;
31540
- oneOf:
31541
- - type: object
31542
- properties:
31543
- icon:
31544
- description: |
31545
- Themed favicon. Each variant must use its reserved repository
31546
- asset path — light: `.gitbook/assets/favicon-light.<ext>`,
31547
- dark: `.gitbook/assets/favicon-dark.<ext>`, where `<ext>` is
31548
- the image's file extension (e.g. `png`, `svg`, `ico`). Any
31549
- other filename is rejected.
31550
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
31551
- required:
31552
- - icon
31553
- - type: object
31554
- properties:
31555
- emoji:
31556
- $ref: "#/components/schemas/Emoji"
31557
- required:
31558
- - emoji
31559
- GitSyncSiteCustomizationContentLinkTo:
31560
- type: string
31561
- description: |
31562
- Link destination, written as a path-string in YAML. Same format as
31563
- markdown content links, e.g. `https://example.com`, `/pages/<id>`,
31564
- `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
31565
- GitSyncSiteCustomizationContentLink:
31566
- type: object
31567
- description: |
31568
- A label plus a destination, used inside header items, footer groups, and announcements.
31569
- properties:
31570
- title:
31571
- $ref: "#/components/schemas/CustomizationContentLinkTitle"
31572
- localizedTitle:
31573
- description: Localized overrides for the link title, keyed by locale.
31574
- $ref: "#/components/schemas/LocalizedString64"
31575
- to:
31576
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
31577
- required:
31578
- - title
31579
- - to
31580
- GitSyncSiteCustomizationHeaderItem:
31581
- type: object
31582
- description: |
31583
- A single item in the published site's top navigation bar.
31584
- properties:
31585
- title:
31586
- type: string
31587
- localizedTitle:
31588
- description: Localized overrides for the header item title, keyed by locale.
31589
- $ref: "#/components/schemas/LocalizedString"
31590
- style:
31591
- type: string
31592
- enum:
31593
- - link
31594
- - button-primary
31595
- - button-secondary
31596
- to:
31597
- description: |
31598
- Header item destination. Use `null` for items that act as a
31599
- dropdown root without a link of their own.
31600
- oneOf:
31601
- - $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
31602
- - type: "null"
31603
- links:
31604
- type: array
31605
- description: Sub-links shown as a dropdown under this header item. Empty array means no dropdown.
31606
- items:
31607
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
31608
- condition:
31609
- description: Conditional expression evaluated to decide whether the item is shown to the visitor.
31610
- $ref: "#/components/schemas/Expression"
31611
- required:
31612
- - title
31613
- - to
31614
- - links
31615
- GitSyncSiteCustomizationHeader:
31616
- type: object
31617
- description: |
31618
- Header settings.
31619
- properties:
31620
- logo:
31621
- description: |
31622
- Themed header logo. Each variant must use its reserved repository
31623
- asset path — light: `.gitbook/assets/header-logo-light.<ext>`, dark:
31624
- `.gitbook/assets/header-logo-dark.<ext>`, where `<ext>` is the
31625
- image's file extension (e.g. `png`, `svg`). Any other filename is
31626
- rejected.
31627
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
31628
- primaryLink:
31629
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
31630
- links:
31631
- type: array
31632
- items:
31633
- $ref: "#/components/schemas/GitSyncSiteCustomizationHeaderItem"
31634
- GitSyncSiteCustomizationFooterGroup:
31635
- type: object
31636
- description: |
31637
- A group of links shown in the published site's footer.
31638
- properties:
31639
- title:
31640
- type: string
31641
- localizedTitle:
31642
- description: Localized overrides for the footer group title, keyed by locale.
31643
- $ref: "#/components/schemas/LocalizedString"
31644
- links:
31645
- type: array
31646
- items:
31647
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
31648
- required:
31649
- - title
31650
- - links
31651
- GitSyncSiteCustomizationFooter:
31652
- type: object
31653
- description: |
31654
- Footer settings.
31655
- properties:
31656
- logo:
31657
- description: |
31658
- Themed footer logo. Each variant must use its reserved repository
31659
- asset path — light: `.gitbook/assets/footer-logo-light.<ext>`, dark:
31660
- `.gitbook/assets/footer-logo-dark.<ext>`, where `<ext>` is the
31661
- image's file extension (e.g. `png`, `svg`). Any other filename is
31662
- rejected.
31663
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
31664
- groups:
31665
- type: array
31666
- items:
31667
- $ref: "#/components/schemas/GitSyncSiteCustomizationFooterGroup"
31668
- copyright:
31669
- type: string
31670
- maxLength: 300
31671
- GitSyncSiteCustomizationAnnouncement:
31672
- type: object
31673
- description: |
31674
- Announcement banner shown above the published site.
31675
- properties:
31676
- enabled:
31677
- description: Whether to show the site's announcement.
31678
- type: boolean
31679
- message:
31680
- $ref: "#/components/schemas/CustomizationAnnouncementMessage"
31681
- localizedMessage:
31682
- description: Localized overrides for the announcement message, keyed by locale.
31683
- $ref: "#/components/schemas/LocalizedString128"
31684
- link:
31685
- description: The content or URL the announcement links to when clicked.
31686
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
31687
- style:
31688
- description: Semantic style of the announcement banner.
31689
- type: string
31690
- enum:
31691
- - info
31692
- - warning
31693
- - danger
31694
- - success
31695
- required:
31696
- - enabled
31697
- - message
31698
- - style
31699
- GitSyncSiteCustomizationThemeModes:
31700
- type: object
31701
- description: |
31702
- Dark/light theme mode settings.
31703
- properties:
31704
- default:
31705
- $ref: "#/components/schemas/CustomizationDefaultThemeMode"
31706
- toggeable:
31707
- description: Whether readers can switch between dark and light mode.
31708
- type: boolean
31709
- required:
31710
- - default
31711
- - toggeable
31712
- GitSyncSiteCustomizationFeedback:
31713
- type: object
31714
- description: |
31715
- Reader feedback settings.
31716
- properties:
31717
- enabled:
31718
- type: boolean
31719
- description: Whether reader feedback gathering is enabled.
31720
- required:
31721
- - enabled
31722
- GitSyncSiteCustomizationAI:
31723
- type: object
31724
- description: |
31725
- AI assistant settings.
31726
- properties:
31727
- mode:
31728
- $ref: "#/components/schemas/CustomizationAIMode"
31729
- suggestions:
31730
- $ref: "#/components/schemas/CustomizationSuggestedQuestions"
31731
- required:
31732
- - mode
31733
- GitSyncSiteCustomizationPageActions:
31734
- type: array
31735
- description: |
31736
- Ordered page-level action buttons exposed in the published site's page menu.
31737
- uniqueItems: true
31738
- items:
31739
- $ref: "#/components/schemas/CustomizationPageActionType"
31740
- GitSyncSiteCustomizationExternalLinks:
31741
- type: object
31742
- description: |
31743
- External link behavior.
31744
- properties:
31745
- target:
31746
- $ref: "#/components/schemas/SiteExternalLinksTarget"
31747
- required:
31748
- - target
31749
- GitSyncSiteCustomizationPagination:
31750
- type: object
31751
- description: |
31752
- Pagination navigation settings.
31753
- properties:
31754
- enabled:
31755
- type: boolean
31756
- description: Whether the prev/next pagination navigation is shown on pages.
31757
- required:
31758
- - enabled
31759
- GitSyncSiteCustomizationPrivacyPolicy:
31760
- type: object
31761
- description: |
31762
- Privacy policy link shown on the published site.
31763
- properties:
31764
- url:
31765
- $ref: "#/components/schemas/URL"
31766
- GitSyncSiteCustomizationSocialPreview:
31767
- type: object
31768
- description: |
31769
- Social preview asset.
31770
- properties:
31771
- url:
31772
- description: |
31773
- Reserved repository asset path for the social preview image:
31774
- `.gitbook/assets/social-preview.<ext>`, where `<ext>` is the
31775
- image's file extension (e.g. `png`, `jpg`). Any other filename is
31776
- rejected.
31777
- $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
31778
- GitSyncSiteCustomizationSocialAccount:
31779
- type: object
31780
- description: |
31781
- A single social account entry.
31782
- properties:
31783
- platform:
31784
- $ref: "#/components/schemas/SiteSocialAccountPlatform"
31785
- handle:
31786
- $ref: "#/components/schemas/SiteSocialAccountHandle"
31787
- display:
31788
- type: object
31789
- properties:
31790
- footer:
31791
- type: boolean
31792
- header:
31793
- type: boolean
31794
- required:
31795
- - footer
31796
- - header
31797
- required:
31798
- - platform
31799
- - handle
31800
- - display
31801
- GitSyncSiteCustomizationInsights:
31802
- type: object
31803
- description: |
31804
- Visitor insights settings.
31805
- properties:
31806
- trackingCookie:
31807
- type: boolean
31808
- description: Whether GitBook identifies visitors on the site using a cookie.
31809
- required:
31810
- - trackingCookie
31811
- GitSyncSiteCustomization:
31812
- type: object
31813
- description: |
31814
- Customization settings for the published site, authored in `docs.yaml`.
31815
-
31816
- Every top-level field is optional — a Git Sync YAML is a **sparse override** of
31817
- the live customization. Fields you don't include stay at whatever the site
31818
- has as default.
31819
-
31820
- Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
31821
- have a matching definition under `site.fonts[]`.
31822
- properties:
31823
- publishedTitle:
31824
- description: Title to use for the published site. If omitted, falls back to the default site title.
31825
- $ref: "#/components/schemas/SiteTitle"
31826
- localizedPublishedTitles:
31827
- description: Localized titles for the published site, keyed by locale.
31828
- $ref: "#/components/schemas/LocalizedString128"
31829
- styling:
31830
- $ref: "#/components/schemas/GitSyncSiteCustomizationStyling"
31831
- favicon:
31832
- $ref: "#/components/schemas/GitSyncSiteCustomizationFavicon"
31833
- header:
31834
- $ref: "#/components/schemas/GitSyncSiteCustomizationHeader"
31835
- footer:
31836
- $ref: "#/components/schemas/GitSyncSiteCustomizationFooter"
31837
- announcement:
31838
- $ref: "#/components/schemas/GitSyncSiteCustomizationAnnouncement"
31839
- themeModes:
31840
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemeModes"
31841
- feedback:
31842
- $ref: "#/components/schemas/GitSyncSiteCustomizationFeedback"
31843
- ai:
31844
- $ref: "#/components/schemas/GitSyncSiteCustomizationAI"
31845
- pageActions:
31846
- $ref: "#/components/schemas/GitSyncSiteCustomizationPageActions"
31847
- externalLinks:
31848
- $ref: "#/components/schemas/GitSyncSiteCustomizationExternalLinks"
31849
- pagination:
31850
- $ref: "#/components/schemas/GitSyncSiteCustomizationPagination"
31851
- privacyPolicy:
31852
- $ref: "#/components/schemas/GitSyncSiteCustomizationPrivacyPolicy"
31853
- socialPreview:
31854
- $ref: "#/components/schemas/GitSyncSiteCustomizationSocialPreview"
31855
- socialAccounts:
31856
- type: array
31857
- description: Social accounts to surface on the site.
31858
- items:
31859
- $ref: "#/components/schemas/GitSyncSiteCustomizationSocialAccount"
31860
- maxItems: 10
31861
- insights:
31862
- $ref: "#/components/schemas/GitSyncSiteCustomizationInsights"
31863
31674
  GitSyncSiteConfig:
31864
31675
  type: object
31865
31676
  description: |
@@ -31884,13 +31695,6 @@ components:
31884
31695
  minLength: 1
31885
31696
  structure:
31886
31697
  $ref: "#/components/schemas/GitSyncSiteStructure"
31887
- fonts:
31888
- type: array
31889
- description: Custom font definitions referenced from `site.customization.styling`.
31890
- items:
31891
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontDefinition"
31892
- customization:
31893
- $ref: "#/components/schemas/GitSyncSiteCustomization"
31894
31698
  required:
31895
31699
  - title
31896
31700
  - structure