@gitbook/api 0.191.0 → 0.193.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.json CHANGED
@@ -817,7 +817,7 @@
817
817
  "post": {
818
818
  "operationId": "duplicateSpace",
819
819
  "summary": "Create a full copy of a space",
820
- "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.",
820
+ "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.",
821
821
  "x-gitbook-mcp": true,
822
822
  "tags": [
823
823
  "spaces"
@@ -1093,7 +1093,7 @@
1093
1093
  "post": {
1094
1094
  "operationId": "importGitRepository",
1095
1095
  "summary": "Pull content into a space from a connected Git repository",
1096
- "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.",
1096
+ "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.",
1097
1097
  "x-gitbook-mcp": true,
1098
1098
  "tags": [
1099
1099
  "space-git"
@@ -1121,7 +1121,7 @@
1121
1121
  ],
1122
1122
  "responses": {
1123
1123
  "204": {
1124
- "description": "Operation to import the repository has been started."
1124
+ "description": "Operation to import the repository has been queued."
1125
1125
  }
1126
1126
  },
1127
1127
  "requestBody": {
@@ -1140,7 +1140,7 @@
1140
1140
  "post": {
1141
1141
  "operationId": "exportToGitRepository",
1142
1142
  "summary": "Push space content to a connected Git repository",
1143
- "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.",
1143
+ "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.",
1144
1144
  "x-gitbook-mcp": true,
1145
1145
  "tags": [
1146
1146
  "space-git"
@@ -1168,7 +1168,7 @@
1168
1168
  ],
1169
1169
  "responses": {
1170
1170
  "204": {
1171
- "description": "Operation to export the space has been started."
1171
+ "description": "Operation to export the space has been queued."
1172
1172
  }
1173
1173
  },
1174
1174
  "requestBody": {
@@ -3867,7 +3867,7 @@
3867
3867
  "post": {
3868
3868
  "operationId": "updateChangeRequestContent",
3869
3869
  "summary": "Apply a batch of content changes to a change request",
3870
- "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\n\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.",
3870
+ "description": "Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.\nWhen page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:\n- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).\n- Page slug path — `/pages/<slug>` for a top-level page, or `/pages/<parent-slug>/<slug>`\n for a nested page (e.g. `/pages/guides/getting-started`).\n\n- Markdown file path — the path the page would have in Git: `/pages/<slug>.md` for a page,\n or `/pages/<slug>/README.md` for a page that has child pages. The space's root page is\n `/pages/README.md`.\n\n- Relative markdown link — resolved against the page being edited, e.g. `./sibling.md`,\n `../other.md`, or `../README.md` (the parent page). Folder-style links without an\n extension (e.g. `./section`) resolve to that folder's page.\n\nExternal URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.\nGitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.\n\n**Response shape (`compat`)** — this endpoint is changing what it returns:\n- `compat=true` (current default) returns the updated change request, matching the endpoint's\n original behavior.\n\n- `compat=false` returns the updated change request **and** the list of affected pages (see\n the response schema).\n\nThe default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.",
3871
3871
  "x-gitbook-mcp": true,
3872
3872
  "tags": [
3873
3873
  "change-request-content"
@@ -3888,6 +3888,15 @@
3888
3888
  },
3889
3889
  {
3890
3890
  "$ref": "#/components/parameters/changeRequestId"
3891
+ },
3892
+ {
3893
+ "name": "compat",
3894
+ "in": "query",
3895
+ "description": "When `true`, the updated change request is returned. When `false`, the updated change request and the list of affected pages are returned.",
3896
+ "schema": {
3897
+ "type": "boolean",
3898
+ "default": true
3899
+ }
3891
3900
  }
3892
3901
  ],
3893
3902
  "requestBody": {
@@ -3919,7 +3928,15 @@
3919
3928
  "content": {
3920
3929
  "application/json": {
3921
3930
  "schema": {
3922
- "$ref": "#/components/schemas/ChangeRequest"
3931
+ "description": "The change request when `compat=true` (default), or the change request plus the list of affected pages when `compat=false`.",
3932
+ "oneOf": [
3933
+ {
3934
+ "$ref": "#/components/schemas/ChangeRequest"
3935
+ },
3936
+ {
3937
+ "$ref": "#/components/schemas/ChangeRequestContentUpdate"
3938
+ }
3939
+ ]
3923
3940
  }
3924
3941
  }
3925
3942
  }
@@ -13897,6 +13914,17 @@
13897
13914
  "type": "boolean",
13898
13915
  "default": false,
13899
13916
  "description": "Whether the site space should be created as draft. Defaults to false."
13917
+ },
13918
+ "pageId": {
13919
+ "oneOf": [
13920
+ {
13921
+ "type": "string"
13922
+ },
13923
+ {
13924
+ "type": "null"
13925
+ }
13926
+ ],
13927
+ "description": "Custom home page within the space, rendered at the site space's path root instead of the space's default landing page."
13900
13928
  }
13901
13929
  },
13902
13930
  "required": [
@@ -15355,6 +15383,14 @@
15355
15383
  ]
15356
15384
  }
15357
15385
  }
15386
+ },
15387
+ {
15388
+ "name": "orderBy",
15389
+ "in": "query",
15390
+ "description": "Sort findings by the given field.",
15391
+ "schema": {
15392
+ "$ref": "#/components/schemas/SiteFindingOrderBy"
15393
+ }
15358
15394
  }
15359
15395
  ],
15360
15396
  "responses": {
@@ -15786,6 +15822,104 @@
15786
15822
  }
15787
15823
  }
15788
15824
  },
15825
+ "/orgs/{organizationId}/sites/{siteId}/stats/findings": {
15826
+ "get": {
15827
+ "operationId": "getSiteFindingStats",
15828
+ "summary": "Get aggregate statistics about the findings identified on a site",
15829
+ "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.",
15830
+ "tags": [
15831
+ "site-context"
15832
+ ],
15833
+ "security": [
15834
+ {
15835
+ "user": []
15836
+ },
15837
+ {
15838
+ "oauth": [
15839
+ "site:read"
15840
+ ]
15841
+ }
15842
+ ],
15843
+ "parameters": [
15844
+ {
15845
+ "$ref": "#/components/parameters/organizationId"
15846
+ },
15847
+ {
15848
+ "$ref": "#/components/parameters/siteId"
15849
+ },
15850
+ {
15851
+ "name": "topic",
15852
+ "in": "query",
15853
+ "description": "Filter findings by associated site topic ID.",
15854
+ "schema": {
15855
+ "type": "string"
15856
+ }
15857
+ },
15858
+ {
15859
+ "name": "status",
15860
+ "in": "query",
15861
+ "description": "Filter findings by status.",
15862
+ "schema": {
15863
+ "$ref": "#/components/schemas/SiteFindingStatus"
15864
+ }
15865
+ },
15866
+ {
15867
+ "name": "type",
15868
+ "in": "query",
15869
+ "description": "Filter findings by type.",
15870
+ "schema": {
15871
+ "$ref": "#/components/schemas/SiteFindingType"
15872
+ }
15873
+ },
15874
+ {
15875
+ "name": "severity",
15876
+ "in": "query",
15877
+ "description": "Filter findings by estimated severity.",
15878
+ "schema": {
15879
+ "$ref": "#/components/schemas/SiteFindingSeverity"
15880
+ }
15881
+ },
15882
+ {
15883
+ "name": "hasChangeRequests",
15884
+ "in": "query",
15885
+ "description": "Filter findings that have at least one associated change request.",
15886
+ "schema": {
15887
+ "type": "boolean"
15888
+ }
15889
+ },
15890
+ {
15891
+ "name": "source",
15892
+ "in": "query",
15893
+ "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.",
15894
+ "schema": {
15895
+ "type": "array",
15896
+ "items": {
15897
+ "oneOf": [
15898
+ {
15899
+ "$ref": "#/components/schemas/SiteTriageFilterQuestions"
15900
+ },
15901
+ {
15902
+ "$ref": "#/components/schemas/SiteTriageFilterConnections"
15903
+ }
15904
+ ]
15905
+ }
15906
+ }
15907
+ }
15908
+ ],
15909
+ "responses": {
15910
+ "200": {
15911
+ "description": "OK",
15912
+ "content": {
15913
+ "application/json": {
15914
+ "schema": {
15915
+ "$ref": "#/components/schemas/SiteFindingStats"
15916
+ }
15917
+ }
15918
+ }
15919
+ }
15920
+ }
15921
+ }
15922
+ },
15789
15923
  "/orgs/{organizationId}/sites/{siteId}/context-connections": {
15790
15924
  "get": {
15791
15925
  "operationId": "listSiteContextConnections",
@@ -17176,6 +17310,17 @@
17176
17310
  }
17177
17311
  ]
17178
17312
  },
17313
+ "pageId": {
17314
+ "description": "Custom home page within the space, rendered at the site space's path root instead of the space's default landing page. If not set, the page will remain unchanged unless spaceId is changed, in which case the custom home page will be removed. If set to null, the custom home page will be removed.",
17315
+ "oneOf": [
17316
+ {
17317
+ "type": "string"
17318
+ },
17319
+ {
17320
+ "type": "null"
17321
+ }
17322
+ ]
17323
+ },
17179
17324
  "spaceId": {
17180
17325
  "type": "string",
17181
17326
  "description": "The content that this site space points to. If not set, the space will remain unchanged."
@@ -17243,6 +17388,76 @@
17243
17388
  }
17244
17389
  }
17245
17390
  },
17391
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/duplicate": {
17392
+ "post": {
17393
+ "operationId": "duplicateSiteSpace",
17394
+ "summary": "Duplicate a space in a site",
17395
+ "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.",
17396
+ "x-gitbook-mcp": true,
17397
+ "tags": [
17398
+ "site-spaces",
17399
+ "spaces"
17400
+ ],
17401
+ "security": [
17402
+ {
17403
+ "user": []
17404
+ },
17405
+ {
17406
+ "oauth": [
17407
+ "space:write",
17408
+ "site:write"
17409
+ ]
17410
+ }
17411
+ ],
17412
+ "parameters": [
17413
+ {
17414
+ "$ref": "#/components/parameters/organizationId"
17415
+ },
17416
+ {
17417
+ "$ref": "#/components/parameters/siteId"
17418
+ },
17419
+ {
17420
+ "$ref": "#/components/parameters/siteSpaceId"
17421
+ }
17422
+ ],
17423
+ "requestBody": {
17424
+ "content": {
17425
+ "application/json": {
17426
+ "schema": {
17427
+ "type": "object",
17428
+ "properties": {
17429
+ "draft": {
17430
+ "type": "boolean",
17431
+ "default": false,
17432
+ "description": "Whether the duplicated site space and any new section should be created as drafts."
17433
+ }
17434
+ }
17435
+ }
17436
+ }
17437
+ }
17438
+ },
17439
+ "responses": {
17440
+ "201": {
17441
+ "description": "Space duplicated in the site structure",
17442
+ "headers": {
17443
+ "Location": {
17444
+ "description": "API URL for the newly created site-space",
17445
+ "schema": {
17446
+ "type": "string"
17447
+ }
17448
+ }
17449
+ },
17450
+ "content": {
17451
+ "application/json": {
17452
+ "schema": {
17453
+ "$ref": "#/components/schemas/SiteSpace"
17454
+ }
17455
+ }
17456
+ }
17457
+ }
17458
+ }
17459
+ }
17460
+ },
17246
17461
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization": {
17247
17462
  "get": {
17248
17463
  "operationId": "getSiteSpaceCustomizationById",
@@ -18604,6 +18819,43 @@
18604
18819
  }
18605
18820
  }
18606
18821
  },
18822
+ "/orgs/{organizationId}/sites/{siteId}/template": {
18823
+ "post": {
18824
+ "operationId": "applyTemplateToSite",
18825
+ "summary": "Apply the default documentation template to a site",
18826
+ "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.",
18827
+ "x-gitbook-mcp": true,
18828
+ "tags": [
18829
+ "sites"
18830
+ ],
18831
+ "security": [
18832
+ {
18833
+ "user-internal": []
18834
+ },
18835
+ {
18836
+ "user": []
18837
+ },
18838
+ {
18839
+ "oauth": [
18840
+ "site:write"
18841
+ ]
18842
+ }
18843
+ ],
18844
+ "parameters": [
18845
+ {
18846
+ "$ref": "#/components/parameters/organizationId"
18847
+ },
18848
+ {
18849
+ "$ref": "#/components/parameters/siteId"
18850
+ }
18851
+ ],
18852
+ "responses": {
18853
+ "200": {
18854
+ "description": "Template applied to site."
18855
+ }
18856
+ }
18857
+ }
18858
+ },
18607
18859
  "/orgs/{organizationId}/sites/{siteId}/agent-settings": {
18608
18860
  "get": {
18609
18861
  "operationId": "getSiteAgentSettingsById",
@@ -22432,6 +22684,13 @@
22432
22684
  "timeout"
22433
22685
  ]
22434
22686
  },
22687
+ "GitSyncOperationDirection": {
22688
+ "type": "string",
22689
+ "enum": [
22690
+ "export",
22691
+ "import"
22692
+ ]
22693
+ },
22435
22694
  "GitSyncState": {
22436
22695
  "type": "object",
22437
22696
  "properties": {
@@ -22454,6 +22713,10 @@
22454
22713
  "type": "string",
22455
22714
  "description": "The ID of the Git Sync installation."
22456
22715
  },
22716
+ "parentInstallationId": {
22717
+ "type": "string",
22718
+ "description": "The ID of the parent Git Sync installation, if any."
22719
+ },
22457
22720
  "url": {
22458
22721
  "type": "string",
22459
22722
  "description": "The URL to the repository tree, used when rendering public content."
@@ -22464,17 +22727,37 @@
22464
22727
  "properties": {
22465
22728
  "state": {
22466
22729
  "$ref": "#/components/schemas/GitSyncOperationState"
22730
+ },
22731
+ "direction": {
22732
+ "$ref": "#/components/schemas/GitSyncOperationDirection"
22733
+ },
22734
+ "startedAt": {
22735
+ "$ref": "#/components/schemas/Timestamp"
22736
+ },
22737
+ "endedAt": {
22738
+ "$ref": "#/components/schemas/Timestamp"
22739
+ },
22740
+ "error": {
22741
+ "type": "string",
22742
+ "description": "Why the operation failed, when it did."
22467
22743
  }
22468
22744
  },
22469
22745
  "required": [
22470
- "state"
22746
+ "state",
22747
+ "direction",
22748
+ "startedAt"
22471
22749
  ]
22472
22750
  },
22473
22751
  "updatedAt": {
22474
22752
  "description": "When the Git provider details were last updated",
22475
22753
  "$ref": "#/components/schemas/Timestamp"
22476
22754
  }
22477
- }
22755
+ },
22756
+ "required": [
22757
+ "installationId",
22758
+ "installationProvider",
22759
+ "installationStatus"
22760
+ ]
22478
22761
  },
22479
22762
  "VisitorAuthCustomBackend": {
22480
22763
  "type": "object",
@@ -23008,6 +23291,14 @@
23008
23291
  "score": {
23009
23292
  "$ref": "#/components/schemas/SearchResultScore"
23010
23293
  },
23294
+ "resultType": {
23295
+ "type": "string",
23296
+ "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.",
23297
+ "enum": [
23298
+ "page",
23299
+ "section"
23300
+ ]
23301
+ },
23011
23302
  "body": {
23012
23303
  "type": "string"
23013
23304
  },
@@ -23051,6 +23342,14 @@
23051
23342
  "score": {
23052
23343
  "$ref": "#/components/schemas/SearchResultScore"
23053
23344
  },
23345
+ "resultType": {
23346
+ "type": "string",
23347
+ "description": "Whether the page matched on its own fields (title, description) or on the content of one of its sections.",
23348
+ "enum": [
23349
+ "page",
23350
+ "section"
23351
+ ]
23352
+ },
23054
23353
  "sections": {
23055
23354
  "type": "array",
23056
23355
  "items": {
@@ -24634,6 +24933,290 @@
24634
24933
  "nodes"
24635
24934
  ]
24636
24935
  },
24936
+ "DocumentBlockEmbed": {
24937
+ "type": "object",
24938
+ "properties": {
24939
+ "object": {
24940
+ "type": "string",
24941
+ "enum": [
24942
+ "block"
24943
+ ]
24944
+ },
24945
+ "type": {
24946
+ "type": "string",
24947
+ "enum": [
24948
+ "embed"
24949
+ ]
24950
+ },
24951
+ "key": {
24952
+ "type": "string"
24953
+ },
24954
+ "data": {
24955
+ "type": "object",
24956
+ "properties": {
24957
+ "url": {
24958
+ "type": "string"
24959
+ },
24960
+ "fullWidth": {
24961
+ "type": "boolean"
24962
+ }
24963
+ },
24964
+ "required": [
24965
+ "url"
24966
+ ]
24967
+ },
24968
+ "isVoid": {
24969
+ "type": "boolean",
24970
+ "enum": [
24971
+ true
24972
+ ]
24973
+ }
24974
+ },
24975
+ "required": [
24976
+ "object",
24977
+ "type",
24978
+ "data",
24979
+ "isVoid"
24980
+ ]
24981
+ },
24982
+ "PlainObject": {
24983
+ "properties": {},
24984
+ "additionalProperties": {
24985
+ "oneOf": [
24986
+ {
24987
+ "$ref": "#/components/schemas/PlainObject"
24988
+ },
24989
+ {
24990
+ "type": "string"
24991
+ },
24992
+ {
24993
+ "type": "boolean"
24994
+ },
24995
+ {
24996
+ "type": "number"
24997
+ },
24998
+ {
24999
+ "type": "array",
25000
+ "items": {
25001
+ "oneOf": [
25002
+ {
25003
+ "type": "string"
25004
+ },
25005
+ {
25006
+ "type": "boolean"
25007
+ },
25008
+ {
25009
+ "type": "number"
25010
+ },
25011
+ {
25012
+ "$ref": "#/components/schemas/PlainObject"
25013
+ }
25014
+ ]
25015
+ }
25016
+ }
25017
+ ]
25018
+ }
25019
+ },
25020
+ "ContentKitDefaultAction": {
25021
+ "oneOf": [
25022
+ {
25023
+ "type": "object",
25024
+ "description": "Action to open an overlay modal defined by \"componentId\".",
25025
+ "properties": {
25026
+ "action": {
25027
+ "type": "string",
25028
+ "enum": [
25029
+ "@ui.modal.open"
25030
+ ]
25031
+ },
25032
+ "componentId": {
25033
+ "type": "string"
25034
+ },
25035
+ "props": {
25036
+ "$ref": "#/components/schemas/PlainObject"
25037
+ }
25038
+ },
25039
+ "required": [
25040
+ "action",
25041
+ "componentId",
25042
+ "props"
25043
+ ]
25044
+ },
25045
+ {
25046
+ "type": "object",
25047
+ "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.",
25048
+ "properties": {
25049
+ "action": {
25050
+ "type": "string",
25051
+ "enum": [
25052
+ "@ui.modal.close"
25053
+ ]
25054
+ },
25055
+ "returnValue": {
25056
+ "$ref": "#/components/schemas/PlainObject"
25057
+ }
25058
+ },
25059
+ "required": [
25060
+ "action",
25061
+ "returnValue"
25062
+ ]
25063
+ },
25064
+ {
25065
+ "type": "object",
25066
+ "description": "Action to open an url.",
25067
+ "properties": {
25068
+ "action": {
25069
+ "type": "string",
25070
+ "enum": [
25071
+ "@ui.url.open"
25072
+ ]
25073
+ },
25074
+ "url": {
25075
+ "type": "string"
25076
+ }
25077
+ },
25078
+ "required": [
25079
+ "action",
25080
+ "url"
25081
+ ]
25082
+ },
25083
+ {
25084
+ "type": "object",
25085
+ "description": "Action when a link is being unfurled into a block.",
25086
+ "properties": {
25087
+ "action": {
25088
+ "type": "string",
25089
+ "enum": [
25090
+ "@link.unfurl"
25091
+ ]
25092
+ },
25093
+ "url": {
25094
+ "type": "string"
25095
+ }
25096
+ },
25097
+ "required": [
25098
+ "action",
25099
+ "url"
25100
+ ]
25101
+ },
25102
+ {
25103
+ "type": "object",
25104
+ "description": "Action to update the properties stored in the related node.",
25105
+ "properties": {
25106
+ "action": {
25107
+ "type": "string",
25108
+ "enum": [
25109
+ "@editor.node.updateProps"
25110
+ ]
25111
+ },
25112
+ "props": {
25113
+ "$ref": "#/components/schemas/PlainObject"
25114
+ }
25115
+ },
25116
+ "required": [
25117
+ "action",
25118
+ "props"
25119
+ ]
25120
+ }
25121
+ ]
25122
+ },
25123
+ "ContentKitAction": {
25124
+ "anyOf": [
25125
+ {
25126
+ "type": "object",
25127
+ "description": "Custom action to re-render the block.",
25128
+ "properties": {
25129
+ "action": {
25130
+ "type": "string"
25131
+ }
25132
+ },
25133
+ "additionalProperties": true,
25134
+ "required": [
25135
+ "action"
25136
+ ]
25137
+ },
25138
+ {
25139
+ "$ref": "#/components/schemas/ContentKitDefaultAction"
25140
+ }
25141
+ ]
25142
+ },
25143
+ "DocumentBlockIntegration": {
25144
+ "type": "object",
25145
+ "properties": {
25146
+ "object": {
25147
+ "type": "string",
25148
+ "enum": [
25149
+ "block"
25150
+ ]
25151
+ },
25152
+ "type": {
25153
+ "type": "string",
25154
+ "enum": [
25155
+ "integration"
25156
+ ]
25157
+ },
25158
+ "key": {
25159
+ "type": "string"
25160
+ },
25161
+ "data": {
25162
+ "type": "object",
25163
+ "properties": {
25164
+ "integration": {
25165
+ "type": "string",
25166
+ "description": "Name of the integration"
25167
+ },
25168
+ "block": {
25169
+ "type": "string",
25170
+ "description": "ID of the block in the integration"
25171
+ },
25172
+ "props": {
25173
+ "description": "Properties passed to the block during rendering",
25174
+ "$ref": "#/components/schemas/PlainObject"
25175
+ },
25176
+ "action": {
25177
+ "$ref": "#/components/schemas/ContentKitAction"
25178
+ },
25179
+ "url": {
25180
+ "type": "string",
25181
+ "description": "URL associated with the content represented by the block.\nThis property is set when creating a block from a URL (unfurl) to ensure\nwe can convert the block back to an embed.\n"
25182
+ },
25183
+ "fullWidth": {
25184
+ "type": "boolean"
25185
+ }
25186
+ },
25187
+ "required": [
25188
+ "integration",
25189
+ "block",
25190
+ "props"
25191
+ ]
25192
+ },
25193
+ "isVoid": {
25194
+ "type": "boolean",
25195
+ "enum": [
25196
+ true
25197
+ ]
25198
+ },
25199
+ "meta": {
25200
+ "type": "object",
25201
+ "properties": {
25202
+ "token": {
25203
+ "type": "string",
25204
+ "description": "A content token that can be used to authenticate requests for cross-space integration blocks."
25205
+ },
25206
+ "spaceId": {
25207
+ "type": "string",
25208
+ "description": "ID of the space the integration block originates from"
25209
+ }
25210
+ }
25211
+ }
25212
+ },
25213
+ "required": [
25214
+ "object",
25215
+ "type",
25216
+ "data",
25217
+ "isVoid"
25218
+ ]
25219
+ },
24637
25220
  "DocumentBlockHint": {
24638
25221
  "type": "object",
24639
25222
  "properties": {
@@ -24675,7 +25258,17 @@
24675
25258
  "nodes": {
24676
25259
  "type": "array",
24677
25260
  "items": {
24678
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
25261
+ "oneOf": [
25262
+ {
25263
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
25264
+ },
25265
+ {
25266
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
25267
+ },
25268
+ {
25269
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
25270
+ }
25271
+ ]
24679
25272
  }
24680
25273
  },
24681
25274
  "isVoid": {
@@ -26084,52 +26677,6 @@
26084
26677
  "isVoid"
26085
26678
  ]
26086
26679
  },
26087
- "DocumentBlockEmbed": {
26088
- "type": "object",
26089
- "properties": {
26090
- "object": {
26091
- "type": "string",
26092
- "enum": [
26093
- "block"
26094
- ]
26095
- },
26096
- "type": {
26097
- "type": "string",
26098
- "enum": [
26099
- "embed"
26100
- ]
26101
- },
26102
- "key": {
26103
- "type": "string"
26104
- },
26105
- "data": {
26106
- "type": "object",
26107
- "properties": {
26108
- "url": {
26109
- "type": "string"
26110
- },
26111
- "fullWidth": {
26112
- "type": "boolean"
26113
- }
26114
- },
26115
- "required": [
26116
- "url"
26117
- ]
26118
- },
26119
- "isVoid": {
26120
- "type": "boolean",
26121
- "enum": [
26122
- true
26123
- ]
26124
- }
26125
- },
26126
- "required": [
26127
- "object",
26128
- "type",
26129
- "data",
26130
- "isVoid"
26131
- ]
26132
- },
26133
26680
  "DocumentBlockReusableContent": {
26134
26681
  "type": "object",
26135
26682
  "properties": {
@@ -26182,244 +26729,6 @@
26182
26729
  "isVoid"
26183
26730
  ]
26184
26731
  },
26185
- "PlainObject": {
26186
- "properties": {},
26187
- "additionalProperties": {
26188
- "oneOf": [
26189
- {
26190
- "$ref": "#/components/schemas/PlainObject"
26191
- },
26192
- {
26193
- "type": "string"
26194
- },
26195
- {
26196
- "type": "boolean"
26197
- },
26198
- {
26199
- "type": "number"
26200
- },
26201
- {
26202
- "type": "array",
26203
- "items": {
26204
- "oneOf": [
26205
- {
26206
- "type": "string"
26207
- },
26208
- {
26209
- "type": "boolean"
26210
- },
26211
- {
26212
- "type": "number"
26213
- },
26214
- {
26215
- "$ref": "#/components/schemas/PlainObject"
26216
- }
26217
- ]
26218
- }
26219
- }
26220
- ]
26221
- }
26222
- },
26223
- "ContentKitDefaultAction": {
26224
- "oneOf": [
26225
- {
26226
- "type": "object",
26227
- "description": "Action to open an overlay modal defined by \"componentId\".",
26228
- "properties": {
26229
- "action": {
26230
- "type": "string",
26231
- "enum": [
26232
- "@ui.modal.open"
26233
- ]
26234
- },
26235
- "componentId": {
26236
- "type": "string"
26237
- },
26238
- "props": {
26239
- "$ref": "#/components/schemas/PlainObject"
26240
- }
26241
- },
26242
- "required": [
26243
- "action",
26244
- "componentId",
26245
- "props"
26246
- ]
26247
- },
26248
- {
26249
- "type": "object",
26250
- "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.",
26251
- "properties": {
26252
- "action": {
26253
- "type": "string",
26254
- "enum": [
26255
- "@ui.modal.close"
26256
- ]
26257
- },
26258
- "returnValue": {
26259
- "$ref": "#/components/schemas/PlainObject"
26260
- }
26261
- },
26262
- "required": [
26263
- "action",
26264
- "returnValue"
26265
- ]
26266
- },
26267
- {
26268
- "type": "object",
26269
- "description": "Action to open an url.",
26270
- "properties": {
26271
- "action": {
26272
- "type": "string",
26273
- "enum": [
26274
- "@ui.url.open"
26275
- ]
26276
- },
26277
- "url": {
26278
- "type": "string"
26279
- }
26280
- },
26281
- "required": [
26282
- "action",
26283
- "url"
26284
- ]
26285
- },
26286
- {
26287
- "type": "object",
26288
- "description": "Action when a link is being unfurled into a block.",
26289
- "properties": {
26290
- "action": {
26291
- "type": "string",
26292
- "enum": [
26293
- "@link.unfurl"
26294
- ]
26295
- },
26296
- "url": {
26297
- "type": "string"
26298
- }
26299
- },
26300
- "required": [
26301
- "action",
26302
- "url"
26303
- ]
26304
- },
26305
- {
26306
- "type": "object",
26307
- "description": "Action to update the properties stored in the related node.",
26308
- "properties": {
26309
- "action": {
26310
- "type": "string",
26311
- "enum": [
26312
- "@editor.node.updateProps"
26313
- ]
26314
- },
26315
- "props": {
26316
- "$ref": "#/components/schemas/PlainObject"
26317
- }
26318
- },
26319
- "required": [
26320
- "action",
26321
- "props"
26322
- ]
26323
- }
26324
- ]
26325
- },
26326
- "ContentKitAction": {
26327
- "anyOf": [
26328
- {
26329
- "type": "object",
26330
- "description": "Custom action to re-render the block.",
26331
- "properties": {
26332
- "action": {
26333
- "type": "string"
26334
- }
26335
- },
26336
- "additionalProperties": true,
26337
- "required": [
26338
- "action"
26339
- ]
26340
- },
26341
- {
26342
- "$ref": "#/components/schemas/ContentKitDefaultAction"
26343
- }
26344
- ]
26345
- },
26346
- "DocumentBlockIntegration": {
26347
- "type": "object",
26348
- "properties": {
26349
- "object": {
26350
- "type": "string",
26351
- "enum": [
26352
- "block"
26353
- ]
26354
- },
26355
- "type": {
26356
- "type": "string",
26357
- "enum": [
26358
- "integration"
26359
- ]
26360
- },
26361
- "key": {
26362
- "type": "string"
26363
- },
26364
- "data": {
26365
- "type": "object",
26366
- "properties": {
26367
- "integration": {
26368
- "type": "string",
26369
- "description": "Name of the integration"
26370
- },
26371
- "block": {
26372
- "type": "string",
26373
- "description": "ID of the block in the integration"
26374
- },
26375
- "props": {
26376
- "description": "Properties passed to the block during rendering",
26377
- "$ref": "#/components/schemas/PlainObject"
26378
- },
26379
- "action": {
26380
- "$ref": "#/components/schemas/ContentKitAction"
26381
- },
26382
- "url": {
26383
- "type": "string",
26384
- "description": "URL associated with the content represented by the block.\nThis property is set when creating a block from a URL (unfurl) to ensure\nwe can convert the block back to an embed.\n"
26385
- },
26386
- "fullWidth": {
26387
- "type": "boolean"
26388
- }
26389
- },
26390
- "required": [
26391
- "integration",
26392
- "block",
26393
- "props"
26394
- ]
26395
- },
26396
- "isVoid": {
26397
- "type": "boolean",
26398
- "enum": [
26399
- true
26400
- ]
26401
- },
26402
- "meta": {
26403
- "type": "object",
26404
- "properties": {
26405
- "token": {
26406
- "type": "string",
26407
- "description": "A content token that can be used to authenticate requests for cross-space integration blocks."
26408
- },
26409
- "spaceId": {
26410
- "type": "string",
26411
- "description": "ID of the space the integration block originates from"
26412
- }
26413
- }
26414
- }
26415
- },
26416
- "required": [
26417
- "object",
26418
- "type",
26419
- "data",
26420
- "isVoid"
26421
- ]
26422
- },
26423
26732
  "DocumentBlockExpandable": {
26424
26733
  "type": "object",
26425
26734
  "properties": {
@@ -27690,10 +27999,12 @@
27690
27999
  ]
27691
28000
  },
27692
28001
  "DocumentAction": {
28002
+ "description": "Action to perform when an inline button is clicked.",
27693
28003
  "type": "object",
27694
28004
  "oneOf": [
27695
28005
  {
27696
28006
  "type": "object",
28007
+ "description": "Open a search input, optionally prefilled with a search query.",
27697
28008
  "properties": {
27698
28009
  "action": {
27699
28010
  "type": "string",
@@ -27702,7 +28013,8 @@
27702
28013
  ]
27703
28014
  },
27704
28015
  "query": {
27705
- "type": "string"
28016
+ "type": "string",
28017
+ "description": "The search query to prefill."
27706
28018
  }
27707
28019
  },
27708
28020
  "required": [
@@ -27712,6 +28024,7 @@
27712
28024
  },
27713
28025
  {
27714
28026
  "type": "object",
28027
+ "description": "Open an AI input, optionally prefilled with a question.",
27715
28028
  "properties": {
27716
28029
  "action": {
27717
28030
  "type": "string",
@@ -27720,13 +28033,35 @@
27720
28033
  ]
27721
28034
  },
27722
28035
  "query": {
27723
- "type": "string"
28036
+ "type": "string",
28037
+ "description": "The question to prefill."
27724
28038
  }
27725
28039
  },
27726
28040
  "required": [
27727
28041
  "action"
27728
28042
  ],
27729
28043
  "additionalProperties": false
28044
+ },
28045
+ {
28046
+ "type": "object",
28047
+ "description": "Open a selection input for the option identified by its slug.",
28048
+ "properties": {
28049
+ "action": {
28050
+ "type": "string",
28051
+ "enum": [
28052
+ "select"
28053
+ ]
28054
+ },
28055
+ "slug": {
28056
+ "type": "string",
28057
+ "description": "The slug of the option to select."
28058
+ }
28059
+ },
28060
+ "required": [
28061
+ "action",
28062
+ "slug"
28063
+ ],
28064
+ "additionalProperties": false
27730
28065
  }
27731
28066
  ]
27732
28067
  },
@@ -30407,6 +30742,10 @@
30407
30742
  "minLength": 1,
30408
30743
  "description": "Title of the page."
30409
30744
  },
30745
+ "slug": {
30746
+ "description": "Slug of the page in its parent, used to build the page's path. When omitted, the slug is derived from the title. The slug must be unique among the page's siblings; any collision is rejected.",
30747
+ "$ref": "#/components/schemas/RevisionPageSlug"
30748
+ },
30410
30749
  "emoji": {
30411
30750
  "description": "Emoji of the page. Set to an empty string to remove it.",
30412
30751
  "$ref": "#/components/schemas/Emoji"
@@ -30485,7 +30824,6 @@
30485
30824
  "type": "object",
30486
30825
  "required": [
30487
30826
  "operation",
30488
- "title",
30489
30827
  "document"
30490
30828
  ],
30491
30829
  "properties": {
@@ -30504,6 +30842,10 @@
30504
30842
  "minimum": 0,
30505
30843
  "description": "Zero-based index to insert the page at among its siblings. If omitted, the page is appended at the end."
30506
30844
  },
30845
+ "ref": {
30846
+ "type": "string",
30847
+ "description": "Temporary local reference for the page, used only for the lifetime of this request and never persisted. Other pages inserted in the same batch can link to this page by its ref (e.g. `[Page](./<ref>.md)`), which resolves to the page's ID at apply time — regardless of operation order or the page's eventual slug. A ref must be unique within the batch and must not collide with an existing page's path."
30848
+ },
30507
30849
  "document": {
30508
30850
  "description": "Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata.",
30509
30851
  "$ref": "#/components/schemas/Document"
@@ -30603,6 +30945,149 @@
30603
30945
  }
30604
30946
  }
30605
30947
  },
30948
+ "ChangeRequestContentUpdatePageRef": {
30949
+ "type": "object",
30950
+ "required": [
30951
+ "object",
30952
+ "id",
30953
+ "urls"
30954
+ ],
30955
+ "properties": {
30956
+ "object": {
30957
+ "type": "string",
30958
+ "description": "Type of Object, always equals to \"page\".",
30959
+ "enum": [
30960
+ "page"
30961
+ ]
30962
+ },
30963
+ "id": {
30964
+ "type": "string",
30965
+ "description": "Unique identifier of the page."
30966
+ },
30967
+ "urls": {
30968
+ "type": "object",
30969
+ "required": [
30970
+ "location"
30971
+ ],
30972
+ "properties": {
30973
+ "location": {
30974
+ "description": "API URL to fetch the page's full, normalized content.",
30975
+ "$ref": "#/components/schemas/URL"
30976
+ }
30977
+ }
30978
+ }
30979
+ }
30980
+ },
30981
+ "ChangeRequestContentUpdateInsertedPage": {
30982
+ "type": "object",
30983
+ "description": "A page created by the operation with its resolved ID, ref as passed by the caller, and a URL to fetch its content.",
30984
+ "required": [
30985
+ "object",
30986
+ "page"
30987
+ ],
30988
+ "properties": {
30989
+ "object": {
30990
+ "type": "string",
30991
+ "description": "Type of Object, always equals to \"created_page\".",
30992
+ "enum": [
30993
+ "created_page"
30994
+ ]
30995
+ },
30996
+ "ref": {
30997
+ "type": "string",
30998
+ "description": "The batch-local `ref` provided on the insert operation, echoed so the caller can map their reference to the created page's ID. Absent when the operation had no ref."
30999
+ },
31000
+ "page": {
31001
+ "description": "Reference to the created page, with a URL to fetch its normalized content.",
31002
+ "$ref": "#/components/schemas/ChangeRequestContentUpdatePageRef"
31003
+ }
31004
+ }
31005
+ },
31006
+ "ChangeRequestContentUpdateUpdatedPage": {
31007
+ "type": "object",
31008
+ "description": "A page updated by the operation, with a URL to fetch its content.",
31009
+ "required": [
31010
+ "object",
31011
+ "page"
31012
+ ],
31013
+ "properties": {
31014
+ "object": {
31015
+ "type": "string",
31016
+ "description": "Type of Object, always equals to \"updated_page\".",
31017
+ "enum": [
31018
+ "updated_page"
31019
+ ]
31020
+ },
31021
+ "page": {
31022
+ "description": "Reference to the updated page, with a URL to fetch its normalized content.",
31023
+ "$ref": "#/components/schemas/ChangeRequestContentUpdatePageRef"
31024
+ }
31025
+ }
31026
+ },
31027
+ "ChangeRequestContentUpdateDeletedPage": {
31028
+ "type": "object",
31029
+ "description": "A page deleted by the batch. Only its ID is returned, as it no longer has content.",
31030
+ "required": [
31031
+ "object",
31032
+ "page"
31033
+ ],
31034
+ "properties": {
31035
+ "object": {
31036
+ "type": "string",
31037
+ "description": "Type of Object, always equals to \"deleted_page\".",
31038
+ "enum": [
31039
+ "deleted_page"
31040
+ ]
31041
+ },
31042
+ "page": {
31043
+ "type": "string",
31044
+ "description": "ID of the deleted page."
31045
+ }
31046
+ }
31047
+ },
31048
+ "ChangeRequestContentUpdateChange": {
31049
+ "description": "An outcome of a content change.",
31050
+ "oneOf": [
31051
+ {
31052
+ "$ref": "#/components/schemas/ChangeRequestContentUpdateInsertedPage"
31053
+ },
31054
+ {
31055
+ "$ref": "#/components/schemas/ChangeRequestContentUpdateUpdatedPage"
31056
+ },
31057
+ {
31058
+ "$ref": "#/components/schemas/ChangeRequestContentUpdateDeletedPage"
31059
+ }
31060
+ ],
31061
+ "discriminator": {
31062
+ "propertyName": "object",
31063
+ "mapping": {
31064
+ "created_page": "#/components/schemas/ChangeRequestContentUpdateInsertedPage",
31065
+ "updated_page": "#/components/schemas/ChangeRequestContentUpdateUpdatedPage",
31066
+ "deleted_page": "#/components/schemas/ChangeRequestContentUpdateDeletedPage"
31067
+ }
31068
+ }
31069
+ },
31070
+ "ChangeRequestContentUpdate": {
31071
+ "type": "object",
31072
+ "description": "The result of applying a batch of content changes.",
31073
+ "required": [
31074
+ "changeRequest",
31075
+ "changes"
31076
+ ],
31077
+ "properties": {
31078
+ "changeRequest": {
31079
+ "description": "The change request after the batch was applied.",
31080
+ "$ref": "#/components/schemas/ChangeRequest"
31081
+ },
31082
+ "changes": {
31083
+ "type": "array",
31084
+ "description": "One entry per affected page (deduplicated), in the order the pages were first touched by the batch.",
31085
+ "items": {
31086
+ "$ref": "#/components/schemas/ChangeRequestContentUpdateChange"
31087
+ }
31088
+ }
31089
+ }
31090
+ },
30606
31091
  "RevisionPageType": {
30607
31092
  "type": "string",
30608
31093
  "enum": [
@@ -36109,6 +36594,17 @@
36109
36594
  "description": "Conditional expression used to evaluate whether the site space should be shown to the site's visitor.",
36110
36595
  "$ref": "#/components/schemas/Expression"
36111
36596
  },
36597
+ "pageId": {
36598
+ "oneOf": [
36599
+ {
36600
+ "type": "string"
36601
+ },
36602
+ {
36603
+ "type": "null"
36604
+ }
36605
+ ],
36606
+ "description": "Custom home page within the space, rendered at the site space's path root instead of the space's default landing page."
36607
+ },
36112
36608
  "draft": {
36113
36609
  "type": "boolean",
36114
36610
  "description": "Whether the site space is draft and not live."
@@ -39124,6 +39620,136 @@
39124
39620
  "propertyName": "type"
39125
39621
  }
39126
39622
  },
39623
+ "GitSyncInstallationProvider": {
39624
+ "type": "string",
39625
+ "description": "The provider of the Git Sync installation.",
39626
+ "enum": [
39627
+ "github",
39628
+ "gitlab"
39629
+ ]
39630
+ },
39631
+ "GitRepositoryConnection": {
39632
+ "type": "object",
39633
+ "properties": {
39634
+ "object": {
39635
+ "type": "string",
39636
+ "enum": [
39637
+ "git-repository-connection"
39638
+ ]
39639
+ },
39640
+ "id": {
39641
+ "type": "string",
39642
+ "description": "Unique identifier of the repository connection."
39643
+ },
39644
+ "provider": {
39645
+ "$ref": "#/components/schemas/GitSyncInstallationProvider"
39646
+ },
39647
+ "repositoryId": {
39648
+ "type": "string",
39649
+ "description": "Repository identifier assigned by the provider."
39650
+ },
39651
+ "repositoryName": {
39652
+ "type": "string",
39653
+ "description": "Full repository name assigned by the provider."
39654
+ },
39655
+ "repositoryUrl": {
39656
+ "type": "string",
39657
+ "format": "uri",
39658
+ "description": "URL of the repository on the provider."
39659
+ },
39660
+ "defaultBranch": {
39661
+ "type": "string",
39662
+ "description": "Default branch reported by the provider."
39663
+ },
39664
+ "authState": {
39665
+ "type": "string",
39666
+ "enum": [
39667
+ "pending",
39668
+ "active",
39669
+ "unauthenticated"
39670
+ ]
39671
+ },
39672
+ "capabilities": {
39673
+ "type": "object",
39674
+ "description": "Provider operations available to this repository connection.",
39675
+ "properties": {
39676
+ "pullRequests": {
39677
+ "type": "boolean",
39678
+ "description": "Whether the connection can create and update GitHub pull requests or GitLab merge requests."
39679
+ },
39680
+ "commitStatuses": {
39681
+ "type": "boolean",
39682
+ "description": "Whether the connection can publish GitBook synchronization results as provider commit statuses."
39683
+ }
39684
+ },
39685
+ "required": [
39686
+ "pullRequests",
39687
+ "commitStatuses"
39688
+ ]
39689
+ },
39690
+ "createdAt": {
39691
+ "$ref": "#/components/schemas/Timestamp"
39692
+ },
39693
+ "updatedAt": {
39694
+ "$ref": "#/components/schemas/Timestamp"
39695
+ }
39696
+ },
39697
+ "required": [
39698
+ "object",
39699
+ "id",
39700
+ "provider",
39701
+ "repositoryId",
39702
+ "repositoryName",
39703
+ "repositoryUrl",
39704
+ "authState",
39705
+ "capabilities",
39706
+ "createdAt",
39707
+ "updatedAt"
39708
+ ]
39709
+ },
39710
+ "GitRepositoryRef": {
39711
+ "type": "object",
39712
+ "properties": {
39713
+ "object": {
39714
+ "type": "string",
39715
+ "enum": [
39716
+ "git-repository-ref"
39717
+ ]
39718
+ },
39719
+ "id": {
39720
+ "type": "string",
39721
+ "description": "Unique identifier of the repository ref."
39722
+ },
39723
+ "name": {
39724
+ "type": "string",
39725
+ "description": "Fully qualified provider ref name."
39726
+ },
39727
+ "type": {
39728
+ "type": "string",
39729
+ "enum": [
39730
+ "branch",
39731
+ "tag",
39732
+ "change-request-head"
39733
+ ]
39734
+ },
39735
+ "latestObservedCommitId": {
39736
+ "type": "string"
39737
+ },
39738
+ "latestImportedCommitId": {
39739
+ "type": "string"
39740
+ },
39741
+ "updatedAt": {
39742
+ "$ref": "#/components/schemas/Timestamp"
39743
+ }
39744
+ },
39745
+ "required": [
39746
+ "object",
39747
+ "id",
39748
+ "name",
39749
+ "type",
39750
+ "updatedAt"
39751
+ ]
39752
+ },
39127
39753
  "GitSyncInstallation": {
39128
39754
  "allOf": [
39129
39755
  {
@@ -39142,12 +39768,22 @@
39142
39768
  "type": "string",
39143
39769
  "description": "Unique identifier of the Git Sync installation."
39144
39770
  },
39771
+ "parentInstallationId": {
39772
+ "type": "string",
39773
+ "description": "The ID of the parent Git Sync installation, if any."
39774
+ },
39145
39775
  "target": {
39146
39776
  "$ref": "#/components/schemas/GitSyncInstallationTarget"
39147
39777
  },
39148
39778
  "status": {
39149
39779
  "$ref": "#/components/schemas/GitSyncInstallationStatus"
39150
39780
  },
39781
+ "repositoryConnection": {
39782
+ "$ref": "#/components/schemas/GitRepositoryConnection"
39783
+ },
39784
+ "repositoryRef": {
39785
+ "$ref": "#/components/schemas/GitRepositoryRef"
39786
+ },
39151
39787
  "createdAt": {
39152
39788
  "$ref": "#/components/schemas/Timestamp"
39153
39789
  },
@@ -39913,6 +40549,11 @@
39913
40549
  },
39914
40550
  "maxItems": 5
39915
40551
  },
40552
+ "CustomizationAIInstructions": {
40553
+ "type": "string",
40554
+ "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.",
40555
+ "maxLength": 10000
40556
+ },
39916
40557
  "CustomizationPageActionType": {
39917
40558
  "type": "string",
39918
40559
  "description": "Type of a built-in page action that can be displayed in the page actions menu of a published page.",
@@ -40221,6 +40862,9 @@
40221
40862
  },
40222
40863
  "suggestions": {
40223
40864
  "$ref": "#/components/schemas/CustomizationSuggestedQuestions"
40865
+ },
40866
+ "instructions": {
40867
+ "$ref": "#/components/schemas/CustomizationAIInstructions"
40224
40868
  }
40225
40869
  },
40226
40870
  "required": [
@@ -41155,6 +41799,16 @@
41155
41799
  "description": "Findings source filter matching evidence coming from a given connection,\nencoded as `connection:<connectionId>`.\n",
41156
41800
  "pattern": "^connection:.+$"
41157
41801
  },
41802
+ "SiteFindingOrderBy": {
41803
+ "type": "string",
41804
+ "enum": [
41805
+ "updatedAt",
41806
+ "severity",
41807
+ "questions"
41808
+ ],
41809
+ "default": "updatedAt",
41810
+ "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'."
41811
+ },
41158
41812
  "SiteFindingTitle": {
41159
41813
  "type": "string",
41160
41814
  "description": "Short finding title",
@@ -41511,6 +42165,94 @@
41511
42165
  "urls"
41512
42166
  ]
41513
42167
  },
42168
+ "SiteFindingStatsStatuses": {
42169
+ "type": "object",
42170
+ "description": "Count of findings by status. Candidate findings are never counted.",
42171
+ "properties": {
42172
+ "open": {
42173
+ "type": "number",
42174
+ "description": "Count of findings surfaced to users and still under investigation."
42175
+ },
42176
+ "done": {
42177
+ "type": "number",
42178
+ "description": "Count of findings that have been resolved."
42179
+ },
42180
+ "canceled": {
42181
+ "type": "number",
42182
+ "description": "Count of findings that have been canceled."
42183
+ }
42184
+ },
42185
+ "required": [
42186
+ "open",
42187
+ "done",
42188
+ "canceled"
42189
+ ]
42190
+ },
42191
+ "SiteFindingStatsSeverities": {
42192
+ "type": "object",
42193
+ "description": "Count of findings by estimated end-user severity.",
42194
+ "properties": {
42195
+ "low": {
42196
+ "type": "number",
42197
+ "description": "Count of findings with a low estimated severity."
42198
+ },
42199
+ "medium": {
42200
+ "type": "number",
42201
+ "description": "Count of findings with a medium estimated severity."
42202
+ },
42203
+ "high": {
42204
+ "type": "number",
42205
+ "description": "Count of findings with a high estimated severity."
42206
+ }
42207
+ },
42208
+ "required": [
42209
+ "low",
42210
+ "medium",
42211
+ "high"
42212
+ ]
42213
+ },
42214
+ "SiteFindingStatsConnectors": {
42215
+ "type": "object",
42216
+ "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.",
42217
+ "additionalProperties": {
42218
+ "type": "number"
42219
+ }
42220
+ },
42221
+ "SiteFindingStats": {
42222
+ "type": "object",
42223
+ "description": "Aggregated stats for the findings identified on a site.",
42224
+ "properties": {
42225
+ "total": {
42226
+ "type": "number",
42227
+ "description": "Total count of findings included in the aggregation."
42228
+ },
42229
+ "statuses": {
42230
+ "$ref": "#/components/schemas/SiteFindingStatsStatuses"
42231
+ },
42232
+ "severities": {
42233
+ "$ref": "#/components/schemas/SiteFindingStatsSeverities"
42234
+ },
42235
+ "connectors": {
42236
+ "$ref": "#/components/schemas/SiteFindingStatsConnectors"
42237
+ },
42238
+ "questions": {
42239
+ "type": "number",
42240
+ "description": "Count of findings with at least one piece of evidence coming from a site question."
42241
+ },
42242
+ "mergedChangeRequests": {
42243
+ "type": "number",
42244
+ "description": "Count of change requests created to fix a finding that have been merged."
42245
+ }
42246
+ },
42247
+ "required": [
42248
+ "total",
42249
+ "statuses",
42250
+ "severities",
42251
+ "connectors",
42252
+ "questions",
42253
+ "mergedChangeRequests"
42254
+ ]
42255
+ },
41514
42256
  "ContextConnectionLabel": {
41515
42257
  "type": "string",
41516
42258
  "description": "Optional label for the connection",
@@ -45278,28 +46020,10 @@
45278
46020
  "enum": [
45279
46021
  "agent_feedback"
45280
46022
  ]
45281
- },
45282
- "feedback": {
45283
- "type": "object",
45284
- "properties": {
45285
- "content": {
45286
- "type": "string",
45287
- "minLength": 1,
45288
- "maxLength": 2048
45289
- },
45290
- "category": {
45291
- "$ref": "#/components/schemas/SiteFindingType"
45292
- }
45293
- },
45294
- "required": [
45295
- "content",
45296
- "category"
45297
- ]
45298
46023
  }
45299
46024
  },
45300
46025
  "required": [
45301
- "type",
45302
- "feedback"
46026
+ "type"
45303
46027
  ]
45304
46028
  }
45305
46029
  ]
@@ -48356,6 +49080,23 @@
48356
49080
  "contents"
48357
49081
  ]
48358
49082
  },
49083
+ "APIIntercomMessengerToken": {
49084
+ "type": "object",
49085
+ "properties": {
49086
+ "token": {
49087
+ "type": "string",
49088
+ "description": "Short-lived JWT used to authenticate the user with Intercom Messenger"
49089
+ },
49090
+ "expiresAt": {
49091
+ "type": "integer",
49092
+ "description": "Unix timestamp in seconds when the token expires"
49093
+ }
49094
+ },
49095
+ "required": [
49096
+ "token",
49097
+ "expiresAt"
49098
+ ]
49099
+ },
48359
49100
  "SignedURL": {
48360
49101
  "type": "object",
48361
49102
  "properties": {
@@ -48976,14 +49717,6 @@
48976
49717
  }
48977
49718
  }
48978
49719
  },
48979
- "GitSyncInstallationProvider": {
48980
- "type": "string",
48981
- "description": "The provider of the Git Sync installation.",
48982
- "enum": [
48983
- "github",
48984
- "gitlab"
48985
- ]
48986
- },
48987
49720
  "GitSyncGitHubRepository": {
48988
49721
  "type": "object",
48989
49722
  "description": "GitHub repository that can be selected for Git Sync.",
@@ -49916,13 +50649,6 @@
49916
50649
  "tag_edited"
49917
50650
  ]
49918
50651
  },
49919
- "GitSyncOperationDirection": {
49920
- "type": "string",
49921
- "enum": [
49922
- "export",
49923
- "import"
49924
- ]
49925
- },
49926
50652
  "GitSyncOperationStage": {
49927
50653
  "type": "string",
49928
50654
  "description": "Core stages of a Git Sync process. This is not exhaustive, but should cover\nthe important ones.\n- repo_fetch: Includes fetching the latest repository contents from remote provider.\n- config_check: Includes checking if the YAML config is valid, etc.\n- content_process: Includes processing of pages & files to be imported/exported.\n- finalize: Includes finalizing the sync process like creating the commit on git, or\ncreating a new revision.\n",
@@ -50032,7 +50758,7 @@
50032
50758
  "GitSyncSiteStructureSpace": {
50033
50759
  "type": "object",
50034
50760
  "additionalProperties": false,
50035
- "description": "A space — a single content unit in the site's navigation tree. Discriminated\nby `type: space`.\n\nThe space's content lives in the synced repository at the directory pointed\nto by `content.directory`. Hierarchy comes from where the space appears in\nthe YAML (under a section, a section group, or at the root), not from an\nexplicit parent reference.\n",
50761
+ "description": "A space — a single content unit in the site's navigation tree. Discriminated\nby `type: space`.\n\nThe space's content either lives in the synced repository at the directory\npointed to by `content.directory`, or does not inherit the site's repository\nwhen `content.directory` is `null`. Hierarchy comes from where the space\nappears in the YAML (under a section, a section group, or at the root), not\nfrom an explicit parent reference.\n",
50036
50762
  "properties": {
50037
50763
  "type": {
50038
50764
  "type": "string",
@@ -50074,12 +50800,20 @@
50074
50800
  "content": {
50075
50801
  "type": "object",
50076
50802
  "additionalProperties": false,
50077
- "description": "Where the space's content lives in the synced repository.",
50803
+ "description": "Where the space's content is managed.",
50078
50804
  "properties": {
50079
50805
  "directory": {
50080
- "type": "string",
50081
- "description": "Repository-relative directory containing this space's content.",
50082
- "minLength": 1
50806
+ "oneOf": [
50807
+ {
50808
+ "type": "string",
50809
+ "description": "Repository-relative directory containing this space's content.",
50810
+ "minLength": 1
50811
+ },
50812
+ {
50813
+ "type": "null",
50814
+ "description": "The space does not inherit the site's repository."
50815
+ }
50816
+ ]
50083
50817
  },
50084
50818
  "language": {
50085
50819
  "$ref": "#/components/schemas/TranslationLanguage"
@@ -50134,10 +50868,6 @@
50134
50868
  "type": "boolean",
50135
50869
  "description": "Whether this is the default section for the site."
50136
50870
  },
50137
- "draft": {
50138
- "type": "boolean",
50139
- "description": "Whether the section is draft and not live."
50140
- },
50141
50871
  "path": {
50142
50872
  "$ref": "#/components/schemas/SiteSectionPath"
50143
50873
  },
@@ -50180,643 +50910,6 @@
50180
50910
  "$ref": "#/components/schemas/GitSyncSiteStructureNode"
50181
50911
  }
50182
50912
  },
50183
- "GitSyncSiteCustomizationFontSource": {
50184
- "type": "string",
50185
- "description": "Reserved repository-relative path to the font file:\n`.gitbook/assets/<key>-<weight>.<ext>`, where `<key>` is the parent\nfont definition's `key`, `<weight>` is this face's `weight`, and\n`<ext>` is one of `woff2`, `woff`.\n\nFor example, a font with `key: brand` and a `700` face is read from\n`.gitbook/assets/brand-700.woff2`. Any other path is rejected.\n",
50186
- "minLength": 1
50187
- },
50188
- "GitSyncSiteCustomizationFontDefinition": {
50189
- "type": "object",
50190
- "description": "Custom font definition for a `site.fonts[]` entry. Referenced from\n`customization.styling.font` or `customization.styling.monospaceFont` via\nits `key`.\n\nRules enforced on a definition:\n- It must declare exactly one face for the `400` weight and one for the\n `700` weight; the `600` weight is optional. No other weights are allowed,\n and a weight may not be declared more than once.\n- Each face has a single source file whose `url` is the reserved repository\n asset path `.gitbook/assets/<key>-<weight>.<ext>` (`<ext>` is `woff2` or\n `woff`). For example a definition with `key: brand` is read from\n `.gitbook/assets/brand-400.woff2` and `.gitbook/assets/brand-700.woff2`.\n",
50191
- "properties": {
50192
- "key": {
50193
- "type": "string",
50194
- "description": "Stable identifier referenced from `styling.font` /\n`styling.monospaceFont`, and used as the prefix of each face's\nreserved asset path (`.gitbook/assets/<key>-<weight>.<ext>`).\n",
50195
- "minLength": 1,
50196
- "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
50197
- },
50198
- "fontFamily": {
50199
- "$ref": "#/components/schemas/FontFamily"
50200
- },
50201
- "fontFaces": {
50202
- "type": "object",
50203
- "description": "Font-face declarations keyed by weight, each specifying its single\nsource file. The `400` and `700` weights are required; `600` is\noptional.\n",
50204
- "properties": {
50205
- "400": {
50206
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFontSource"
50207
- },
50208
- "600": {
50209
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFontSource"
50210
- },
50211
- "700": {
50212
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFontSource"
50213
- }
50214
- },
50215
- "required": [
50216
- "400",
50217
- "700"
50218
- ],
50219
- "additionalProperties": false
50220
- }
50221
- },
50222
- "required": [
50223
- "key",
50224
- "fontFamily",
50225
- "fontFaces"
50226
- ]
50227
- },
50228
- "GitSyncSiteCustomizationThemedColor": {
50229
- "type": "object",
50230
- "description": "Themed color (light + dark).\n",
50231
- "properties": {
50232
- "light": {
50233
- "$ref": "#/components/schemas/Color"
50234
- },
50235
- "dark": {
50236
- "$ref": "#/components/schemas/Color"
50237
- }
50238
- },
50239
- "required": [
50240
- "light",
50241
- "dark"
50242
- ]
50243
- },
50244
- "GitSyncSiteCustomizationTint": {
50245
- "type": "object",
50246
- "description": "Tint configuration.\n",
50247
- "properties": {
50248
- "color": {
50249
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedColor"
50250
- }
50251
- },
50252
- "required": [
50253
- "color"
50254
- ]
50255
- },
50256
- "GitSyncSiteCustomizationFontReference": {
50257
- "type": "object",
50258
- "description": "Reference to a custom font defined under `site.fonts[]`. Matches by `key`.\n",
50259
- "properties": {
50260
- "key": {
50261
- "type": "string",
50262
- "description": "Matches the `key` of an entry in `site.fonts[]`.",
50263
- "minLength": 1
50264
- }
50265
- },
50266
- "required": [
50267
- "key"
50268
- ]
50269
- },
50270
- "GitSyncSiteCustomizationFont": {
50271
- "description": "Body font for the site. Either one of the built-in `CustomizationDefaultFont`\nvalues, or a reference to a custom font declared in `site.fonts[]`.\n",
50272
- "oneOf": [
50273
- {
50274
- "$ref": "#/components/schemas/CustomizationDefaultFont"
50275
- },
50276
- {
50277
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFontReference"
50278
- }
50279
- ]
50280
- },
50281
- "GitSyncSiteCustomizationMonospaceFont": {
50282
- "description": "Monospace font for the site. Either one of the built-in\n`CustomizationDefaultMonospaceFont` values, or a reference to a custom font\ndeclared in `site.fonts[]`.\n",
50283
- "oneOf": [
50284
- {
50285
- "$ref": "#/components/schemas/CustomizationDefaultMonospaceFont"
50286
- },
50287
- {
50288
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFontReference"
50289
- }
50290
- ]
50291
- },
50292
- "GitSyncSiteCustomizationThemedCodeTheme": {
50293
- "type": "object",
50294
- "description": "Themed code theme (light + dark).\n",
50295
- "properties": {
50296
- "light": {
50297
- "$ref": "#/components/schemas/CustomizationCodeTheme"
50298
- },
50299
- "dark": {
50300
- "$ref": "#/components/schemas/CustomizationCodeTheme"
50301
- }
50302
- },
50303
- "required": [
50304
- "light",
50305
- "dark"
50306
- ]
50307
- },
50308
- "GitSyncSiteCustomizationCodeThemes": {
50309
- "type": "object",
50310
- "description": "Code-block syntax-highlighting themes — one for default code blocks and one for OpenAPI request/response samples.\n",
50311
- "properties": {
50312
- "default": {
50313
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
50314
- },
50315
- "openapi": {
50316
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedCodeTheme"
50317
- }
50318
- },
50319
- "required": [
50320
- "default",
50321
- "openapi"
50322
- ]
50323
- },
50324
- "GitSyncSiteCustomizationSidebar": {
50325
- "type": "object",
50326
- "description": "Sidebar style settings.\n",
50327
- "properties": {
50328
- "background": {
50329
- "$ref": "#/components/schemas/CustomizationSidebarBackgroundStyle"
50330
- },
50331
- "list": {
50332
- "$ref": "#/components/schemas/CustomizationSidebarListStyle"
50333
- }
50334
- },
50335
- "required": [
50336
- "background",
50337
- "list"
50338
- ]
50339
- },
50340
- "GitSyncSiteCustomizationStyling": {
50341
- "type": "object",
50342
- "description": "Styling settings.\n",
50343
- "properties": {
50344
- "theme": {
50345
- "$ref": "#/components/schemas/CustomizationTheme"
50346
- },
50347
- "primaryColor": {
50348
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedColor"
50349
- },
50350
- "tint": {
50351
- "$ref": "#/components/schemas/GitSyncSiteCustomizationTint"
50352
- },
50353
- "infoColor": {
50354
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedColor"
50355
- },
50356
- "successColor": {
50357
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedColor"
50358
- },
50359
- "warningColor": {
50360
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedColor"
50361
- },
50362
- "dangerColor": {
50363
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedColor"
50364
- },
50365
- "corners": {
50366
- "$ref": "#/components/schemas/CustomizationCorners"
50367
- },
50368
- "depth": {
50369
- "$ref": "#/components/schemas/CustomizationDepth"
50370
- },
50371
- "links": {
50372
- "$ref": "#/components/schemas/CustomizationLinksStyle"
50373
- },
50374
- "font": {
50375
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFont"
50376
- },
50377
- "monospaceFont": {
50378
- "$ref": "#/components/schemas/GitSyncSiteCustomizationMonospaceFont"
50379
- },
50380
- "icons": {
50381
- "$ref": "#/components/schemas/CustomizationIconsStyle"
50382
- },
50383
- "codeTheme": {
50384
- "$ref": "#/components/schemas/GitSyncSiteCustomizationCodeThemes"
50385
- },
50386
- "sidebar": {
50387
- "$ref": "#/components/schemas/GitSyncSiteCustomizationSidebar"
50388
- },
50389
- "search": {
50390
- "$ref": "#/components/schemas/CustomizationSearchStyle"
50391
- }
50392
- }
50393
- },
50394
- "GitSyncSiteCustomizationAssetPath": {
50395
- "type": "string",
50396
- "description": "Repository-relative path to an asset in a site Git Sync, e.g.\n`.gitbook/assets/header-logo-light.svg`. Absolute URLs are not accepted\nhere — Git Sync assets must live in the synced repository under\n`.gitbook/assets/`.\n\nThis is the shared base type and only validates the `.gitbook/assets/`\nprefix. Each field that uses it additionally reserves a specific filename\nand set of allowed extensions (e.g. the header logo must be\n`header-logo-light.<ext>` / `header-logo-dark.<ext>`); see the description\non the consuming field for the exact reserved path.\n",
50397
- "pattern": "^\\.gitbook/assets/.+",
50398
- "maxLength": 2048
50399
- },
50400
- "GitSyncSiteCustomizationThemedAssetPath": {
50401
- "type": "object",
50402
- "description": "Light/dark variants of a Git Sync repository asset path. Used for logos and\nfavicons that switch with the active theme. Both variants are required.\n\nEach consuming field reserves the exact light/dark filenames and allowed\nextensions (e.g. header logo → `header-logo-light.<ext>` /\n`header-logo-dark.<ext>`); see the description on the consuming field.\n",
50403
- "properties": {
50404
- "light": {
50405
- "$ref": "#/components/schemas/GitSyncSiteCustomizationAssetPath"
50406
- },
50407
- "dark": {
50408
- "$ref": "#/components/schemas/GitSyncSiteCustomizationAssetPath"
50409
- }
50410
- },
50411
- "required": [
50412
- "light",
50413
- "dark"
50414
- ]
50415
- },
50416
- "GitSyncSiteCustomizationFavicon": {
50417
- "description": "Favicon for the published site. The `icon` variant references a repository asset path; the `emoji` variant uses a single emoji character;\n",
50418
- "oneOf": [
50419
- {
50420
- "type": "object",
50421
- "properties": {
50422
- "icon": {
50423
- "description": "Themed favicon. Each variant must use its reserved repository\nasset path — light: `.gitbook/assets/favicon-light.<ext>`,\ndark: `.gitbook/assets/favicon-dark.<ext>`, where `<ext>` is\nthe image's file extension (e.g. `png`, `svg`, `ico`). Any\nother filename is rejected.\n",
50424
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
50425
- }
50426
- },
50427
- "required": [
50428
- "icon"
50429
- ]
50430
- },
50431
- {
50432
- "type": "object",
50433
- "properties": {
50434
- "emoji": {
50435
- "$ref": "#/components/schemas/Emoji"
50436
- }
50437
- },
50438
- "required": [
50439
- "emoji"
50440
- ]
50441
- }
50442
- ]
50443
- },
50444
- "GitSyncSiteCustomizationContentLinkTo": {
50445
- "type": "string",
50446
- "description": "Link destination, written as a path-string in YAML. Same format as\nmarkdown content links, e.g. `https://example.com`, `/pages/<id>`,\n`/spaces/<id>/pages/<id>`, `#anchor`, `/files/<id>`, `/spaces/<id>`.\n"
50447
- },
50448
- "GitSyncSiteCustomizationContentLink": {
50449
- "type": "object",
50450
- "description": "A label plus a destination, used inside header items, footer groups, and announcements.\n",
50451
- "properties": {
50452
- "title": {
50453
- "$ref": "#/components/schemas/CustomizationContentLinkTitle"
50454
- },
50455
- "localizedTitle": {
50456
- "description": "Localized overrides for the link title, keyed by locale.",
50457
- "$ref": "#/components/schemas/LocalizedString64"
50458
- },
50459
- "to": {
50460
- "$ref": "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
50461
- }
50462
- },
50463
- "required": [
50464
- "title",
50465
- "to"
50466
- ]
50467
- },
50468
- "GitSyncSiteCustomizationHeaderItem": {
50469
- "type": "object",
50470
- "description": "A single item in the published site's top navigation bar.\n",
50471
- "properties": {
50472
- "title": {
50473
- "type": "string"
50474
- },
50475
- "localizedTitle": {
50476
- "description": "Localized overrides for the header item title, keyed by locale.",
50477
- "$ref": "#/components/schemas/LocalizedString"
50478
- },
50479
- "style": {
50480
- "type": "string",
50481
- "enum": [
50482
- "link",
50483
- "button-primary",
50484
- "button-secondary"
50485
- ]
50486
- },
50487
- "to": {
50488
- "description": "Header item destination. Use `null` for items that act as a\ndropdown root without a link of their own.\n",
50489
- "oneOf": [
50490
- {
50491
- "$ref": "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
50492
- },
50493
- {
50494
- "type": "null"
50495
- }
50496
- ]
50497
- },
50498
- "links": {
50499
- "type": "array",
50500
- "description": "Sub-links shown as a dropdown under this header item. Empty array means no dropdown.",
50501
- "items": {
50502
- "$ref": "#/components/schemas/GitSyncSiteCustomizationContentLink"
50503
- }
50504
- },
50505
- "condition": {
50506
- "description": "Conditional expression evaluated to decide whether the item is shown to the visitor.",
50507
- "$ref": "#/components/schemas/Expression"
50508
- }
50509
- },
50510
- "required": [
50511
- "title",
50512
- "to",
50513
- "links"
50514
- ]
50515
- },
50516
- "GitSyncSiteCustomizationHeader": {
50517
- "type": "object",
50518
- "description": "Header settings.\n",
50519
- "properties": {
50520
- "logo": {
50521
- "description": "Themed header logo. Each variant must use its reserved repository\nasset path — light: `.gitbook/assets/header-logo-light.<ext>`, dark:\n`.gitbook/assets/header-logo-dark.<ext>`, where `<ext>` is the\nimage's file extension (e.g. `png`, `svg`). Any other filename is\nrejected.\n",
50522
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
50523
- },
50524
- "primaryLink": {
50525
- "$ref": "#/components/schemas/GitSyncSiteCustomizationContentLinkTo"
50526
- },
50527
- "links": {
50528
- "type": "array",
50529
- "items": {
50530
- "$ref": "#/components/schemas/GitSyncSiteCustomizationHeaderItem"
50531
- }
50532
- }
50533
- }
50534
- },
50535
- "GitSyncSiteCustomizationFooterGroup": {
50536
- "type": "object",
50537
- "description": "A group of links shown in the published site's footer.\n",
50538
- "properties": {
50539
- "title": {
50540
- "type": "string"
50541
- },
50542
- "localizedTitle": {
50543
- "description": "Localized overrides for the footer group title, keyed by locale.",
50544
- "$ref": "#/components/schemas/LocalizedString"
50545
- },
50546
- "links": {
50547
- "type": "array",
50548
- "items": {
50549
- "$ref": "#/components/schemas/GitSyncSiteCustomizationContentLink"
50550
- }
50551
- }
50552
- },
50553
- "required": [
50554
- "title",
50555
- "links"
50556
- ]
50557
- },
50558
- "GitSyncSiteCustomizationFooter": {
50559
- "type": "object",
50560
- "description": "Footer settings.\n",
50561
- "properties": {
50562
- "logo": {
50563
- "description": "Themed footer logo. Each variant must use its reserved repository\nasset path — light: `.gitbook/assets/footer-logo-light.<ext>`, dark:\n`.gitbook/assets/footer-logo-dark.<ext>`, where `<ext>` is the\nimage's file extension (e.g. `png`, `svg`). Any other filename is\nrejected.\n",
50564
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemedAssetPath"
50565
- },
50566
- "groups": {
50567
- "type": "array",
50568
- "items": {
50569
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFooterGroup"
50570
- }
50571
- },
50572
- "copyright": {
50573
- "type": "string",
50574
- "maxLength": 300
50575
- }
50576
- }
50577
- },
50578
- "GitSyncSiteCustomizationAnnouncement": {
50579
- "type": "object",
50580
- "description": "Announcement banner shown above the published site.\n",
50581
- "properties": {
50582
- "enabled": {
50583
- "description": "Whether to show the site's announcement.",
50584
- "type": "boolean"
50585
- },
50586
- "message": {
50587
- "$ref": "#/components/schemas/CustomizationAnnouncementMessage"
50588
- },
50589
- "localizedMessage": {
50590
- "description": "Localized overrides for the announcement message, keyed by locale.",
50591
- "$ref": "#/components/schemas/LocalizedString128"
50592
- },
50593
- "link": {
50594
- "description": "The content or URL the announcement links to when clicked.",
50595
- "$ref": "#/components/schemas/GitSyncSiteCustomizationContentLink"
50596
- },
50597
- "style": {
50598
- "description": "Semantic style of the announcement banner.",
50599
- "type": "string",
50600
- "enum": [
50601
- "info",
50602
- "warning",
50603
- "danger",
50604
- "success"
50605
- ]
50606
- }
50607
- },
50608
- "required": [
50609
- "enabled",
50610
- "message",
50611
- "style"
50612
- ]
50613
- },
50614
- "GitSyncSiteCustomizationThemeModes": {
50615
- "type": "object",
50616
- "description": "Dark/light theme mode settings.\n",
50617
- "properties": {
50618
- "default": {
50619
- "$ref": "#/components/schemas/CustomizationDefaultThemeMode"
50620
- },
50621
- "toggeable": {
50622
- "description": "Whether readers can switch between dark and light mode.",
50623
- "type": "boolean"
50624
- }
50625
- },
50626
- "required": [
50627
- "default",
50628
- "toggeable"
50629
- ]
50630
- },
50631
- "GitSyncSiteCustomizationFeedback": {
50632
- "type": "object",
50633
- "description": "Reader feedback settings.\n",
50634
- "properties": {
50635
- "enabled": {
50636
- "type": "boolean",
50637
- "description": "Whether reader feedback gathering is enabled."
50638
- }
50639
- },
50640
- "required": [
50641
- "enabled"
50642
- ]
50643
- },
50644
- "GitSyncSiteCustomizationAI": {
50645
- "type": "object",
50646
- "description": "AI assistant settings.\n",
50647
- "properties": {
50648
- "mode": {
50649
- "$ref": "#/components/schemas/CustomizationAIMode"
50650
- },
50651
- "suggestions": {
50652
- "$ref": "#/components/schemas/CustomizationSuggestedQuestions"
50653
- }
50654
- },
50655
- "required": [
50656
- "mode"
50657
- ]
50658
- },
50659
- "GitSyncSiteCustomizationPageActions": {
50660
- "type": "array",
50661
- "description": "Ordered page-level action buttons exposed in the published site's page menu.\n",
50662
- "uniqueItems": true,
50663
- "items": {
50664
- "$ref": "#/components/schemas/CustomizationPageActionType"
50665
- }
50666
- },
50667
- "GitSyncSiteCustomizationExternalLinks": {
50668
- "type": "object",
50669
- "description": "External link behavior.\n",
50670
- "properties": {
50671
- "target": {
50672
- "$ref": "#/components/schemas/SiteExternalLinksTarget"
50673
- }
50674
- },
50675
- "required": [
50676
- "target"
50677
- ]
50678
- },
50679
- "GitSyncSiteCustomizationPagination": {
50680
- "type": "object",
50681
- "description": "Pagination navigation settings.\n",
50682
- "properties": {
50683
- "enabled": {
50684
- "type": "boolean",
50685
- "description": "Whether the prev/next pagination navigation is shown on pages."
50686
- }
50687
- },
50688
- "required": [
50689
- "enabled"
50690
- ]
50691
- },
50692
- "GitSyncSiteCustomizationPrivacyPolicy": {
50693
- "type": "object",
50694
- "description": "Privacy policy link shown on the published site.\n",
50695
- "properties": {
50696
- "url": {
50697
- "$ref": "#/components/schemas/URL"
50698
- }
50699
- }
50700
- },
50701
- "GitSyncSiteCustomizationSocialPreview": {
50702
- "type": "object",
50703
- "description": "Social preview asset.\n",
50704
- "properties": {
50705
- "url": {
50706
- "description": "Reserved repository asset path for the social preview image:\n`.gitbook/assets/social-preview.<ext>`, where `<ext>` is the\nimage's file extension (e.g. `png`, `jpg`). Any other filename is\nrejected.\n",
50707
- "$ref": "#/components/schemas/GitSyncSiteCustomizationAssetPath"
50708
- }
50709
- }
50710
- },
50711
- "GitSyncSiteCustomizationSocialAccount": {
50712
- "type": "object",
50713
- "description": "A single social account entry.\n",
50714
- "properties": {
50715
- "platform": {
50716
- "$ref": "#/components/schemas/SiteSocialAccountPlatform"
50717
- },
50718
- "handle": {
50719
- "$ref": "#/components/schemas/SiteSocialAccountHandle"
50720
- },
50721
- "display": {
50722
- "type": "object",
50723
- "properties": {
50724
- "footer": {
50725
- "type": "boolean"
50726
- },
50727
- "header": {
50728
- "type": "boolean"
50729
- }
50730
- },
50731
- "required": [
50732
- "footer",
50733
- "header"
50734
- ]
50735
- }
50736
- },
50737
- "required": [
50738
- "platform",
50739
- "handle",
50740
- "display"
50741
- ]
50742
- },
50743
- "GitSyncSiteCustomizationInsights": {
50744
- "type": "object",
50745
- "description": "Visitor insights settings.\n",
50746
- "properties": {
50747
- "trackingCookie": {
50748
- "type": "boolean",
50749
- "description": "Whether GitBook identifies visitors on the site using a cookie."
50750
- }
50751
- },
50752
- "required": [
50753
- "trackingCookie"
50754
- ]
50755
- },
50756
- "GitSyncSiteCustomization": {
50757
- "type": "object",
50758
- "description": "Customization settings for the published site, authored in `docs.yaml`.\n\nEvery top-level field is optional — a Git Sync YAML is a **sparse override** of\nthe live customization. Fields you don't include stay at whatever the site\nhas as default.\n\nCustom fonts referenced from `styling.font` / `styling.monospaceFont` must\nhave a matching definition under `site.fonts[]`.\n",
50759
- "properties": {
50760
- "publishedTitle": {
50761
- "description": "Title to use for the published site. If omitted, falls back to the default site title.",
50762
- "$ref": "#/components/schemas/SiteTitle"
50763
- },
50764
- "localizedPublishedTitles": {
50765
- "description": "Localized titles for the published site, keyed by locale.",
50766
- "$ref": "#/components/schemas/LocalizedString128"
50767
- },
50768
- "styling": {
50769
- "$ref": "#/components/schemas/GitSyncSiteCustomizationStyling"
50770
- },
50771
- "favicon": {
50772
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFavicon"
50773
- },
50774
- "header": {
50775
- "$ref": "#/components/schemas/GitSyncSiteCustomizationHeader"
50776
- },
50777
- "footer": {
50778
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFooter"
50779
- },
50780
- "announcement": {
50781
- "$ref": "#/components/schemas/GitSyncSiteCustomizationAnnouncement"
50782
- },
50783
- "themeModes": {
50784
- "$ref": "#/components/schemas/GitSyncSiteCustomizationThemeModes"
50785
- },
50786
- "feedback": {
50787
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFeedback"
50788
- },
50789
- "ai": {
50790
- "$ref": "#/components/schemas/GitSyncSiteCustomizationAI"
50791
- },
50792
- "pageActions": {
50793
- "$ref": "#/components/schemas/GitSyncSiteCustomizationPageActions"
50794
- },
50795
- "externalLinks": {
50796
- "$ref": "#/components/schemas/GitSyncSiteCustomizationExternalLinks"
50797
- },
50798
- "pagination": {
50799
- "$ref": "#/components/schemas/GitSyncSiteCustomizationPagination"
50800
- },
50801
- "privacyPolicy": {
50802
- "$ref": "#/components/schemas/GitSyncSiteCustomizationPrivacyPolicy"
50803
- },
50804
- "socialPreview": {
50805
- "$ref": "#/components/schemas/GitSyncSiteCustomizationSocialPreview"
50806
- },
50807
- "socialAccounts": {
50808
- "type": "array",
50809
- "description": "Social accounts to surface on the site.",
50810
- "items": {
50811
- "$ref": "#/components/schemas/GitSyncSiteCustomizationSocialAccount"
50812
- },
50813
- "maxItems": 10
50814
- },
50815
- "insights": {
50816
- "$ref": "#/components/schemas/GitSyncSiteCustomizationInsights"
50817
- }
50818
- }
50819
- },
50820
50913
  "GitSyncSiteConfig": {
50821
50914
  "type": "object",
50822
50915
  "description": "Schema for a site `docs.yaml` file — the canonical contract for what\ncan be authored in Git Sync to drive a site's customization and structure.\n",
@@ -50840,16 +50933,6 @@
50840
50933
  },
50841
50934
  "structure": {
50842
50935
  "$ref": "#/components/schemas/GitSyncSiteStructure"
50843
- },
50844
- "fonts": {
50845
- "type": "array",
50846
- "description": "Custom font definitions referenced from `site.customization.styling`.",
50847
- "items": {
50848
- "$ref": "#/components/schemas/GitSyncSiteCustomizationFontDefinition"
50849
- }
50850
- },
50851
- "customization": {
50852
- "$ref": "#/components/schemas/GitSyncSiteCustomization"
50853
50936
  }
50854
50937
  },
50855
50938
  "required": [