@gitbook/api 0.160.1 → 0.162.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
@@ -155,11 +155,11 @@
155
155
  "description": "Manage the advertisement strategy within your docs. You can specify ad placements, track usage, and adjust settings to best fit your organization's needs.\n"
156
156
  },
157
157
  {
158
- "name": "site-users",
159
- "x-page-title": "Site users",
160
- "x-page-description": "Manage which users can access or contribute to a docs site.",
158
+ "name": "site-permissions",
159
+ "x-page-title": "Site permissions",
160
+ "x-page-description": "Manage which members and teams can access or contribute to a docs site.",
161
161
  "x-parent": "sites",
162
- "description": "Invite, remove, or update user permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.\n"
162
+ "description": "Invite, remove, or update users and teams permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.\n"
163
163
  },
164
164
  {
165
165
  "name": "site-insights",
@@ -189,6 +189,13 @@
189
189
  "x-parent": "sites",
190
190
  "description": "Manage the contextual records and topics used by your site to power AI experiences and insights.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"ContextRecord,ContextConnection,ContextTopic\" grouped=\"false\" %}\n The Site Context objects\n{% endopenapi-schemas %}\n"
191
191
  },
192
+ {
193
+ "name": "site-questions",
194
+ "x-page-title": "Site questions",
195
+ "x-page-description": "Review questions, answers, and sources generated for a docs site.",
196
+ "x-parent": "sites",
197
+ "description": "Inspect the canonical questions asked on your site, the generated answers linked to each question, and the sources used for each answer.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"SiteQuestion,SiteQuestionAnswer,SiteQuestionAnswerWithResponse,SiteQuestionAnswerSource\" grouped=\"false\" %}\n The Site Questions objects\n{% endopenapi-schemas %}\n"
198
+ },
192
199
  {
193
200
  "name": "collections",
194
201
  "x-page-icon": "folder",
@@ -197,18 +204,11 @@
197
204
  "description": "Collections let you bundle multiple spaces under a unified entity, making large-scale content easier to handle. You can sort content by subject, department, or any grouping logic.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"Collection\" grouped=\"false\" %}\n The Collection object\n{% endopenapi-schemas %}\n"
198
205
  },
199
206
  {
200
- "name": "collection-users",
201
- "x-page-title": "Collection users",
202
- "x-page-description": "Handle permissions and user management for a specific collection.",
207
+ "name": "collection-permissions",
208
+ "x-page-title": "Collection permissions",
209
+ "x-page-description": "Manage which members and teams can access or contribute to a collection of spaces.",
203
210
  "x-parent": "collections",
204
- "description": "Control which users have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.\n"
205
- },
206
- {
207
- "name": "collection-teams",
208
- "x-page-title": "Collection teams",
209
- "x-page-description": "Allocate team-based permissions to your collections.",
210
- "x-parent": "collections",
211
- "description": "Assign entire teams to a collection for easier role and permission management. Perfect for larger organizations looking to streamline content access.\n"
211
+ "description": "Control which users and teams have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.\n"
212
212
  },
213
213
  {
214
214
  "name": "spaces",
@@ -239,18 +239,11 @@
239
239
  "description": "Automatically fetch metadata or previews for embedded resources such as videos, images, or external docs, enabling richer content experiences in your space.\n"
240
240
  },
241
241
  {
242
- "name": "space-users",
243
- "x-page-title": "Space users",
244
- "x-page-description": "Manage user roles and permissions on a per-space basis.",
245
- "x-parent": "spaces",
246
- "description": "Give your collaborators the right level of access for specific spaces. This endpoint makes it simple to add, remove, or update space members individually.\n"
247
- },
248
- {
249
- "name": "space-teams",
250
- "x-page-title": "Space teams",
251
- "x-page-description": "Integrate team-based permissions for better collaboration in a space.",
242
+ "name": "space-permissions",
243
+ "x-page-title": "Space permissions",
244
+ "x-page-description": "Manage which members and teams roles and permissions on a per-space basis.",
252
245
  "x-parent": "spaces",
253
- "description": "Assign entire teams to your spaces and streamline the process of granting or revoking access at scale, without dealing with individual user roles.\n"
246
+ "description": "Give your collaborators the right level of access for specific spaces, or assign entire teams to your spaces and streamline the process of granting or revoking access at scale, without dealing with individual user roles.\n"
254
247
  },
255
248
  {
256
249
  "name": "space-integrations",
@@ -1206,8 +1199,7 @@
1206
1199
  "operationId": "inviteToSpace",
1207
1200
  "summary": "Invite a user or a team to a space",
1208
1201
  "tags": [
1209
- "space-users",
1210
- "space-teams"
1202
+ "space-permissions"
1211
1203
  ],
1212
1204
  "security": [
1213
1205
  {
@@ -1243,9 +1235,9 @@
1243
1235
  "/spaces/{spaceId}/permissions/teams/{teamId}": {
1244
1236
  "patch": {
1245
1237
  "operationId": "updateTeamPermissionInSpace",
1246
- "summary": "Update a space team permission",
1238
+ "summary": "Update an org team's permission in a space",
1247
1239
  "tags": [
1248
- "space-teams"
1240
+ "space-permissions"
1249
1241
  ],
1250
1242
  "security": [
1251
1243
  {
@@ -1287,9 +1279,9 @@
1287
1279
  },
1288
1280
  "delete": {
1289
1281
  "operationId": "removeTeamFromSpace",
1290
- "summary": "Remove a space team",
1282
+ "summary": "Remove an org team from a space",
1291
1283
  "tags": [
1292
- "space-teams"
1284
+ "space-permissions"
1293
1285
  ],
1294
1286
  "security": [
1295
1287
  {
@@ -1323,7 +1315,7 @@
1323
1315
  "operationId": "listUserPermissionsInSpace",
1324
1316
  "summary": "List space user permissions",
1325
1317
  "tags": [
1326
- "space-users"
1318
+ "space-permissions"
1327
1319
  ],
1328
1320
  "security": [
1329
1321
  {
@@ -1382,7 +1374,7 @@
1382
1374
  "operationId": "updateUserPermissionInSpace",
1383
1375
  "summary": "Update space user permissions",
1384
1376
  "tags": [
1385
- "space-users"
1377
+ "space-permissions"
1386
1378
  ],
1387
1379
  "security": [
1388
1380
  {
@@ -1426,7 +1418,7 @@
1426
1418
  "operationId": "removeUserFromSpace",
1427
1419
  "summary": "Remove a space user",
1428
1420
  "tags": [
1429
- "space-users"
1421
+ "space-permissions"
1430
1422
  ],
1431
1423
  "security": [
1432
1424
  {
@@ -1454,9 +1446,9 @@
1454
1446
  "/spaces/{spaceId}/permissions/teams": {
1455
1447
  "get": {
1456
1448
  "operationId": "listTeamPermissionsInSpace",
1457
- "summary": "List space team persmissions",
1449
+ "summary": "List an org team's permission in a space",
1458
1450
  "tags": [
1459
- "space-teams"
1451
+ "space-permissions"
1460
1452
  ],
1461
1453
  "security": [
1462
1454
  {
@@ -5385,7 +5377,7 @@
5385
5377
  "operationId": "listPermissionsAggregateInSpace",
5386
5378
  "summary": "List all space users permissions",
5387
5379
  "tags": [
5388
- "space-users"
5380
+ "space-permissions"
5389
5381
  ],
5390
5382
  "security": [
5391
5383
  {
@@ -5945,7 +5937,7 @@
5945
5937
  "operationId": "inviteToCollection",
5946
5938
  "summary": "Invite to a collection",
5947
5939
  "tags": [
5948
- "collection-users"
5940
+ "collection-permissions"
5949
5941
  ],
5950
5942
  "security": [
5951
5943
  {
@@ -5981,9 +5973,9 @@
5981
5973
  "/collections/{collectionId}/permissions/teams": {
5982
5974
  "get": {
5983
5975
  "operationId": "listTeamPermissionsInCollection",
5984
- "summary": "List a collection team permissions",
5976
+ "summary": "List an org team's permission in collection",
5985
5977
  "tags": [
5986
- "collection-teams"
5978
+ "collection-permissions"
5987
5979
  ],
5988
5980
  "security": [
5989
5981
  {
@@ -6049,9 +6041,9 @@
6049
6041
  "/collections/{collectionId}/permissions/teams/{teamId}": {
6050
6042
  "patch": {
6051
6043
  "operationId": "updateTeamPermissionInCollection",
6052
- "summary": "Update a collection team permission",
6044
+ "summary": "Update an org team's permission in a collection",
6053
6045
  "tags": [
6054
- "collection-teams"
6046
+ "collection-permissions"
6055
6047
  ],
6056
6048
  "security": [
6057
6049
  {
@@ -6093,9 +6085,9 @@
6093
6085
  },
6094
6086
  "delete": {
6095
6087
  "operationId": "removeTeamFromCollection",
6096
- "summary": "Remove a team from a collection",
6088
+ "summary": "Remove an org team from a collection",
6097
6089
  "tags": [
6098
- "collection-teams"
6090
+ "collection-permissions"
6099
6091
  ],
6100
6092
  "security": [
6101
6093
  {
@@ -6125,7 +6117,7 @@
6125
6117
  "operationId": "listUserPermissionsInCollection",
6126
6118
  "summary": "List collection user permissions",
6127
6119
  "tags": [
6128
- "collection-users"
6120
+ "collection-permissions"
6129
6121
  ],
6130
6122
  "security": [
6131
6123
  {
@@ -6184,7 +6176,7 @@
6184
6176
  "operationId": "updateUserPermissionInCollection",
6185
6177
  "summary": "Update a collection user permission",
6186
6178
  "tags": [
6187
- "collection-users"
6179
+ "collection-permissions"
6188
6180
  ],
6189
6181
  "security": [
6190
6182
  {
@@ -6228,7 +6220,7 @@
6228
6220
  "operationId": "removeUserFromCollection",
6229
6221
  "summary": "Remove a user from a collection",
6230
6222
  "tags": [
6231
- "collection-users"
6223
+ "collection-permissions"
6232
6224
  ],
6233
6225
  "security": [
6234
6226
  {
@@ -6258,7 +6250,7 @@
6258
6250
  "operationId": "listPermissionsAggregateInCollection",
6259
6251
  "summary": "List all collections users permissions",
6260
6252
  "tags": [
6261
- "collection-users"
6253
+ "space-permissions"
6262
6254
  ],
6263
6255
  "security": [
6264
6256
  {
@@ -14738,6 +14730,37 @@
14738
14730
  }
14739
14731
  }
14740
14732
  }
14733
+ },
14734
+ "delete": {
14735
+ "operationId": "deleteSiteContextConnectionById",
14736
+ "summary": "Delete a context connection",
14737
+ "tags": [
14738
+ "site-context"
14739
+ ],
14740
+ "security": [
14741
+ {
14742
+ "user": []
14743
+ }
14744
+ ],
14745
+ "parameters": [
14746
+ {
14747
+ "$ref": "#/components/parameters/organizationId"
14748
+ },
14749
+ {
14750
+ "$ref": "#/components/parameters/siteId"
14751
+ },
14752
+ {
14753
+ "$ref": "#/components/parameters/siteContextConnectionId"
14754
+ }
14755
+ ],
14756
+ "responses": {
14757
+ "204": {
14758
+ "description": "Context connection did not exist"
14759
+ },
14760
+ "205": {
14761
+ "description": "Context connection deleted"
14762
+ }
14763
+ }
14741
14764
  }
14742
14765
  },
14743
14766
  "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync": {
@@ -14922,12 +14945,12 @@
14922
14945
  }
14923
14946
  }
14924
14947
  },
14925
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}": {
14926
- "patch": {
14927
- "operationId": "updateSiteSpaceById",
14928
- "summary": "Update a site space",
14948
+ "/orgs/{organizationId}/sites/{siteId}/questions": {
14949
+ "get": {
14950
+ "operationId": "listSiteQuestions",
14951
+ "summary": "List all questions in a site",
14929
14952
  "tags": [
14930
- "site-spaces"
14953
+ "site-questions"
14931
14954
  ],
14932
14955
  "security": [
14933
14956
  {
@@ -14942,65 +14965,87 @@
14942
14965
  "$ref": "#/components/parameters/siteId"
14943
14966
  },
14944
14967
  {
14945
- "$ref": "#/components/parameters/siteSpaceId"
14968
+ "$ref": "#/components/parameters/listPage"
14969
+ },
14970
+ {
14971
+ "$ref": "#/components/parameters/listLimit"
14946
14972
  }
14947
14973
  ],
14948
- "requestBody": {
14949
- "required": true,
14950
- "content": {
14951
- "application/json": {
14952
- "schema": {
14953
- "type": "object",
14954
- "properties": {
14955
- "path": {
14956
- "$ref": "#/components/schemas/SiteSpacePath"
14957
- },
14958
- "condition": {
14959
- "description": "Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.",
14960
- "oneOf": [
14961
- {
14962
- "$ref": "#/components/schemas/Expression"
14963
- },
14964
- {
14965
- "type": "string",
14966
- "nullable": true,
14967
- "enum": [
14968
- null
14969
- ]
14974
+ "responses": {
14975
+ "200": {
14976
+ "description": "OK",
14977
+ "content": {
14978
+ "application/json": {
14979
+ "schema": {
14980
+ "allOf": [
14981
+ {
14982
+ "$ref": "#/components/schemas/List"
14983
+ },
14984
+ {
14985
+ "type": "object",
14986
+ "required": [
14987
+ "items"
14988
+ ],
14989
+ "properties": {
14990
+ "items": {
14991
+ "type": "array",
14992
+ "items": {
14993
+ "$ref": "#/components/schemas/SiteQuestion"
14994
+ }
14995
+ }
14970
14996
  }
14971
- ]
14972
- },
14973
- "spaceId": {
14974
- "type": "string",
14975
- "description": "The content that this site space points to. If not set, the space will remain unchanged."
14976
- },
14977
- "hidden": {
14978
- "type": "boolean",
14979
- "description": "Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. If not set, the hidden state will remain unchanged. If set to false, the site space will be shown in site navigation."
14980
- }
14997
+ }
14998
+ ]
14981
14999
  }
14982
15000
  }
14983
15001
  }
14984
15002
  }
14985
- },
15003
+ }
15004
+ }
15005
+ },
15006
+ "/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}": {
15007
+ "get": {
15008
+ "operationId": "getSiteQuestionById",
15009
+ "summary": "Get a site question by ID",
15010
+ "tags": [
15011
+ "site-questions"
15012
+ ],
15013
+ "security": [
15014
+ {
15015
+ "user": []
15016
+ }
15017
+ ],
15018
+ "parameters": [
15019
+ {
15020
+ "$ref": "#/components/parameters/organizationId"
15021
+ },
15022
+ {
15023
+ "$ref": "#/components/parameters/siteId"
15024
+ },
15025
+ {
15026
+ "$ref": "#/components/parameters/siteQuestionId"
15027
+ }
15028
+ ],
14986
15029
  "responses": {
14987
15030
  "200": {
14988
15031
  "description": "OK",
14989
15032
  "content": {
14990
15033
  "application/json": {
14991
15034
  "schema": {
14992
- "$ref": "#/components/schemas/SiteSpace"
15035
+ "$ref": "#/components/schemas/SiteQuestion"
14993
15036
  }
14994
15037
  }
14995
15038
  }
14996
15039
  }
14997
15040
  }
14998
- },
14999
- "delete": {
15000
- "operationId": "deleteSiteSpaceById",
15001
- "summary": "Delete a site space",
15041
+ }
15042
+ },
15043
+ "/orgs/{organizationId}/sites/{siteId}/answers": {
15044
+ "get": {
15045
+ "operationId": "listSiteQuestionAnswers",
15046
+ "summary": "List all answers for a site",
15002
15047
  "tags": [
15003
- "site-spaces"
15048
+ "site-questions"
15004
15049
  ],
15005
15050
  "security": [
15006
15051
  {
@@ -15015,25 +15060,135 @@
15015
15060
  "$ref": "#/components/parameters/siteId"
15016
15061
  },
15017
15062
  {
15018
- "$ref": "#/components/parameters/siteSpaceId"
15063
+ "name": "question",
15064
+ "in": "query",
15065
+ "description": "Filter answers to a specific site question ID.",
15066
+ "schema": {
15067
+ "type": "string"
15068
+ }
15069
+ },
15070
+ {
15071
+ "name": "language",
15072
+ "in": "query",
15073
+ "description": "Filter answers by ISO language code.",
15074
+ "schema": {
15075
+ "type": "string"
15076
+ }
15077
+ },
15078
+ {
15079
+ "name": "answered",
15080
+ "in": "query",
15081
+ "description": "Filter answers by answered resolution.",
15082
+ "schema": {
15083
+ "$ref": "#/components/schemas/SiteQuestionAnswerResolution"
15084
+ }
15085
+ },
15086
+ {
15087
+ "name": "confidence",
15088
+ "in": "query",
15089
+ "description": "Filter answers by answered confidence.",
15090
+ "schema": {
15091
+ "$ref": "#/components/schemas/SiteQuestionAnswerConfidence"
15092
+ }
15093
+ },
15094
+ {
15095
+ "name": "relevance",
15096
+ "in": "query",
15097
+ "description": "Filter answers by question relevance.",
15098
+ "schema": {
15099
+ "$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
15100
+ }
15101
+ },
15102
+ {
15103
+ "name": "thread",
15104
+ "in": "query",
15105
+ "description": "Filter answers by thread root answer ID. Includes the root answer itself.",
15106
+ "schema": {
15107
+ "type": "string"
15108
+ }
15109
+ },
15110
+ {
15111
+ "$ref": "#/components/parameters/listPage"
15112
+ },
15113
+ {
15114
+ "$ref": "#/components/parameters/listLimit"
15019
15115
  }
15020
15116
  ],
15021
15117
  "responses": {
15022
- "204": {
15023
- "description": "Site space did not exist"
15118
+ "200": {
15119
+ "description": "OK",
15120
+ "content": {
15121
+ "application/json": {
15122
+ "schema": {
15123
+ "allOf": [
15124
+ {
15125
+ "$ref": "#/components/schemas/List"
15126
+ },
15127
+ {
15128
+ "type": "object",
15129
+ "required": [
15130
+ "items"
15131
+ ],
15132
+ "properties": {
15133
+ "items": {
15134
+ "type": "array",
15135
+ "items": {
15136
+ "$ref": "#/components/schemas/SiteQuestionAnswer"
15137
+ }
15138
+ }
15139
+ }
15140
+ }
15141
+ ]
15142
+ }
15143
+ }
15144
+ }
15145
+ }
15146
+ }
15147
+ }
15148
+ },
15149
+ "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}": {
15150
+ "get": {
15151
+ "operationId": "getSiteQuestionAnswerById",
15152
+ "summary": "Get a site answer by ID",
15153
+ "tags": [
15154
+ "site-questions"
15155
+ ],
15156
+ "security": [
15157
+ {
15158
+ "user": []
15159
+ }
15160
+ ],
15161
+ "parameters": [
15162
+ {
15163
+ "$ref": "#/components/parameters/organizationId"
15024
15164
  },
15025
- "205": {
15026
- "description": "Site space has been deleted"
15165
+ {
15166
+ "$ref": "#/components/parameters/siteId"
15167
+ },
15168
+ {
15169
+ "$ref": "#/components/parameters/siteQuestionAnswerId"
15170
+ }
15171
+ ],
15172
+ "responses": {
15173
+ "200": {
15174
+ "description": "OK",
15175
+ "content": {
15176
+ "application/json": {
15177
+ "schema": {
15178
+ "$ref": "#/components/schemas/SiteQuestionAnswerWithResponse"
15179
+ }
15180
+ }
15181
+ }
15027
15182
  }
15028
15183
  }
15029
15184
  }
15030
15185
  },
15031
- "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization": {
15186
+ "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources": {
15032
15187
  "get": {
15033
- "operationId": "getSiteSpaceCustomizationById",
15034
- "summary": "Get a site space customization settings",
15188
+ "operationId": "listSiteQuestionAnswerSources",
15189
+ "summary": "List the sources for an answer",
15035
15190
  "tags": [
15036
- "site-customization"
15191
+ "site-questions"
15037
15192
  ],
15038
15193
  "security": [
15039
15194
  {
@@ -15048,10 +15203,13 @@
15048
15203
  "$ref": "#/components/parameters/siteId"
15049
15204
  },
15050
15205
  {
15051
- "$ref": "#/components/parameters/siteSpaceId"
15206
+ "$ref": "#/components/parameters/siteQuestionAnswerId"
15052
15207
  },
15053
15208
  {
15054
- "$ref": "#/components/parameters/siteCustomizationUnmasked"
15209
+ "$ref": "#/components/parameters/listPage"
15210
+ },
15211
+ {
15212
+ "$ref": "#/components/parameters/listLimit"
15055
15213
  }
15056
15214
  ],
15057
15215
  "responses": {
@@ -15060,21 +15218,185 @@
15060
15218
  "content": {
15061
15219
  "application/json": {
15062
15220
  "schema": {
15063
- "$ref": "#/components/schemas/SiteCustomizationSettings"
15221
+ "allOf": [
15222
+ {
15223
+ "$ref": "#/components/schemas/List"
15224
+ },
15225
+ {
15226
+ "type": "object",
15227
+ "required": [
15228
+ "items"
15229
+ ],
15230
+ "properties": {
15231
+ "items": {
15232
+ "type": "array",
15233
+ "items": {
15234
+ "$ref": "#/components/schemas/SiteQuestionAnswerSource"
15235
+ }
15236
+ }
15237
+ }
15238
+ }
15239
+ ]
15064
15240
  }
15065
15241
  }
15066
15242
  }
15067
- },
15068
- "400": {
15069
- "$ref": "#/components/responses/BadRequestError"
15070
15243
  }
15071
15244
  }
15072
- },
15245
+ }
15246
+ },
15247
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}": {
15073
15248
  "patch": {
15074
- "operationId": "overrideSiteSpaceCustomizationById",
15075
- "summary": "Override a site space customization settings",
15249
+ "operationId": "updateSiteSpaceById",
15250
+ "summary": "Update a site space",
15076
15251
  "tags": [
15077
- "site-customization"
15252
+ "site-spaces"
15253
+ ],
15254
+ "security": [
15255
+ {
15256
+ "user": []
15257
+ }
15258
+ ],
15259
+ "parameters": [
15260
+ {
15261
+ "$ref": "#/components/parameters/organizationId"
15262
+ },
15263
+ {
15264
+ "$ref": "#/components/parameters/siteId"
15265
+ },
15266
+ {
15267
+ "$ref": "#/components/parameters/siteSpaceId"
15268
+ }
15269
+ ],
15270
+ "requestBody": {
15271
+ "required": true,
15272
+ "content": {
15273
+ "application/json": {
15274
+ "schema": {
15275
+ "type": "object",
15276
+ "properties": {
15277
+ "path": {
15278
+ "$ref": "#/components/schemas/SiteSpacePath"
15279
+ },
15280
+ "condition": {
15281
+ "description": "Conditional expression used to evaluate whether the site space should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.",
15282
+ "oneOf": [
15283
+ {
15284
+ "$ref": "#/components/schemas/Expression"
15285
+ },
15286
+ {
15287
+ "type": "string",
15288
+ "nullable": true,
15289
+ "enum": [
15290
+ null
15291
+ ]
15292
+ }
15293
+ ]
15294
+ },
15295
+ "spaceId": {
15296
+ "type": "string",
15297
+ "description": "The content that this site space points to. If not set, the space will remain unchanged."
15298
+ },
15299
+ "hidden": {
15300
+ "type": "boolean",
15301
+ "description": "Whether the site space is hidden. If true, the site space will not be shown in the site's navigation. If not set, the hidden state will remain unchanged. If set to false, the site space will be shown in site navigation."
15302
+ }
15303
+ }
15304
+ }
15305
+ }
15306
+ }
15307
+ },
15308
+ "responses": {
15309
+ "200": {
15310
+ "description": "OK",
15311
+ "content": {
15312
+ "application/json": {
15313
+ "schema": {
15314
+ "$ref": "#/components/schemas/SiteSpace"
15315
+ }
15316
+ }
15317
+ }
15318
+ }
15319
+ }
15320
+ },
15321
+ "delete": {
15322
+ "operationId": "deleteSiteSpaceById",
15323
+ "summary": "Delete a site space",
15324
+ "tags": [
15325
+ "site-spaces"
15326
+ ],
15327
+ "security": [
15328
+ {
15329
+ "user": []
15330
+ }
15331
+ ],
15332
+ "parameters": [
15333
+ {
15334
+ "$ref": "#/components/parameters/organizationId"
15335
+ },
15336
+ {
15337
+ "$ref": "#/components/parameters/siteId"
15338
+ },
15339
+ {
15340
+ "$ref": "#/components/parameters/siteSpaceId"
15341
+ }
15342
+ ],
15343
+ "responses": {
15344
+ "204": {
15345
+ "description": "Site space did not exist"
15346
+ },
15347
+ "205": {
15348
+ "description": "Site space has been deleted"
15349
+ }
15350
+ }
15351
+ }
15352
+ },
15353
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization": {
15354
+ "get": {
15355
+ "operationId": "getSiteSpaceCustomizationById",
15356
+ "summary": "Get a site space customization settings",
15357
+ "tags": [
15358
+ "site-customization"
15359
+ ],
15360
+ "security": [
15361
+ {
15362
+ "user": []
15363
+ }
15364
+ ],
15365
+ "parameters": [
15366
+ {
15367
+ "$ref": "#/components/parameters/organizationId"
15368
+ },
15369
+ {
15370
+ "$ref": "#/components/parameters/siteId"
15371
+ },
15372
+ {
15373
+ "$ref": "#/components/parameters/siteSpaceId"
15374
+ },
15375
+ {
15376
+ "$ref": "#/components/parameters/siteCustomizationUnmasked"
15377
+ }
15378
+ ],
15379
+ "responses": {
15380
+ "200": {
15381
+ "description": "OK",
15382
+ "content": {
15383
+ "application/json": {
15384
+ "schema": {
15385
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
15386
+ }
15387
+ }
15388
+ }
15389
+ },
15390
+ "400": {
15391
+ "$ref": "#/components/responses/BadRequestError"
15392
+ }
15393
+ }
15394
+ },
15395
+ "patch": {
15396
+ "operationId": "overrideSiteSpaceCustomizationById",
15397
+ "summary": "Override a site space customization settings",
15398
+ "tags": [
15399
+ "site-customization"
15078
15400
  ],
15079
15401
  "security": [
15080
15402
  {
@@ -15939,6 +16261,47 @@
15939
16261
  }
15940
16262
  }
15941
16263
  },
16264
+ "/orgs/{organizationId}/sites/{siteId}/permissions": {
16265
+ "post": {
16266
+ "operationId": "inviteToSite",
16267
+ "summary": "Invite a user or a team to a site",
16268
+ "tags": [
16269
+ "site-permissions"
16270
+ ],
16271
+ "security": [
16272
+ {
16273
+ "user": []
16274
+ }
16275
+ ],
16276
+ "parameters": [
16277
+ {
16278
+ "$ref": "#/components/parameters/organizationId"
16279
+ },
16280
+ {
16281
+ "$ref": "#/components/parameters/siteId"
16282
+ }
16283
+ ],
16284
+ "responses": {
16285
+ "204": {
16286
+ "description": "OK"
16287
+ },
16288
+ "404": {
16289
+ "description": "No team or user with the provided Id",
16290
+ "$ref": "#/components/responses/NotFoundError"
16291
+ }
16292
+ },
16293
+ "requestBody": {
16294
+ "required": true,
16295
+ "content": {
16296
+ "application/json": {
16297
+ "schema": {
16298
+ "$ref": "#/components/schemas/InviteSiteUsersAndTeams"
16299
+ }
16300
+ }
16301
+ }
16302
+ }
16303
+ }
16304
+ },
15942
16305
  "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
15943
16306
  "get": {
15944
16307
  "operationId": "listPermissionsAggregateInSite",
@@ -15997,6 +16360,290 @@
15997
16360
  }
15998
16361
  }
15999
16362
  },
16363
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users": {
16364
+ "get": {
16365
+ "operationId": "listUserPermissionsInSite",
16366
+ "summary": "List site user permissions",
16367
+ "tags": [
16368
+ "site-users"
16369
+ ],
16370
+ "security": [
16371
+ {
16372
+ "user": []
16373
+ }
16374
+ ],
16375
+ "parameters": [
16376
+ {
16377
+ "$ref": "#/components/parameters/organizationId"
16378
+ },
16379
+ {
16380
+ "$ref": "#/components/parameters/siteId"
16381
+ },
16382
+ {
16383
+ "$ref": "#/components/parameters/listPage"
16384
+ },
16385
+ {
16386
+ "$ref": "#/components/parameters/listLimit"
16387
+ }
16388
+ ],
16389
+ "responses": {
16390
+ "200": {
16391
+ "description": "Listing of users who have been added to a site.",
16392
+ "content": {
16393
+ "application/json": {
16394
+ "schema": {
16395
+ "allOf": [
16396
+ {
16397
+ "$ref": "#/components/schemas/List"
16398
+ },
16399
+ {
16400
+ "type": "object",
16401
+ "required": [
16402
+ "items"
16403
+ ],
16404
+ "properties": {
16405
+ "items": {
16406
+ "type": "array",
16407
+ "items": {
16408
+ "$ref": "#/components/schemas/UserSitePermissionOverride"
16409
+ }
16410
+ }
16411
+ }
16412
+ }
16413
+ ]
16414
+ }
16415
+ }
16416
+ }
16417
+ },
16418
+ "404": {
16419
+ "description": "No site was found with the given Id",
16420
+ "$ref": "#/components/responses/NotFoundError"
16421
+ }
16422
+ }
16423
+ }
16424
+ },
16425
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users/{userId}": {
16426
+ "patch": {
16427
+ "operationId": "updateUserPermissionInSite",
16428
+ "summary": "Update site user permissions",
16429
+ "tags": [
16430
+ "site-users"
16431
+ ],
16432
+ "security": [
16433
+ {
16434
+ "user": []
16435
+ }
16436
+ ],
16437
+ "parameters": [
16438
+ {
16439
+ "$ref": "#/components/parameters/organizationId"
16440
+ },
16441
+ {
16442
+ "$ref": "#/components/parameters/siteId"
16443
+ },
16444
+ {
16445
+ "$ref": "#/components/parameters/userId"
16446
+ }
16447
+ ],
16448
+ "requestBody": {
16449
+ "required": true,
16450
+ "content": {
16451
+ "application/json": {
16452
+ "schema": {
16453
+ "type": "object",
16454
+ "properties": {
16455
+ "role": {
16456
+ "$ref": "#/components/schemas/MemberRole"
16457
+ }
16458
+ }
16459
+ }
16460
+ }
16461
+ }
16462
+ },
16463
+ "responses": {
16464
+ "204": {
16465
+ "description": "User permission was updated"
16466
+ },
16467
+ "404": {
16468
+ "description": "No user found with the given ID",
16469
+ "$ref": "#/components/responses/NotFoundError"
16470
+ }
16471
+ }
16472
+ },
16473
+ "delete": {
16474
+ "operationId": "removeUserFromSite",
16475
+ "summary": "Remove a site user",
16476
+ "tags": [
16477
+ "site-users"
16478
+ ],
16479
+ "security": [
16480
+ {
16481
+ "user": []
16482
+ }
16483
+ ],
16484
+ "parameters": [
16485
+ {
16486
+ "$ref": "#/components/parameters/organizationId"
16487
+ },
16488
+ {
16489
+ "$ref": "#/components/parameters/siteId"
16490
+ },
16491
+ {
16492
+ "$ref": "#/components/parameters/userId"
16493
+ }
16494
+ ],
16495
+ "responses": {
16496
+ "204": {
16497
+ "description": "The user was not found in the site"
16498
+ },
16499
+ "205": {
16500
+ "description": "The user has been removed from the site"
16501
+ }
16502
+ }
16503
+ }
16504
+ },
16505
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams": {
16506
+ "get": {
16507
+ "operationId": "listTeamPermissionsInSite",
16508
+ "summary": "List an org team's permission in a site",
16509
+ "tags": [
16510
+ "site-permissions"
16511
+ ],
16512
+ "security": [
16513
+ {
16514
+ "user": []
16515
+ }
16516
+ ],
16517
+ "parameters": [
16518
+ {
16519
+ "$ref": "#/components/parameters/organizationId"
16520
+ },
16521
+ {
16522
+ "$ref": "#/components/parameters/siteId"
16523
+ },
16524
+ {
16525
+ "$ref": "#/components/parameters/listPage"
16526
+ },
16527
+ {
16528
+ "$ref": "#/components/parameters/listLimit"
16529
+ }
16530
+ ],
16531
+ "responses": {
16532
+ "200": {
16533
+ "description": "Listing of teams who have been added to a site.",
16534
+ "content": {
16535
+ "application/json": {
16536
+ "schema": {
16537
+ "allOf": [
16538
+ {
16539
+ "$ref": "#/components/schemas/List"
16540
+ },
16541
+ {
16542
+ "type": "object",
16543
+ "required": [
16544
+ "items"
16545
+ ],
16546
+ "properties": {
16547
+ "items": {
16548
+ "type": "array",
16549
+ "items": {
16550
+ "$ref": "#/components/schemas/TeamSitePermissionOverride"
16551
+ }
16552
+ }
16553
+ }
16554
+ }
16555
+ ]
16556
+ }
16557
+ }
16558
+ }
16559
+ },
16560
+ "404": {
16561
+ "description": "No site was found with the given Id",
16562
+ "$ref": "#/components/responses/NotFoundError"
16563
+ }
16564
+ }
16565
+ }
16566
+ },
16567
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams/{teamId}": {
16568
+ "patch": {
16569
+ "operationId": "updateTeamPermissionInSite",
16570
+ "summary": "Update an org team's permission in a site",
16571
+ "tags": [
16572
+ "site-permissions"
16573
+ ],
16574
+ "security": [
16575
+ {
16576
+ "user": []
16577
+ }
16578
+ ],
16579
+ "parameters": [
16580
+ {
16581
+ "$ref": "#/components/parameters/organizationId"
16582
+ },
16583
+ {
16584
+ "$ref": "#/components/parameters/siteId"
16585
+ },
16586
+ {
16587
+ "$ref": "#/components/parameters/teamId"
16588
+ }
16589
+ ],
16590
+ "requestBody": {
16591
+ "required": true,
16592
+ "content": {
16593
+ "application/json": {
16594
+ "schema": {
16595
+ "type": "object",
16596
+ "properties": {
16597
+ "role": {
16598
+ "$ref": "#/components/schemas/MemberRole"
16599
+ }
16600
+ }
16601
+ }
16602
+ }
16603
+ }
16604
+ },
16605
+ "responses": {
16606
+ "204": {
16607
+ "description": "Team permission was updated"
16608
+ },
16609
+ "404": {
16610
+ "description": "No team found with the given ID",
16611
+ "$ref": "#/components/responses/NotFoundError"
16612
+ }
16613
+ }
16614
+ },
16615
+ "delete": {
16616
+ "operationId": "removeTeamFromSite",
16617
+ "summary": "Remove an org team from a site",
16618
+ "tags": [
16619
+ "site-permissions"
16620
+ ],
16621
+ "security": [
16622
+ {
16623
+ "user": []
16624
+ }
16625
+ ],
16626
+ "parameters": [
16627
+ {
16628
+ "$ref": "#/components/parameters/organizationId"
16629
+ },
16630
+ {
16631
+ "$ref": "#/components/parameters/siteId"
16632
+ },
16633
+ {
16634
+ "$ref": "#/components/parameters/teamId"
16635
+ }
16636
+ ],
16637
+ "responses": {
16638
+ "204": {
16639
+ "description": "The team was not found in the site"
16640
+ },
16641
+ "205": {
16642
+ "description": "The team has been removed from the site"
16643
+ }
16644
+ }
16645
+ }
16646
+ },
16000
16647
  "/orgs/{organizationId}/sites/{siteId}/ai/response": {
16001
16648
  "post": {
16002
16649
  "operationId": "streamAIResponseInSite",
@@ -16051,6 +16698,9 @@
16051
16698
  },
16052
16699
  "toolCall": {
16053
16700
  "$ref": "#/components/schemas/AIToolCallResult"
16701
+ },
16702
+ "session": {
16703
+ "$ref": "#/components/schemas/SiteInsightsSession"
16054
16704
  }
16055
16705
  }
16056
16706
  }
@@ -17972,6 +18622,24 @@
17972
18622
  "type": "string"
17973
18623
  }
17974
18624
  },
18625
+ "siteQuestionId": {
18626
+ "name": "siteQuestionId",
18627
+ "in": "path",
18628
+ "required": true,
18629
+ "description": "The unique id of the site question",
18630
+ "schema": {
18631
+ "type": "string"
18632
+ }
18633
+ },
18634
+ "siteQuestionAnswerId": {
18635
+ "name": "siteQuestionAnswerId",
18636
+ "in": "path",
18637
+ "required": true,
18638
+ "description": "The unique id of the site question answer",
18639
+ "schema": {
18640
+ "type": "string"
18641
+ }
18642
+ },
17975
18643
  "siteSpaceId": {
17976
18644
  "name": "siteSpaceId",
17977
18645
  "in": "path",
@@ -18711,6 +19379,10 @@
18711
19379
  "type": "boolean",
18712
19380
  "description": "Whether the space is powered by V2 of the content system."
18713
19381
  },
19382
+ "internal_singleWebsocket": {
19383
+ "type": "boolean",
19384
+ "description": "Whether the space uses a single websocket connection for all real-time communication."
19385
+ },
18714
19386
  "permissions": {
18715
19387
  "type": "object",
18716
19388
  "description": "The set of permissions for the space",
@@ -20619,6 +21291,9 @@
20619
21291
  "danger",
20620
21292
  "success"
20621
21293
  ]
21294
+ },
21295
+ "icon": {
21296
+ "$ref": "#/components/schemas/Icon"
20622
21297
  }
20623
21298
  },
20624
21299
  "required": [
@@ -23822,7 +24497,8 @@
23822
24497
  "slug",
23823
24498
  "path",
23824
24499
  "pages",
23825
- "layout"
24500
+ "layout",
24501
+ "tags"
23826
24502
  ]
23827
24503
  },
23828
24504
  {
@@ -24349,6 +25025,10 @@
24349
25025
  "metadata": {
24350
25026
  "type": "boolean",
24351
25027
  "description": "Should the page metadata (last modified, author, etc.) be visible?"
25028
+ },
25029
+ "tags": {
25030
+ "type": "boolean",
25031
+ "description": "Should the tags be visible on the page?"
24352
25032
  }
24353
25033
  },
24354
25034
  "required": [
@@ -24360,7 +25040,8 @@
24360
25040
  "tableOfContents",
24361
25041
  "outline",
24362
25042
  "pagination",
24363
- "metadata"
25043
+ "metadata",
25044
+ "tags"
24364
25045
  ]
24365
25046
  },
24366
25047
  "RevisionPageDocumentCover": {
@@ -24752,21 +25433,48 @@
24752
25433
  ]
24753
25434
  },
24754
25435
  "RevisionTag": {
24755
- "type": "object",
24756
- "description": "A reusable tag that different types of content can be associated to (e.g. pages, update entries)",
24757
- "properties": {
24758
- "slug": {
24759
- "type": "string",
24760
- "description": "The slug identifier for the tag, immutable after creation."
25436
+ "allOf": [
25437
+ {
25438
+ "type": "object",
25439
+ "description": "A reusable tag that different types of content can be associated to (e.g. pages, update entries)",
25440
+ "properties": {
25441
+ "slug": {
25442
+ "type": "string",
25443
+ "description": "The slug identifier for the tag, immutable after creation."
25444
+ },
25445
+ "label": {
25446
+ "type": "string",
25447
+ "description": "Display label for the tag. Can be renamed and differ from the slug."
25448
+ }
25449
+ },
25450
+ "required": [
25451
+ "slug",
25452
+ "label"
25453
+ ]
24761
25454
  },
24762
- "label": {
24763
- "type": "string",
24764
- "description": "Display label for the tag. Can be renamed and differ from the slug."
25455
+ {
25456
+ "oneOf": [
25457
+ {
25458
+ "type": "object",
25459
+ "properties": {
25460
+ "emoji": {
25461
+ "$ref": "#/components/schemas/Emoji"
25462
+ }
25463
+ },
25464
+ "required": [
25465
+ "emoji"
25466
+ ]
25467
+ },
25468
+ {
25469
+ "type": "object",
25470
+ "properties": {
25471
+ "icon": {
25472
+ "$ref": "#/components/schemas/Icon"
25473
+ }
25474
+ }
25475
+ }
25476
+ ]
24765
25477
  }
24766
- },
24767
- "required": [
24768
- "slug",
24769
- "label"
24770
25478
  ]
24771
25479
  },
24772
25480
  "GitSyncCommit": {
@@ -24887,6 +25595,7 @@
24887
25595
  "pages",
24888
25596
  "files",
24889
25597
  "reusableContents",
25598
+ "tags",
24890
25599
  "urls",
24891
25600
  "createdAt"
24892
25601
  ]
@@ -25180,7 +25889,8 @@
25180
25889
  "type": "string",
25181
25890
  "description": "Name of the organization",
25182
25891
  "minLength": 2,
25183
- "maxLength": 255
25892
+ "maxLength": 255,
25893
+ "pattern": "\\S.*\\S"
25184
25894
  },
25185
25895
  "OrganizationEmailDomains": {
25186
25896
  "type": "array",
@@ -33231,7 +33941,7 @@
33231
33941
  "query"
33232
33942
  ]
33233
33943
  },
33234
- "SearchAIAnswerSource": {
33944
+ "SearchAIAnswerSourcePage": {
33235
33945
  "type": "object",
33236
33946
  "title": "Page source",
33237
33947
  "description": "The source points to a page in a space.",
@@ -33274,6 +33984,60 @@
33274
33984
  "sections"
33275
33985
  ]
33276
33986
  },
33987
+ "SearchAIAnswerSourceRecord": {
33988
+ "type": "object",
33989
+ "title": "Site context record source",
33990
+ "description": "The source points to an ingested site context record.",
33991
+ "properties": {
33992
+ "type": {
33993
+ "type": "string",
33994
+ "enum": [
33995
+ "record"
33996
+ ]
33997
+ },
33998
+ "reason": {
33999
+ "type": "string",
34000
+ "description": "Short explanation of how the source was used to answer."
34001
+ },
34002
+ "record": {
34003
+ "type": "string",
34004
+ "description": "The context record ID of the source."
34005
+ },
34006
+ "site": {
34007
+ "type": "string",
34008
+ "description": "The site ID owning the source record."
34009
+ },
34010
+ "title": {
34011
+ "type": "string",
34012
+ "description": "The title of the source record."
34013
+ },
34014
+ "url": {
34015
+ "type": "string",
34016
+ "format": "uri",
34017
+ "description": "The source URL of the context record."
34018
+ }
34019
+ },
34020
+ "required": [
34021
+ "type",
34022
+ "record",
34023
+ "site",
34024
+ "title",
34025
+ "url"
34026
+ ]
34027
+ },
34028
+ "SearchAIAnswerSource": {
34029
+ "oneOf": [
34030
+ {
34031
+ "$ref": "#/components/schemas/SearchAIAnswerSourcePage"
34032
+ },
34033
+ {
34034
+ "$ref": "#/components/schemas/SearchAIAnswerSourceRecord"
34035
+ }
34036
+ ],
34037
+ "discriminator": {
34038
+ "propertyName": "type"
34039
+ }
34040
+ },
33277
34041
  "SearchAIAnswer": {
33278
34042
  "type": "object",
33279
34043
  "description": "Answer from AI for a question asked on a content.",
@@ -36025,7 +36789,8 @@
36025
36789
  "enum": [
36026
36790
  "builtin:email",
36027
36791
  "builtin:api",
36028
- "builtin:website"
36792
+ "builtin:website",
36793
+ "builtin:youtube"
36029
36794
  ]
36030
36795
  }
36031
36796
  ]
@@ -36243,6 +37008,33 @@
36243
37008
  "connector",
36244
37009
  "setupSettings"
36245
37010
  ]
37011
+ },
37012
+ {
37013
+ "type": "object",
37014
+ "properties": {
37015
+ "connector": {
37016
+ "type": "string",
37017
+ "enum": [
37018
+ "builtin:youtube"
37019
+ ]
37020
+ },
37021
+ "setupSettings": {
37022
+ "type": "object",
37023
+ "properties": {
37024
+ "channelId": {
37025
+ "type": "string",
37026
+ "pattern": "^UC[A-Za-z0-9_-]{22}$"
37027
+ }
37028
+ },
37029
+ "required": [
37030
+ "channelId"
37031
+ ]
37032
+ }
37033
+ },
37034
+ "required": [
37035
+ "connector",
37036
+ "setupSettings"
37037
+ ]
36246
37038
  }
36247
37039
  ]
36248
37040
  },
@@ -36416,731 +37208,466 @@
36416
37208
  "urls"
36417
37209
  ]
36418
37210
  },
36419
- "SiteSpaceCustomizationSettings": {
36420
- "allOf": [
36421
- {
36422
- "$ref": "#/components/schemas/SiteCustomizationSettings"
37211
+ "SiteQuestionStatsFeedback": {
37212
+ "type": "object",
37213
+ "description": "Aggregated feedback for answers linked to a site question.",
37214
+ "properties": {
37215
+ "positive": {
37216
+ "type": "number",
37217
+ "description": "Count of answers with positive feedback."
36423
37218
  },
36424
- {
36425
- "type": "object",
36426
- "properties": {
36427
- "hasOverrides": {
36428
- "type": "boolean",
36429
- "description": "Indicates whether the site customization settings have been overridden."
36430
- }
36431
- },
36432
- "required": [
36433
- "hasOverrides"
36434
- ]
37219
+ "negative": {
37220
+ "type": "number",
37221
+ "description": "Count of answers with negative feedback."
37222
+ },
37223
+ "unrated": {
37224
+ "type": "number",
37225
+ "description": "Count of answers without feedback."
36435
37226
  }
37227
+ },
37228
+ "required": [
37229
+ "positive",
37230
+ "negative",
37231
+ "unrated"
36436
37232
  ]
36437
37233
  },
36438
- "SiteSectionGroupPointer": {
37234
+ "SiteQuestionStatsAnswered": {
36439
37235
  "type": "object",
37236
+ "description": "Aggregated answered assessment for answers linked to a site question.",
36440
37237
  "properties": {
36441
- "type": {
36442
- "type": "string",
36443
- "enum": [
36444
- "site-section",
36445
- "site-section-group"
36446
- ]
37238
+ "yes": {
37239
+ "type": "number",
37240
+ "description": "Count of answers assessed as fully answered."
36447
37241
  },
36448
- "id": {
36449
- "type": "string",
36450
- "description": "Unique identifier for the site section"
37242
+ "partially": {
37243
+ "type": "number",
37244
+ "description": "Count of answers assessed as partially answered."
37245
+ },
37246
+ "no": {
37247
+ "type": "number",
37248
+ "description": "Count of answers assessed as not answered."
36451
37249
  }
36452
37250
  },
36453
37251
  "required": [
36454
- "type",
36455
- "id"
37252
+ "yes",
37253
+ "partially",
37254
+ "no"
36456
37255
  ]
36457
37256
  },
36458
- "SiteSectionGroupMovePosition": {
37257
+ "SiteQuestionStats": {
36459
37258
  "type": "object",
36460
- "description": "Position at which to move the site section group.",
37259
+ "description": "Aggregated stats for answers linked to a site question.",
36461
37260
  "properties": {
36462
- "before": {
36463
- "$ref": "#/components/schemas/SiteSectionGroupPointer"
37261
+ "answers": {
37262
+ "type": "number",
37263
+ "description": "Total count of answers linked to the question."
36464
37264
  },
36465
- "after": {
36466
- "$ref": "#/components/schemas/SiteSectionGroupPointer"
37265
+ "feedback": {
37266
+ "$ref": "#/components/schemas/SiteQuestionStatsFeedback"
37267
+ },
37268
+ "answered": {
37269
+ "$ref": "#/components/schemas/SiteQuestionStatsAnswered"
36467
37270
  }
36468
- }
37271
+ },
37272
+ "required": [
37273
+ "answers",
37274
+ "feedback",
37275
+ "answered"
37276
+ ]
36469
37277
  },
36470
- "SiteSectionPointer": {
37278
+ "SiteQuestion": {
36471
37279
  "type": "object",
36472
37280
  "properties": {
36473
- "type": {
37281
+ "object": {
36474
37282
  "type": "string",
36475
37283
  "enum": [
36476
- "site-section"
37284
+ "site-question"
36477
37285
  ]
36478
37286
  },
36479
- "siteSection": {
37287
+ "id": {
36480
37288
  "type": "string",
36481
- "description": "Unique identifier for the site section"
37289
+ "description": "The ID of the site question."
37290
+ },
37291
+ "question": {
37292
+ "type": "string",
37293
+ "description": "Canonical text for the unique site question."
37294
+ },
37295
+ "createdAt": {
37296
+ "$ref": "#/components/schemas/Timestamp"
37297
+ },
37298
+ "stats": {
37299
+ "$ref": "#/components/schemas/SiteQuestionStats"
37300
+ },
37301
+ "urls": {
37302
+ "type": "object",
37303
+ "description": "URLs associated with the site question.",
37304
+ "properties": {
37305
+ "location": {
37306
+ "type": "string",
37307
+ "format": "uri",
37308
+ "description": "URL of the site question in the API."
37309
+ }
37310
+ },
37311
+ "required": [
37312
+ "location"
37313
+ ]
36482
37314
  }
36483
37315
  },
36484
37316
  "required": [
36485
- "type",
36486
- "siteSection"
37317
+ "object",
37318
+ "id",
37319
+ "question",
37320
+ "createdAt",
37321
+ "stats",
37322
+ "urls"
36487
37323
  ]
36488
37324
  },
36489
- "SiteSectionMovePosition": {
37325
+ "SiteQuestionAnswerResolution": {
37326
+ "type": "string",
37327
+ "description": "Whether the response answered the question.",
37328
+ "enum": [
37329
+ "no",
37330
+ "partially",
37331
+ "yes"
37332
+ ]
37333
+ },
37334
+ "SiteQuestionAnswerConfidence": {
37335
+ "type": "string",
37336
+ "description": "Confidence in whether the response answered the question.",
37337
+ "enum": [
37338
+ "low",
37339
+ "medium",
37340
+ "high"
37341
+ ]
37342
+ },
37343
+ "SiteQuestionAnswerRelevance": {
37344
+ "type": "string",
37345
+ "description": "Relevance classification of the user question.",
37346
+ "enum": [
37347
+ "relevant",
37348
+ "spam",
37349
+ "off-topic",
37350
+ "unclear"
37351
+ ]
37352
+ },
37353
+ "SiteInsightsSession": {
36490
37354
  "type": "object",
36491
- "description": "Position at which to move the site section to.",
37355
+ "description": "Identifiers for a GitBook site session, used for analytics and adaptive content.",
36492
37356
  "properties": {
36493
- "before": {
36494
- "$ref": "#/components/schemas/SiteSectionPointer"
37357
+ "visitorId": {
37358
+ "type": "string",
37359
+ "description": "GitBook's unique identifier of the visitor."
36495
37360
  },
36496
- "after": {
36497
- "$ref": "#/components/schemas/SiteSectionPointer"
37361
+ "sessionId": {
37362
+ "type": "string",
37363
+ "description": "GitBook's unique identifier of the visitor's session."
36498
37364
  }
36499
- }
37365
+ },
37366
+ "required": [
37367
+ "visitorId",
37368
+ "sessionId"
37369
+ ]
36500
37370
  },
36501
- "SiteSpacePointer": {
37371
+ "SiteQuestionAnswer": {
36502
37372
  "type": "object",
36503
37373
  "properties": {
36504
- "type": {
37374
+ "object": {
36505
37375
  "type": "string",
36506
37376
  "enum": [
36507
- "site-space"
37377
+ "site-question-answer"
36508
37378
  ]
36509
37379
  },
36510
- "siteSpace": {
37380
+ "id": {
36511
37381
  "type": "string",
36512
- "description": "Unique identifier for the site space"
37382
+ "description": "The ID of the site question answer."
37383
+ },
37384
+ "question": {
37385
+ "type": "string",
37386
+ "description": "The ID of the parent site question."
37387
+ },
37388
+ "input": {
37389
+ "type": "object",
37390
+ "properties": {
37391
+ "text": {
37392
+ "type": "string",
37393
+ "description": "Normalized question text for this answer."
37394
+ },
37395
+ "raw": {
37396
+ "type": "string",
37397
+ "description": "Raw question text as asked by the user."
37398
+ }
37399
+ }
37400
+ },
37401
+ "thread": {
37402
+ "type": "object",
37403
+ "required": [
37404
+ "id",
37405
+ "previous"
37406
+ ],
37407
+ "properties": {
37408
+ "id": {
37409
+ "type": "string",
37410
+ "description": "The ID of the thread this answer belongs to."
37411
+ },
37412
+ "previous": {
37413
+ "type": "string",
37414
+ "description": "ID of the previous answer in the same thread."
37415
+ }
37416
+ }
37417
+ },
37418
+ "session": {
37419
+ "$ref": "#/components/schemas/SiteInsightsSession"
37420
+ },
37421
+ "feedback": {
37422
+ "type": "object",
37423
+ "required": [
37424
+ "rating"
37425
+ ],
37426
+ "properties": {
37427
+ "rating": {
37428
+ "type": "integer",
37429
+ "enum": [
37430
+ -1,
37431
+ 1
37432
+ ],
37433
+ "description": "Feedback rating provided by the user."
37434
+ }
37435
+ }
37436
+ },
37437
+ "responseId": {
37438
+ "type": "string",
37439
+ "description": "The response identifier for this answer."
37440
+ },
37441
+ "language": {
37442
+ "type": "string",
37443
+ "description": "ISO language code of the question."
37444
+ },
37445
+ "answered": {
37446
+ "$ref": "#/components/schemas/SiteQuestionAnswerResolution"
37447
+ },
37448
+ "confidence": {
37449
+ "$ref": "#/components/schemas/SiteQuestionAnswerConfidence"
37450
+ },
37451
+ "relevance": {
37452
+ "$ref": "#/components/schemas/SiteQuestionAnswerRelevance"
37453
+ },
37454
+ "createdAt": {
37455
+ "$ref": "#/components/schemas/Timestamp"
37456
+ },
37457
+ "updatedAt": {
37458
+ "$ref": "#/components/schemas/Timestamp"
37459
+ },
37460
+ "urls": {
37461
+ "type": "object",
37462
+ "description": "URLs associated with the site question answer.",
37463
+ "properties": {
37464
+ "location": {
37465
+ "type": "string",
37466
+ "format": "uri",
37467
+ "description": "URL of the site question answer in the API."
37468
+ }
37469
+ },
37470
+ "required": [
37471
+ "location"
37472
+ ]
36513
37473
  }
36514
37474
  },
36515
37475
  "required": [
36516
- "type",
36517
- "siteSpace"
37476
+ "object",
37477
+ "id",
37478
+ "question",
37479
+ "input",
37480
+ "responseId",
37481
+ "language",
37482
+ "answered",
37483
+ "confidence",
37484
+ "relevance",
37485
+ "createdAt",
37486
+ "urls"
36518
37487
  ]
36519
37488
  },
36520
- "SiteSpaceMovePosition": {
36521
- "type": "object",
36522
- "description": "Position at which to move the site space to.",
36523
- "properties": {
36524
- "before": {
36525
- "$ref": "#/components/schemas/SiteSpacePointer"
36526
- },
36527
- "after": {
36528
- "$ref": "#/components/schemas/SiteSpacePointer"
36529
- }
36530
- }
37489
+ "AIMessageRole": {
37490
+ "type": "string",
37491
+ "enum": [
37492
+ "user",
37493
+ "assistant",
37494
+ "developer"
37495
+ ]
36531
37496
  },
36532
- "OrganizationPointer": {
37497
+ "AIToolCallGetPageContent": {
36533
37498
  "type": "object",
36534
37499
  "properties": {
36535
- "type": {
37500
+ "tool": {
36536
37501
  "type": "string",
36537
37502
  "enum": [
36538
- "organization"
37503
+ "getPageContent"
36539
37504
  ]
36540
37505
  },
36541
- "organization": {
37506
+ "spaceId": {
36542
37507
  "type": "string",
36543
- "description": "Unique identifier for the organization"
37508
+ "description": "The ID of the space being accessed."
37509
+ },
37510
+ "revisionId": {
37511
+ "type": "string",
37512
+ "description": "The ID of the revision within which the page content is being fetched."
37513
+ },
37514
+ "page": {
37515
+ "$ref": "#/components/schemas/ChangedRevisionPage"
36544
37516
  }
36545
37517
  },
36546
37518
  "required": [
36547
- "type",
36548
- "organization"
37519
+ "tool",
37520
+ "spaceId",
37521
+ "page",
37522
+ "revisionId"
36549
37523
  ]
36550
37524
  },
36551
- "UserSitePermission": {
37525
+ "AIToolCallGetPages": {
36552
37526
  "type": "object",
36553
- "description": "Permission of a user in a site.",
36554
37527
  "properties": {
36555
- "permission": {
36556
- "$ref": "#/components/schemas/MemberRoleOrGuest"
37528
+ "tool": {
37529
+ "type": "string",
37530
+ "enum": [
37531
+ "getPages"
37532
+ ]
36557
37533
  },
36558
- "user": {
36559
- "$ref": "#/components/schemas/User"
37534
+ "spaceId": {
37535
+ "type": "string",
37536
+ "description": "The ID of the space being accessed."
36560
37537
  },
36561
- "origin": {
36562
- "description": "The content or organization that enforced this permission level.",
36563
- "oneOf": [
36564
- {
36565
- "$ref": "#/components/schemas/SpacePointer"
36566
- },
36567
- {
36568
- "$ref": "#/components/schemas/OrganizationPointer"
36569
- }
36570
- ]
37538
+ "revisionId": {
37539
+ "type": "string",
37540
+ "description": "The revision ID of the space."
36571
37541
  }
36572
37542
  },
36573
37543
  "required": [
36574
- "permission",
36575
- "user",
36576
- "origin"
37544
+ "tool",
37545
+ "spaceId",
37546
+ "revisionId"
36577
37547
  ]
36578
37548
  },
36579
- "AIMessageContext": {
37549
+ "AIToolCallGetReusableContents": {
36580
37550
  "type": "object",
36581
- "description": "Context about the current user sending a message.",
36582
37551
  "properties": {
36583
- "location": {
36584
- "type": "object",
36585
- "properties": {
36586
- "spaceId": {
36587
- "type": "string",
36588
- "description": "ID of the current space."
36589
- },
36590
- "pageId": {
36591
- "type": "string",
36592
- "description": "ID of the current page."
36593
- }
36594
- },
36595
- "required": [
36596
- "spaceId",
36597
- "pageId"
37552
+ "tool": {
37553
+ "type": "string",
37554
+ "enum": [
37555
+ "getReusableContents"
36598
37556
  ]
37557
+ },
37558
+ "spaceId": {
37559
+ "type": "string",
37560
+ "description": "The ID of the space being accessed."
37561
+ },
37562
+ "revisionId": {
37563
+ "type": "string",
37564
+ "description": "The revision ID of the space."
36599
37565
  }
36600
- }
37566
+ },
37567
+ "required": [
37568
+ "tool",
37569
+ "spaceId",
37570
+ "revisionId"
37571
+ ]
36601
37572
  },
36602
- "AIAttachmentImage": {
37573
+ "AIToolCallSearchResultPage": {
36603
37574
  "type": "object",
37575
+ "title": "Page result",
37576
+ "description": "Result of a search matching a page.",
36604
37577
  "properties": {
36605
37578
  "type": {
36606
37579
  "type": "string",
36607
37580
  "enum": [
36608
- "image"
37581
+ "page"
36609
37582
  ]
36610
37583
  },
36611
- "url": {
36612
- "$ref": "#/components/schemas/URL"
37584
+ "spaceId": {
37585
+ "type": "string",
37586
+ "description": "The ID of the space"
37587
+ },
37588
+ "pageId": {
37589
+ "type": "string",
37590
+ "description": "The ID of the page"
37591
+ },
37592
+ "revisionId": {
37593
+ "type": "string",
37594
+ "description": "The revision ID of the result"
37595
+ },
37596
+ "anchor": {
37597
+ "type": "string",
37598
+ "description": "The anchor of the result"
37599
+ },
37600
+ "title": {
37601
+ "type": "string",
37602
+ "description": "The title of the result"
37603
+ },
37604
+ "description": {
37605
+ "type": "string",
37606
+ "description": "The description of the result"
36613
37607
  }
36614
37608
  },
36615
37609
  "required": [
36616
37610
  "type",
36617
- "url"
37611
+ "spaceId",
37612
+ "pageId",
37613
+ "revisionId",
37614
+ "title"
36618
37615
  ]
36619
37616
  },
36620
- "AIAttachmentFile": {
37617
+ "AIToolCallSearchResultRecord": {
36621
37618
  "type": "object",
37619
+ "title": "Site context record result",
37620
+ "description": "Result of a search matching a site context record.",
36622
37621
  "properties": {
36623
37622
  "type": {
36624
37623
  "type": "string",
36625
37624
  "enum": [
36626
- "file"
37625
+ "record"
36627
37626
  ]
36628
37627
  },
36629
- "url": {
36630
- "$ref": "#/components/schemas/URL"
37628
+ "siteId": {
37629
+ "type": "string",
37630
+ "description": "The ID of the site owning the context record"
36631
37631
  },
36632
- "filename": {
37632
+ "recordId": {
36633
37633
  "type": "string",
36634
- "description": "Name of the file."
37634
+ "description": "The ID of the context record"
36635
37635
  },
36636
- "contentType": {
37636
+ "title": {
36637
37637
  "type": "string",
36638
- "enum": [
36639
- "application/pdf"
36640
- ]
37638
+ "description": "The title of the record"
37639
+ },
37640
+ "description": {
37641
+ "type": "string",
37642
+ "description": "The description of the record"
37643
+ },
37644
+ "url": {
37645
+ "type": "string",
37646
+ "format": "uri",
37647
+ "description": "URL of the record in its original source"
36641
37648
  }
36642
37649
  },
36643
37650
  "required": [
36644
37651
  "type",
36645
- "url",
36646
- "filename",
36647
- "contentType"
37652
+ "siteId",
37653
+ "recordId",
37654
+ "title"
36648
37655
  ]
36649
37656
  },
36650
- "AIAttachment": {
37657
+ "AIToolCallSearchResult": {
37658
+ "description": "Result of a search",
36651
37659
  "oneOf": [
36652
37660
  {
36653
- "$ref": "#/components/schemas/AIAttachmentImage"
37661
+ "$ref": "#/components/schemas/AIToolCallSearchResultPage"
36654
37662
  },
36655
37663
  {
36656
- "$ref": "#/components/schemas/AIAttachmentFile"
37664
+ "$ref": "#/components/schemas/AIToolCallSearchResultRecord"
36657
37665
  }
36658
- ]
36659
- },
36660
- "AIMessageInput": {
36661
- "type": "object",
36662
- "description": "Input version of an AI message.",
36663
- "properties": {
36664
- "role": {
36665
- "type": "string",
36666
- "enum": [
36667
- "user"
36668
- ]
36669
- },
36670
- "content": {
36671
- "oneOf": [
36672
- {
36673
- "type": "string",
36674
- "maxLength": 2048
36675
- },
36676
- {
36677
- "$ref": "#/components/schemas/JSONDocument"
36678
- }
36679
- ]
36680
- },
36681
- "context": {
36682
- "$ref": "#/components/schemas/AIMessageContext"
36683
- },
36684
- "attachments": {
36685
- "type": "array",
36686
- "items": {
36687
- "$ref": "#/components/schemas/AIAttachment"
36688
- }
36689
- }
36690
- },
36691
- "required": [
36692
- "role",
36693
- "content"
36694
- ]
36695
- },
36696
- "AIModel": {
36697
- "type": "string",
36698
- "enum": [
36699
- "fast",
36700
- "reasoning-low",
36701
- "reasoning-medium",
36702
- "reasoning-high"
36703
- ]
36704
- },
36705
- "AIToolDefinition": {
36706
- "type": "object",
36707
- "description": "Description of a tool that can be called from an AI agent.",
36708
- "properties": {
36709
- "name": {
36710
- "type": "string",
36711
- "description": "The name of the tool. It should be unique within the agent."
36712
- },
36713
- "description": {
36714
- "type": "string",
36715
- "description": "The description of the tool, passed to the AI agent."
36716
- },
36717
- "inputSchema": {
36718
- "type": "object",
36719
- "description": "JSON schema describing the input of the tool.",
36720
- "properties": {
36721
- "type": {
36722
- "type": "string",
36723
- "enum": [
36724
- "object"
36725
- ]
36726
- },
36727
- "properties": {
36728
- "type": "object",
36729
- "additionalProperties": {
36730
- "type": "object",
36731
- "properties": {
36732
- "type": {
36733
- "type": "string",
36734
- "enum": [
36735
- "string",
36736
- "number",
36737
- "boolean",
36738
- "array",
36739
- "object"
36740
- ]
36741
- },
36742
- "description": {
36743
- "type": "string",
36744
- "description": "Description of the property."
36745
- }
36746
- },
36747
- "required": [
36748
- "type",
36749
- "description"
36750
- ],
36751
- "additionalProperties": true
36752
- }
36753
- }
36754
- },
36755
- "required": [
36756
- "type",
36757
- "properties"
36758
- ]
36759
- }
36760
- },
36761
- "required": [
36762
- "name",
36763
- "description"
36764
- ]
36765
- },
36766
- "AIToolCallOtherSummary": {
36767
- "type": "object",
36768
- "description": "Summary of a generic tool call.",
36769
- "properties": {
36770
- "icon": {
36771
- "$ref": "#/components/schemas/Icon"
36772
- },
36773
- "text": {
36774
- "type": "string",
36775
- "description": "Text to display to the user to describe the tool call."
36776
- }
36777
- },
36778
- "required": [
36779
- "icon",
36780
- "text"
36781
- ]
36782
- },
36783
- "AIToolCallResult": {
36784
- "type": "object",
36785
- "description": "Result of a tool call.",
36786
- "required": [
36787
- "tool",
36788
- "toolCallId",
36789
- "output"
36790
37666
  ],
36791
- "properties": {
36792
- "tool": {
36793
- "type": "string",
36794
- "description": "The name of the tool that was called."
36795
- },
36796
- "toolCallId": {
36797
- "type": "string",
36798
- "description": "The ID of the tool call."
36799
- },
36800
- "output": {
36801
- "type": "object",
36802
- "description": "The output to the tool call."
36803
- },
36804
- "summary": {
36805
- "$ref": "#/components/schemas/AIToolCallOtherSummary"
36806
- }
36807
- }
36808
- },
36809
- "AIMessageTask": {
36810
- "oneOf": [
36811
- {
36812
- "type": "object",
36813
- "description": "When the agent is responding to a comment.",
36814
- "properties": {
36815
- "type": {
36816
- "type": "string",
36817
- "enum": [
36818
- "respond_to_comment"
36819
- ]
36820
- },
36821
- "spaceId": {
36822
- "type": "string",
36823
- "description": "The ID of the space to respond to the comment in."
36824
- },
36825
- "changeRequestId": {
36826
- "type": "string",
36827
- "description": "The ID of the change request to respond to the comment in."
36828
- },
36829
- "commentId": {
36830
- "type": "string",
36831
- "description": "The ID of the comment to respond to."
36832
- }
36833
- },
36834
- "required": [
36835
- "type",
36836
- "spaceId",
36837
- "commentId"
36838
- ]
36839
- },
36840
- {
36841
- "type": "object",
36842
- "description": "When the agent is reviewing a change request.",
36843
- "properties": {
36844
- "type": {
36845
- "type": "string",
36846
- "enum": [
36847
- "review_change_request"
36848
- ]
36849
- },
36850
- "spaceId": {
36851
- "type": "string",
36852
- "description": "The ID of the space the change request is in."
36853
- },
36854
- "changeRequestId": {
36855
- "type": "string",
36856
- "description": "The ID of the change request to review."
36857
- }
36858
- },
36859
- "required": [
36860
- "type",
36861
- "spaceId",
36862
- "changeRequestId"
36863
- ]
36864
- },
36865
- {
36866
- "type": "object",
36867
- "description": "When the agent is implementing a task in a change request.",
36868
- "properties": {
36869
- "type": {
36870
- "type": "string",
36871
- "enum": [
36872
- "implement_change_request"
36873
- ]
36874
- },
36875
- "spaceId": {
36876
- "type": "string",
36877
- "description": "The ID of the space the change request is in."
36878
- },
36879
- "changeRequestId": {
36880
- "type": "string",
36881
- "description": "The ID of the change request to implement the task in."
36882
- }
36883
- },
36884
- "required": [
36885
- "type",
36886
- "spaceId",
36887
- "changeRequestId"
36888
- ]
36889
- }
36890
- ]
36891
- },
36892
- "AIStreamResponseStart": {
36893
- "type": "object",
36894
- "description": "Message emitted by the server to indicate the start of the AI response.\n",
36895
- "properties": {
36896
- "type": {
36897
- "type": "string",
36898
- "enum": [
36899
- "response_start"
36900
- ]
36901
- },
36902
- "messageId": {
36903
- "type": "string",
36904
- "description": "The ID of the message that this event is composing.\n"
36905
- },
36906
- "task": {
36907
- "$ref": "#/components/schemas/AIMessageTask"
36908
- }
36909
- },
36910
- "required": [
36911
- "type",
36912
- "messageId"
36913
- ]
36914
- },
36915
- "AIMessageResponseMetadata": {
36916
- "description": "The response that generated this message.",
36917
- "type": "object",
36918
- "properties": {
36919
- "stopReason": {
36920
- "type": "string",
36921
- "description": "The reason the response was stopped. If not defined, the response finished normally.",
36922
- "enum": [
36923
- "aborted"
36924
- ]
36925
- },
36926
- "id": {
36927
- "type": "string",
36928
- "description": "The ID of the response that generated this message. It can be undefined if the stream was aborted."
36929
- },
36930
- "previous": {
36931
- "type": "string",
36932
- "description": "The ID of the previous response that this message is based on."
36933
- }
37667
+ "discriminator": {
37668
+ "propertyName": "type"
36934
37669
  }
36935
37670
  },
36936
- "AIStreamResponseFinish": {
36937
- "type": "object",
36938
- "description": "Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests.\n",
36939
- "properties": {
36940
- "type": {
36941
- "type": "string",
36942
- "enum": [
36943
- "response_finish"
36944
- ]
36945
- },
36946
- "messageId": {
36947
- "type": "string",
36948
- "description": "The ID of the message that this event is composing.\n"
36949
- },
36950
- "responseId": {
36951
- "type": "string",
36952
- "deprecated": true,
36953
- "description": "The ID of the response"
36954
- },
36955
- "response": {
36956
- "description": "The response metadata associated with the message.",
36957
- "$ref": "#/components/schemas/AIMessageResponseMetadata"
36958
- }
36959
- },
36960
- "required": [
36961
- "type",
36962
- "messageId",
36963
- "response"
36964
- ]
36965
- },
36966
- "AIStreamResponseDocument": {
36967
- "type": "object",
36968
- "description": "Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block.\n",
36969
- "properties": {
36970
- "type": {
36971
- "type": "string",
36972
- "enum": [
36973
- "response_document",
36974
- "response_reasoning"
36975
- ]
36976
- },
36977
- "messageId": {
36978
- "type": "string",
36979
- "description": "The ID of the message that this event is composing.\n"
36980
- },
36981
- "stepIndex": {
36982
- "type": "integer",
36983
- "description": "The index of the step of the message that this event is composing.\n"
36984
- },
36985
- "operation": {
36986
- "type": "string",
36987
- "enum": [
36988
- "insert",
36989
- "update"
36990
- ]
36991
- },
36992
- "blocks": {
36993
- "type": "array",
36994
- "items": {
36995
- "$ref": "#/components/schemas/DocumentBlocksTopLevels"
36996
- }
36997
- }
36998
- },
36999
- "required": [
37000
- "type",
37001
- "messageId",
37002
- "stepIndex",
37003
- "operation",
37004
- "blocks"
37005
- ]
37006
- },
37007
- "AIStreamResponseObject": {
37008
- "type": "object",
37009
- "description": "Message emitted by the server to indicate a chunk of the JSON object response.\n",
37010
- "properties": {
37011
- "type": {
37012
- "type": "string",
37013
- "enum": [
37014
- "response_object"
37015
- ]
37016
- },
37017
- "messageId": {
37018
- "type": "string",
37019
- "description": "The ID of the message that this event is composing.\n"
37020
- },
37021
- "jsonChunk": {
37022
- "type": "string",
37023
- "description": "The chunk of the JSON object response"
37024
- }
37025
- },
37026
- "required": [
37027
- "type",
37028
- "messageId",
37029
- "jsonChunk"
37030
- ]
37031
- },
37032
- "AIToolCallGetPageContent": {
37033
- "type": "object",
37034
- "properties": {
37035
- "tool": {
37036
- "type": "string",
37037
- "enum": [
37038
- "getPageContent"
37039
- ]
37040
- },
37041
- "spaceId": {
37042
- "type": "string",
37043
- "description": "The ID of the space being accessed."
37044
- },
37045
- "revisionId": {
37046
- "type": "string",
37047
- "description": "The ID of the revision within which the page content is being fetched."
37048
- },
37049
- "page": {
37050
- "$ref": "#/components/schemas/ChangedRevisionPage"
37051
- }
37052
- },
37053
- "required": [
37054
- "tool",
37055
- "spaceId",
37056
- "page",
37057
- "revisionId"
37058
- ]
37059
- },
37060
- "AIToolCallGetPages": {
37061
- "type": "object",
37062
- "properties": {
37063
- "tool": {
37064
- "type": "string",
37065
- "enum": [
37066
- "getPages"
37067
- ]
37068
- },
37069
- "spaceId": {
37070
- "type": "string",
37071
- "description": "The ID of the space being accessed."
37072
- },
37073
- "revisionId": {
37074
- "type": "string",
37075
- "description": "The revision ID of the space."
37076
- }
37077
- },
37078
- "required": [
37079
- "tool",
37080
- "spaceId",
37081
- "revisionId"
37082
- ]
37083
- },
37084
- "AIToolCallGetReusableContents": {
37085
- "type": "object",
37086
- "properties": {
37087
- "tool": {
37088
- "type": "string",
37089
- "enum": [
37090
- "getReusableContents"
37091
- ]
37092
- },
37093
- "spaceId": {
37094
- "type": "string",
37095
- "description": "The ID of the space being accessed."
37096
- },
37097
- "revisionId": {
37098
- "type": "string",
37099
- "description": "The revision ID of the space."
37100
- }
37101
- },
37102
- "required": [
37103
- "tool",
37104
- "spaceId",
37105
- "revisionId"
37106
- ]
37107
- },
37108
- "AIToolCallSearchResult": {
37109
- "type": "object",
37110
- "description": "Result of a search",
37111
- "properties": {
37112
- "spaceId": {
37113
- "type": "string",
37114
- "description": "The ID of the space"
37115
- },
37116
- "pageId": {
37117
- "type": "string",
37118
- "description": "The ID of the page"
37119
- },
37120
- "revisionId": {
37121
- "type": "string",
37122
- "description": "The revision ID of the result"
37123
- },
37124
- "anchor": {
37125
- "type": "string",
37126
- "description": "The anchor of the result"
37127
- },
37128
- "title": {
37129
- "type": "string",
37130
- "description": "The title of the result"
37131
- },
37132
- "description": {
37133
- "type": "string",
37134
- "description": "The description of the result"
37135
- }
37136
- },
37137
- "required": [
37138
- "spaceId",
37139
- "pageId",
37140
- "revisionId",
37141
- "title"
37142
- ]
37143
- },
37144
37671
  "AIToolCallSearch": {
37145
37672
  "type": "object",
37146
37673
  "description": "Tool to search for content",
@@ -37450,233 +37977,1142 @@
37450
37977
  },
37451
37978
  "subject": {
37452
37979
  "type": "string",
37453
- "description": "A brief summary of the change request."
37980
+ "description": "A brief summary of the change request."
37981
+ }
37982
+ },
37983
+ "required": [
37984
+ "id",
37985
+ "number",
37986
+ "subject"
37987
+ ]
37988
+ }
37989
+ },
37990
+ "required": [
37991
+ "tool",
37992
+ "spaceId",
37993
+ "action",
37994
+ "changeRequest"
37995
+ ]
37996
+ },
37997
+ "AIToolCallComment": {
37998
+ "type": "object",
37999
+ "properties": {
38000
+ "tool": {
38001
+ "type": "string",
38002
+ "enum": [
38003
+ "comment"
38004
+ ]
38005
+ },
38006
+ "spaceId": {
38007
+ "type": "string",
38008
+ "description": "The ID of the space being commented."
38009
+ },
38010
+ "page": {
38011
+ "description": "The page being commented.",
38012
+ "$ref": "#/components/schemas/ChangedRevisionPage"
38013
+ },
38014
+ "commentId": {
38015
+ "type": "string",
38016
+ "description": "The ID of the comment being posted."
38017
+ }
38018
+ },
38019
+ "required": [
38020
+ "tool",
38021
+ "spaceId",
38022
+ "commentId"
38023
+ ]
38024
+ },
38025
+ "AIToolCallReplyToComment": {
38026
+ "type": "object",
38027
+ "properties": {
38028
+ "tool": {
38029
+ "type": "string",
38030
+ "enum": [
38031
+ "replyToComment"
38032
+ ]
38033
+ },
38034
+ "spaceId": {
38035
+ "type": "string",
38036
+ "description": "The ID of the space being commented."
38037
+ },
38038
+ "page": {
38039
+ "description": "The page being commented.",
38040
+ "$ref": "#/components/schemas/ChangedRevisionPage"
38041
+ },
38042
+ "commentId": {
38043
+ "type": "string",
38044
+ "description": "The ID of the comment being replied to."
38045
+ },
38046
+ "replyId": {
38047
+ "type": "string",
38048
+ "description": "The ID of the reply being posted."
38049
+ }
38050
+ },
38051
+ "required": [
38052
+ "tool",
38053
+ "spaceId",
38054
+ "commentId",
38055
+ "replyId"
38056
+ ]
38057
+ },
38058
+ "AIToolCallSubmitChangeRequestReview": {
38059
+ "type": "object",
38060
+ "properties": {
38061
+ "tool": {
38062
+ "type": "string",
38063
+ "enum": [
38064
+ "submitChangeRequestReview"
38065
+ ]
38066
+ },
38067
+ "spaceId": {
38068
+ "type": "string",
38069
+ "description": "The ID of the space where the review was submitted."
38070
+ },
38071
+ "changeRequestId": {
38072
+ "type": "string",
38073
+ "description": "The ID of the change request being reviewed."
38074
+ },
38075
+ "status": {
38076
+ "$ref": "#/components/schemas/ChangeRequestReviewStatus",
38077
+ "description": "Result of the review."
38078
+ },
38079
+ "reviewId": {
38080
+ "type": "string",
38081
+ "description": "Identifier of the review that was created."
38082
+ },
38083
+ "commentId": {
38084
+ "type": "string",
38085
+ "description": "Identifier of the comment that was created as part of the review."
38086
+ }
38087
+ },
38088
+ "required": [
38089
+ "tool",
38090
+ "spaceId",
38091
+ "changeRequestId",
38092
+ "status",
38093
+ "reviewId",
38094
+ "commentId"
38095
+ ]
38096
+ },
38097
+ "AIToolCallMCP": {
38098
+ "type": "object",
38099
+ "description": "Tool called from an MCP server",
38100
+ "properties": {
38101
+ "tool": {
38102
+ "type": "string",
38103
+ "enum": [
38104
+ "mcp"
38105
+ ]
38106
+ },
38107
+ "mcpServerId": {
38108
+ "type": "string",
38109
+ "description": "The ID of the MCP server that has been called."
38110
+ },
38111
+ "mcpToolName": {
38112
+ "type": "string",
38113
+ "description": "The name of the tool that has been called."
38114
+ },
38115
+ "mcpToolTitle": {
38116
+ "type": "string",
38117
+ "description": "The title of the tool that has been called."
38118
+ }
38119
+ },
38120
+ "required": [
38121
+ "tool",
38122
+ "mcpServerId",
38123
+ "mcpToolName"
38124
+ ]
38125
+ },
38126
+ "AIToolCallOtherSummary": {
38127
+ "type": "object",
38128
+ "description": "Summary of a generic tool call.",
38129
+ "properties": {
38130
+ "icon": {
38131
+ "$ref": "#/components/schemas/Icon"
38132
+ },
38133
+ "text": {
38134
+ "type": "string",
38135
+ "description": "Text to display to the user to describe the tool call."
38136
+ }
38137
+ },
38138
+ "required": [
38139
+ "icon",
38140
+ "text"
38141
+ ]
38142
+ },
38143
+ "AIToolCallOther": {
38144
+ "type": "object",
38145
+ "description": "Any tool call that is unknown by GitBook",
38146
+ "properties": {
38147
+ "tool": {
38148
+ "type": "string",
38149
+ "enum": [
38150
+ "other"
38151
+ ]
38152
+ },
38153
+ "summary": {
38154
+ "$ref": "#/components/schemas/AIToolCallOtherSummary"
38155
+ }
38156
+ },
38157
+ "required": [
38158
+ "tool",
38159
+ "summary"
38160
+ ]
38161
+ },
38162
+ "AIToolCall": {
38163
+ "oneOf": [
38164
+ {
38165
+ "$ref": "#/components/schemas/AIToolCallGetPageContent"
38166
+ },
38167
+ {
38168
+ "$ref": "#/components/schemas/AIToolCallGetPages"
38169
+ },
38170
+ {
38171
+ "$ref": "#/components/schemas/AIToolCallGetReusableContents"
38172
+ },
38173
+ {
38174
+ "$ref": "#/components/schemas/AIToolCallSearch"
38175
+ },
38176
+ {
38177
+ "$ref": "#/components/schemas/AIToolCallEditPage"
38178
+ },
38179
+ {
38180
+ "$ref": "#/components/schemas/AIToolCallCreatePage"
38181
+ },
38182
+ {
38183
+ "$ref": "#/components/schemas/AIToolCallDeletePage"
38184
+ },
38185
+ {
38186
+ "$ref": "#/components/schemas/AIToolCallRenamePage"
38187
+ },
38188
+ {
38189
+ "$ref": "#/components/schemas/AIToolCallMovePage"
38190
+ },
38191
+ {
38192
+ "$ref": "#/components/schemas/AIToolCallListModifiedPages"
38193
+ },
38194
+ {
38195
+ "$ref": "#/components/schemas/AIToolCallGetPageDiff"
38196
+ },
38197
+ {
38198
+ "$ref": "#/components/schemas/AIToolCallCreateReusableContent"
38199
+ },
38200
+ {
38201
+ "$ref": "#/components/schemas/AIToolCallEditReusableContent"
38202
+ },
38203
+ {
38204
+ "$ref": "#/components/schemas/AIToolCallGetReusableContent"
38205
+ },
38206
+ {
38207
+ "$ref": "#/components/schemas/AIToolCallCreateChangeRequest"
38208
+ },
38209
+ {
38210
+ "$ref": "#/components/schemas/AIToolCallComment"
38211
+ },
38212
+ {
38213
+ "$ref": "#/components/schemas/AIToolCallReplyToComment"
38214
+ },
38215
+ {
38216
+ "$ref": "#/components/schemas/AIToolCallSubmitChangeRequestReview"
38217
+ },
38218
+ {
38219
+ "$ref": "#/components/schemas/AIToolCallMCP"
38220
+ },
38221
+ {
38222
+ "$ref": "#/components/schemas/AIToolCallOther"
38223
+ }
38224
+ ]
38225
+ },
38226
+ "Timerange": {
38227
+ "type": "object",
38228
+ "properties": {
38229
+ "start": {
38230
+ "$ref": "#/components/schemas/Timestamp"
38231
+ },
38232
+ "end": {
38233
+ "$ref": "#/components/schemas/Timestamp"
38234
+ }
38235
+ },
38236
+ "required": [
38237
+ "start",
38238
+ "end"
38239
+ ]
38240
+ },
38241
+ "AIAttachmentImage": {
38242
+ "type": "object",
38243
+ "properties": {
38244
+ "type": {
38245
+ "type": "string",
38246
+ "enum": [
38247
+ "image"
38248
+ ]
38249
+ },
38250
+ "url": {
38251
+ "$ref": "#/components/schemas/URL"
38252
+ }
38253
+ },
38254
+ "required": [
38255
+ "type",
38256
+ "url"
38257
+ ]
38258
+ },
38259
+ "AIAttachmentFile": {
38260
+ "type": "object",
38261
+ "properties": {
38262
+ "type": {
38263
+ "type": "string",
38264
+ "enum": [
38265
+ "file"
38266
+ ]
38267
+ },
38268
+ "url": {
38269
+ "$ref": "#/components/schemas/URL"
38270
+ },
38271
+ "filename": {
38272
+ "type": "string",
38273
+ "description": "Name of the file."
38274
+ },
38275
+ "contentType": {
38276
+ "type": "string",
38277
+ "enum": [
38278
+ "application/pdf"
38279
+ ]
38280
+ }
38281
+ },
38282
+ "required": [
38283
+ "type",
38284
+ "url",
38285
+ "filename",
38286
+ "contentType"
38287
+ ]
38288
+ },
38289
+ "AIAttachment": {
38290
+ "oneOf": [
38291
+ {
38292
+ "$ref": "#/components/schemas/AIAttachmentImage"
38293
+ },
38294
+ {
38295
+ "$ref": "#/components/schemas/AIAttachmentFile"
38296
+ }
38297
+ ]
38298
+ },
38299
+ "AIMessageStep": {
38300
+ "type": "object",
38301
+ "description": "A step in a message from the AI agent.",
38302
+ "properties": {
38303
+ "content": {
38304
+ "$ref": "#/components/schemas/JSONDocument"
38305
+ },
38306
+ "reasoning": {
38307
+ "$ref": "#/components/schemas/JSONDocument"
38308
+ },
38309
+ "toolCalls": {
38310
+ "type": "array",
38311
+ "items": {
38312
+ "$ref": "#/components/schemas/AIToolCall"
38313
+ }
38314
+ },
38315
+ "timing": {
38316
+ "type": "object",
38317
+ "description": "The timing of the step.",
38318
+ "properties": {
38319
+ "reasoning": {
38320
+ "$ref": "#/components/schemas/Timerange"
38321
+ }
38322
+ }
38323
+ },
38324
+ "attachments": {
38325
+ "type": "array",
38326
+ "items": {
38327
+ "$ref": "#/components/schemas/AIAttachment"
38328
+ }
38329
+ }
38330
+ },
38331
+ "required": [
38332
+ "content"
38333
+ ]
38334
+ },
38335
+ "AIMessageTask": {
38336
+ "oneOf": [
38337
+ {
38338
+ "type": "object",
38339
+ "description": "When the agent is responding to a comment.",
38340
+ "properties": {
38341
+ "type": {
38342
+ "type": "string",
38343
+ "enum": [
38344
+ "respond_to_comment"
38345
+ ]
38346
+ },
38347
+ "spaceId": {
38348
+ "type": "string",
38349
+ "description": "The ID of the space to respond to the comment in."
38350
+ },
38351
+ "changeRequestId": {
38352
+ "type": "string",
38353
+ "description": "The ID of the change request to respond to the comment in."
38354
+ },
38355
+ "commentId": {
38356
+ "type": "string",
38357
+ "description": "The ID of the comment to respond to."
38358
+ }
38359
+ },
38360
+ "required": [
38361
+ "type",
38362
+ "spaceId",
38363
+ "commentId"
38364
+ ]
38365
+ },
38366
+ {
38367
+ "type": "object",
38368
+ "description": "When the agent is reviewing a change request.",
38369
+ "properties": {
38370
+ "type": {
38371
+ "type": "string",
38372
+ "enum": [
38373
+ "review_change_request"
38374
+ ]
38375
+ },
38376
+ "spaceId": {
38377
+ "type": "string",
38378
+ "description": "The ID of the space the change request is in."
38379
+ },
38380
+ "changeRequestId": {
38381
+ "type": "string",
38382
+ "description": "The ID of the change request to review."
38383
+ }
38384
+ },
38385
+ "required": [
38386
+ "type",
38387
+ "spaceId",
38388
+ "changeRequestId"
38389
+ ]
38390
+ },
38391
+ {
38392
+ "type": "object",
38393
+ "description": "When the agent is implementing a task in a change request.",
38394
+ "properties": {
38395
+ "type": {
38396
+ "type": "string",
38397
+ "enum": [
38398
+ "implement_change_request"
38399
+ ]
38400
+ },
38401
+ "spaceId": {
38402
+ "type": "string",
38403
+ "description": "The ID of the space the change request is in."
38404
+ },
38405
+ "changeRequestId": {
38406
+ "type": "string",
38407
+ "description": "The ID of the change request to implement the task in."
38408
+ }
38409
+ },
38410
+ "required": [
38411
+ "type",
38412
+ "spaceId",
38413
+ "changeRequestId"
38414
+ ]
38415
+ }
38416
+ ]
38417
+ },
38418
+ "AIMessageResponseMetadata": {
38419
+ "description": "The response that generated this message.",
38420
+ "type": "object",
38421
+ "properties": {
38422
+ "stopReason": {
38423
+ "type": "string",
38424
+ "description": "The reason the response was stopped. If not defined, the response finished normally.",
38425
+ "enum": [
38426
+ "aborted"
38427
+ ]
38428
+ },
38429
+ "id": {
38430
+ "type": "string",
38431
+ "description": "The ID of the response that generated this message. It can be undefined if the stream was aborted."
38432
+ },
38433
+ "previous": {
38434
+ "type": "string",
38435
+ "description": "The ID of the previous response that this message is based on."
38436
+ }
38437
+ }
38438
+ },
38439
+ "AIMessage": {
38440
+ "type": "object",
38441
+ "properties": {
38442
+ "id": {
38443
+ "type": "string"
38444
+ },
38445
+ "role": {
38446
+ "$ref": "#/components/schemas/AIMessageRole"
38447
+ },
38448
+ "steps": {
38449
+ "type": "array",
38450
+ "items": {
38451
+ "$ref": "#/components/schemas/AIMessageStep"
38452
+ }
38453
+ },
38454
+ "task": {
38455
+ "$ref": "#/components/schemas/AIMessageTask"
38456
+ },
38457
+ "response": {
38458
+ "$ref": "#/components/schemas/AIMessageResponseMetadata"
38459
+ }
38460
+ },
38461
+ "required": [
38462
+ "id",
38463
+ "role",
38464
+ "steps"
38465
+ ]
38466
+ },
38467
+ "SiteQuestionAnswerWithResponse": {
38468
+ "allOf": [
38469
+ {
38470
+ "$ref": "#/components/schemas/SiteQuestionAnswer"
38471
+ },
38472
+ {
38473
+ "type": "object",
38474
+ "properties": {
38475
+ "response": {
38476
+ "$ref": "#/components/schemas/AIMessage"
38477
+ }
38478
+ },
38479
+ "required": [
38480
+ "response"
38481
+ ]
38482
+ }
38483
+ ]
38484
+ },
38485
+ "SiteQuestionAnswerSourceBase": {
38486
+ "type": "object",
38487
+ "properties": {
38488
+ "object": {
38489
+ "type": "string",
38490
+ "enum": [
38491
+ "site-question-answer-source"
38492
+ ]
38493
+ },
38494
+ "id": {
38495
+ "type": "string",
38496
+ "description": "The ID of the source."
38497
+ },
38498
+ "weight": {
38499
+ "type": "number",
38500
+ "description": "Relative weight of this source in the generated answer."
38501
+ },
38502
+ "title": {
38503
+ "type": "string",
38504
+ "description": "The title of the source."
38505
+ },
38506
+ "urls": {
38507
+ "type": "object",
38508
+ "description": "URLs associated with the site question answer.",
38509
+ "properties": {
38510
+ "location": {
38511
+ "type": "string",
38512
+ "format": "uri",
38513
+ "description": "URL of the site question answer in the API."
38514
+ }
38515
+ },
38516
+ "required": [
38517
+ "location"
38518
+ ]
38519
+ }
38520
+ },
38521
+ "required": [
38522
+ "object",
38523
+ "id",
38524
+ "title",
38525
+ "weight",
38526
+ "urls"
38527
+ ]
38528
+ },
38529
+ "SiteQuestionAnswerSourcePage": {
38530
+ "allOf": [
38531
+ {
38532
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
38533
+ },
38534
+ {
38535
+ "type": "object",
38536
+ "title": "Page source",
38537
+ "description": "Source data pointing to a page used for a site question answer.",
38538
+ "properties": {
38539
+ "type": {
38540
+ "type": "string",
38541
+ "enum": [
38542
+ "page"
38543
+ ]
38544
+ },
38545
+ "space": {
38546
+ "type": "string",
38547
+ "description": "The space ID of the source page."
38548
+ },
38549
+ "revision": {
38550
+ "type": "string",
38551
+ "description": "The revision ID used for this source page."
38552
+ },
38553
+ "page": {
38554
+ "type": "string",
38555
+ "description": "The page ID of the source page."
38556
+ }
38557
+ },
38558
+ "required": [
38559
+ "type",
38560
+ "space",
38561
+ "revision",
38562
+ "page"
38563
+ ]
38564
+ }
38565
+ ]
38566
+ },
38567
+ "SiteQuestionAnswerSourceRecord": {
38568
+ "allOf": [
38569
+ {
38570
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourceBase"
38571
+ },
38572
+ {
38573
+ "type": "object",
38574
+ "properties": {
38575
+ "type": {
38576
+ "type": "string",
38577
+ "enum": [
38578
+ "record"
38579
+ ]
38580
+ },
38581
+ "record": {
38582
+ "type": "string",
38583
+ "description": "The site context record ID."
38584
+ }
38585
+ },
38586
+ "required": [
38587
+ "type",
38588
+ "record"
38589
+ ]
38590
+ }
38591
+ ]
38592
+ },
38593
+ "SiteQuestionAnswerSource": {
38594
+ "oneOf": [
38595
+ {
38596
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourcePage"
38597
+ },
38598
+ {
38599
+ "$ref": "#/components/schemas/SiteQuestionAnswerSourceRecord"
38600
+ }
38601
+ ],
38602
+ "discriminator": {
38603
+ "propertyName": "type"
38604
+ }
38605
+ },
38606
+ "SiteSpaceCustomizationSettings": {
38607
+ "allOf": [
38608
+ {
38609
+ "$ref": "#/components/schemas/SiteCustomizationSettings"
38610
+ },
38611
+ {
38612
+ "type": "object",
38613
+ "properties": {
38614
+ "hasOverrides": {
38615
+ "type": "boolean",
38616
+ "description": "Indicates whether the site customization settings have been overridden."
38617
+ }
38618
+ },
38619
+ "required": [
38620
+ "hasOverrides"
38621
+ ]
38622
+ }
38623
+ ]
38624
+ },
38625
+ "SiteSectionGroupPointer": {
38626
+ "type": "object",
38627
+ "properties": {
38628
+ "type": {
38629
+ "type": "string",
38630
+ "enum": [
38631
+ "site-section",
38632
+ "site-section-group"
38633
+ ]
38634
+ },
38635
+ "id": {
38636
+ "type": "string",
38637
+ "description": "Unique identifier for the site section"
38638
+ }
38639
+ },
38640
+ "required": [
38641
+ "type",
38642
+ "id"
38643
+ ]
38644
+ },
38645
+ "SiteSectionGroupMovePosition": {
38646
+ "type": "object",
38647
+ "description": "Position at which to move the site section group.",
38648
+ "properties": {
38649
+ "before": {
38650
+ "$ref": "#/components/schemas/SiteSectionGroupPointer"
38651
+ },
38652
+ "after": {
38653
+ "$ref": "#/components/schemas/SiteSectionGroupPointer"
38654
+ }
38655
+ }
38656
+ },
38657
+ "SiteSectionPointer": {
38658
+ "type": "object",
38659
+ "properties": {
38660
+ "type": {
38661
+ "type": "string",
38662
+ "enum": [
38663
+ "site-section"
38664
+ ]
38665
+ },
38666
+ "siteSection": {
38667
+ "type": "string",
38668
+ "description": "Unique identifier for the site section"
38669
+ }
38670
+ },
38671
+ "required": [
38672
+ "type",
38673
+ "siteSection"
38674
+ ]
38675
+ },
38676
+ "SiteSectionMovePosition": {
38677
+ "type": "object",
38678
+ "description": "Position at which to move the site section to.",
38679
+ "properties": {
38680
+ "before": {
38681
+ "$ref": "#/components/schemas/SiteSectionPointer"
38682
+ },
38683
+ "after": {
38684
+ "$ref": "#/components/schemas/SiteSectionPointer"
38685
+ }
38686
+ }
38687
+ },
38688
+ "SiteSpacePointer": {
38689
+ "type": "object",
38690
+ "properties": {
38691
+ "type": {
38692
+ "type": "string",
38693
+ "enum": [
38694
+ "site-space"
38695
+ ]
38696
+ },
38697
+ "siteSpace": {
38698
+ "type": "string",
38699
+ "description": "Unique identifier for the site space"
38700
+ }
38701
+ },
38702
+ "required": [
38703
+ "type",
38704
+ "siteSpace"
38705
+ ]
38706
+ },
38707
+ "SiteSpaceMovePosition": {
38708
+ "type": "object",
38709
+ "description": "Position at which to move the site space to.",
38710
+ "properties": {
38711
+ "before": {
38712
+ "$ref": "#/components/schemas/SiteSpacePointer"
38713
+ },
38714
+ "after": {
38715
+ "$ref": "#/components/schemas/SiteSpacePointer"
38716
+ }
38717
+ }
38718
+ },
38719
+ "InviteSiteUsersAndTeams": {
38720
+ "type": "object",
38721
+ "properties": {
38722
+ "role": {
38723
+ "description": "Role to set.",
38724
+ "$ref": "#/components/schemas/MemberRole"
38725
+ }
38726
+ },
38727
+ "anyOf": [
38728
+ {
38729
+ "type": "object",
38730
+ "properties": {
38731
+ "teams": {
38732
+ "type": "array",
38733
+ "minItems": 1,
38734
+ "items": {
38735
+ "type": "string",
38736
+ "description": "The ID of the team to be invited"
38737
+ }
38738
+ }
38739
+ },
38740
+ "required": [
38741
+ "teams"
38742
+ ]
38743
+ },
38744
+ {
38745
+ "type": "object",
38746
+ "properties": {
38747
+ "users": {
38748
+ "type": "array",
38749
+ "minItems": 1,
38750
+ "items": {
38751
+ "type": "string",
38752
+ "description": "The ID of the user to be invited"
38753
+ }
38754
+ }
38755
+ },
38756
+ "required": [
38757
+ "users"
38758
+ ]
38759
+ }
38760
+ ],
38761
+ "required": [
38762
+ "role"
38763
+ ]
38764
+ },
38765
+ "OrganizationPointer": {
38766
+ "type": "object",
38767
+ "properties": {
38768
+ "type": {
38769
+ "type": "string",
38770
+ "enum": [
38771
+ "organization"
38772
+ ]
38773
+ },
38774
+ "organization": {
38775
+ "type": "string",
38776
+ "description": "Unique identifier for the organization"
38777
+ }
38778
+ },
38779
+ "required": [
38780
+ "type",
38781
+ "organization"
38782
+ ]
38783
+ },
38784
+ "UserSitePermission": {
38785
+ "type": "object",
38786
+ "description": "Permission of a user in a site.",
38787
+ "properties": {
38788
+ "permission": {
38789
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
38790
+ },
38791
+ "user": {
38792
+ "$ref": "#/components/schemas/User"
38793
+ },
38794
+ "origin": {
38795
+ "description": "The content or organization that enforced this permission level.",
38796
+ "oneOf": [
38797
+ {
38798
+ "$ref": "#/components/schemas/SpacePointer"
38799
+ },
38800
+ {
38801
+ "$ref": "#/components/schemas/OrganizationPointer"
38802
+ }
38803
+ ]
38804
+ }
38805
+ },
38806
+ "required": [
38807
+ "permission",
38808
+ "user",
38809
+ "origin"
38810
+ ]
38811
+ },
38812
+ "UserSitePermissionOverride": {
38813
+ "type": "object",
38814
+ "description": "Permission override of a user in a site.",
38815
+ "properties": {
38816
+ "permission": {
38817
+ "$ref": "#/components/schemas/MemberRole"
38818
+ },
38819
+ "user": {
38820
+ "$ref": "#/components/schemas/User"
38821
+ }
38822
+ },
38823
+ "required": [
38824
+ "permission",
38825
+ "user"
38826
+ ]
38827
+ },
38828
+ "TeamSitePermissionOverride": {
38829
+ "type": "object",
38830
+ "description": "Permission override of a team in a site.",
38831
+ "properties": {
38832
+ "permission": {
38833
+ "$ref": "#/components/schemas/MemberRole"
38834
+ },
38835
+ "team": {
38836
+ "$ref": "#/components/schemas/OrganizationTeam"
38837
+ }
38838
+ },
38839
+ "required": [
38840
+ "permission",
38841
+ "team"
38842
+ ]
38843
+ },
38844
+ "AIMessageContext": {
38845
+ "type": "object",
38846
+ "description": "Context about the current user sending a message.",
38847
+ "properties": {
38848
+ "location": {
38849
+ "type": "object",
38850
+ "properties": {
38851
+ "spaceId": {
38852
+ "type": "string",
38853
+ "description": "ID of the current space."
38854
+ },
38855
+ "pageId": {
38856
+ "type": "string",
38857
+ "description": "ID of the current page."
38858
+ }
38859
+ },
38860
+ "required": [
38861
+ "spaceId",
38862
+ "pageId"
38863
+ ]
38864
+ }
38865
+ }
38866
+ },
38867
+ "AIMessageInput": {
38868
+ "type": "object",
38869
+ "description": "Input version of an AI message.",
38870
+ "properties": {
38871
+ "role": {
38872
+ "type": "string",
38873
+ "enum": [
38874
+ "user"
38875
+ ]
38876
+ },
38877
+ "content": {
38878
+ "oneOf": [
38879
+ {
38880
+ "type": "string",
38881
+ "maxLength": 2048
38882
+ },
38883
+ {
38884
+ "$ref": "#/components/schemas/JSONDocument"
38885
+ }
38886
+ ]
38887
+ },
38888
+ "context": {
38889
+ "$ref": "#/components/schemas/AIMessageContext"
38890
+ },
38891
+ "attachments": {
38892
+ "type": "array",
38893
+ "items": {
38894
+ "$ref": "#/components/schemas/AIAttachment"
38895
+ }
38896
+ }
38897
+ },
38898
+ "required": [
38899
+ "role",
38900
+ "content"
38901
+ ]
38902
+ },
38903
+ "AIModel": {
38904
+ "type": "string",
38905
+ "enum": [
38906
+ "fast",
38907
+ "reasoning-low",
38908
+ "reasoning-medium",
38909
+ "reasoning-high"
38910
+ ]
38911
+ },
38912
+ "AIToolDefinition": {
38913
+ "type": "object",
38914
+ "description": "Description of a tool that can be called from an AI agent.",
38915
+ "properties": {
38916
+ "name": {
38917
+ "type": "string",
38918
+ "description": "The name of the tool. It should be unique within the agent."
38919
+ },
38920
+ "description": {
38921
+ "type": "string",
38922
+ "description": "The description of the tool, passed to the AI agent."
38923
+ },
38924
+ "inputSchema": {
38925
+ "type": "object",
38926
+ "description": "JSON schema describing the input of the tool.",
38927
+ "properties": {
38928
+ "type": {
38929
+ "type": "string",
38930
+ "enum": [
38931
+ "object"
38932
+ ]
38933
+ },
38934
+ "properties": {
38935
+ "type": "object",
38936
+ "additionalProperties": {
38937
+ "type": "object",
38938
+ "properties": {
38939
+ "type": {
38940
+ "type": "string",
38941
+ "enum": [
38942
+ "string",
38943
+ "number",
38944
+ "boolean",
38945
+ "array",
38946
+ "object"
38947
+ ]
38948
+ },
38949
+ "description": {
38950
+ "type": "string",
38951
+ "description": "Description of the property."
38952
+ }
38953
+ },
38954
+ "required": [
38955
+ "type",
38956
+ "description"
38957
+ ],
38958
+ "additionalProperties": true
38959
+ }
37454
38960
  }
37455
38961
  },
37456
38962
  "required": [
37457
- "id",
37458
- "number",
37459
- "subject"
38963
+ "type",
38964
+ "properties"
37460
38965
  ]
37461
38966
  }
37462
38967
  },
37463
38968
  "required": [
37464
- "tool",
37465
- "spaceId",
37466
- "action",
37467
- "changeRequest"
38969
+ "name",
38970
+ "description"
37468
38971
  ]
37469
38972
  },
37470
- "AIToolCallComment": {
38973
+ "AIToolCallResult": {
37471
38974
  "type": "object",
38975
+ "description": "Result of a tool call.",
38976
+ "required": [
38977
+ "tool",
38978
+ "toolCallId",
38979
+ "output"
38980
+ ],
37472
38981
  "properties": {
37473
38982
  "tool": {
37474
38983
  "type": "string",
37475
- "enum": [
37476
- "comment"
37477
- ]
38984
+ "description": "The name of the tool that was called."
37478
38985
  },
37479
- "spaceId": {
38986
+ "toolCallId": {
37480
38987
  "type": "string",
37481
- "description": "The ID of the space being commented."
38988
+ "description": "The ID of the tool call."
37482
38989
  },
37483
- "page": {
37484
- "description": "The page being commented.",
37485
- "$ref": "#/components/schemas/ChangedRevisionPage"
38990
+ "output": {
38991
+ "type": "object",
38992
+ "description": "The output to the tool call."
37486
38993
  },
37487
- "commentId": {
37488
- "type": "string",
37489
- "description": "The ID of the comment being posted."
38994
+ "summary": {
38995
+ "$ref": "#/components/schemas/AIToolCallOtherSummary"
37490
38996
  }
37491
- },
37492
- "required": [
37493
- "tool",
37494
- "spaceId",
37495
- "commentId"
37496
- ]
38997
+ }
37497
38998
  },
37498
- "AIToolCallReplyToComment": {
38999
+ "AIStreamResponseStart": {
37499
39000
  "type": "object",
39001
+ "description": "Message emitted by the server to indicate the start of the AI response.\n",
37500
39002
  "properties": {
37501
- "tool": {
39003
+ "type": {
37502
39004
  "type": "string",
37503
39005
  "enum": [
37504
- "replyToComment"
39006
+ "response_start"
37505
39007
  ]
37506
39008
  },
37507
- "spaceId": {
37508
- "type": "string",
37509
- "description": "The ID of the space being commented."
37510
- },
37511
- "page": {
37512
- "description": "The page being commented.",
37513
- "$ref": "#/components/schemas/ChangedRevisionPage"
37514
- },
37515
- "commentId": {
39009
+ "messageId": {
37516
39010
  "type": "string",
37517
- "description": "The ID of the comment being replied to."
39011
+ "description": "The ID of the message that this event is composing.\n"
37518
39012
  },
37519
- "replyId": {
37520
- "type": "string",
37521
- "description": "The ID of the reply being posted."
39013
+ "task": {
39014
+ "$ref": "#/components/schemas/AIMessageTask"
37522
39015
  }
37523
39016
  },
37524
39017
  "required": [
37525
- "tool",
37526
- "spaceId",
37527
- "commentId",
37528
- "replyId"
39018
+ "type",
39019
+ "messageId"
37529
39020
  ]
37530
39021
  },
37531
- "AIToolCallSubmitChangeRequestReview": {
39022
+ "AIStreamResponseFinish": {
37532
39023
  "type": "object",
39024
+ "description": "Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests.\n",
37533
39025
  "properties": {
37534
- "tool": {
39026
+ "type": {
37535
39027
  "type": "string",
37536
39028
  "enum": [
37537
- "submitChangeRequestReview"
39029
+ "response_finish"
37538
39030
  ]
37539
39031
  },
37540
- "spaceId": {
37541
- "type": "string",
37542
- "description": "The ID of the space where the review was submitted."
37543
- },
37544
- "changeRequestId": {
39032
+ "messageId": {
37545
39033
  "type": "string",
37546
- "description": "The ID of the change request being reviewed."
37547
- },
37548
- "status": {
37549
- "$ref": "#/components/schemas/ChangeRequestReviewStatus",
37550
- "description": "Result of the review."
39034
+ "description": "The ID of the message that this event is composing.\n"
37551
39035
  },
37552
- "reviewId": {
39036
+ "responseId": {
37553
39037
  "type": "string",
37554
- "description": "Identifier of the review that was created."
39038
+ "deprecated": true,
39039
+ "description": "The ID of the response"
37555
39040
  },
37556
- "commentId": {
37557
- "type": "string",
37558
- "description": "Identifier of the comment that was created as part of the review."
39041
+ "response": {
39042
+ "description": "The response metadata associated with the message.",
39043
+ "$ref": "#/components/schemas/AIMessageResponseMetadata"
37559
39044
  }
37560
39045
  },
37561
39046
  "required": [
37562
- "tool",
37563
- "spaceId",
37564
- "changeRequestId",
37565
- "status",
37566
- "reviewId",
37567
- "commentId"
39047
+ "type",
39048
+ "messageId",
39049
+ "response"
37568
39050
  ]
37569
39051
  },
37570
- "AIToolCallMCP": {
39052
+ "AIStreamResponseDocument": {
37571
39053
  "type": "object",
37572
- "description": "Tool called from an MCP server",
39054
+ "description": "Message emitted by the server to indicate the latest block of the document. The block can either be a new block or an update to the previous block.\n",
37573
39055
  "properties": {
37574
- "tool": {
39056
+ "type": {
37575
39057
  "type": "string",
37576
39058
  "enum": [
37577
- "mcp"
39059
+ "response_document",
39060
+ "response_reasoning"
37578
39061
  ]
37579
39062
  },
37580
- "mcpServerId": {
39063
+ "messageId": {
37581
39064
  "type": "string",
37582
- "description": "The ID of the MCP server that has been called."
39065
+ "description": "The ID of the message that this event is composing.\n"
37583
39066
  },
37584
- "mcpToolName": {
37585
- "type": "string",
37586
- "description": "The name of the tool that has been called."
39067
+ "stepIndex": {
39068
+ "type": "integer",
39069
+ "description": "The index of the step of the message that this event is composing.\n"
37587
39070
  },
37588
- "mcpToolTitle": {
39071
+ "operation": {
37589
39072
  "type": "string",
37590
- "description": "The title of the tool that has been called."
39073
+ "enum": [
39074
+ "insert",
39075
+ "update"
39076
+ ]
39077
+ },
39078
+ "blocks": {
39079
+ "type": "array",
39080
+ "items": {
39081
+ "$ref": "#/components/schemas/DocumentBlocksTopLevels"
39082
+ }
37591
39083
  }
37592
39084
  },
37593
39085
  "required": [
37594
- "tool",
37595
- "mcpServerId",
37596
- "mcpToolName"
39086
+ "type",
39087
+ "messageId",
39088
+ "stepIndex",
39089
+ "operation",
39090
+ "blocks"
37597
39091
  ]
37598
39092
  },
37599
- "AIToolCallOther": {
39093
+ "AIStreamResponseObject": {
37600
39094
  "type": "object",
37601
- "description": "Any tool call that is unknown by GitBook",
39095
+ "description": "Message emitted by the server to indicate a chunk of the JSON object response.\n",
37602
39096
  "properties": {
37603
- "tool": {
39097
+ "type": {
37604
39098
  "type": "string",
37605
39099
  "enum": [
37606
- "other"
39100
+ "response_object"
37607
39101
  ]
37608
39102
  },
37609
- "summary": {
37610
- "$ref": "#/components/schemas/AIToolCallOtherSummary"
39103
+ "messageId": {
39104
+ "type": "string",
39105
+ "description": "The ID of the message that this event is composing.\n"
39106
+ },
39107
+ "jsonChunk": {
39108
+ "type": "string",
39109
+ "description": "The chunk of the JSON object response"
37611
39110
  }
37612
39111
  },
37613
39112
  "required": [
37614
- "tool",
37615
- "summary"
37616
- ]
37617
- },
37618
- "AIToolCall": {
37619
- "oneOf": [
37620
- {
37621
- "$ref": "#/components/schemas/AIToolCallGetPageContent"
37622
- },
37623
- {
37624
- "$ref": "#/components/schemas/AIToolCallGetPages"
37625
- },
37626
- {
37627
- "$ref": "#/components/schemas/AIToolCallGetReusableContents"
37628
- },
37629
- {
37630
- "$ref": "#/components/schemas/AIToolCallSearch"
37631
- },
37632
- {
37633
- "$ref": "#/components/schemas/AIToolCallEditPage"
37634
- },
37635
- {
37636
- "$ref": "#/components/schemas/AIToolCallCreatePage"
37637
- },
37638
- {
37639
- "$ref": "#/components/schemas/AIToolCallDeletePage"
37640
- },
37641
- {
37642
- "$ref": "#/components/schemas/AIToolCallRenamePage"
37643
- },
37644
- {
37645
- "$ref": "#/components/schemas/AIToolCallMovePage"
37646
- },
37647
- {
37648
- "$ref": "#/components/schemas/AIToolCallListModifiedPages"
37649
- },
37650
- {
37651
- "$ref": "#/components/schemas/AIToolCallGetPageDiff"
37652
- },
37653
- {
37654
- "$ref": "#/components/schemas/AIToolCallCreateReusableContent"
37655
- },
37656
- {
37657
- "$ref": "#/components/schemas/AIToolCallEditReusableContent"
37658
- },
37659
- {
37660
- "$ref": "#/components/schemas/AIToolCallGetReusableContent"
37661
- },
37662
- {
37663
- "$ref": "#/components/schemas/AIToolCallCreateChangeRequest"
37664
- },
37665
- {
37666
- "$ref": "#/components/schemas/AIToolCallComment"
37667
- },
37668
- {
37669
- "$ref": "#/components/schemas/AIToolCallReplyToComment"
37670
- },
37671
- {
37672
- "$ref": "#/components/schemas/AIToolCallSubmitChangeRequestReview"
37673
- },
37674
- {
37675
- "$ref": "#/components/schemas/AIToolCallMCP"
37676
- },
37677
- {
37678
- "$ref": "#/components/schemas/AIToolCallOther"
37679
- }
39113
+ "type",
39114
+ "messageId",
39115
+ "jsonChunk"
37680
39116
  ]
37681
39117
  },
37682
39118
  "AIStreamResponseToolCall": {
@@ -37843,71 +39279,68 @@
37843
39279
  ]
37844
39280
  },
37845
39281
  "SiteInsightsEventSession": {
37846
- "type": "object",
37847
- "description": "Analytics info on the GitBook's site session.",
37848
- "properties": {
37849
- "visitorId": {
37850
- "type": "string",
37851
- "description": "GitBook's unique identifier of the visitor."
37852
- },
37853
- "sessionId": {
37854
- "type": "string",
37855
- "description": "GitBook's unique identifier of the visitor's session."
39282
+ "allOf": [
39283
+ {
39284
+ "$ref": "#/components/schemas/SiteInsightsSession"
37856
39285
  },
37857
- "cookies": {
39286
+ {
37858
39287
  "type": "object",
37859
- "description": "The visitors cookies.",
37860
- "additionalProperties": {
37861
- "type": "string"
37862
- }
37863
- },
37864
- "ip": {
37865
- "type": "string",
37866
- "description": "IP address of the visitor.\nIf not defined, it'll default to the IP executing the request.\n"
37867
- },
37868
- "userAgent": {
37869
- "type": "string",
37870
- "description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
37871
- },
37872
- "language": {
37873
- "type": "string",
37874
- "nullable": true,
37875
- "description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
37876
- },
37877
- "referrer": {
37878
- "description": "Referrer of the session",
37879
- "oneOf": [
37880
- {
39288
+ "description": "Analytics info on the GitBook's site session.",
39289
+ "properties": {
39290
+ "cookies": {
39291
+ "type": "object",
39292
+ "description": "The visitors cookies.",
39293
+ "additionalProperties": {
39294
+ "type": "string"
39295
+ }
39296
+ },
39297
+ "ip": {
39298
+ "type": "string",
39299
+ "description": "IP address of the visitor.\nIf not defined, it'll default to the IP executing the request.\n"
39300
+ },
39301
+ "userAgent": {
39302
+ "type": "string",
39303
+ "description": "User-agent of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent\n"
39304
+ },
39305
+ "language": {
37881
39306
  "type": "string",
37882
39307
  "nullable": true,
37883
- "enum": [
37884
- null,
37885
- ""
39308
+ "description": "Language of the visitor.\nhttps://developer.mozilla.org/en-US/docs/Web/API/Navigator/language\n"
39309
+ },
39310
+ "referrer": {
39311
+ "description": "Referrer of the session",
39312
+ "oneOf": [
39313
+ {
39314
+ "type": "string",
39315
+ "nullable": true,
39316
+ "enum": [
39317
+ null,
39318
+ ""
39319
+ ]
39320
+ },
39321
+ {
39322
+ "$ref": "#/components/schemas/URL"
39323
+ }
37886
39324
  ]
37887
39325
  },
37888
- {
37889
- "$ref": "#/components/schemas/URL"
39326
+ "visitorAuthToken": {
39327
+ "type": "string",
39328
+ "nullable": true,
39329
+ "deprecated": true,
39330
+ "description": "Deprecated, use visitorAuthClaims instead."
39331
+ },
39332
+ "visitorAuthClaims": {
39333
+ "description": "Claims of the visitor.\nThis is used to identify the visitor with adaptive content.\n",
39334
+ "$ref": "#/components/schemas/PlainObject"
37890
39335
  }
39336
+ },
39337
+ "required": [
39338
+ "cookies",
39339
+ "userAgent",
39340
+ "language",
39341
+ "referrer"
37891
39342
  ]
37892
- },
37893
- "visitorAuthToken": {
37894
- "type": "string",
37895
- "nullable": true,
37896
- "deprecated": true,
37897
- "description": "Deprecated, use visitorAuthClaims instead."
37898
- },
37899
- "visitorAuthClaims": {
37900
- "description": "Claims of the visitor.\nThis is used to identify the visitor with adaptive content.\n",
37901
- "$ref": "#/components/schemas/PlainObject"
37902
39343
  }
37903
- },
37904
- "required": [
37905
- "visitorId",
37906
- "sessionId",
37907
- "cookies",
37908
- "userAgent",
37909
- "language",
37910
- "referrer"
37911
39344
  ]
37912
39345
  },
37913
39346
  "SiteInsightsDisplayContext": {
@@ -41109,6 +42542,59 @@
41109
42542
  }
41110
42543
  ]
41111
42544
  },
42545
+ "PublishedContentRedirect": {
42546
+ "oneOf": [
42547
+ {
42548
+ "type": "object",
42549
+ "title": "Redirect to the application or a different content in the site",
42550
+ "properties": {
42551
+ "target": {
42552
+ "type": "string",
42553
+ "description": "Type of target for the redirect",
42554
+ "enum": [
42555
+ "application",
42556
+ "content"
42557
+ ]
42558
+ },
42559
+ "redirect": {
42560
+ "$ref": "#/components/schemas/URL"
42561
+ }
42562
+ },
42563
+ "required": [
42564
+ "target",
42565
+ "redirect"
42566
+ ]
42567
+ },
42568
+ {
42569
+ "type": "object",
42570
+ "title": "Redirect to an external resource from the site",
42571
+ "properties": {
42572
+ "target": {
42573
+ "type": "string",
42574
+ "description": "Type of target for the redirect",
42575
+ "enum": [
42576
+ "external"
42577
+ ]
42578
+ },
42579
+ "site": {
42580
+ "type": "string",
42581
+ "description": "ID of the resolved site."
42582
+ },
42583
+ "redirect": {
42584
+ "$ref": "#/components/schemas/URL"
42585
+ }
42586
+ },
42587
+ "required": [
42588
+ "target",
42589
+ "site",
42590
+ "redirect"
42591
+ ]
42592
+ }
42593
+ ],
42594
+ "discriminator": {
42595
+ "propertyName": "target"
42596
+ }
42597
+ },
41112
42598
  "PublishedSiteContent": {
41113
42599
  "type": "object",
41114
42600
  "title": "Site Content",
@@ -41190,26 +42676,7 @@
41190
42676
  "PublishedSiteContentLookup": {
41191
42677
  "oneOf": [
41192
42678
  {
41193
- "type": "object",
41194
- "title": "Redirect",
41195
- "properties": {
41196
- "target": {
41197
- "type": "string",
41198
- "description": "Type of target for the redirect",
41199
- "enum": [
41200
- "application",
41201
- "content",
41202
- "external"
41203
- ]
41204
- },
41205
- "redirect": {
41206
- "$ref": "#/components/schemas/URL"
41207
- }
41208
- },
41209
- "required": [
41210
- "target",
41211
- "redirect"
41212
- ]
42679
+ "$ref": "#/components/schemas/PublishedContentRedirect"
41213
42680
  },
41214
42681
  {
41215
42682
  "$ref": "#/components/schemas/PublishedSiteContent"
@@ -41229,21 +42696,6 @@
41229
42696
  }
41230
42697
  }
41231
42698
  },
41232
- "Timerange": {
41233
- "type": "object",
41234
- "properties": {
41235
- "start": {
41236
- "$ref": "#/components/schemas/Timestamp"
41237
- },
41238
- "end": {
41239
- "$ref": "#/components/schemas/Timestamp"
41240
- }
41241
- },
41242
- "required": [
41243
- "start",
41244
- "end"
41245
- ]
41246
- },
41247
42699
  "SHA256": {
41248
42700
  "type": "string",
41249
42701
  "minLength": 64,
@@ -44009,6 +45461,14 @@
44009
45461
  "disabled"
44010
45462
  ]
44011
45463
  },
45464
+ "SiteQuestionAnswerSourceType": {
45465
+ "type": "string",
45466
+ "description": "Source type used to answer a site question.",
45467
+ "enum": [
45468
+ "page",
45469
+ "record"
45470
+ ]
45471
+ },
44012
45472
  "Seat": {
44013
45473
  "type": "object",
44014
45474
  "properties": {
@@ -44043,78 +45503,6 @@
44043
45503
  "updatedAt"
44044
45504
  ]
44045
45505
  },
44046
- "AIMessageRole": {
44047
- "type": "string",
44048
- "enum": [
44049
- "user",
44050
- "assistant",
44051
- "developer"
44052
- ]
44053
- },
44054
- "AIMessageStep": {
44055
- "type": "object",
44056
- "description": "A step in a message from the AI agent.",
44057
- "properties": {
44058
- "content": {
44059
- "$ref": "#/components/schemas/JSONDocument"
44060
- },
44061
- "reasoning": {
44062
- "$ref": "#/components/schemas/JSONDocument"
44063
- },
44064
- "toolCalls": {
44065
- "type": "array",
44066
- "items": {
44067
- "$ref": "#/components/schemas/AIToolCall"
44068
- }
44069
- },
44070
- "timing": {
44071
- "type": "object",
44072
- "description": "The timing of the step.",
44073
- "properties": {
44074
- "reasoning": {
44075
- "$ref": "#/components/schemas/Timerange"
44076
- }
44077
- }
44078
- },
44079
- "attachments": {
44080
- "type": "array",
44081
- "items": {
44082
- "$ref": "#/components/schemas/AIAttachment"
44083
- }
44084
- }
44085
- },
44086
- "required": [
44087
- "content"
44088
- ]
44089
- },
44090
- "AIMessage": {
44091
- "type": "object",
44092
- "properties": {
44093
- "id": {
44094
- "type": "string"
44095
- },
44096
- "role": {
44097
- "$ref": "#/components/schemas/AIMessageRole"
44098
- },
44099
- "steps": {
44100
- "type": "array",
44101
- "items": {
44102
- "$ref": "#/components/schemas/AIMessageStep"
44103
- }
44104
- },
44105
- "task": {
44106
- "$ref": "#/components/schemas/AIMessageTask"
44107
- },
44108
- "response": {
44109
- "$ref": "#/components/schemas/AIMessageResponseMetadata"
44110
- }
44111
- },
44112
- "required": [
44113
- "id",
44114
- "role",
44115
- "steps"
44116
- ]
44117
- },
44118
45506
  "AgentStreamMessages": {
44119
45507
  "type": "object",
44120
45508
  "description": "Payload emitted by the agent to reset the messages.\n",