@gitbook/api 0.191.0 → 0.192.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/spec/openapi.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": {
@@ -15355,6 +15355,14 @@
15355
15355
  ]
15356
15356
  }
15357
15357
  }
15358
+ },
15359
+ {
15360
+ "name": "orderBy",
15361
+ "in": "query",
15362
+ "description": "Sort findings by the given field.",
15363
+ "schema": {
15364
+ "$ref": "#/components/schemas/SiteFindingOrderBy"
15365
+ }
15358
15366
  }
15359
15367
  ],
15360
15368
  "responses": {
@@ -15786,10 +15794,11 @@
15786
15794
  }
15787
15795
  }
15788
15796
  },
15789
- "/orgs/{organizationId}/sites/{siteId}/context-connections": {
15797
+ "/orgs/{organizationId}/sites/{siteId}/stats/findings": {
15790
15798
  "get": {
15791
- "operationId": "listSiteContextConnections",
15792
- "summary": "List all context connections",
15799
+ "operationId": "getSiteFindingStats",
15800
+ "summary": "Get aggregate statistics about the findings identified on a site",
15801
+ "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.",
15793
15802
  "tags": [
15794
15803
  "site-context"
15795
15804
  ],
@@ -15811,99 +15820,71 @@
15811
15820
  "$ref": "#/components/parameters/siteId"
15812
15821
  },
15813
15822
  {
15814
- "$ref": "#/components/parameters/listPage"
15823
+ "name": "topic",
15824
+ "in": "query",
15825
+ "description": "Filter findings by associated site topic ID.",
15826
+ "schema": {
15827
+ "type": "string"
15828
+ }
15815
15829
  },
15816
15830
  {
15817
- "$ref": "#/components/parameters/listLimit"
15818
- }
15819
- ],
15820
- "responses": {
15821
- "200": {
15822
- "description": "OK",
15823
- "content": {
15824
- "application/json": {
15825
- "schema": {
15826
- "allOf": [
15827
- {
15828
- "$ref": "#/components/schemas/List"
15829
- },
15830
- {
15831
- "type": "object",
15832
- "required": [
15833
- "items"
15834
- ],
15835
- "properties": {
15836
- "items": {
15837
- "type": "array",
15838
- "items": {
15839
- "$ref": "#/components/schemas/ContextConnection"
15840
- }
15841
- }
15842
- }
15843
- }
15844
- ]
15845
- }
15846
- }
15831
+ "name": "status",
15832
+ "in": "query",
15833
+ "description": "Filter findings by status.",
15834
+ "schema": {
15835
+ "$ref": "#/components/schemas/SiteFindingStatus"
15847
15836
  }
15848
- }
15849
- }
15850
- },
15851
- "post": {
15852
- "operationId": "createSiteContextConnection",
15853
- "summary": "Create a context connection",
15854
- "tags": [
15855
- "site-context"
15856
- ],
15857
- "security": [
15837
+ },
15858
15838
  {
15859
- "user": []
15839
+ "name": "type",
15840
+ "in": "query",
15841
+ "description": "Filter findings by type.",
15842
+ "schema": {
15843
+ "$ref": "#/components/schemas/SiteFindingType"
15844
+ }
15860
15845
  },
15861
15846
  {
15862
- "oauth": [
15863
- "site:write"
15864
- ]
15865
- }
15866
- ],
15867
- "parameters": [
15847
+ "name": "severity",
15848
+ "in": "query",
15849
+ "description": "Filter findings by estimated severity.",
15850
+ "schema": {
15851
+ "$ref": "#/components/schemas/SiteFindingSeverity"
15852
+ }
15853
+ },
15868
15854
  {
15869
- "$ref": "#/components/parameters/organizationId"
15855
+ "name": "hasChangeRequests",
15856
+ "in": "query",
15857
+ "description": "Filter findings that have at least one associated change request.",
15858
+ "schema": {
15859
+ "type": "boolean"
15860
+ }
15870
15861
  },
15871
15862
  {
15872
- "$ref": "#/components/parameters/siteId"
15873
- }
15874
- ],
15875
- "requestBody": {
15876
- "required": true,
15877
- "content": {
15878
- "application/json": {
15879
- "schema": {
15880
- "allOf": [
15863
+ "name": "source",
15864
+ "in": "query",
15865
+ "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.",
15866
+ "schema": {
15867
+ "type": "array",
15868
+ "items": {
15869
+ "oneOf": [
15881
15870
  {
15882
- "$ref": "#/components/schemas/ContextConnectorSetup"
15871
+ "$ref": "#/components/schemas/SiteTriageFilterQuestions"
15883
15872
  },
15884
15873
  {
15885
- "type": "object",
15886
- "properties": {
15887
- "usageSettings": {
15888
- "$ref": "#/components/schemas/ContextUsageSettings"
15889
- },
15890
- "filter": {
15891
- "$ref": "#/components/schemas/ContextConnectionFilter"
15892
- }
15893
- }
15874
+ "$ref": "#/components/schemas/SiteTriageFilterConnections"
15894
15875
  }
15895
15876
  ]
15896
15877
  }
15897
15878
  }
15898
15879
  }
15899
- },
15880
+ ],
15900
15881
  "responses": {
15901
- "201": {
15902
- "description": "Created connection",
15882
+ "200": {
15883
+ "description": "OK",
15903
15884
  "content": {
15904
15885
  "application/json": {
15905
15886
  "schema": {
15906
- "$ref": "#/components/schemas/ContextConnection"
15887
+ "$ref": "#/components/schemas/SiteFindingStats"
15907
15888
  }
15908
15889
  }
15909
15890
  }
@@ -15911,10 +15892,10 @@
15911
15892
  }
15912
15893
  }
15913
15894
  },
15914
- "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}": {
15895
+ "/orgs/{organizationId}/sites/{siteId}/context-connections": {
15915
15896
  "get": {
15916
- "operationId": "getSiteContextConnectionById",
15917
- "summary": "Get a context connection",
15897
+ "operationId": "listSiteContextConnections",
15898
+ "summary": "List all context connections",
15918
15899
  "tags": [
15919
15900
  "site-context"
15920
15901
  ],
@@ -15936,7 +15917,10 @@
15936
15917
  "$ref": "#/components/parameters/siteId"
15937
15918
  },
15938
15919
  {
15939
- "$ref": "#/components/parameters/siteContextConnectionId"
15920
+ "$ref": "#/components/parameters/listPage"
15921
+ },
15922
+ {
15923
+ "$ref": "#/components/parameters/listLimit"
15940
15924
  }
15941
15925
  ],
15942
15926
  "responses": {
@@ -15945,16 +15929,34 @@
15945
15929
  "content": {
15946
15930
  "application/json": {
15947
15931
  "schema": {
15948
- "$ref": "#/components/schemas/ContextConnection"
15932
+ "allOf": [
15933
+ {
15934
+ "$ref": "#/components/schemas/List"
15935
+ },
15936
+ {
15937
+ "type": "object",
15938
+ "required": [
15939
+ "items"
15940
+ ],
15941
+ "properties": {
15942
+ "items": {
15943
+ "type": "array",
15944
+ "items": {
15945
+ "$ref": "#/components/schemas/ContextConnection"
15946
+ }
15947
+ }
15948
+ }
15949
+ }
15950
+ ]
15949
15951
  }
15950
15952
  }
15951
15953
  }
15952
15954
  }
15953
15955
  }
15954
15956
  },
15955
- "patch": {
15956
- "operationId": "updateSiteContextConnectionById",
15957
- "summary": "Update a context connection",
15957
+ "post": {
15958
+ "operationId": "createSiteContextConnection",
15959
+ "summary": "Create a context connection",
15958
15960
  "tags": [
15959
15961
  "site-context"
15960
15962
  ],
@@ -15974,9 +15976,6 @@
15974
15976
  },
15975
15977
  {
15976
15978
  "$ref": "#/components/parameters/siteId"
15977
- },
15978
- {
15979
- "$ref": "#/components/parameters/siteContextConnectionId"
15980
15979
  }
15981
15980
  ],
15982
15981
  "requestBody": {
@@ -15984,7 +15983,7 @@
15984
15983
  "content": {
15985
15984
  "application/json": {
15986
15985
  "schema": {
15987
- "anyOf": [
15986
+ "allOf": [
15988
15987
  {
15989
15988
  "$ref": "#/components/schemas/ContextConnectorSetup"
15990
15989
  },
@@ -15994,9 +15993,6 @@
15994
15993
  "usageSettings": {
15995
15994
  "$ref": "#/components/schemas/ContextUsageSettings"
15996
15995
  },
15997
- "label": {
15998
- "$ref": "#/components/schemas/ContextConnectionLabel"
15999
- },
16000
15996
  "filter": {
16001
15997
  "$ref": "#/components/schemas/ContextConnectionFilter"
16002
15998
  }
@@ -16008,8 +16004,8 @@
16008
16004
  }
16009
16005
  },
16010
16006
  "responses": {
16011
- "200": {
16012
- "description": "OK",
16007
+ "201": {
16008
+ "description": "Created connection",
16013
16009
  "content": {
16014
16010
  "application/json": {
16015
16011
  "schema": {
@@ -16019,130 +16015,240 @@
16019
16015
  }
16020
16016
  }
16021
16017
  }
16022
- },
16023
- "delete": {
16024
- "operationId": "deleteSiteContextConnectionById",
16025
- "summary": "Delete a context connection",
16026
- "tags": [
16027
- "site-context"
16028
- ],
16029
- "security": [
16030
- {
16031
- "user": []
16032
- },
16033
- {
16034
- "oauth": [
16035
- "site:write"
16036
- ]
16037
- }
16038
- ],
16039
- "parameters": [
16040
- {
16041
- "$ref": "#/components/parameters/organizationId"
16042
- },
16043
- {
16044
- "$ref": "#/components/parameters/siteId"
16045
- },
16046
- {
16047
- "$ref": "#/components/parameters/siteContextConnectionId"
16048
- }
16049
- ],
16050
- "responses": {
16051
- "204": {
16052
- "description": "Context connection did not exist"
16053
- },
16054
- "205": {
16055
- "description": "Context connection deleted"
16056
- }
16057
- }
16058
- }
16059
- },
16060
- "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync": {
16061
- "post": {
16062
- "operationId": "syncSiteContextConnection",
16063
- "summary": "Trigger a sync for a context connection",
16064
- "tags": [
16065
- "site-context"
16066
- ],
16067
- "security": [
16068
- {
16069
- "user": []
16070
- },
16071
- {
16072
- "oauth": [
16073
- "site:write"
16074
- ]
16075
- }
16076
- ],
16077
- "parameters": [
16078
- {
16079
- "$ref": "#/components/parameters/organizationId"
16080
- },
16081
- {
16082
- "$ref": "#/components/parameters/siteId"
16083
- },
16084
- {
16085
- "$ref": "#/components/parameters/siteContextConnectionId"
16086
- }
16087
- ],
16088
- "responses": {
16089
- "204": {
16090
- "description": "Sync started"
16091
- },
16092
- "400": {
16093
- "description": "Connection was synced less than an hour ago or invalid connector",
16094
- "$ref": "#/components/responses/BadRequestError"
16095
- }
16096
- }
16097
- }
16098
- },
16099
- "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/test": {
16100
- "post": {
16101
- "operationId": "testSiteContextConnection",
16102
- "summary": "Test a context connection's stored credentials",
16103
- "description": "Verifies the stored credentials of a context connection against the external service, without changing anything. A failed verification is reported in the response body with `success` set to `false` rather than as an HTTP error. Connectors that have nothing to verify report `success: true`.",
16104
- "tags": [
16105
- "site-context"
16106
- ],
16107
- "security": [
16108
- {
16109
- "user": []
16110
- },
16111
- {
16112
- "oauth": [
16113
- "site:write"
16114
- ]
16115
- }
16116
- ],
16117
- "parameters": [
16118
- {
16119
- "$ref": "#/components/parameters/organizationId"
16120
- },
16121
- {
16122
- "$ref": "#/components/parameters/siteId"
16123
- },
16124
- {
16125
- "$ref": "#/components/parameters/siteContextConnectionId"
16126
- }
16127
- ],
16128
- "responses": {
16129
- "200": {
16130
- "description": "The connection test completed (see `success` for the outcome).",
16131
- "content": {
16132
- "application/json": {
16133
- "schema": {
16134
- "$ref": "#/components/schemas/ContextConnectionTestResult"
16135
- }
16136
- }
16137
- }
16138
- }
16139
- }
16140
16018
  }
16141
16019
  },
16142
- "/orgs/{organizationId}/sites/{siteId}/topics": {
16020
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}": {
16143
16021
  "get": {
16144
- "operationId": "listSiteTopics",
16145
- "summary": "List all topics",
16022
+ "operationId": "getSiteContextConnectionById",
16023
+ "summary": "Get a context connection",
16024
+ "tags": [
16025
+ "site-context"
16026
+ ],
16027
+ "security": [
16028
+ {
16029
+ "user": []
16030
+ },
16031
+ {
16032
+ "oauth": [
16033
+ "site:read"
16034
+ ]
16035
+ }
16036
+ ],
16037
+ "parameters": [
16038
+ {
16039
+ "$ref": "#/components/parameters/organizationId"
16040
+ },
16041
+ {
16042
+ "$ref": "#/components/parameters/siteId"
16043
+ },
16044
+ {
16045
+ "$ref": "#/components/parameters/siteContextConnectionId"
16046
+ }
16047
+ ],
16048
+ "responses": {
16049
+ "200": {
16050
+ "description": "OK",
16051
+ "content": {
16052
+ "application/json": {
16053
+ "schema": {
16054
+ "$ref": "#/components/schemas/ContextConnection"
16055
+ }
16056
+ }
16057
+ }
16058
+ }
16059
+ }
16060
+ },
16061
+ "patch": {
16062
+ "operationId": "updateSiteContextConnectionById",
16063
+ "summary": "Update a context connection",
16064
+ "tags": [
16065
+ "site-context"
16066
+ ],
16067
+ "security": [
16068
+ {
16069
+ "user": []
16070
+ },
16071
+ {
16072
+ "oauth": [
16073
+ "site:write"
16074
+ ]
16075
+ }
16076
+ ],
16077
+ "parameters": [
16078
+ {
16079
+ "$ref": "#/components/parameters/organizationId"
16080
+ },
16081
+ {
16082
+ "$ref": "#/components/parameters/siteId"
16083
+ },
16084
+ {
16085
+ "$ref": "#/components/parameters/siteContextConnectionId"
16086
+ }
16087
+ ],
16088
+ "requestBody": {
16089
+ "required": true,
16090
+ "content": {
16091
+ "application/json": {
16092
+ "schema": {
16093
+ "anyOf": [
16094
+ {
16095
+ "$ref": "#/components/schemas/ContextConnectorSetup"
16096
+ },
16097
+ {
16098
+ "type": "object",
16099
+ "properties": {
16100
+ "usageSettings": {
16101
+ "$ref": "#/components/schemas/ContextUsageSettings"
16102
+ },
16103
+ "label": {
16104
+ "$ref": "#/components/schemas/ContextConnectionLabel"
16105
+ },
16106
+ "filter": {
16107
+ "$ref": "#/components/schemas/ContextConnectionFilter"
16108
+ }
16109
+ }
16110
+ }
16111
+ ]
16112
+ }
16113
+ }
16114
+ }
16115
+ },
16116
+ "responses": {
16117
+ "200": {
16118
+ "description": "OK",
16119
+ "content": {
16120
+ "application/json": {
16121
+ "schema": {
16122
+ "$ref": "#/components/schemas/ContextConnection"
16123
+ }
16124
+ }
16125
+ }
16126
+ }
16127
+ }
16128
+ },
16129
+ "delete": {
16130
+ "operationId": "deleteSiteContextConnectionById",
16131
+ "summary": "Delete a context connection",
16132
+ "tags": [
16133
+ "site-context"
16134
+ ],
16135
+ "security": [
16136
+ {
16137
+ "user": []
16138
+ },
16139
+ {
16140
+ "oauth": [
16141
+ "site:write"
16142
+ ]
16143
+ }
16144
+ ],
16145
+ "parameters": [
16146
+ {
16147
+ "$ref": "#/components/parameters/organizationId"
16148
+ },
16149
+ {
16150
+ "$ref": "#/components/parameters/siteId"
16151
+ },
16152
+ {
16153
+ "$ref": "#/components/parameters/siteContextConnectionId"
16154
+ }
16155
+ ],
16156
+ "responses": {
16157
+ "204": {
16158
+ "description": "Context connection did not exist"
16159
+ },
16160
+ "205": {
16161
+ "description": "Context connection deleted"
16162
+ }
16163
+ }
16164
+ }
16165
+ },
16166
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync": {
16167
+ "post": {
16168
+ "operationId": "syncSiteContextConnection",
16169
+ "summary": "Trigger a sync for a context connection",
16170
+ "tags": [
16171
+ "site-context"
16172
+ ],
16173
+ "security": [
16174
+ {
16175
+ "user": []
16176
+ },
16177
+ {
16178
+ "oauth": [
16179
+ "site:write"
16180
+ ]
16181
+ }
16182
+ ],
16183
+ "parameters": [
16184
+ {
16185
+ "$ref": "#/components/parameters/organizationId"
16186
+ },
16187
+ {
16188
+ "$ref": "#/components/parameters/siteId"
16189
+ },
16190
+ {
16191
+ "$ref": "#/components/parameters/siteContextConnectionId"
16192
+ }
16193
+ ],
16194
+ "responses": {
16195
+ "204": {
16196
+ "description": "Sync started"
16197
+ },
16198
+ "400": {
16199
+ "description": "Connection was synced less than an hour ago or invalid connector",
16200
+ "$ref": "#/components/responses/BadRequestError"
16201
+ }
16202
+ }
16203
+ }
16204
+ },
16205
+ "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/test": {
16206
+ "post": {
16207
+ "operationId": "testSiteContextConnection",
16208
+ "summary": "Test a context connection's stored credentials",
16209
+ "description": "Verifies the stored credentials of a context connection against the external service, without changing anything. A failed verification is reported in the response body with `success` set to `false` rather than as an HTTP error. Connectors that have nothing to verify report `success: true`.",
16210
+ "tags": [
16211
+ "site-context"
16212
+ ],
16213
+ "security": [
16214
+ {
16215
+ "user": []
16216
+ },
16217
+ {
16218
+ "oauth": [
16219
+ "site:write"
16220
+ ]
16221
+ }
16222
+ ],
16223
+ "parameters": [
16224
+ {
16225
+ "$ref": "#/components/parameters/organizationId"
16226
+ },
16227
+ {
16228
+ "$ref": "#/components/parameters/siteId"
16229
+ },
16230
+ {
16231
+ "$ref": "#/components/parameters/siteContextConnectionId"
16232
+ }
16233
+ ],
16234
+ "responses": {
16235
+ "200": {
16236
+ "description": "The connection test completed (see `success` for the outcome).",
16237
+ "content": {
16238
+ "application/json": {
16239
+ "schema": {
16240
+ "$ref": "#/components/schemas/ContextConnectionTestResult"
16241
+ }
16242
+ }
16243
+ }
16244
+ }
16245
+ }
16246
+ }
16247
+ },
16248
+ "/orgs/{organizationId}/sites/{siteId}/topics": {
16249
+ "get": {
16250
+ "operationId": "listSiteTopics",
16251
+ "summary": "List all topics",
16146
16252
  "tags": [
16147
16253
  "site-context"
16148
16254
  ],
@@ -17243,6 +17349,76 @@
17243
17349
  }
17244
17350
  }
17245
17351
  },
17352
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/duplicate": {
17353
+ "post": {
17354
+ "operationId": "duplicateSiteSpace",
17355
+ "summary": "Duplicate a space in a site",
17356
+ "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.",
17357
+ "x-gitbook-mcp": true,
17358
+ "tags": [
17359
+ "site-spaces",
17360
+ "spaces"
17361
+ ],
17362
+ "security": [
17363
+ {
17364
+ "user": []
17365
+ },
17366
+ {
17367
+ "oauth": [
17368
+ "space:write",
17369
+ "site:write"
17370
+ ]
17371
+ }
17372
+ ],
17373
+ "parameters": [
17374
+ {
17375
+ "$ref": "#/components/parameters/organizationId"
17376
+ },
17377
+ {
17378
+ "$ref": "#/components/parameters/siteId"
17379
+ },
17380
+ {
17381
+ "$ref": "#/components/parameters/siteSpaceId"
17382
+ }
17383
+ ],
17384
+ "requestBody": {
17385
+ "content": {
17386
+ "application/json": {
17387
+ "schema": {
17388
+ "type": "object",
17389
+ "properties": {
17390
+ "draft": {
17391
+ "type": "boolean",
17392
+ "default": false,
17393
+ "description": "Whether the duplicated site space and any new section should be created as drafts."
17394
+ }
17395
+ }
17396
+ }
17397
+ }
17398
+ }
17399
+ },
17400
+ "responses": {
17401
+ "201": {
17402
+ "description": "Space duplicated in the site structure",
17403
+ "headers": {
17404
+ "Location": {
17405
+ "description": "API URL for the newly created site-space",
17406
+ "schema": {
17407
+ "type": "string"
17408
+ }
17409
+ }
17410
+ },
17411
+ "content": {
17412
+ "application/json": {
17413
+ "schema": {
17414
+ "$ref": "#/components/schemas/SiteSpace"
17415
+ }
17416
+ }
17417
+ }
17418
+ }
17419
+ }
17420
+ }
17421
+ },
17246
17422
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization": {
17247
17423
  "get": {
17248
17424
  "operationId": "getSiteSpaceCustomizationById",
@@ -18604,6 +18780,43 @@
18604
18780
  }
18605
18781
  }
18606
18782
  },
18783
+ "/orgs/{organizationId}/sites/{siteId}/template": {
18784
+ "post": {
18785
+ "operationId": "applyTemplateToSite",
18786
+ "summary": "Apply the default documentation template to a site",
18787
+ "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.",
18788
+ "x-gitbook-mcp": true,
18789
+ "tags": [
18790
+ "sites"
18791
+ ],
18792
+ "security": [
18793
+ {
18794
+ "user-internal": []
18795
+ },
18796
+ {
18797
+ "user": []
18798
+ },
18799
+ {
18800
+ "oauth": [
18801
+ "site:write"
18802
+ ]
18803
+ }
18804
+ ],
18805
+ "parameters": [
18806
+ {
18807
+ "$ref": "#/components/parameters/organizationId"
18808
+ },
18809
+ {
18810
+ "$ref": "#/components/parameters/siteId"
18811
+ }
18812
+ ],
18813
+ "responses": {
18814
+ "200": {
18815
+ "description": "Template applied to site."
18816
+ }
18817
+ }
18818
+ }
18819
+ },
18607
18820
  "/orgs/{organizationId}/sites/{siteId}/agent-settings": {
18608
18821
  "get": {
18609
18822
  "operationId": "getSiteAgentSettingsById",
@@ -22432,6 +22645,13 @@
22432
22645
  "timeout"
22433
22646
  ]
22434
22647
  },
22648
+ "GitSyncOperationDirection": {
22649
+ "type": "string",
22650
+ "enum": [
22651
+ "export",
22652
+ "import"
22653
+ ]
22654
+ },
22435
22655
  "GitSyncState": {
22436
22656
  "type": "object",
22437
22657
  "properties": {
@@ -22454,6 +22674,10 @@
22454
22674
  "type": "string",
22455
22675
  "description": "The ID of the Git Sync installation."
22456
22676
  },
22677
+ "parentInstallationId": {
22678
+ "type": "string",
22679
+ "description": "The ID of the parent Git Sync installation, if any."
22680
+ },
22457
22681
  "url": {
22458
22682
  "type": "string",
22459
22683
  "description": "The URL to the repository tree, used when rendering public content."
@@ -22464,17 +22688,37 @@
22464
22688
  "properties": {
22465
22689
  "state": {
22466
22690
  "$ref": "#/components/schemas/GitSyncOperationState"
22691
+ },
22692
+ "direction": {
22693
+ "$ref": "#/components/schemas/GitSyncOperationDirection"
22694
+ },
22695
+ "startedAt": {
22696
+ "$ref": "#/components/schemas/Timestamp"
22697
+ },
22698
+ "endedAt": {
22699
+ "$ref": "#/components/schemas/Timestamp"
22700
+ },
22701
+ "error": {
22702
+ "type": "string",
22703
+ "description": "Why the operation failed, when it did."
22467
22704
  }
22468
22705
  },
22469
22706
  "required": [
22470
- "state"
22707
+ "state",
22708
+ "direction",
22709
+ "startedAt"
22471
22710
  ]
22472
22711
  },
22473
22712
  "updatedAt": {
22474
22713
  "description": "When the Git provider details were last updated",
22475
22714
  "$ref": "#/components/schemas/Timestamp"
22476
22715
  }
22477
- }
22716
+ },
22717
+ "required": [
22718
+ "installationId",
22719
+ "installationProvider",
22720
+ "installationStatus"
22721
+ ]
22478
22722
  },
22479
22723
  "VisitorAuthCustomBackend": {
22480
22724
  "type": "object",
@@ -23008,6 +23252,14 @@
23008
23252
  "score": {
23009
23253
  "$ref": "#/components/schemas/SearchResultScore"
23010
23254
  },
23255
+ "resultType": {
23256
+ "type": "string",
23257
+ "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.",
23258
+ "enum": [
23259
+ "page",
23260
+ "section"
23261
+ ]
23262
+ },
23011
23263
  "body": {
23012
23264
  "type": "string"
23013
23265
  },
@@ -23051,6 +23303,14 @@
23051
23303
  "score": {
23052
23304
  "$ref": "#/components/schemas/SearchResultScore"
23053
23305
  },
23306
+ "resultType": {
23307
+ "type": "string",
23308
+ "description": "Whether the page matched on its own fields (title, description) or on the content of one of its sections.",
23309
+ "enum": [
23310
+ "page",
23311
+ "section"
23312
+ ]
23313
+ },
23054
23314
  "sections": {
23055
23315
  "type": "array",
23056
23316
  "items": {
@@ -24634,6 +24894,290 @@
24634
24894
  "nodes"
24635
24895
  ]
24636
24896
  },
24897
+ "DocumentBlockEmbed": {
24898
+ "type": "object",
24899
+ "properties": {
24900
+ "object": {
24901
+ "type": "string",
24902
+ "enum": [
24903
+ "block"
24904
+ ]
24905
+ },
24906
+ "type": {
24907
+ "type": "string",
24908
+ "enum": [
24909
+ "embed"
24910
+ ]
24911
+ },
24912
+ "key": {
24913
+ "type": "string"
24914
+ },
24915
+ "data": {
24916
+ "type": "object",
24917
+ "properties": {
24918
+ "url": {
24919
+ "type": "string"
24920
+ },
24921
+ "fullWidth": {
24922
+ "type": "boolean"
24923
+ }
24924
+ },
24925
+ "required": [
24926
+ "url"
24927
+ ]
24928
+ },
24929
+ "isVoid": {
24930
+ "type": "boolean",
24931
+ "enum": [
24932
+ true
24933
+ ]
24934
+ }
24935
+ },
24936
+ "required": [
24937
+ "object",
24938
+ "type",
24939
+ "data",
24940
+ "isVoid"
24941
+ ]
24942
+ },
24943
+ "PlainObject": {
24944
+ "properties": {},
24945
+ "additionalProperties": {
24946
+ "oneOf": [
24947
+ {
24948
+ "$ref": "#/components/schemas/PlainObject"
24949
+ },
24950
+ {
24951
+ "type": "string"
24952
+ },
24953
+ {
24954
+ "type": "boolean"
24955
+ },
24956
+ {
24957
+ "type": "number"
24958
+ },
24959
+ {
24960
+ "type": "array",
24961
+ "items": {
24962
+ "oneOf": [
24963
+ {
24964
+ "type": "string"
24965
+ },
24966
+ {
24967
+ "type": "boolean"
24968
+ },
24969
+ {
24970
+ "type": "number"
24971
+ },
24972
+ {
24973
+ "$ref": "#/components/schemas/PlainObject"
24974
+ }
24975
+ ]
24976
+ }
24977
+ }
24978
+ ]
24979
+ }
24980
+ },
24981
+ "ContentKitDefaultAction": {
24982
+ "oneOf": [
24983
+ {
24984
+ "type": "object",
24985
+ "description": "Action to open an overlay modal defined by \"componentId\".",
24986
+ "properties": {
24987
+ "action": {
24988
+ "type": "string",
24989
+ "enum": [
24990
+ "@ui.modal.open"
24991
+ ]
24992
+ },
24993
+ "componentId": {
24994
+ "type": "string"
24995
+ },
24996
+ "props": {
24997
+ "$ref": "#/components/schemas/PlainObject"
24998
+ }
24999
+ },
25000
+ "required": [
25001
+ "action",
25002
+ "componentId",
25003
+ "props"
25004
+ ]
25005
+ },
25006
+ {
25007
+ "type": "object",
25008
+ "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.",
25009
+ "properties": {
25010
+ "action": {
25011
+ "type": "string",
25012
+ "enum": [
25013
+ "@ui.modal.close"
25014
+ ]
25015
+ },
25016
+ "returnValue": {
25017
+ "$ref": "#/components/schemas/PlainObject"
25018
+ }
25019
+ },
25020
+ "required": [
25021
+ "action",
25022
+ "returnValue"
25023
+ ]
25024
+ },
25025
+ {
25026
+ "type": "object",
25027
+ "description": "Action to open an url.",
25028
+ "properties": {
25029
+ "action": {
25030
+ "type": "string",
25031
+ "enum": [
25032
+ "@ui.url.open"
25033
+ ]
25034
+ },
25035
+ "url": {
25036
+ "type": "string"
25037
+ }
25038
+ },
25039
+ "required": [
25040
+ "action",
25041
+ "url"
25042
+ ]
25043
+ },
25044
+ {
25045
+ "type": "object",
25046
+ "description": "Action when a link is being unfurled into a block.",
25047
+ "properties": {
25048
+ "action": {
25049
+ "type": "string",
25050
+ "enum": [
25051
+ "@link.unfurl"
25052
+ ]
25053
+ },
25054
+ "url": {
25055
+ "type": "string"
25056
+ }
25057
+ },
25058
+ "required": [
25059
+ "action",
25060
+ "url"
25061
+ ]
25062
+ },
25063
+ {
25064
+ "type": "object",
25065
+ "description": "Action to update the properties stored in the related node.",
25066
+ "properties": {
25067
+ "action": {
25068
+ "type": "string",
25069
+ "enum": [
25070
+ "@editor.node.updateProps"
25071
+ ]
25072
+ },
25073
+ "props": {
25074
+ "$ref": "#/components/schemas/PlainObject"
25075
+ }
25076
+ },
25077
+ "required": [
25078
+ "action",
25079
+ "props"
25080
+ ]
25081
+ }
25082
+ ]
25083
+ },
25084
+ "ContentKitAction": {
25085
+ "anyOf": [
25086
+ {
25087
+ "type": "object",
25088
+ "description": "Custom action to re-render the block.",
25089
+ "properties": {
25090
+ "action": {
25091
+ "type": "string"
25092
+ }
25093
+ },
25094
+ "additionalProperties": true,
25095
+ "required": [
25096
+ "action"
25097
+ ]
25098
+ },
25099
+ {
25100
+ "$ref": "#/components/schemas/ContentKitDefaultAction"
25101
+ }
25102
+ ]
25103
+ },
25104
+ "DocumentBlockIntegration": {
25105
+ "type": "object",
25106
+ "properties": {
25107
+ "object": {
25108
+ "type": "string",
25109
+ "enum": [
25110
+ "block"
25111
+ ]
25112
+ },
25113
+ "type": {
25114
+ "type": "string",
25115
+ "enum": [
25116
+ "integration"
25117
+ ]
25118
+ },
25119
+ "key": {
25120
+ "type": "string"
25121
+ },
25122
+ "data": {
25123
+ "type": "object",
25124
+ "properties": {
25125
+ "integration": {
25126
+ "type": "string",
25127
+ "description": "Name of the integration"
25128
+ },
25129
+ "block": {
25130
+ "type": "string",
25131
+ "description": "ID of the block in the integration"
25132
+ },
25133
+ "props": {
25134
+ "description": "Properties passed to the block during rendering",
25135
+ "$ref": "#/components/schemas/PlainObject"
25136
+ },
25137
+ "action": {
25138
+ "$ref": "#/components/schemas/ContentKitAction"
25139
+ },
25140
+ "url": {
25141
+ "type": "string",
25142
+ "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"
25143
+ },
25144
+ "fullWidth": {
25145
+ "type": "boolean"
25146
+ }
25147
+ },
25148
+ "required": [
25149
+ "integration",
25150
+ "block",
25151
+ "props"
25152
+ ]
25153
+ },
25154
+ "isVoid": {
25155
+ "type": "boolean",
25156
+ "enum": [
25157
+ true
25158
+ ]
25159
+ },
25160
+ "meta": {
25161
+ "type": "object",
25162
+ "properties": {
25163
+ "token": {
25164
+ "type": "string",
25165
+ "description": "A content token that can be used to authenticate requests for cross-space integration blocks."
25166
+ },
25167
+ "spaceId": {
25168
+ "type": "string",
25169
+ "description": "ID of the space the integration block originates from"
25170
+ }
25171
+ }
25172
+ }
25173
+ },
25174
+ "required": [
25175
+ "object",
25176
+ "type",
25177
+ "data",
25178
+ "isVoid"
25179
+ ]
25180
+ },
24637
25181
  "DocumentBlockHint": {
24638
25182
  "type": "object",
24639
25183
  "properties": {
@@ -24675,7 +25219,17 @@
24675
25219
  "nodes": {
24676
25220
  "type": "array",
24677
25221
  "items": {
24678
- "$ref": "#/components/schemas/DocumentBlocksEssentials"
25222
+ "oneOf": [
25223
+ {
25224
+ "$ref": "#/components/schemas/DocumentBlocksEssentials"
25225
+ },
25226
+ {
25227
+ "$ref": "#/components/schemas/DocumentBlockEmbed"
25228
+ },
25229
+ {
25230
+ "$ref": "#/components/schemas/DocumentBlockIntegration"
25231
+ }
25232
+ ]
24679
25233
  }
24680
25234
  },
24681
25235
  "isVoid": {
@@ -26084,52 +26638,6 @@
26084
26638
  "isVoid"
26085
26639
  ]
26086
26640
  },
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
26641
  "DocumentBlockReusableContent": {
26134
26642
  "type": "object",
26135
26643
  "properties": {
@@ -26182,244 +26690,6 @@
26182
26690
  "isVoid"
26183
26691
  ]
26184
26692
  },
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
26693
  "DocumentBlockExpandable": {
26424
26694
  "type": "object",
26425
26695
  "properties": {
@@ -27690,10 +27960,12 @@
27690
27960
  ]
27691
27961
  },
27692
27962
  "DocumentAction": {
27963
+ "description": "Action to perform when an inline button is clicked.",
27693
27964
  "type": "object",
27694
27965
  "oneOf": [
27695
27966
  {
27696
27967
  "type": "object",
27968
+ "description": "Open a search input, optionally prefilled with a search query.",
27697
27969
  "properties": {
27698
27970
  "action": {
27699
27971
  "type": "string",
@@ -27702,7 +27974,8 @@
27702
27974
  ]
27703
27975
  },
27704
27976
  "query": {
27705
- "type": "string"
27977
+ "type": "string",
27978
+ "description": "The search query to prefill."
27706
27979
  }
27707
27980
  },
27708
27981
  "required": [
@@ -27712,6 +27985,7 @@
27712
27985
  },
27713
27986
  {
27714
27987
  "type": "object",
27988
+ "description": "Open an AI input, optionally prefilled with a question.",
27715
27989
  "properties": {
27716
27990
  "action": {
27717
27991
  "type": "string",
@@ -27720,13 +27994,35 @@
27720
27994
  ]
27721
27995
  },
27722
27996
  "query": {
27723
- "type": "string"
27997
+ "type": "string",
27998
+ "description": "The question to prefill."
27724
27999
  }
27725
28000
  },
27726
28001
  "required": [
27727
28002
  "action"
27728
28003
  ],
27729
28004
  "additionalProperties": false
28005
+ },
28006
+ {
28007
+ "type": "object",
28008
+ "description": "Open a selection input for the option identified by its slug.",
28009
+ "properties": {
28010
+ "action": {
28011
+ "type": "string",
28012
+ "enum": [
28013
+ "select"
28014
+ ]
28015
+ },
28016
+ "slug": {
28017
+ "type": "string",
28018
+ "description": "The slug of the option to select."
28019
+ }
28020
+ },
28021
+ "required": [
28022
+ "action",
28023
+ "slug"
28024
+ ],
28025
+ "additionalProperties": false
27730
28026
  }
27731
28027
  ]
27732
28028
  },
@@ -39124,6 +39420,136 @@
39124
39420
  "propertyName": "type"
39125
39421
  }
39126
39422
  },
39423
+ "GitSyncInstallationProvider": {
39424
+ "type": "string",
39425
+ "description": "The provider of the Git Sync installation.",
39426
+ "enum": [
39427
+ "github",
39428
+ "gitlab"
39429
+ ]
39430
+ },
39431
+ "GitRepositoryConnection": {
39432
+ "type": "object",
39433
+ "properties": {
39434
+ "object": {
39435
+ "type": "string",
39436
+ "enum": [
39437
+ "git-repository-connection"
39438
+ ]
39439
+ },
39440
+ "id": {
39441
+ "type": "string",
39442
+ "description": "Unique identifier of the repository connection."
39443
+ },
39444
+ "provider": {
39445
+ "$ref": "#/components/schemas/GitSyncInstallationProvider"
39446
+ },
39447
+ "repositoryId": {
39448
+ "type": "string",
39449
+ "description": "Repository identifier assigned by the provider."
39450
+ },
39451
+ "repositoryName": {
39452
+ "type": "string",
39453
+ "description": "Full repository name assigned by the provider."
39454
+ },
39455
+ "repositoryUrl": {
39456
+ "type": "string",
39457
+ "format": "uri",
39458
+ "description": "URL of the repository on the provider."
39459
+ },
39460
+ "defaultBranch": {
39461
+ "type": "string",
39462
+ "description": "Default branch reported by the provider."
39463
+ },
39464
+ "authState": {
39465
+ "type": "string",
39466
+ "enum": [
39467
+ "pending",
39468
+ "active",
39469
+ "unauthenticated"
39470
+ ]
39471
+ },
39472
+ "capabilities": {
39473
+ "type": "object",
39474
+ "description": "Provider operations available to this repository connection.",
39475
+ "properties": {
39476
+ "pullRequests": {
39477
+ "type": "boolean",
39478
+ "description": "Whether the connection can create and update GitHub pull requests or GitLab merge requests."
39479
+ },
39480
+ "commitStatuses": {
39481
+ "type": "boolean",
39482
+ "description": "Whether the connection can publish GitBook synchronization results as provider commit statuses."
39483
+ }
39484
+ },
39485
+ "required": [
39486
+ "pullRequests",
39487
+ "commitStatuses"
39488
+ ]
39489
+ },
39490
+ "createdAt": {
39491
+ "$ref": "#/components/schemas/Timestamp"
39492
+ },
39493
+ "updatedAt": {
39494
+ "$ref": "#/components/schemas/Timestamp"
39495
+ }
39496
+ },
39497
+ "required": [
39498
+ "object",
39499
+ "id",
39500
+ "provider",
39501
+ "repositoryId",
39502
+ "repositoryName",
39503
+ "repositoryUrl",
39504
+ "authState",
39505
+ "capabilities",
39506
+ "createdAt",
39507
+ "updatedAt"
39508
+ ]
39509
+ },
39510
+ "GitRepositoryRef": {
39511
+ "type": "object",
39512
+ "properties": {
39513
+ "object": {
39514
+ "type": "string",
39515
+ "enum": [
39516
+ "git-repository-ref"
39517
+ ]
39518
+ },
39519
+ "id": {
39520
+ "type": "string",
39521
+ "description": "Unique identifier of the repository ref."
39522
+ },
39523
+ "name": {
39524
+ "type": "string",
39525
+ "description": "Fully qualified provider ref name."
39526
+ },
39527
+ "type": {
39528
+ "type": "string",
39529
+ "enum": [
39530
+ "branch",
39531
+ "tag",
39532
+ "change-request-head"
39533
+ ]
39534
+ },
39535
+ "latestObservedCommitId": {
39536
+ "type": "string"
39537
+ },
39538
+ "latestImportedCommitId": {
39539
+ "type": "string"
39540
+ },
39541
+ "updatedAt": {
39542
+ "$ref": "#/components/schemas/Timestamp"
39543
+ }
39544
+ },
39545
+ "required": [
39546
+ "object",
39547
+ "id",
39548
+ "name",
39549
+ "type",
39550
+ "updatedAt"
39551
+ ]
39552
+ },
39127
39553
  "GitSyncInstallation": {
39128
39554
  "allOf": [
39129
39555
  {
@@ -39142,12 +39568,22 @@
39142
39568
  "type": "string",
39143
39569
  "description": "Unique identifier of the Git Sync installation."
39144
39570
  },
39571
+ "parentInstallationId": {
39572
+ "type": "string",
39573
+ "description": "The ID of the parent Git Sync installation, if any."
39574
+ },
39145
39575
  "target": {
39146
39576
  "$ref": "#/components/schemas/GitSyncInstallationTarget"
39147
39577
  },
39148
39578
  "status": {
39149
39579
  "$ref": "#/components/schemas/GitSyncInstallationStatus"
39150
39580
  },
39581
+ "repositoryConnection": {
39582
+ "$ref": "#/components/schemas/GitRepositoryConnection"
39583
+ },
39584
+ "repositoryRef": {
39585
+ "$ref": "#/components/schemas/GitRepositoryRef"
39586
+ },
39151
39587
  "createdAt": {
39152
39588
  "$ref": "#/components/schemas/Timestamp"
39153
39589
  },
@@ -39913,6 +40349,11 @@
39913
40349
  },
39914
40350
  "maxItems": 5
39915
40351
  },
40352
+ "CustomizationAIInstructions": {
40353
+ "type": "string",
40354
+ "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.",
40355
+ "maxLength": 10000
40356
+ },
39916
40357
  "CustomizationPageActionType": {
39917
40358
  "type": "string",
39918
40359
  "description": "Type of a built-in page action that can be displayed in the page actions menu of a published page.",
@@ -40221,6 +40662,9 @@
40221
40662
  },
40222
40663
  "suggestions": {
40223
40664
  "$ref": "#/components/schemas/CustomizationSuggestedQuestions"
40665
+ },
40666
+ "instructions": {
40667
+ "$ref": "#/components/schemas/CustomizationAIInstructions"
40224
40668
  }
40225
40669
  },
40226
40670
  "required": [
@@ -41155,6 +41599,16 @@
41155
41599
  "description": "Findings source filter matching evidence coming from a given connection,\nencoded as `connection:<connectionId>`.\n",
41156
41600
  "pattern": "^connection:.+$"
41157
41601
  },
41602
+ "SiteFindingOrderBy": {
41603
+ "type": "string",
41604
+ "enum": [
41605
+ "updatedAt",
41606
+ "severity",
41607
+ "questions"
41608
+ ],
41609
+ "default": "updatedAt",
41610
+ "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'."
41611
+ },
41158
41612
  "SiteFindingTitle": {
41159
41613
  "type": "string",
41160
41614
  "description": "Short finding title",
@@ -41511,6 +41965,94 @@
41511
41965
  "urls"
41512
41966
  ]
41513
41967
  },
41968
+ "SiteFindingStatsStatuses": {
41969
+ "type": "object",
41970
+ "description": "Count of findings by status. Candidate findings are never counted.",
41971
+ "properties": {
41972
+ "open": {
41973
+ "type": "number",
41974
+ "description": "Count of findings surfaced to users and still under investigation."
41975
+ },
41976
+ "done": {
41977
+ "type": "number",
41978
+ "description": "Count of findings that have been resolved."
41979
+ },
41980
+ "canceled": {
41981
+ "type": "number",
41982
+ "description": "Count of findings that have been canceled."
41983
+ }
41984
+ },
41985
+ "required": [
41986
+ "open",
41987
+ "done",
41988
+ "canceled"
41989
+ ]
41990
+ },
41991
+ "SiteFindingStatsSeverities": {
41992
+ "type": "object",
41993
+ "description": "Count of findings by estimated end-user severity.",
41994
+ "properties": {
41995
+ "low": {
41996
+ "type": "number",
41997
+ "description": "Count of findings with a low estimated severity."
41998
+ },
41999
+ "medium": {
42000
+ "type": "number",
42001
+ "description": "Count of findings with a medium estimated severity."
42002
+ },
42003
+ "high": {
42004
+ "type": "number",
42005
+ "description": "Count of findings with a high estimated severity."
42006
+ }
42007
+ },
42008
+ "required": [
42009
+ "low",
42010
+ "medium",
42011
+ "high"
42012
+ ]
42013
+ },
42014
+ "SiteFindingStatsConnectors": {
42015
+ "type": "object",
42016
+ "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.",
42017
+ "additionalProperties": {
42018
+ "type": "number"
42019
+ }
42020
+ },
42021
+ "SiteFindingStats": {
42022
+ "type": "object",
42023
+ "description": "Aggregated stats for the findings identified on a site.",
42024
+ "properties": {
42025
+ "total": {
42026
+ "type": "number",
42027
+ "description": "Total count of findings included in the aggregation."
42028
+ },
42029
+ "statuses": {
42030
+ "$ref": "#/components/schemas/SiteFindingStatsStatuses"
42031
+ },
42032
+ "severities": {
42033
+ "$ref": "#/components/schemas/SiteFindingStatsSeverities"
42034
+ },
42035
+ "connectors": {
42036
+ "$ref": "#/components/schemas/SiteFindingStatsConnectors"
42037
+ },
42038
+ "questions": {
42039
+ "type": "number",
42040
+ "description": "Count of findings with at least one piece of evidence coming from a site question."
42041
+ },
42042
+ "mergedChangeRequests": {
42043
+ "type": "number",
42044
+ "description": "Count of change requests created to fix a finding that have been merged."
42045
+ }
42046
+ },
42047
+ "required": [
42048
+ "total",
42049
+ "statuses",
42050
+ "severities",
42051
+ "connectors",
42052
+ "questions",
42053
+ "mergedChangeRequests"
42054
+ ]
42055
+ },
41514
42056
  "ContextConnectionLabel": {
41515
42057
  "type": "string",
41516
42058
  "description": "Optional label for the connection",
@@ -45278,28 +45820,10 @@
45278
45820
  "enum": [
45279
45821
  "agent_feedback"
45280
45822
  ]
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
45823
  }
45299
45824
  },
45300
45825
  "required": [
45301
- "type",
45302
- "feedback"
45826
+ "type"
45303
45827
  ]
45304
45828
  }
45305
45829
  ]
@@ -48356,6 +48880,23 @@
48356
48880
  "contents"
48357
48881
  ]
48358
48882
  },
48883
+ "APIIntercomMessengerToken": {
48884
+ "type": "object",
48885
+ "properties": {
48886
+ "token": {
48887
+ "type": "string",
48888
+ "description": "Short-lived JWT used to authenticate the user with Intercom Messenger"
48889
+ },
48890
+ "expiresAt": {
48891
+ "type": "integer",
48892
+ "description": "Unix timestamp in seconds when the token expires"
48893
+ }
48894
+ },
48895
+ "required": [
48896
+ "token",
48897
+ "expiresAt"
48898
+ ]
48899
+ },
48359
48900
  "SignedURL": {
48360
48901
  "type": "object",
48361
48902
  "properties": {
@@ -48976,14 +49517,6 @@
48976
49517
  }
48977
49518
  }
48978
49519
  },
48979
- "GitSyncInstallationProvider": {
48980
- "type": "string",
48981
- "description": "The provider of the Git Sync installation.",
48982
- "enum": [
48983
- "github",
48984
- "gitlab"
48985
- ]
48986
- },
48987
49520
  "GitSyncGitHubRepository": {
48988
49521
  "type": "object",
48989
49522
  "description": "GitHub repository that can be selected for Git Sync.",
@@ -49916,13 +50449,6 @@
49916
50449
  "tag_edited"
49917
50450
  ]
49918
50451
  },
49919
- "GitSyncOperationDirection": {
49920
- "type": "string",
49921
- "enum": [
49922
- "export",
49923
- "import"
49924
- ]
49925
- },
49926
50452
  "GitSyncOperationStage": {
49927
50453
  "type": "string",
49928
50454
  "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 +50558,7 @@
50032
50558
  "GitSyncSiteStructureSpace": {
50033
50559
  "type": "object",
50034
50560
  "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",
50561
+ "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
50562
  "properties": {
50037
50563
  "type": {
50038
50564
  "type": "string",
@@ -50074,12 +50600,20 @@
50074
50600
  "content": {
50075
50601
  "type": "object",
50076
50602
  "additionalProperties": false,
50077
- "description": "Where the space's content lives in the synced repository.",
50603
+ "description": "Where the space's content is managed.",
50078
50604
  "properties": {
50079
50605
  "directory": {
50080
- "type": "string",
50081
- "description": "Repository-relative directory containing this space's content.",
50082
- "minLength": 1
50606
+ "oneOf": [
50607
+ {
50608
+ "type": "string",
50609
+ "description": "Repository-relative directory containing this space's content.",
50610
+ "minLength": 1
50611
+ },
50612
+ {
50613
+ "type": "null",
50614
+ "description": "The space does not inherit the site's repository."
50615
+ }
50616
+ ]
50083
50617
  },
50084
50618
  "language": {
50085
50619
  "$ref": "#/components/schemas/TranslationLanguage"
@@ -50134,10 +50668,6 @@
50134
50668
  "type": "boolean",
50135
50669
  "description": "Whether this is the default section for the site."
50136
50670
  },
50137
- "draft": {
50138
- "type": "boolean",
50139
- "description": "Whether the section is draft and not live."
50140
- },
50141
50671
  "path": {
50142
50672
  "$ref": "#/components/schemas/SiteSectionPath"
50143
50673
  },
@@ -50180,643 +50710,6 @@
50180
50710
  "$ref": "#/components/schemas/GitSyncSiteStructureNode"
50181
50711
  }
50182
50712
  },
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
50713
  "GitSyncSiteConfig": {
50821
50714
  "type": "object",
50822
50715
  "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 +50733,6 @@
50840
50733
  },
50841
50734
  "structure": {
50842
50735
  "$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
50736
  }
50854
50737
  },
50855
50738
  "required": [