@gitbook/api 0.190.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:
@@ -8329,6 +8329,52 @@ paths:
8329
8329
  - $ref: "#/components/schemas/SearchRecordResult"
8330
8330
  discriminator:
8331
8331
  propertyName: type
8332
+ /orgs/{organizationId}/sites/{siteId}/agent-feedback:
8333
+ post:
8334
+ operationId: submitSiteAgentFeedback
8335
+ summary: Submit agent feedback for a site
8336
+ description: Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.
8337
+ x-internal: true
8338
+ tags:
8339
+ - site-insights
8340
+ security:
8341
+ - user: []
8342
+ parameters:
8343
+ - $ref: "#/components/parameters/organizationId"
8344
+ - $ref: "#/components/parameters/siteId"
8345
+ requestBody:
8346
+ required: true
8347
+ content:
8348
+ application/json:
8349
+ schema:
8350
+ type: object
8351
+ properties:
8352
+ feedback:
8353
+ description: The feedback about the content of the site.
8354
+ type: string
8355
+ minLength: 1
8356
+ maxLength: 2048
8357
+ goal:
8358
+ description: |
8359
+ The end goal the agent is trying to accomplish on behalf of the user, giving the context the agent was working towards when it encountered the issue.
8360
+ $ref: "#/components/schemas/AgentGoal"
8361
+ url:
8362
+ description: URL of the content the feedback is about.
8363
+ $ref: "#/components/schemas/URL"
8364
+ spaceId:
8365
+ description: ID of the space the feedback is about.
8366
+ type: string
8367
+ pageId:
8368
+ description: ID of the page the feedback is about.
8369
+ type: string
8370
+ required:
8371
+ - feedback
8372
+ - url
8373
+ - spaceId
8374
+ - pageId
8375
+ responses:
8376
+ "204":
8377
+ description: Feedback submitted
8332
8378
  /orgs/{organizationId}/sites/{siteId}/ask:
8333
8379
  post:
8334
8380
  operationId: streamAskInSite
@@ -8547,37 +8593,6 @@ paths:
8547
8593
  type: array
8548
8594
  items:
8549
8595
  $ref: "#/components/schemas/SiteScan"
8550
- post:
8551
- operationId: createSiteScan
8552
- summary: Enqueue a new site scan
8553
- tags:
8554
- - site-context
8555
- security:
8556
- - user: []
8557
- - oauth:
8558
- - site:write
8559
- parameters:
8560
- - $ref: "#/components/parameters/organizationId"
8561
- - $ref: "#/components/parameters/siteId"
8562
- requestBody:
8563
- required: true
8564
- content:
8565
- application/json:
8566
- schema:
8567
- type: object
8568
- required:
8569
- - topic
8570
- properties:
8571
- topic:
8572
- type: string
8573
- description: The site topic ID to scan.
8574
- responses:
8575
- "202":
8576
- description: Site scan has been enqueued
8577
- content:
8578
- application/json:
8579
- schema:
8580
- $ref: "#/components/schemas/SiteScan"
8581
8596
  /orgs/{organizationId}/sites/{siteId}/scans/{siteScanId}:
8582
8597
  get:
8583
8598
  operationId: getSiteScanById
@@ -8639,6 +8654,20 @@ paths:
8639
8654
  description: Filter findings that have at least one associated change request.
8640
8655
  schema:
8641
8656
  type: boolean
8657
+ - name: source
8658
+ in: query
8659
+ 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 returned.
8660
+ schema:
8661
+ type: array
8662
+ items:
8663
+ oneOf:
8664
+ - $ref: "#/components/schemas/SiteTriageFilterQuestions"
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"
8642
8671
  responses:
8643
8672
  "200":
8644
8673
  description: OK
@@ -8851,6 +8880,61 @@ paths:
8851
8880
  type: array
8852
8881
  items:
8853
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"
8854
8938
  /orgs/{organizationId}/sites/{siteId}/context-connections:
8855
8939
  get:
8856
8940
  operationId: listSiteContextConnections
@@ -9644,6 +9728,46 @@ paths:
9644
9728
  description: Site space did not exist
9645
9729
  "205":
9646
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"
9647
9771
  /orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization:
9648
9772
  get:
9649
9773
  operationId: getSiteSpaceCustomizationById
@@ -10363,6 +10487,25 @@ paths:
10363
10487
  text/event-stream:
10364
10488
  schema:
10365
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.
10366
10509
  /orgs/{organizationId}/sites/{siteId}/agent-settings:
10367
10510
  get:
10368
10511
  operationId: getSiteAgentSettingsById
@@ -12809,6 +12952,11 @@ components:
12809
12952
  - failure
12810
12953
  - success
12811
12954
  - timeout
12955
+ GitSyncOperationDirection:
12956
+ type: string
12957
+ enum:
12958
+ - export
12959
+ - import
12812
12960
  GitSyncState:
12813
12961
  type: object
12814
12962
  properties:
@@ -12826,6 +12974,9 @@ components:
12826
12974
  installationId:
12827
12975
  type: string
12828
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.
12829
12980
  url:
12830
12981
  type: string
12831
12982
  description: The URL to the repository tree, used when rendering public content.
@@ -12835,11 +12986,26 @@ components:
12835
12986
  properties:
12836
12987
  state:
12837
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.
12838
12998
  required:
12839
12999
  - state
13000
+ - direction
13001
+ - startedAt
12840
13002
  updatedAt:
12841
13003
  description: When the Git provider details were last updated
12842
13004
  $ref: "#/components/schemas/Timestamp"
13005
+ required:
13006
+ - installationId
13007
+ - installationProvider
13008
+ - installationStatus
12843
13009
  VisitorAuthCustomBackend:
12844
13010
  type: object
12845
13011
  title: Custom backend for authenticated access
@@ -13208,6 +13374,12 @@ components:
13208
13374
  type: string
13209
13375
  score:
13210
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
13211
13383
  body:
13212
13384
  type: string
13213
13385
  urls:
@@ -13239,6 +13411,12 @@ components:
13239
13411
  type: string
13240
13412
  score:
13241
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
13242
13420
  sections:
13243
13421
  type: array
13244
13422
  items:
@@ -14281,7 +14459,7 @@ components:
14281
14459
  - type
14282
14460
  - data
14283
14461
  - nodes
14284
- DocumentBlockHint:
14462
+ DocumentBlockEmbed:
14285
14463
  type: object
14286
14464
  properties:
14287
14465
  object:
@@ -14291,88 +14469,270 @@ components:
14291
14469
  type:
14292
14470
  type: string
14293
14471
  enum:
14294
- - hint
14472
+ - embed
14295
14473
  key:
14296
14474
  type: string
14297
14475
  data:
14298
14476
  type: object
14299
14477
  properties:
14300
- style:
14478
+ url:
14301
14479
  type: string
14302
- enum:
14303
- - info
14304
- - warning
14305
- - danger
14306
- - success
14307
- icon:
14308
- $ref: "#/components/schemas/Icon"
14480
+ fullWidth:
14481
+ type: boolean
14309
14482
  required:
14310
- - style
14311
- nodes:
14312
- type: array
14313
- items:
14314
- $ref: "#/components/schemas/DocumentBlocksEssentials"
14483
+ - url
14315
14484
  isVoid:
14316
14485
  type: boolean
14317
14486
  enum:
14318
- - false
14487
+ - true
14319
14488
  required:
14320
14489
  - object
14321
14490
  - type
14322
14491
  - data
14323
- - nodes
14324
- DocumentBlockQuote:
14325
- type: object
14326
- properties:
14327
- object:
14328
- type: string
14329
- enum:
14330
- - block
14331
- type:
14332
- type: string
14333
- enum:
14334
- - blockquote
14335
- key:
14336
- type: string
14337
- nodes:
14338
- type: array
14339
- items:
14340
- oneOf:
14341
- - $ref: "#/components/schemas/DocumentBlocksEssentials"
14342
- - $ref: "#/components/schemas/DocumentBlockQuote"
14343
- isVoid:
14344
- type: boolean
14345
- enum:
14346
- - false
14347
- data:
14348
- type: object
14349
- properties: {}
14350
- additionalProperties: false
14351
- required:
14352
- - object
14353
- - type
14354
- - nodes
14355
- DocumentBlockMath:
14356
- type: object
14357
- properties:
14358
- object:
14359
- type: string
14360
- enum:
14361
- - block
14362
- type:
14363
- type: string
14364
- enum:
14365
- - math
14366
- key:
14367
- type: string
14368
- data:
14369
- type: object
14370
- properties:
14371
- formula:
14372
- type: string
14373
- required:
14374
- - formula
14375
- isVoid:
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:
14585
+ type: object
14586
+ properties:
14587
+ object:
14588
+ type: string
14589
+ enum:
14590
+ - block
14591
+ type:
14592
+ type: string
14593
+ enum:
14594
+ - integration
14595
+ key:
14596
+ type: string
14597
+ data:
14598
+ type: object
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
14715
+ DocumentBlockMath:
14716
+ type: object
14717
+ properties:
14718
+ object:
14719
+ type: string
14720
+ enum:
14721
+ - block
14722
+ type:
14723
+ type: string
14724
+ enum:
14725
+ - math
14726
+ key:
14727
+ type: string
14728
+ data:
14729
+ type: object
14730
+ properties:
14731
+ formula:
14732
+ type: string
14733
+ required:
14734
+ - formula
14735
+ isVoid:
14376
14736
  type: boolean
14377
14737
  enum:
14378
14738
  - true
@@ -15176,7 +15536,7 @@ components:
15176
15536
  - type
15177
15537
  - data
15178
15538
  - isVoid
15179
- DocumentBlockEmbed:
15539
+ DocumentBlockReusableContent:
15180
15540
  type: object
15181
15541
  properties:
15182
15542
  object:
@@ -15186,47 +15546,16 @@ components:
15186
15546
  type:
15187
15547
  type: string
15188
15548
  enum:
15189
- - embed
15549
+ - reusable-content
15190
15550
  key:
15191
15551
  type: string
15192
15552
  data:
15193
15553
  type: object
15194
15554
  properties:
15195
- url:
15196
- type: string
15197
- fullWidth:
15198
- type: boolean
15555
+ ref:
15556
+ $ref: "#/components/schemas/ContentRefReusableContent"
15199
15557
  required:
15200
- - url
15201
- isVoid:
15202
- type: boolean
15203
- enum:
15204
- - true
15205
- required:
15206
- - object
15207
- - type
15208
- - data
15209
- - isVoid
15210
- DocumentBlockReusableContent:
15211
- type: object
15212
- properties:
15213
- object:
15214
- type: string
15215
- enum:
15216
- - block
15217
- type:
15218
- type: string
15219
- enum:
15220
- - reusable-content
15221
- key:
15222
- type: string
15223
- data:
15224
- type: object
15225
- properties:
15226
- ref:
15227
- $ref: "#/components/schemas/ContentRefReusableContent"
15228
- required:
15229
- - ref
15558
+ - ref
15230
15559
  isVoid:
15231
15560
  type: boolean
15232
15561
  enum:
@@ -15242,154 +15571,6 @@ components:
15242
15571
  - type
15243
15572
  - data
15244
15573
  - isVoid
15245
- PlainObject:
15246
- properties: {}
15247
- additionalProperties:
15248
- oneOf:
15249
- - $ref: "#/components/schemas/PlainObject"
15250
- - type: string
15251
- - type: boolean
15252
- - type: number
15253
- - type: array
15254
- items:
15255
- oneOf:
15256
- - type: string
15257
- - type: boolean
15258
- - type: number
15259
- - $ref: "#/components/schemas/PlainObject"
15260
- ContentKitDefaultAction:
15261
- oneOf:
15262
- - type: object
15263
- description: Action to open an overlay modal defined by "componentId".
15264
- properties:
15265
- action:
15266
- type: string
15267
- enum:
15268
- - "@ui.modal.open"
15269
- componentId:
15270
- type: string
15271
- props:
15272
- $ref: "#/components/schemas/PlainObject"
15273
- required:
15274
- - action
15275
- - componentId
15276
- - props
15277
- - type: object
15278
- 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.
15279
- properties:
15280
- action:
15281
- type: string
15282
- enum:
15283
- - "@ui.modal.close"
15284
- returnValue:
15285
- $ref: "#/components/schemas/PlainObject"
15286
- required:
15287
- - action
15288
- - returnValue
15289
- - type: object
15290
- description: Action to open an url.
15291
- properties:
15292
- action:
15293
- type: string
15294
- enum:
15295
- - "@ui.url.open"
15296
- url:
15297
- type: string
15298
- required:
15299
- - action
15300
- - url
15301
- - type: object
15302
- description: Action when a link is being unfurled into a block.
15303
- properties:
15304
- action:
15305
- type: string
15306
- enum:
15307
- - "@link.unfurl"
15308
- url:
15309
- type: string
15310
- required:
15311
- - action
15312
- - url
15313
- - type: object
15314
- description: Action to update the properties stored in the related node.
15315
- properties:
15316
- action:
15317
- type: string
15318
- enum:
15319
- - "@editor.node.updateProps"
15320
- props:
15321
- $ref: "#/components/schemas/PlainObject"
15322
- required:
15323
- - action
15324
- - props
15325
- ContentKitAction:
15326
- anyOf:
15327
- - type: object
15328
- description: Custom action to re-render the block.
15329
- properties:
15330
- action:
15331
- type: string
15332
- additionalProperties: true
15333
- required:
15334
- - action
15335
- - $ref: "#/components/schemas/ContentKitDefaultAction"
15336
- DocumentBlockIntegration:
15337
- type: object
15338
- properties:
15339
- object:
15340
- type: string
15341
- enum:
15342
- - block
15343
- type:
15344
- type: string
15345
- enum:
15346
- - integration
15347
- key:
15348
- type: string
15349
- data:
15350
- type: object
15351
- properties:
15352
- integration:
15353
- type: string
15354
- description: Name of the integration
15355
- block:
15356
- type: string
15357
- description: ID of the block in the integration
15358
- props:
15359
- description: Properties passed to the block during rendering
15360
- $ref: "#/components/schemas/PlainObject"
15361
- action:
15362
- $ref: "#/components/schemas/ContentKitAction"
15363
- url:
15364
- type: string
15365
- description: |
15366
- URL associated with the content represented by the block.
15367
- This property is set when creating a block from a URL (unfurl) to ensure
15368
- we can convert the block back to an embed.
15369
- fullWidth:
15370
- type: boolean
15371
- required:
15372
- - integration
15373
- - block
15374
- - props
15375
- isVoid:
15376
- type: boolean
15377
- enum:
15378
- - true
15379
- meta:
15380
- type: object
15381
- properties:
15382
- token:
15383
- type: string
15384
- description: A content token that can be used to authenticate requests for cross-space integration blocks.
15385
- spaceId:
15386
- type: string
15387
- description: ID of the space the integration block originates from
15388
- required:
15389
- - object
15390
- - type
15391
- - data
15392
- - isVoid
15393
15574
  DocumentBlockExpandable:
15394
15575
  type: object
15395
15576
  properties:
@@ -16127,9 +16308,11 @@ components:
16127
16308
  - data
16128
16309
  - isVoid
16129
16310
  DocumentAction:
16311
+ description: Action to perform when an inline button is clicked.
16130
16312
  type: object
16131
16313
  oneOf:
16132
16314
  - type: object
16315
+ description: Open a search input, optionally prefilled with a search query.
16133
16316
  properties:
16134
16317
  action:
16135
16318
  type: string
@@ -16137,10 +16320,12 @@ components:
16137
16320
  - search
16138
16321
  query:
16139
16322
  type: string
16323
+ description: The search query to prefill.
16140
16324
  required:
16141
16325
  - action
16142
16326
  additionalProperties: false
16143
16327
  - type: object
16328
+ description: Open an AI input, optionally prefilled with a question.
16144
16329
  properties:
16145
16330
  action:
16146
16331
  type: string
@@ -16148,8 +16333,23 @@ components:
16148
16333
  - ask
16149
16334
  query:
16150
16335
  type: string
16336
+ description: The question to prefill.
16337
+ required:
16338
+ - action
16339
+ additionalProperties: false
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.
16151
16350
  required:
16152
16351
  - action
16352
+ - slug
16153
16353
  additionalProperties: false
16154
16354
  DocumentInlineButton:
16155
16355
  type: object
@@ -23700,6 +23900,14 @@ components:
23700
23900
  type: boolean
23701
23901
  default: false
23702
23902
  description: Whether previews should be generated from branches outside the configured branch.
23903
+ agentInstructions:
23904
+ type: array
23905
+ description: Agent instruction files GitBook should always export at the repository root.
23906
+ items:
23907
+ type: string
23908
+ enum:
23909
+ - agents
23910
+ - claude
23703
23911
  priority:
23704
23912
  $ref: "#/components/schemas/GitSyncInstallationPriority"
23705
23913
  GitSyncInstallationSetupGitHub:
@@ -23797,6 +24005,102 @@ components:
23797
24005
  - siteId
23798
24006
  discriminator:
23799
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
23800
24104
  GitSyncInstallation:
23801
24105
  allOf:
23802
24106
  - $ref: "#/components/schemas/GitSyncInstallationSetup"
@@ -23809,10 +24113,17 @@ components:
23809
24113
  id:
23810
24114
  type: string
23811
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.
23812
24119
  target:
23813
24120
  $ref: "#/components/schemas/GitSyncInstallationTarget"
23814
24121
  status:
23815
24122
  $ref: "#/components/schemas/GitSyncInstallationStatus"
24123
+ repositoryConnection:
24124
+ $ref: "#/components/schemas/GitRepositoryConnection"
24125
+ repositoryRef:
24126
+ $ref: "#/components/schemas/GitRepositoryRef"
23816
24127
  createdAt:
23817
24128
  $ref: "#/components/schemas/Timestamp"
23818
24129
  createdBy:
@@ -24383,6 +24694,10 @@ components:
24383
24694
  items:
24384
24695
  $ref: "#/components/schemas/CustomizationSuggestedQuestion"
24385
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
24386
24701
  CustomizationPageActionType:
24387
24702
  type: string
24388
24703
  description: Type of a built-in page action that can be displayed in the page actions menu of a published page.
@@ -24613,6 +24928,8 @@ components:
24613
24928
  $ref: "#/components/schemas/CustomizationAIMode"
24614
24929
  suggestions:
24615
24930
  $ref: "#/components/schemas/CustomizationSuggestedQuestions"
24931
+ instructions:
24932
+ $ref: "#/components/schemas/CustomizationAIInstructions"
24616
24933
  required:
24617
24934
  - mode
24618
24935
  advancedCustomization:
@@ -25267,6 +25584,26 @@ components:
25267
25584
  - low
25268
25585
  - medium
25269
25586
  - high
25587
+ SiteTriageFilterQuestions:
25588
+ type: string
25589
+ description: |
25590
+ Findings source filter matching evidence coming from site questions.
25591
+ enum:
25592
+ - questions
25593
+ SiteTriageFilterConnections:
25594
+ type: string
25595
+ description: |
25596
+ Findings source filter matching evidence coming from a given connection,
25597
+ encoded as `connection:<connectionId>`.
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'.
25270
25607
  SiteFindingTitle:
25271
25608
  type: string
25272
25609
  description: Short finding title
@@ -25529,6 +25866,71 @@ components:
25529
25866
  - askedAt
25530
25867
  - stats
25531
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
25532
25934
  ContextConnectionLabel:
25533
25935
  type: string
25534
25936
  description: Optional label for the connection
@@ -27039,8 +27441,7 @@ components:
27039
27441
  description: Name of the file.
27040
27442
  contentType:
27041
27443
  type: string
27042
- enum:
27043
- - application/pdf
27444
+ description: MIME type of the file. Must be a file type supported by the underlying model (see the OpenAI file-inputs documentation).
27044
27445
  required:
27045
27446
  - type
27046
27447
  - url
@@ -28100,21 +28501,8 @@ components:
28100
28501
  type: string
28101
28502
  enum:
28102
28503
  - agent_feedback
28103
- feedback:
28104
- type: object
28105
- properties:
28106
- content:
28107
- type: string
28108
- minLength: 1
28109
- maxLength: 2048
28110
- category:
28111
- $ref: "#/components/schemas/SiteFindingType"
28112
- required:
28113
- - content
28114
- - category
28115
28504
  required:
28116
28505
  - type
28117
- - feedback
28118
28506
  SiteInsightsEventAskQuestion:
28119
28507
  allOf:
28120
28508
  - $ref: "#/components/schemas/SiteInsightsEventBase"
@@ -30020,6 +30408,18 @@ components:
30020
30408
  type: string
30021
30409
  required:
30022
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
30023
30423
  SignedURL:
30024
30424
  type: object
30025
30425
  properties:
@@ -30447,12 +30847,6 @@ components:
30447
30847
  description: JWT token generated for a authenticated access session.
30448
30848
  unsignedClaims:
30449
30849
  $ref: "#/components/schemas/PlainObject"
30450
- GitSyncInstallationProvider:
30451
- type: string
30452
- description: The provider of the Git Sync installation.
30453
- enum:
30454
- - github
30455
- - gitlab
30456
30850
  GitSyncGitHubRepository:
30457
30851
  type: object
30458
30852
  description: GitHub repository that can be selected for Git Sync.
@@ -31060,11 +31454,6 @@ components:
31060
31454
  - tag_created
31061
31455
  - tag_deleted
31062
31456
  - tag_edited
31063
- GitSyncOperationDirection:
31064
- type: string
31065
- enum:
31066
- - export
31067
- - import
31068
31457
  GitSyncOperationStage:
31069
31458
  type: string
31070
31459
  description: |
@@ -31160,10 +31549,11 @@ components:
31160
31549
  A space — a single content unit in the site's navigation tree. Discriminated
31161
31550
  by `type: space`.
31162
31551
 
31163
- The space's content lives in the synced repository at the directory pointed
31164
- to by `content.directory`. Hierarchy comes from where the space appears in
31165
- the YAML (under a section, a section group, or at the root), not from an
31166
- 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.
31167
31557
  properties:
31168
31558
  type:
31169
31559
  type: string
@@ -31198,12 +31588,15 @@ components:
31198
31588
  content:
31199
31589
  type: object
31200
31590
  additionalProperties: false
31201
- description: Where the space's content lives in the synced repository.
31591
+ description: Where the space's content is managed.
31202
31592
  properties:
31203
31593
  directory:
31204
- type: string
31205
- description: Repository-relative directory containing this space's content.
31206
- 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.
31207
31600
  language:
31208
31601
  $ref: "#/components/schemas/TranslationLanguage"
31209
31602
  required:
@@ -31249,9 +31642,6 @@ components:
31249
31642
  default:
31250
31643
  type: boolean
31251
31644
  description: Whether this is the default section for the site.
31252
- draft:
31253
- type: boolean
31254
- description: Whether the section is draft and not live.
31255
31645
  path:
31256
31646
  $ref: "#/components/schemas/SiteSectionPath"
31257
31647
  condition:
@@ -31281,542 +31671,6 @@ components:
31281
31671
  three node types: a section group, a section, or a space.
31282
31672
  items:
31283
31673
  $ref: "#/components/schemas/GitSyncSiteStructureNode"
31284
- GitSyncSiteCustomizationFontSource:
31285
- type: string
31286
- description: |
31287
- Reserved repository-relative path to the font file:
31288
- `.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent
31289
- font definition's `key`, `<weight>` is this face's `weight`, and
31290
- `<ext>` is one of `woff2`, `woff`.
31291
-
31292
- For example, a font with `key: brand` and a `700` face is read from
31293
- `.gitbook/assets/brand-700.woff2`. Any other path is rejected.
31294
- minLength: 1
31295
- GitSyncSiteCustomizationFontDefinition:
31296
- type: object
31297
- description: |
31298
- Custom font definition for a `site.fonts[]` entry. Referenced from
31299
- `customization.styling.font` or `customization.styling.monospaceFont` via
31300
- its `key`.
31301
-
31302
- Rules enforced on a definition:
31303
- - It must declare exactly one face for the `400` weight and one for the
31304
- `700` weight; the `600` weight is optional. No other weights are allowed,
31305
- and a weight may not be declared more than once.
31306
- - Each face has a single source file whose `url` is the reserved repository
31307
- asset path `.gitbook/assets/<key>-<weight>.<ext>` (`<ext>` is `woff2` or
31308
- `woff`). For example a definition with `key: brand` is read from
31309
- `.gitbook/assets/brand-400.woff2` and `.gitbook/assets/brand-700.woff2`.
31310
- properties:
31311
- key:
31312
- type: string
31313
- description: |
31314
- Stable identifier referenced from `styling.font` /
31315
- `styling.monospaceFont`, and used as the prefix of each face's
31316
- reserved asset path (`.gitbook/assets/<key>-<weight>.<ext>`).
31317
- minLength: 1
31318
- pattern: ^[A-Za-z0-9][A-Za-z0-9_-]*$
31319
- fontFamily:
31320
- $ref: "#/components/schemas/FontFamily"
31321
- fontFaces:
31322
- type: object
31323
- description: |
31324
- Font-face declarations keyed by weight, each specifying its single
31325
- source file. The `400` and `700` weights are required; `600` is
31326
- optional.
31327
- properties:
31328
- "400":
31329
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
31330
- "600":
31331
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
31332
- "700":
31333
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontSource"
31334
- required:
31335
- - "400"
31336
- - "700"
31337
- additionalProperties: false
31338
- required:
31339
- - key
31340
- - fontFamily
31341
- - fontFaces
31342
- GitSyncSiteCustomizationThemedColor:
31343
- type: object
31344
- description: |
31345
- Themed color (light + dark).
31346
- properties:
31347
- light:
31348
- $ref: "#/components/schemas/Color"
31349
- dark:
31350
- $ref: "#/components/schemas/Color"
31351
- required:
31352
- - light
31353
- - dark
31354
- GitSyncSiteCustomizationTint:
31355
- type: object
31356
- description: |
31357
- Tint configuration.
31358
- properties:
31359
- color:
31360
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31361
- required:
31362
- - color
31363
- GitSyncSiteCustomizationFontReference:
31364
- type: object
31365
- description: |
31366
- Reference to a custom font defined under `site.fonts[]`. Matches by `key`.
31367
- properties:
31368
- key:
31369
- type: string
31370
- description: Matches the `key` of an entry in `site.fonts[]`.
31371
- minLength: 1
31372
- required:
31373
- - key
31374
- GitSyncSiteCustomizationFont:
31375
- description: |
31376
- Body font for the site. Either one of the built-in `CustomizationDefaultFont`
31377
- values, or a reference to a custom font declared in `site.fonts[]`.
31378
- oneOf:
31379
- - $ref: "#/components/schemas/CustomizationDefaultFont"
31380
- - $ref: "#/components/schemas/GitSyncSiteCustomizationFontReference"
31381
- GitSyncSiteCustomizationMonospaceFont:
31382
- description: |
31383
- Monospace font for the site. Either one of the built-in
31384
- `CustomizationDefaultMonospaceFont` values, or a reference to a custom font
31385
- declared in `site.fonts[]`.
31386
- oneOf:
31387
- - $ref: "#/components/schemas/CustomizationDefaultMonospaceFont"
31388
- - $ref: "#/components/schemas/GitSyncSiteCustomizationFontReference"
31389
- GitSyncSiteCustomizationThemedCodeTheme:
31390
- type: object
31391
- description: |
31392
- Themed code theme (light + dark).
31393
- properties:
31394
- light:
31395
- $ref: "#/components/schemas/CustomizationCodeTheme"
31396
- dark:
31397
- $ref: "#/components/schemas/CustomizationCodeTheme"
31398
- required:
31399
- - light
31400
- - dark
31401
- GitSyncSiteCustomizationCodeThemes:
31402
- type: object
31403
- description: |
31404
- Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples.
31405
- properties:
31406
- default:
31407
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
31408
- openapi:
31409
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
31410
- required:
31411
- - default
31412
- - openapi
31413
- GitSyncSiteCustomizationSidebar:
31414
- type: object
31415
- description: |
31416
- Sidebar style settings.
31417
- properties:
31418
- background:
31419
- $ref: "#/components/schemas/CustomizationSidebarBackgroundStyle"
31420
- list:
31421
- $ref: "#/components/schemas/CustomizationSidebarListStyle"
31422
- required:
31423
- - background
31424
- - list
31425
- GitSyncSiteCustomizationStyling:
31426
- type: object
31427
- description: |
31428
- Styling settings.
31429
- properties:
31430
- theme:
31431
- $ref: "#/components/schemas/CustomizationTheme"
31432
- primaryColor:
31433
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31434
- tint:
31435
- $ref: "#/components/schemas/GitSyncSiteCustomizationTint"
31436
- infoColor:
31437
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31438
- successColor:
31439
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31440
- warningColor:
31441
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31442
- dangerColor:
31443
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedColor"
31444
- corners:
31445
- $ref: "#/components/schemas/CustomizationCorners"
31446
- depth:
31447
- $ref: "#/components/schemas/CustomizationDepth"
31448
- links:
31449
- $ref: "#/components/schemas/CustomizationLinksStyle"
31450
- font:
31451
- $ref: "#/components/schemas/GitSyncSiteCustomizationFont"
31452
- monospaceFont:
31453
- $ref: "#/components/schemas/GitSyncSiteCustomizationMonospaceFont"
31454
- icons:
31455
- $ref: "#/components/schemas/CustomizationIconsStyle"
31456
- codeTheme:
31457
- $ref: "#/components/schemas/GitSyncSiteCustomizationCodeThemes"
31458
- sidebar:
31459
- $ref: "#/components/schemas/GitSyncSiteCustomizationSidebar"
31460
- search:
31461
- $ref: "#/components/schemas/CustomizationSearchStyle"
31462
- GitSyncSiteCustomizationAssetPath:
31463
- type: string
31464
- description: |
31465
- Repository-relative path to an asset in a site Git Sync, e.g.
31466
- `.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted
31467
- here — Git Sync assets must live in the synced repository under
31468
- `.gitbook/assets/`.
31469
-
31470
- This is the shared base type and only validates the `.gitbook/assets/`
31471
- prefix. Each field that uses it additionally reserves a specific filename
31472
- and set of allowed extensions (e.g. the header logo must be
31473
- `header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description
31474
- on the consuming field for the exact reserved path.
31475
- pattern: ^\.gitbook/assets/.+
31476
- maxLength: 2048
31477
- GitSyncSiteCustomizationThemedAssetPath:
31478
- type: object
31479
- description: |
31480
- Light/dark variants of a Git Sync repository asset path. Used for logos and
31481
- favicons that switch with the active theme. Both variants are required.
31482
-
31483
- Each consuming field reserves the exact light/dark filenames and allowed
31484
- extensions (e.g. header logo → `header-logo-light.<ext>` /
31485
- `header-logo-dark.<ext>`); see the description on the consuming field.
31486
- properties:
31487
- light:
31488
- $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
31489
- dark:
31490
- $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
31491
- required:
31492
- - light
31493
- - dark
31494
- GitSyncSiteCustomizationFavicon:
31495
- description: |
31496
- Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character;
31497
- oneOf:
31498
- - type: object
31499
- properties:
31500
- icon:
31501
- description: |
31502
- Themed favicon. Each variant must use its reserved repository
31503
- asset path — light: `.gitbook/assets/favicon-light.<ext>`,
31504
- dark: `.gitbook/assets/favicon-dark.<ext>`, where `<ext>` is
31505
- the image's file extension (e.g. `png`, `svg`, `ico`). Any
31506
- other filename is rejected.
31507
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
31508
- required:
31509
- - icon
31510
- - type: object
31511
- properties:
31512
- emoji:
31513
- $ref: "#/components/schemas/Emoji"
31514
- required:
31515
- - emoji
31516
- GitSyncSiteCustomizationContentLinkTo:
31517
- type: string
31518
- description: |
31519
- Link destination, written as a path-string in YAML. Same format as
31520
- markdown content links, e.g. `https://example.com`, `/pages/<id>`,
31521
- `/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.
31522
- GitSyncSiteCustomizationContentLink:
31523
- type: object
31524
- description: |
31525
- A label plus a destination, used inside header items, footer groups, and announcements.
31526
- properties:
31527
- title:
31528
- $ref: "#/components/schemas/CustomizationContentLinkTitle"
31529
- localizedTitle:
31530
- description: Localized overrides for the link title, keyed by locale.
31531
- $ref: "#/components/schemas/LocalizedString64"
31532
- to:
31533
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
31534
- required:
31535
- - title
31536
- - to
31537
- GitSyncSiteCustomizationHeaderItem:
31538
- type: object
31539
- description: |
31540
- A single item in the published site's top navigation bar.
31541
- properties:
31542
- title:
31543
- type: string
31544
- localizedTitle:
31545
- description: Localized overrides for the header item title, keyed by locale.
31546
- $ref: "#/components/schemas/LocalizedString"
31547
- style:
31548
- type: string
31549
- enum:
31550
- - link
31551
- - button-primary
31552
- - button-secondary
31553
- to:
31554
- description: |
31555
- Header item destination. Use `null` for items that act as a
31556
- dropdown root without a link of their own.
31557
- oneOf:
31558
- - $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
31559
- - type: "null"
31560
- links:
31561
- type: array
31562
- description: Sub-links shown as a dropdown under this header item. Empty array means no dropdown.
31563
- items:
31564
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
31565
- condition:
31566
- description: Conditional expression evaluated to decide whether the item is shown to the visitor.
31567
- $ref: "#/components/schemas/Expression"
31568
- required:
31569
- - title
31570
- - to
31571
- - links
31572
- GitSyncSiteCustomizationHeader:
31573
- type: object
31574
- description: |
31575
- Header settings.
31576
- properties:
31577
- logo:
31578
- description: |
31579
- Themed header logo. Each variant must use its reserved repository
31580
- asset path — light: `.gitbook/assets/header-logo-light.<ext>`, dark:
31581
- `.gitbook/assets/header-logo-dark.<ext>`, where `<ext>` is the
31582
- image's file extension (e.g. `png`, `svg`). Any other filename is
31583
- rejected.
31584
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
31585
- primaryLink:
31586
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
31587
- links:
31588
- type: array
31589
- items:
31590
- $ref: "#/components/schemas/GitSyncSiteCustomizationHeaderItem"
31591
- GitSyncSiteCustomizationFooterGroup:
31592
- type: object
31593
- description: |
31594
- A group of links shown in the published site's footer.
31595
- properties:
31596
- title:
31597
- type: string
31598
- localizedTitle:
31599
- description: Localized overrides for the footer group title, keyed by locale.
31600
- $ref: "#/components/schemas/LocalizedString"
31601
- links:
31602
- type: array
31603
- items:
31604
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
31605
- required:
31606
- - title
31607
- - links
31608
- GitSyncSiteCustomizationFooter:
31609
- type: object
31610
- description: |
31611
- Footer settings.
31612
- properties:
31613
- logo:
31614
- description: |
31615
- Themed footer logo. Each variant must use its reserved repository
31616
- asset path — light: `.gitbook/assets/footer-logo-light.<ext>`, dark:
31617
- `.gitbook/assets/footer-logo-dark.<ext>`, where `<ext>` is the
31618
- image's file extension (e.g. `png`, `svg`). Any other filename is
31619
- rejected.
31620
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
31621
- groups:
31622
- type: array
31623
- items:
31624
- $ref: "#/components/schemas/GitSyncSiteCustomizationFooterGroup"
31625
- copyright:
31626
- type: string
31627
- maxLength: 300
31628
- GitSyncSiteCustomizationAnnouncement:
31629
- type: object
31630
- description: |
31631
- Announcement banner shown above the published site.
31632
- properties:
31633
- enabled:
31634
- description: Whether to show the site's announcement.
31635
- type: boolean
31636
- message:
31637
- $ref: "#/components/schemas/CustomizationAnnouncementMessage"
31638
- localizedMessage:
31639
- description: Localized overrides for the announcement message, keyed by locale.
31640
- $ref: "#/components/schemas/LocalizedString128"
31641
- link:
31642
- description: The content or URL the announcement links to when clicked.
31643
- $ref: "#/components/schemas/GitSyncSiteCustomizationContentLink"
31644
- style:
31645
- description: Semantic style of the announcement banner.
31646
- type: string
31647
- enum:
31648
- - info
31649
- - warning
31650
- - danger
31651
- - success
31652
- required:
31653
- - enabled
31654
- - message
31655
- - style
31656
- GitSyncSiteCustomizationThemeModes:
31657
- type: object
31658
- description: |
31659
- Dark/light theme mode settings.
31660
- properties:
31661
- default:
31662
- $ref: "#/components/schemas/CustomizationDefaultThemeMode"
31663
- toggeable:
31664
- description: Whether readers can switch between dark and light mode.
31665
- type: boolean
31666
- required:
31667
- - default
31668
- - toggeable
31669
- GitSyncSiteCustomizationFeedback:
31670
- type: object
31671
- description: |
31672
- Reader feedback settings.
31673
- properties:
31674
- enabled:
31675
- type: boolean
31676
- description: Whether reader feedback gathering is enabled.
31677
- required:
31678
- - enabled
31679
- GitSyncSiteCustomizationAI:
31680
- type: object
31681
- description: |
31682
- AI assistant settings.
31683
- properties:
31684
- mode:
31685
- $ref: "#/components/schemas/CustomizationAIMode"
31686
- suggestions:
31687
- $ref: "#/components/schemas/CustomizationSuggestedQuestions"
31688
- required:
31689
- - mode
31690
- GitSyncSiteCustomizationPageActions:
31691
- type: array
31692
- description: |
31693
- Ordered page-level action buttons exposed in the published site's page menu.
31694
- uniqueItems: true
31695
- items:
31696
- $ref: "#/components/schemas/CustomizationPageActionType"
31697
- GitSyncSiteCustomizationExternalLinks:
31698
- type: object
31699
- description: |
31700
- External link behavior.
31701
- properties:
31702
- target:
31703
- $ref: "#/components/schemas/SiteExternalLinksTarget"
31704
- required:
31705
- - target
31706
- GitSyncSiteCustomizationPagination:
31707
- type: object
31708
- description: |
31709
- Pagination navigation settings.
31710
- properties:
31711
- enabled:
31712
- type: boolean
31713
- description: Whether the prev/next pagination navigation is shown on pages.
31714
- required:
31715
- - enabled
31716
- GitSyncSiteCustomizationPrivacyPolicy:
31717
- type: object
31718
- description: |
31719
- Privacy policy link shown on the published site.
31720
- properties:
31721
- url:
31722
- $ref: "#/components/schemas/URL"
31723
- GitSyncSiteCustomizationSocialPreview:
31724
- type: object
31725
- description: |
31726
- Social preview asset.
31727
- properties:
31728
- url:
31729
- description: |
31730
- Reserved repository asset path for the social preview image:
31731
- `.gitbook/assets/social-preview.<ext>`, where `<ext>` is the
31732
- image's file extension (e.g. `png`, `jpg`). Any other filename is
31733
- rejected.
31734
- $ref: "#/components/schemas/GitSyncSiteCustomizationAssetPath"
31735
- GitSyncSiteCustomizationSocialAccount:
31736
- type: object
31737
- description: |
31738
- A single social account entry.
31739
- properties:
31740
- platform:
31741
- $ref: "#/components/schemas/SiteSocialAccountPlatform"
31742
- handle:
31743
- $ref: "#/components/schemas/SiteSocialAccountHandle"
31744
- display:
31745
- type: object
31746
- properties:
31747
- footer:
31748
- type: boolean
31749
- header:
31750
- type: boolean
31751
- required:
31752
- - footer
31753
- - header
31754
- required:
31755
- - platform
31756
- - handle
31757
- - display
31758
- GitSyncSiteCustomizationInsights:
31759
- type: object
31760
- description: |
31761
- Visitor insights settings.
31762
- properties:
31763
- trackingCookie:
31764
- type: boolean
31765
- description: Whether GitBook identifies visitors on the site using a cookie.
31766
- required:
31767
- - trackingCookie
31768
- GitSyncSiteCustomization:
31769
- type: object
31770
- description: |
31771
- Customization settings for the published site, authored in `docs.yaml`.
31772
-
31773
- Every top-level field is optional — a Git Sync YAML is a **sparse override** of
31774
- the live customization. Fields you don't include stay at whatever the site
31775
- has as default.
31776
-
31777
- Custom fonts referenced from `styling.font` / `styling.monospaceFont` must
31778
- have a matching definition under `site.fonts[]`.
31779
- properties:
31780
- publishedTitle:
31781
- description: Title to use for the published site. If omitted, falls back to the default site title.
31782
- $ref: "#/components/schemas/SiteTitle"
31783
- localizedPublishedTitles:
31784
- description: Localized titles for the published site, keyed by locale.
31785
- $ref: "#/components/schemas/LocalizedString128"
31786
- styling:
31787
- $ref: "#/components/schemas/GitSyncSiteCustomizationStyling"
31788
- favicon:
31789
- $ref: "#/components/schemas/GitSyncSiteCustomizationFavicon"
31790
- header:
31791
- $ref: "#/components/schemas/GitSyncSiteCustomizationHeader"
31792
- footer:
31793
- $ref: "#/components/schemas/GitSyncSiteCustomizationFooter"
31794
- announcement:
31795
- $ref: "#/components/schemas/GitSyncSiteCustomizationAnnouncement"
31796
- themeModes:
31797
- $ref: "#/components/schemas/GitSyncSiteCustomizationThemeModes"
31798
- feedback:
31799
- $ref: "#/components/schemas/GitSyncSiteCustomizationFeedback"
31800
- ai:
31801
- $ref: "#/components/schemas/GitSyncSiteCustomizationAI"
31802
- pageActions:
31803
- $ref: "#/components/schemas/GitSyncSiteCustomizationPageActions"
31804
- externalLinks:
31805
- $ref: "#/components/schemas/GitSyncSiteCustomizationExternalLinks"
31806
- pagination:
31807
- $ref: "#/components/schemas/GitSyncSiteCustomizationPagination"
31808
- privacyPolicy:
31809
- $ref: "#/components/schemas/GitSyncSiteCustomizationPrivacyPolicy"
31810
- socialPreview:
31811
- $ref: "#/components/schemas/GitSyncSiteCustomizationSocialPreview"
31812
- socialAccounts:
31813
- type: array
31814
- description: Social accounts to surface on the site.
31815
- items:
31816
- $ref: "#/components/schemas/GitSyncSiteCustomizationSocialAccount"
31817
- maxItems: 10
31818
- insights:
31819
- $ref: "#/components/schemas/GitSyncSiteCustomizationInsights"
31820
31674
  GitSyncSiteConfig:
31821
31675
  type: object
31822
31676
  description: |
@@ -31841,13 +31695,6 @@ components:
31841
31695
  minLength: 1
31842
31696
  structure:
31843
31697
  $ref: "#/components/schemas/GitSyncSiteStructure"
31844
- fonts:
31845
- type: array
31846
- description: Custom font definitions referenced from `site.customization.styling`.
31847
- items:
31848
- $ref: "#/components/schemas/GitSyncSiteCustomizationFontDefinition"
31849
- customization:
31850
- $ref: "#/components/schemas/GitSyncSiteCustomization"
31851
31698
  required:
31852
31699
  - title
31853
31700
  - structure