@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.yaml CHANGED
@@ -161,12 +161,12 @@ tags:
161
161
  x-parent: sites
162
162
  description: |
163
163
  Manage the advertisement strategy within your docs. You can specify ad placements, track usage, and adjust settings to best fit your organization's needs.
164
- - name: site-users
165
- x-page-title: Site users
166
- x-page-description: Manage which users can access or contribute to a docs site.
164
+ - name: site-permissions
165
+ x-page-title: Site permissions
166
+ x-page-description: Manage which members and teams can access or contribute to a docs site.
167
167
  x-parent: sites
168
168
  description: |
169
- Invite, remove, or update user permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.
169
+ Invite, remove, or update users and teams permissions for a site. This provides a way to tightly control collaboration and visibility among your teammates.
170
170
  - name: site-insights
171
171
  x-page-title: Site insights
172
172
  x-page-description: Analyze traffic and engagement metrics for your docs site.
@@ -195,6 +195,16 @@ tags:
195
195
  {% openapi-schemas spec="gitbook" schemas="ContextRecord,ContextConnection,ContextTopic" grouped="false" %}
196
196
  The Site Context objects
197
197
  {% endopenapi-schemas %}
198
+ - name: site-questions
199
+ x-page-title: Site questions
200
+ x-page-description: Review questions, answers, and sources generated for a docs site.
201
+ x-parent: sites
202
+ description: |
203
+ Inspect the canonical questions asked on your site, the generated answers linked to each question, and the sources used for each answer.
204
+
205
+ {% openapi-schemas spec="gitbook" schemas="SiteQuestion,SiteQuestionAnswer,SiteQuestionAnswerWithResponse,SiteQuestionAnswerSource" grouped="false" %}
206
+ The Site Questions objects
207
+ {% endopenapi-schemas %}
198
208
  - name: collections
199
209
  x-page-icon: folder
200
210
  x-page-title: Collections
@@ -205,18 +215,12 @@ tags:
205
215
  {% openapi-schemas spec="gitbook" schemas="Collection" grouped="false" %}
206
216
  The Collection object
207
217
  {% endopenapi-schemas %}
208
- - name: collection-users
209
- x-page-title: Collection users
210
- x-page-description: Handle permissions and user management for a specific collection.
218
+ - name: collection-permissions
219
+ x-page-title: Collection permissions
220
+ x-page-description: Manage which members and teams can access or contribute to a collection of spaces.
211
221
  x-parent: collections
212
222
  description: |
213
- Control which users have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.
214
- - name: collection-teams
215
- x-page-title: Collection teams
216
- x-page-description: Allocate team-based permissions to your collections.
217
- x-parent: collections
218
- description: |
219
- Assign entire teams to a collection for easier role and permission management. Perfect for larger organizations looking to streamline content access.
223
+ Control which users and teams have access to a collection's spaces. This ensures only the right individuals can view or modify sensitive content.
220
224
  - name: spaces
221
225
  x-page-icon: book-sparkles
222
226
  x-page-title: Spaces
@@ -249,18 +253,12 @@ tags:
249
253
  x-parent: spaces
250
254
  description: |
251
255
  Automatically fetch metadata or previews for embedded resources such as videos, images, or external docs, enabling richer content experiences in your space.
252
- - name: space-users
253
- x-page-title: Space users
254
- x-page-description: Manage user roles and permissions on a per-space basis.
255
- x-parent: spaces
256
- description: |
257
- Give your collaborators the right level of access for specific spaces. This endpoint makes it simple to add, remove, or update space members individually.
258
- - name: space-teams
259
- x-page-title: Space teams
260
- x-page-description: Integrate team-based permissions for better collaboration in a space.
256
+ - name: space-permissions
257
+ x-page-title: Space permissions
258
+ x-page-description: Manage which members and teams roles and permissions on a per-space basis.
261
259
  x-parent: spaces
262
260
  description: |
263
- Assign entire teams to your spaces and streamline the process of granting or revoking access at scale, without dealing with individual user roles.
261
+ 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.
264
262
  - name: space-integrations
265
263
  x-page-title: Space integrations
266
264
  x-page-description: Connect external tools and plugins to enhance your space functionality.
@@ -941,8 +939,7 @@ paths:
941
939
  operationId: inviteToSpace
942
940
  summary: Invite a user or a team to a space
943
941
  tags:
944
- - space-users
945
- - space-teams
942
+ - space-permissions
946
943
  security:
947
944
  - user: []
948
945
  parameters:
@@ -962,9 +959,9 @@ paths:
962
959
  "/spaces/{spaceId}/permissions/teams/{teamId}":
963
960
  patch:
964
961
  operationId: updateTeamPermissionInSpace
965
- summary: Update a space team permission
962
+ summary: Update an org team's permission in a space
966
963
  tags:
967
- - space-teams
964
+ - space-permissions
968
965
  security:
969
966
  - user: []
970
967
  parameters:
@@ -987,9 +984,9 @@ paths:
987
984
  $ref: "#/components/responses/NotFoundError"
988
985
  delete:
989
986
  operationId: removeTeamFromSpace
990
- summary: Remove a space team
987
+ summary: Remove an org team from a space
991
988
  tags:
992
- - space-teams
989
+ - space-permissions
993
990
  security:
994
991
  - user: []
995
992
  parameters:
@@ -1008,7 +1005,7 @@ paths:
1008
1005
  operationId: listUserPermissionsInSpace
1009
1006
  summary: List space user permissions
1010
1007
  tags:
1011
- - space-users
1008
+ - space-permissions
1012
1009
  security:
1013
1010
  - user: []
1014
1011
  parameters:
@@ -1039,7 +1036,7 @@ paths:
1039
1036
  operationId: updateUserPermissionInSpace
1040
1037
  summary: Update space user permissions
1041
1038
  tags:
1042
- - space-users
1039
+ - space-permissions
1043
1040
  security:
1044
1041
  - user: []
1045
1042
  parameters:
@@ -1064,7 +1061,7 @@ paths:
1064
1061
  operationId: removeUserFromSpace
1065
1062
  summary: Remove a space user
1066
1063
  tags:
1067
- - space-users
1064
+ - space-permissions
1068
1065
  security:
1069
1066
  - user: []
1070
1067
  parameters:
@@ -1078,9 +1075,9 @@ paths:
1078
1075
  "/spaces/{spaceId}/permissions/teams":
1079
1076
  get:
1080
1077
  operationId: listTeamPermissionsInSpace
1081
- summary: List space team persmissions
1078
+ summary: List an org team's permission in a space
1082
1079
  tags:
1083
- - space-teams
1080
+ - space-permissions
1084
1081
  security:
1085
1082
  - user: []
1086
1083
  parameters:
@@ -3133,7 +3130,7 @@ paths:
3133
3130
  operationId: listPermissionsAggregateInSpace
3134
3131
  summary: List all space users permissions
3135
3132
  tags:
3136
- - space-users
3133
+ - space-permissions
3137
3134
  security:
3138
3135
  - user: []
3139
3136
  parameters:
@@ -3450,7 +3447,7 @@ paths:
3450
3447
  operationId: inviteToCollection
3451
3448
  summary: Invite to a collection
3452
3449
  tags:
3453
- - collection-users
3450
+ - collection-permissions
3454
3451
  security:
3455
3452
  - user: []
3456
3453
  parameters:
@@ -3470,9 +3467,9 @@ paths:
3470
3467
  "/collections/{collectionId}/permissions/teams":
3471
3468
  get:
3472
3469
  operationId: listTeamPermissionsInCollection
3473
- summary: List a collection team permissions
3470
+ summary: List an org team's permission in collection
3474
3471
  tags:
3475
- - collection-teams
3472
+ - collection-permissions
3476
3473
  security:
3477
3474
  - user: []
3478
3475
  parameters:
@@ -3507,9 +3504,9 @@ paths:
3507
3504
  "/collections/{collectionId}/permissions/teams/{teamId}":
3508
3505
  patch:
3509
3506
  operationId: updateTeamPermissionInCollection
3510
- summary: Update a collection team permission
3507
+ summary: Update an org team's permission in a collection
3511
3508
  tags:
3512
- - collection-teams
3509
+ - collection-permissions
3513
3510
  security:
3514
3511
  - user: []
3515
3512
  parameters:
@@ -3532,9 +3529,9 @@ paths:
3532
3529
  $ref: "#/components/responses/NotFoundError"
3533
3530
  delete:
3534
3531
  operationId: removeTeamFromCollection
3535
- summary: Remove a team from a collection
3532
+ summary: Remove an org team from a collection
3536
3533
  tags:
3537
- - collection-teams
3534
+ - collection-permissions
3538
3535
  security:
3539
3536
  - user: []
3540
3537
  parameters:
@@ -3550,7 +3547,7 @@ paths:
3550
3547
  operationId: listUserPermissionsInCollection
3551
3548
  summary: List collection user permissions
3552
3549
  tags:
3553
- - collection-users
3550
+ - collection-permissions
3554
3551
  security:
3555
3552
  - user: []
3556
3553
  parameters:
@@ -3581,7 +3578,7 @@ paths:
3581
3578
  operationId: updateUserPermissionInCollection
3582
3579
  summary: Update a collection user permission
3583
3580
  tags:
3584
- - collection-users
3581
+ - collection-permissions
3585
3582
  security:
3586
3583
  - user: []
3587
3584
  parameters:
@@ -3606,7 +3603,7 @@ paths:
3606
3603
  operationId: removeUserFromCollection
3607
3604
  summary: Remove a user from a collection
3608
3605
  tags:
3609
- - collection-users
3606
+ - collection-permissions
3610
3607
  security:
3611
3608
  - user: []
3612
3609
  parameters:
@@ -3622,7 +3619,7 @@ paths:
3622
3619
  operationId: listPermissionsAggregateInCollection
3623
3620
  summary: List all collections users permissions
3624
3621
  tags:
3625
- - collection-users
3622
+ - space-permissions
3626
3623
  security:
3627
3624
  - user: []
3628
3625
  parameters:
@@ -8336,6 +8333,22 @@ paths:
8336
8333
  application/json:
8337
8334
  schema:
8338
8335
  $ref: "#/components/schemas/ContextConnection"
8336
+ delete:
8337
+ operationId: deleteSiteContextConnectionById
8338
+ summary: Delete a context connection
8339
+ tags:
8340
+ - site-context
8341
+ security:
8342
+ - user: []
8343
+ parameters:
8344
+ - $ref: "#/components/parameters/organizationId"
8345
+ - $ref: "#/components/parameters/siteId"
8346
+ - $ref: "#/components/parameters/siteContextConnectionId"
8347
+ responses:
8348
+ "204":
8349
+ description: Context connection did not exist
8350
+ "205":
8351
+ description: Context connection deleted
8339
8352
  "/orgs/{organizationId}/sites/{siteId}/context-connections/{siteContextConnectionId}/sync":
8340
8353
  post:
8341
8354
  operationId: syncSiteContextConnection
@@ -8431,6 +8444,162 @@ paths:
8431
8444
  application/json:
8432
8445
  schema:
8433
8446
  $ref: "#/components/schemas/ContextTopic"
8447
+ "/orgs/{organizationId}/sites/{siteId}/questions":
8448
+ get:
8449
+ operationId: listSiteQuestions
8450
+ summary: List all questions in a site
8451
+ tags:
8452
+ - site-questions
8453
+ security:
8454
+ - user: []
8455
+ parameters:
8456
+ - $ref: "#/components/parameters/organizationId"
8457
+ - $ref: "#/components/parameters/siteId"
8458
+ - $ref: "#/components/parameters/listPage"
8459
+ - $ref: "#/components/parameters/listLimit"
8460
+ responses:
8461
+ "200":
8462
+ description: OK
8463
+ content:
8464
+ application/json:
8465
+ schema:
8466
+ allOf:
8467
+ - $ref: "#/components/schemas/List"
8468
+ - type: object
8469
+ required:
8470
+ - items
8471
+ properties:
8472
+ items:
8473
+ type: array
8474
+ items:
8475
+ $ref: "#/components/schemas/SiteQuestion"
8476
+ "/orgs/{organizationId}/sites/{siteId}/questions/{siteQuestionId}":
8477
+ get:
8478
+ operationId: getSiteQuestionById
8479
+ summary: Get a site question by ID
8480
+ tags:
8481
+ - site-questions
8482
+ security:
8483
+ - user: []
8484
+ parameters:
8485
+ - $ref: "#/components/parameters/organizationId"
8486
+ - $ref: "#/components/parameters/siteId"
8487
+ - $ref: "#/components/parameters/siteQuestionId"
8488
+ responses:
8489
+ "200":
8490
+ description: OK
8491
+ content:
8492
+ application/json:
8493
+ schema:
8494
+ $ref: "#/components/schemas/SiteQuestion"
8495
+ "/orgs/{organizationId}/sites/{siteId}/answers":
8496
+ get:
8497
+ operationId: listSiteQuestionAnswers
8498
+ summary: List all answers for a site
8499
+ tags:
8500
+ - site-questions
8501
+ security:
8502
+ - user: []
8503
+ parameters:
8504
+ - $ref: "#/components/parameters/organizationId"
8505
+ - $ref: "#/components/parameters/siteId"
8506
+ - name: question
8507
+ in: query
8508
+ description: Filter answers to a specific site question ID.
8509
+ schema:
8510
+ type: string
8511
+ - name: language
8512
+ in: query
8513
+ description: Filter answers by ISO language code.
8514
+ schema:
8515
+ type: string
8516
+ - name: answered
8517
+ in: query
8518
+ description: Filter answers by answered resolution.
8519
+ schema:
8520
+ $ref: "#/components/schemas/SiteQuestionAnswerResolution"
8521
+ - name: confidence
8522
+ in: query
8523
+ description: Filter answers by answered confidence.
8524
+ schema:
8525
+ $ref: "#/components/schemas/SiteQuestionAnswerConfidence"
8526
+ - name: relevance
8527
+ in: query
8528
+ description: Filter answers by question relevance.
8529
+ schema:
8530
+ $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8531
+ - name: thread
8532
+ in: query
8533
+ description: Filter answers by thread root answer ID. Includes the root answer itself.
8534
+ schema:
8535
+ type: string
8536
+ - $ref: "#/components/parameters/listPage"
8537
+ - $ref: "#/components/parameters/listLimit"
8538
+ responses:
8539
+ "200":
8540
+ description: OK
8541
+ content:
8542
+ application/json:
8543
+ schema:
8544
+ allOf:
8545
+ - $ref: "#/components/schemas/List"
8546
+ - type: object
8547
+ required:
8548
+ - items
8549
+ properties:
8550
+ items:
8551
+ type: array
8552
+ items:
8553
+ $ref: "#/components/schemas/SiteQuestionAnswer"
8554
+ "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}":
8555
+ get:
8556
+ operationId: getSiteQuestionAnswerById
8557
+ summary: Get a site answer by ID
8558
+ tags:
8559
+ - site-questions
8560
+ security:
8561
+ - user: []
8562
+ parameters:
8563
+ - $ref: "#/components/parameters/organizationId"
8564
+ - $ref: "#/components/parameters/siteId"
8565
+ - $ref: "#/components/parameters/siteQuestionAnswerId"
8566
+ responses:
8567
+ "200":
8568
+ description: OK
8569
+ content:
8570
+ application/json:
8571
+ schema:
8572
+ $ref: "#/components/schemas/SiteQuestionAnswerWithResponse"
8573
+ "/orgs/{organizationId}/sites/{siteId}/answers/{siteQuestionAnswerId}/sources":
8574
+ get:
8575
+ operationId: listSiteQuestionAnswerSources
8576
+ summary: List the sources for an answer
8577
+ tags:
8578
+ - site-questions
8579
+ security:
8580
+ - user: []
8581
+ parameters:
8582
+ - $ref: "#/components/parameters/organizationId"
8583
+ - $ref: "#/components/parameters/siteId"
8584
+ - $ref: "#/components/parameters/siteQuestionAnswerId"
8585
+ - $ref: "#/components/parameters/listPage"
8586
+ - $ref: "#/components/parameters/listLimit"
8587
+ responses:
8588
+ "200":
8589
+ description: OK
8590
+ content:
8591
+ application/json:
8592
+ schema:
8593
+ allOf:
8594
+ - $ref: "#/components/schemas/List"
8595
+ - type: object
8596
+ required:
8597
+ - items
8598
+ properties:
8599
+ items:
8600
+ type: array
8601
+ items:
8602
+ $ref: "#/components/schemas/SiteQuestionAnswerSource"
8434
8603
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
8435
8604
  patch:
8436
8605
  operationId: updateSiteSpaceById
@@ -9003,6 +9172,29 @@ paths:
9003
9172
  "404":
9004
9173
  description: No matching Site space found
9005
9174
  $ref: "#/components/responses/NotFoundError"
9175
+ "/orgs/{organizationId}/sites/{siteId}/permissions":
9176
+ post:
9177
+ operationId: inviteToSite
9178
+ summary: Invite a user or a team to a site
9179
+ tags:
9180
+ - site-permissions
9181
+ security:
9182
+ - user: []
9183
+ parameters:
9184
+ - $ref: "#/components/parameters/organizationId"
9185
+ - $ref: "#/components/parameters/siteId"
9186
+ responses:
9187
+ "204":
9188
+ description: OK
9189
+ "404":
9190
+ description: No team or user with the provided Id
9191
+ $ref: "#/components/responses/NotFoundError"
9192
+ requestBody:
9193
+ required: true
9194
+ content:
9195
+ application/json:
9196
+ schema:
9197
+ $ref: "#/components/schemas/InviteSiteUsersAndTeams"
9006
9198
  "/orgs/{organizationId}/sites/{siteId}/permissions/aggregate":
9007
9199
  get:
9008
9200
  operationId: listPermissionsAggregateInSite
@@ -9032,64 +9224,50 @@ paths:
9032
9224
  type: array
9033
9225
  items:
9034
9226
  $ref: "#/components/schemas/UserSitePermission"
9035
- "/orgs/{organizationId}/sites/{siteId}/ai/response":
9036
- post:
9037
- operationId: streamAIResponseInSite
9038
- summary: Generate an AI response in a site
9039
- description: |
9040
- Generate an AI response in a conversation.
9227
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users":
9228
+ get:
9229
+ operationId: listUserPermissionsInSite
9230
+ summary: List site user permissions
9041
9231
  tags:
9042
- - site-ai
9232
+ - site-users
9043
9233
  security:
9044
9234
  - user: []
9045
9235
  parameters:
9046
9236
  - $ref: "#/components/parameters/organizationId"
9047
9237
  - $ref: "#/components/parameters/siteId"
9048
- requestBody:
9049
- required: true
9050
- content:
9051
- application/json:
9052
- schema:
9053
- type: object
9054
- required:
9055
- - input
9056
- properties:
9057
- previousResponseId:
9058
- type: string
9059
- description: The ID of the previous response to continue from
9060
- input:
9061
- type: array
9062
- description: The messages to send to the AI agent.
9063
- items:
9064
- $ref: "#/components/schemas/AIMessageInput"
9065
- model:
9066
- $ref: "#/components/schemas/AIModel"
9067
- tools:
9068
- type: array
9069
- description: Custom tools to provide to the AI agent.
9070
- items:
9071
- $ref: "#/components/schemas/AIToolDefinition"
9072
- toolCall:
9073
- $ref: "#/components/schemas/AIToolCallResult"
9238
+ - $ref: "#/components/parameters/listPage"
9239
+ - $ref: "#/components/parameters/listLimit"
9074
9240
  responses:
9075
9241
  "200":
9076
- description: OK
9242
+ description: Listing of users who have been added to a site.
9077
9243
  content:
9078
- text/event-stream:
9244
+ application/json:
9079
9245
  schema:
9080
- $ref: "#/components/schemas/AIStreamResponse"
9081
- "/orgs/{organizationId}/sites/{siteId}/insights/events":
9082
- post:
9083
- operationId: trackEventsInSiteById
9084
- summary: Track site events
9246
+ allOf:
9247
+ - $ref: "#/components/schemas/List"
9248
+ - type: object
9249
+ required:
9250
+ - items
9251
+ properties:
9252
+ items:
9253
+ type: array
9254
+ items:
9255
+ $ref: "#/components/schemas/UserSitePermissionOverride"
9256
+ "404":
9257
+ description: No site was found with the given Id
9258
+ $ref: "#/components/responses/NotFoundError"
9259
+ "/orgs/{organizationId}/sites/{siteId}/permissions/users/{userId}":
9260
+ patch:
9261
+ operationId: updateUserPermissionInSite
9262
+ summary: Update site user permissions
9085
9263
  tags:
9086
- - site-insights
9264
+ - site-users
9265
+ security:
9266
+ - user: []
9087
9267
  parameters:
9088
9268
  - $ref: "#/components/parameters/organizationId"
9089
9269
  - $ref: "#/components/parameters/siteId"
9090
- responses:
9091
- "204":
9092
- description: Events have been tracked.
9270
+ - $ref: "#/components/parameters/userId"
9093
9271
  requestBody:
9094
9272
  required: true
9095
9273
  content:
@@ -9097,32 +9275,198 @@ paths:
9097
9275
  schema:
9098
9276
  type: object
9099
9277
  properties:
9100
- events:
9101
- type: array
9102
- items:
9103
- $ref: "#/components/schemas/SiteInsightsEvent"
9104
- required:
9105
- - events
9106
- "/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate":
9107
- post:
9108
- operationId: aggregateSiteEvents
9109
- summary: Query site events
9278
+ role:
9279
+ $ref: "#/components/schemas/MemberRole"
9280
+ responses:
9281
+ "204":
9282
+ description: User permission was updated
9283
+ "404":
9284
+ description: No user found with the given ID
9285
+ $ref: "#/components/responses/NotFoundError"
9286
+ delete:
9287
+ operationId: removeUserFromSite
9288
+ summary: Remove a site user
9289
+ tags:
9290
+ - site-users
9110
9291
  security:
9111
9292
  - user: []
9293
+ parameters:
9294
+ - $ref: "#/components/parameters/organizationId"
9295
+ - $ref: "#/components/parameters/siteId"
9296
+ - $ref: "#/components/parameters/userId"
9297
+ responses:
9298
+ "204":
9299
+ description: The user was not found in the site
9300
+ "205":
9301
+ description: The user has been removed from the site
9302
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams":
9303
+ get:
9304
+ operationId: listTeamPermissionsInSite
9305
+ summary: List an org team's permission in a site
9112
9306
  tags:
9113
- - site-insights
9307
+ - site-permissions
9308
+ security:
9309
+ - user: []
9114
9310
  parameters:
9115
9311
  - $ref: "#/components/parameters/organizationId"
9116
9312
  - $ref: "#/components/parameters/siteId"
9117
- requestBody:
9118
- required: true
9119
- content:
9120
- application/json:
9121
- schema:
9122
- $ref: "#/components/schemas/SiteInsightsQueryEventsAggregation"
9313
+ - $ref: "#/components/parameters/listPage"
9314
+ - $ref: "#/components/parameters/listLimit"
9123
9315
  responses:
9124
9316
  "200":
9125
- description: Aggregated events in the site.
9317
+ description: Listing of teams who have been added to a site.
9318
+ content:
9319
+ application/json:
9320
+ schema:
9321
+ allOf:
9322
+ - $ref: "#/components/schemas/List"
9323
+ - type: object
9324
+ required:
9325
+ - items
9326
+ properties:
9327
+ items:
9328
+ type: array
9329
+ items:
9330
+ $ref: "#/components/schemas/TeamSitePermissionOverride"
9331
+ "404":
9332
+ description: No site was found with the given Id
9333
+ $ref: "#/components/responses/NotFoundError"
9334
+ "/orgs/{organizationId}/sites/{siteId}/permissions/teams/{teamId}":
9335
+ patch:
9336
+ operationId: updateTeamPermissionInSite
9337
+ summary: Update an org team's permission in a site
9338
+ tags:
9339
+ - site-permissions
9340
+ security:
9341
+ - user: []
9342
+ parameters:
9343
+ - $ref: "#/components/parameters/organizationId"
9344
+ - $ref: "#/components/parameters/siteId"
9345
+ - $ref: "#/components/parameters/teamId"
9346
+ requestBody:
9347
+ required: true
9348
+ content:
9349
+ application/json:
9350
+ schema:
9351
+ type: object
9352
+ properties:
9353
+ role:
9354
+ $ref: "#/components/schemas/MemberRole"
9355
+ responses:
9356
+ "204":
9357
+ description: Team permission was updated
9358
+ "404":
9359
+ description: No team found with the given ID
9360
+ $ref: "#/components/responses/NotFoundError"
9361
+ delete:
9362
+ operationId: removeTeamFromSite
9363
+ summary: Remove an org team from a site
9364
+ tags:
9365
+ - site-permissions
9366
+ security:
9367
+ - user: []
9368
+ parameters:
9369
+ - $ref: "#/components/parameters/organizationId"
9370
+ - $ref: "#/components/parameters/siteId"
9371
+ - $ref: "#/components/parameters/teamId"
9372
+ responses:
9373
+ "204":
9374
+ description: The team was not found in the site
9375
+ "205":
9376
+ description: The team has been removed from the site
9377
+ "/orgs/{organizationId}/sites/{siteId}/ai/response":
9378
+ post:
9379
+ operationId: streamAIResponseInSite
9380
+ summary: Generate an AI response in a site
9381
+ description: |
9382
+ Generate an AI response in a conversation.
9383
+ tags:
9384
+ - site-ai
9385
+ security:
9386
+ - user: []
9387
+ parameters:
9388
+ - $ref: "#/components/parameters/organizationId"
9389
+ - $ref: "#/components/parameters/siteId"
9390
+ requestBody:
9391
+ required: true
9392
+ content:
9393
+ application/json:
9394
+ schema:
9395
+ type: object
9396
+ required:
9397
+ - input
9398
+ properties:
9399
+ previousResponseId:
9400
+ type: string
9401
+ description: The ID of the previous response to continue from
9402
+ input:
9403
+ type: array
9404
+ description: The messages to send to the AI agent.
9405
+ items:
9406
+ $ref: "#/components/schemas/AIMessageInput"
9407
+ model:
9408
+ $ref: "#/components/schemas/AIModel"
9409
+ tools:
9410
+ type: array
9411
+ description: Custom tools to provide to the AI agent.
9412
+ items:
9413
+ $ref: "#/components/schemas/AIToolDefinition"
9414
+ toolCall:
9415
+ $ref: "#/components/schemas/AIToolCallResult"
9416
+ session:
9417
+ $ref: "#/components/schemas/SiteInsightsSession"
9418
+ responses:
9419
+ "200":
9420
+ description: OK
9421
+ content:
9422
+ text/event-stream:
9423
+ schema:
9424
+ $ref: "#/components/schemas/AIStreamResponse"
9425
+ "/orgs/{organizationId}/sites/{siteId}/insights/events":
9426
+ post:
9427
+ operationId: trackEventsInSiteById
9428
+ summary: Track site events
9429
+ tags:
9430
+ - site-insights
9431
+ parameters:
9432
+ - $ref: "#/components/parameters/organizationId"
9433
+ - $ref: "#/components/parameters/siteId"
9434
+ responses:
9435
+ "204":
9436
+ description: Events have been tracked.
9437
+ requestBody:
9438
+ required: true
9439
+ content:
9440
+ application/json:
9441
+ schema:
9442
+ type: object
9443
+ properties:
9444
+ events:
9445
+ type: array
9446
+ items:
9447
+ $ref: "#/components/schemas/SiteInsightsEvent"
9448
+ required:
9449
+ - events
9450
+ "/orgs/{organizationId}/sites/{siteId}/insights/events/aggregate":
9451
+ post:
9452
+ operationId: aggregateSiteEvents
9453
+ summary: Query site events
9454
+ security:
9455
+ - user: []
9456
+ tags:
9457
+ - site-insights
9458
+ parameters:
9459
+ - $ref: "#/components/parameters/organizationId"
9460
+ - $ref: "#/components/parameters/siteId"
9461
+ requestBody:
9462
+ required: true
9463
+ content:
9464
+ application/json:
9465
+ schema:
9466
+ $ref: "#/components/schemas/SiteInsightsQueryEventsAggregation"
9467
+ responses:
9468
+ "200":
9469
+ description: Aggregated events in the site.
9126
9470
  content:
9127
9471
  application/json:
9128
9472
  schema:
@@ -10283,6 +10627,20 @@ components:
10283
10627
  description: The unique id of the context topic
10284
10628
  schema:
10285
10629
  type: string
10630
+ siteQuestionId:
10631
+ name: siteQuestionId
10632
+ in: path
10633
+ required: true
10634
+ description: The unique id of the site question
10635
+ schema:
10636
+ type: string
10637
+ siteQuestionAnswerId:
10638
+ name: siteQuestionAnswerId
10639
+ in: path
10640
+ required: true
10641
+ description: The unique id of the site question answer
10642
+ schema:
10643
+ type: string
10286
10644
  siteSpaceId:
10287
10645
  name: siteSpaceId
10288
10646
  in: path
@@ -10819,6 +11177,9 @@ components:
10819
11177
  internal_poweredByV2:
10820
11178
  type: boolean
10821
11179
  description: Whether the space is powered by V2 of the content system.
11180
+ internal_singleWebsocket:
11181
+ type: boolean
11182
+ description: Whether the space uses a single websocket connection for all real-time communication.
10822
11183
  permissions:
10823
11184
  type: object
10824
11185
  description: The set of permissions for the space
@@ -12079,6 +12440,8 @@ components:
12079
12440
  - warning
12080
12441
  - danger
12081
12442
  - success
12443
+ icon:
12444
+ $ref: "#/components/schemas/Icon"
12082
12445
  required:
12083
12446
  - style
12084
12447
  nodes:
@@ -14019,6 +14382,7 @@ components:
14019
14382
  - path
14020
14383
  - pages
14021
14384
  - layout
14385
+ - tags
14022
14386
  - oneOf:
14023
14387
  - type: object
14024
14388
  description: Defined when the page was generated by a computed content.
@@ -14356,6 +14720,9 @@ components:
14356
14720
  metadata:
14357
14721
  type: boolean
14358
14722
  description: Should the page metadata (last modified, author, etc.) be visible?
14723
+ tags:
14724
+ type: boolean
14725
+ description: Should the tags be visible on the page?
14359
14726
  required:
14360
14727
  - width
14361
14728
  - cover
@@ -14366,6 +14733,7 @@ components:
14366
14733
  - outline
14367
14734
  - pagination
14368
14735
  - metadata
14736
+ - tags
14369
14737
  RevisionPageDocumentCover:
14370
14738
  type: object
14371
14739
  properties:
@@ -14598,18 +14966,30 @@ components:
14598
14966
  type: string
14599
14967
  description: ID of the document with the content body. If undefined, the reusable content is empty.
14600
14968
  RevisionTag:
14601
- type: object
14602
- description: A reusable tag that different types of content can be associated to (e.g. pages, update entries)
14603
- properties:
14604
- slug:
14605
- type: string
14606
- description: The slug identifier for the tag, immutable after creation.
14607
- label:
14608
- type: string
14609
- description: Display label for the tag. Can be renamed and differ from the slug.
14610
- required:
14611
- - slug
14612
- - label
14969
+ allOf:
14970
+ - type: object
14971
+ description: A reusable tag that different types of content can be associated to (e.g. pages, update entries)
14972
+ properties:
14973
+ slug:
14974
+ type: string
14975
+ description: The slug identifier for the tag, immutable after creation.
14976
+ label:
14977
+ type: string
14978
+ description: Display label for the tag. Can be renamed and differ from the slug.
14979
+ required:
14980
+ - slug
14981
+ - label
14982
+ - oneOf:
14983
+ - type: object
14984
+ properties:
14985
+ emoji:
14986
+ $ref: "#/components/schemas/Emoji"
14987
+ required:
14988
+ - emoji
14989
+ - type: object
14990
+ properties:
14991
+ icon:
14992
+ $ref: "#/components/schemas/Icon"
14613
14993
  GitSyncCommit:
14614
14994
  type: object
14615
14995
  properties:
@@ -14697,6 +15077,7 @@ components:
14697
15077
  - pages
14698
15078
  - files
14699
15079
  - reusableContents
15080
+ - tags
14700
15081
  - urls
14701
15082
  - createdAt
14702
15083
  RevisionTypeEdits:
@@ -14887,6 +15268,7 @@ components:
14887
15268
  description: Name of the organization
14888
15269
  minLength: 2
14889
15270
  maxLength: 255
15271
+ pattern: \S.*\S
14890
15272
  OrganizationEmailDomains:
14891
15273
  type: array
14892
15274
  items:
@@ -20288,7 +20670,7 @@ components:
20288
20670
  type: string
20289
20671
  required:
20290
20672
  - query
20291
- SearchAIAnswerSource:
20673
+ SearchAIAnswerSourcePage:
20292
20674
  type: object
20293
20675
  title: Page source
20294
20676
  description: The source points to a page in a space.
@@ -20320,6 +20702,43 @@ components:
20320
20702
  - revision
20321
20703
  - space
20322
20704
  - sections
20705
+ SearchAIAnswerSourceRecord:
20706
+ type: object
20707
+ title: Site context record source
20708
+ description: The source points to an ingested site context record.
20709
+ properties:
20710
+ type:
20711
+ type: string
20712
+ enum:
20713
+ - record
20714
+ reason:
20715
+ type: string
20716
+ description: Short explanation of how the source was used to answer.
20717
+ record:
20718
+ type: string
20719
+ description: The context record ID of the source.
20720
+ site:
20721
+ type: string
20722
+ description: The site ID owning the source record.
20723
+ title:
20724
+ type: string
20725
+ description: The title of the source record.
20726
+ url:
20727
+ type: string
20728
+ format: uri
20729
+ description: The source URL of the context record.
20730
+ required:
20731
+ - type
20732
+ - record
20733
+ - site
20734
+ - title
20735
+ - url
20736
+ SearchAIAnswerSource:
20737
+ oneOf:
20738
+ - $ref: "#/components/schemas/SearchAIAnswerSourcePage"
20739
+ - $ref: "#/components/schemas/SearchAIAnswerSourceRecord"
20740
+ discriminator:
20741
+ propertyName: type
20323
20742
  SearchAIAnswer:
20324
20743
  type: object
20325
20744
  description: Answer from AI for a question asked on a content.
@@ -22283,6 +22702,7 @@ components:
22283
22702
  - builtin:email
22284
22703
  - builtin:api
22285
22704
  - builtin:website
22705
+ - builtin:youtube
22286
22706
  ContextRecordTitle:
22287
22707
  type: string
22288
22708
  description: Title for the context record
@@ -22435,6 +22855,23 @@ components:
22435
22855
  required:
22436
22856
  - connector
22437
22857
  - setupSettings
22858
+ - type: object
22859
+ properties:
22860
+ connector:
22861
+ type: string
22862
+ enum:
22863
+ - builtin:youtube
22864
+ setupSettings:
22865
+ type: object
22866
+ properties:
22867
+ channelId:
22868
+ type: string
22869
+ pattern: ^UC[A-Za-z0-9_-]{22}$
22870
+ required:
22871
+ - channelId
22872
+ required:
22873
+ - connector
22874
+ - setupSettings
22438
22875
  ContextConnection:
22439
22876
  allOf:
22440
22877
  - type: object
@@ -22556,236 +22993,667 @@ components:
22556
22993
  - createdAt
22557
22994
  - updatedAt
22558
22995
  - urls
22559
- SiteSpaceCustomizationSettings:
22560
- allOf:
22561
- - $ref: "#/components/schemas/SiteCustomizationSettings"
22562
- - type: object
22563
- properties:
22564
- hasOverrides:
22565
- type: boolean
22566
- description: Indicates whether the site customization settings have been overridden.
22567
- required:
22568
- - hasOverrides
22569
- SiteSectionGroupPointer:
22996
+ SiteQuestionStatsFeedback:
22570
22997
  type: object
22998
+ description: Aggregated feedback for answers linked to a site question.
22571
22999
  properties:
22572
- type:
23000
+ positive:
23001
+ type: number
23002
+ description: Count of answers with positive feedback.
23003
+ negative:
23004
+ type: number
23005
+ description: Count of answers with negative feedback.
23006
+ unrated:
23007
+ type: number
23008
+ description: Count of answers without feedback.
23009
+ required:
23010
+ - positive
23011
+ - negative
23012
+ - unrated
23013
+ SiteQuestionStatsAnswered:
23014
+ type: object
23015
+ description: Aggregated answered assessment for answers linked to a site question.
23016
+ properties:
23017
+ yes:
23018
+ type: number
23019
+ description: Count of answers assessed as fully answered.
23020
+ partially:
23021
+ type: number
23022
+ description: Count of answers assessed as partially answered.
23023
+ no:
23024
+ type: number
23025
+ description: Count of answers assessed as not answered.
23026
+ required:
23027
+ - yes
23028
+ - partially
23029
+ - no
23030
+ SiteQuestionStats:
23031
+ type: object
23032
+ description: Aggregated stats for answers linked to a site question.
23033
+ properties:
23034
+ answers:
23035
+ type: number
23036
+ description: Total count of answers linked to the question.
23037
+ feedback:
23038
+ $ref: "#/components/schemas/SiteQuestionStatsFeedback"
23039
+ answered:
23040
+ $ref: "#/components/schemas/SiteQuestionStatsAnswered"
23041
+ required:
23042
+ - answers
23043
+ - feedback
23044
+ - answered
23045
+ SiteQuestion:
23046
+ type: object
23047
+ properties:
23048
+ object:
22573
23049
  type: string
22574
23050
  enum:
22575
- - site-section
22576
- - site-section-group
23051
+ - site-question
22577
23052
  id:
22578
23053
  type: string
22579
- description: Unique identifier for the site section
23054
+ description: The ID of the site question.
23055
+ question:
23056
+ type: string
23057
+ description: Canonical text for the unique site question.
23058
+ createdAt:
23059
+ $ref: "#/components/schemas/Timestamp"
23060
+ stats:
23061
+ $ref: "#/components/schemas/SiteQuestionStats"
23062
+ urls:
23063
+ type: object
23064
+ description: URLs associated with the site question.
23065
+ properties:
23066
+ location:
23067
+ type: string
23068
+ format: uri
23069
+ description: URL of the site question in the API.
23070
+ required:
23071
+ - location
22580
23072
  required:
22581
- - type
23073
+ - object
22582
23074
  - id
22583
- SiteSectionGroupMovePosition:
23075
+ - question
23076
+ - createdAt
23077
+ - stats
23078
+ - urls
23079
+ SiteQuestionAnswerResolution:
23080
+ type: string
23081
+ description: Whether the response answered the question.
23082
+ enum:
23083
+ - no
23084
+ - partially
23085
+ - yes
23086
+ SiteQuestionAnswerConfidence:
23087
+ type: string
23088
+ description: Confidence in whether the response answered the question.
23089
+ enum:
23090
+ - low
23091
+ - medium
23092
+ - high
23093
+ SiteQuestionAnswerRelevance:
23094
+ type: string
23095
+ description: Relevance classification of the user question.
23096
+ enum:
23097
+ - relevant
23098
+ - spam
23099
+ - off-topic
23100
+ - unclear
23101
+ SiteInsightsSession:
22584
23102
  type: object
22585
- description: Position at which to move the site section group.
23103
+ description: Identifiers for a GitBook site session, used for analytics and adaptive content.
22586
23104
  properties:
22587
- before:
22588
- $ref: "#/components/schemas/SiteSectionGroupPointer"
22589
- after:
22590
- $ref: "#/components/schemas/SiteSectionGroupPointer"
22591
- SiteSectionPointer:
23105
+ visitorId:
23106
+ type: string
23107
+ description: GitBook's unique identifier of the visitor.
23108
+ sessionId:
23109
+ type: string
23110
+ description: GitBook's unique identifier of the visitor's session.
23111
+ required:
23112
+ - visitorId
23113
+ - sessionId
23114
+ SiteQuestionAnswer:
22592
23115
  type: object
22593
23116
  properties:
22594
- type:
23117
+ object:
22595
23118
  type: string
22596
23119
  enum:
22597
- - site-section
22598
- siteSection:
23120
+ - site-question-answer
23121
+ id:
22599
23122
  type: string
22600
- description: Unique identifier for the site section
23123
+ description: The ID of the site question answer.
23124
+ question:
23125
+ type: string
23126
+ description: The ID of the parent site question.
23127
+ input:
23128
+ type: object
23129
+ properties:
23130
+ text:
23131
+ type: string
23132
+ description: Normalized question text for this answer.
23133
+ raw:
23134
+ type: string
23135
+ description: Raw question text as asked by the user.
23136
+ thread:
23137
+ type: object
23138
+ required:
23139
+ - id
23140
+ - previous
23141
+ properties:
23142
+ id:
23143
+ type: string
23144
+ description: The ID of the thread this answer belongs to.
23145
+ previous:
23146
+ type: string
23147
+ description: ID of the previous answer in the same thread.
23148
+ session:
23149
+ $ref: "#/components/schemas/SiteInsightsSession"
23150
+ feedback:
23151
+ type: object
23152
+ required:
23153
+ - rating
23154
+ properties:
23155
+ rating:
23156
+ type: integer
23157
+ enum:
23158
+ - -1
23159
+ - 1
23160
+ description: Feedback rating provided by the user.
23161
+ responseId:
23162
+ type: string
23163
+ description: The response identifier for this answer.
23164
+ language:
23165
+ type: string
23166
+ description: ISO language code of the question.
23167
+ answered:
23168
+ $ref: "#/components/schemas/SiteQuestionAnswerResolution"
23169
+ confidence:
23170
+ $ref: "#/components/schemas/SiteQuestionAnswerConfidence"
23171
+ relevance:
23172
+ $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
23173
+ createdAt:
23174
+ $ref: "#/components/schemas/Timestamp"
23175
+ updatedAt:
23176
+ $ref: "#/components/schemas/Timestamp"
23177
+ urls:
23178
+ type: object
23179
+ description: URLs associated with the site question answer.
23180
+ properties:
23181
+ location:
23182
+ type: string
23183
+ format: uri
23184
+ description: URL of the site question answer in the API.
23185
+ required:
23186
+ - location
22601
23187
  required:
22602
- - type
22603
- - siteSection
22604
- SiteSectionMovePosition:
22605
- type: object
22606
- description: Position at which to move the site section to.
22607
- properties:
22608
- before:
22609
- $ref: "#/components/schemas/SiteSectionPointer"
22610
- after:
22611
- $ref: "#/components/schemas/SiteSectionPointer"
22612
- SiteSpacePointer:
23188
+ - object
23189
+ - id
23190
+ - question
23191
+ - input
23192
+ - responseId
23193
+ - language
23194
+ - answered
23195
+ - confidence
23196
+ - relevance
23197
+ - createdAt
23198
+ - urls
23199
+ AIMessageRole:
23200
+ type: string
23201
+ enum:
23202
+ - user
23203
+ - assistant
23204
+ - developer
23205
+ AIToolCallGetPageContent:
22613
23206
  type: object
22614
23207
  properties:
22615
- type:
23208
+ tool:
22616
23209
  type: string
22617
23210
  enum:
22618
- - site-space
22619
- siteSpace:
23211
+ - getPageContent
23212
+ spaceId:
22620
23213
  type: string
22621
- description: Unique identifier for the site space
23214
+ description: The ID of the space being accessed.
23215
+ revisionId:
23216
+ type: string
23217
+ description: The ID of the revision within which the page content is being fetched.
23218
+ page:
23219
+ $ref: "#/components/schemas/ChangedRevisionPage"
22622
23220
  required:
22623
- - type
22624
- - siteSpace
22625
- SiteSpaceMovePosition:
22626
- type: object
22627
- description: Position at which to move the site space to.
22628
- properties:
22629
- before:
22630
- $ref: "#/components/schemas/SiteSpacePointer"
22631
- after:
22632
- $ref: "#/components/schemas/SiteSpacePointer"
22633
- OrganizationPointer:
23221
+ - tool
23222
+ - spaceId
23223
+ - page
23224
+ - revisionId
23225
+ AIToolCallGetPages:
22634
23226
  type: object
22635
23227
  properties:
22636
- type:
23228
+ tool:
22637
23229
  type: string
22638
23230
  enum:
22639
- - organization
22640
- organization:
23231
+ - getPages
23232
+ spaceId:
22641
23233
  type: string
22642
- description: Unique identifier for the organization
23234
+ description: The ID of the space being accessed.
23235
+ revisionId:
23236
+ type: string
23237
+ description: The revision ID of the space.
22643
23238
  required:
22644
- - type
22645
- - organization
22646
- UserSitePermission:
23239
+ - tool
23240
+ - spaceId
23241
+ - revisionId
23242
+ AIToolCallGetReusableContents:
22647
23243
  type: object
22648
- description: Permission of a user in a site.
22649
23244
  properties:
22650
- permission:
22651
- $ref: "#/components/schemas/MemberRoleOrGuest"
22652
- user:
22653
- $ref: "#/components/schemas/User"
22654
- origin:
22655
- description: The content or organization that enforced this permission level.
22656
- oneOf:
22657
- - $ref: "#/components/schemas/SpacePointer"
22658
- - $ref: "#/components/schemas/OrganizationPointer"
23245
+ tool:
23246
+ type: string
23247
+ enum:
23248
+ - getReusableContents
23249
+ spaceId:
23250
+ type: string
23251
+ description: The ID of the space being accessed.
23252
+ revisionId:
23253
+ type: string
23254
+ description: The revision ID of the space.
22659
23255
  required:
22660
- - permission
22661
- - user
22662
- - origin
22663
- AIMessageContext:
22664
- type: object
22665
- description: Context about the current user sending a message.
22666
- properties:
22667
- location:
22668
- type: object
22669
- properties:
22670
- spaceId:
22671
- type: string
22672
- description: ID of the current space.
22673
- pageId:
22674
- type: string
22675
- description: ID of the current page.
22676
- required:
22677
- - spaceId
22678
- - pageId
22679
- AIAttachmentImage:
23256
+ - tool
23257
+ - spaceId
23258
+ - revisionId
23259
+ AIToolCallSearchResultPage:
22680
23260
  type: object
23261
+ title: Page result
23262
+ description: Result of a search matching a page.
22681
23263
  properties:
22682
23264
  type:
22683
23265
  type: string
22684
23266
  enum:
22685
- - image
22686
- url:
22687
- $ref: "#/components/schemas/URL"
23267
+ - page
23268
+ spaceId:
23269
+ type: string
23270
+ description: The ID of the space
23271
+ pageId:
23272
+ type: string
23273
+ description: The ID of the page
23274
+ revisionId:
23275
+ type: string
23276
+ description: The revision ID of the result
23277
+ anchor:
23278
+ type: string
23279
+ description: The anchor of the result
23280
+ title:
23281
+ type: string
23282
+ description: The title of the result
23283
+ description:
23284
+ type: string
23285
+ description: The description of the result
22688
23286
  required:
22689
23287
  - type
22690
- - url
22691
- AIAttachmentFile:
23288
+ - spaceId
23289
+ - pageId
23290
+ - revisionId
23291
+ - title
23292
+ AIToolCallSearchResultRecord:
22692
23293
  type: object
23294
+ title: Site context record result
23295
+ description: Result of a search matching a site context record.
22693
23296
  properties:
22694
23297
  type:
22695
23298
  type: string
22696
23299
  enum:
22697
- - file
22698
- url:
22699
- $ref: "#/components/schemas/URL"
22700
- filename:
23300
+ - record
23301
+ siteId:
22701
23302
  type: string
22702
- description: Name of the file.
22703
- contentType:
23303
+ description: The ID of the site owning the context record
23304
+ recordId:
22704
23305
  type: string
22705
- enum:
22706
- - application/pdf
23306
+ description: The ID of the context record
23307
+ title:
23308
+ type: string
23309
+ description: The title of the record
23310
+ description:
23311
+ type: string
23312
+ description: The description of the record
23313
+ url:
23314
+ type: string
23315
+ format: uri
23316
+ description: URL of the record in its original source
22707
23317
  required:
22708
23318
  - type
22709
- - url
22710
- - filename
22711
- - contentType
22712
- AIAttachment:
23319
+ - siteId
23320
+ - recordId
23321
+ - title
23322
+ AIToolCallSearchResult:
23323
+ description: Result of a search
22713
23324
  oneOf:
22714
- - $ref: "#/components/schemas/AIAttachmentImage"
22715
- - $ref: "#/components/schemas/AIAttachmentFile"
22716
- AIMessageInput:
23325
+ - $ref: "#/components/schemas/AIToolCallSearchResultPage"
23326
+ - $ref: "#/components/schemas/AIToolCallSearchResultRecord"
23327
+ discriminator:
23328
+ propertyName: type
23329
+ AIToolCallSearch:
22717
23330
  type: object
22718
- description: Input version of an AI message.
23331
+ description: Tool to search for content
22719
23332
  properties:
22720
- role:
23333
+ tool:
22721
23334
  type: string
22722
23335
  enum:
22723
- - user
22724
- content:
22725
- oneOf:
22726
- - type: string
22727
- maxLength: 2048
22728
- - $ref: "#/components/schemas/JSONDocument"
22729
- context:
22730
- $ref: "#/components/schemas/AIMessageContext"
22731
- attachments:
23336
+ - search
23337
+ query:
23338
+ type: string
23339
+ description: The query that has been searched for.
23340
+ results:
22732
23341
  type: array
22733
23342
  items:
22734
- $ref: "#/components/schemas/AIAttachment"
23343
+ $ref: "#/components/schemas/AIToolCallSearchResult"
22735
23344
  required:
22736
- - role
22737
- - content
22738
- AIModel:
22739
- type: string
22740
- enum:
22741
- - fast
22742
- - reasoning-low
22743
- - reasoning-medium
22744
- - reasoning-high
22745
- AIToolDefinition:
23345
+ - tool
23346
+ - query
23347
+ - results
23348
+ AIToolCallEditPage:
22746
23349
  type: object
22747
- description: Description of a tool that can be called from an AI agent.
22748
23350
  properties:
22749
- name:
23351
+ tool:
22750
23352
  type: string
22751
- description: The name of the tool. It should be unique within the agent.
22752
- description:
23353
+ enum:
23354
+ - editPage
23355
+ spaceId:
22753
23356
  type: string
22754
- description: The description of the tool, passed to the AI agent.
22755
- inputSchema:
23357
+ description: The ID of the space being edited.
23358
+ page:
23359
+ $ref: "#/components/schemas/ChangedRevisionPage"
23360
+ required:
23361
+ - tool
23362
+ - spaceId
23363
+ - page
23364
+ AIToolCallCreatePage:
23365
+ type: object
23366
+ properties:
23367
+ tool:
23368
+ type: string
23369
+ enum:
23370
+ - createPage
23371
+ spaceId:
23372
+ type: string
23373
+ description: The ID of the space being edited.
23374
+ page:
23375
+ $ref: "#/components/schemas/ChangedRevisionPage"
23376
+ required:
23377
+ - tool
23378
+ - spaceId
23379
+ - page
23380
+ AIToolCallDeletePage:
23381
+ type: object
23382
+ properties:
23383
+ tool:
23384
+ type: string
23385
+ enum:
23386
+ - deletePage
23387
+ spaceId:
23388
+ type: string
23389
+ description: The ID of the space being edited.
23390
+ page:
23391
+ $ref: "#/components/schemas/ChangedRevisionPage"
23392
+ required:
23393
+ - tool
23394
+ - spaceId
23395
+ - page
23396
+ AIToolCallRenamePage:
23397
+ type: object
23398
+ properties:
23399
+ tool:
23400
+ type: string
23401
+ enum:
23402
+ - renamePage
23403
+ spaceId:
23404
+ type: string
23405
+ description: The ID of the space being edited.
23406
+ page:
23407
+ $ref: "#/components/schemas/ChangedRevisionPage"
23408
+ title:
23409
+ type: string
23410
+ description: The new title of the page.
23411
+ required:
23412
+ - tool
23413
+ - spaceId
23414
+ - page
23415
+ - title
23416
+ AIToolCallMovePage:
23417
+ type: object
23418
+ properties:
23419
+ tool:
23420
+ type: string
23421
+ enum:
23422
+ - movePage
23423
+ spaceId:
23424
+ type: string
23425
+ description: The ID of the space being edited.
23426
+ page:
23427
+ $ref: "#/components/schemas/ChangedRevisionPage"
23428
+ to:
23429
+ $ref: "#/components/schemas/ChangedRevisionPage"
23430
+ moveType:
23431
+ type: string
23432
+ description: |
23433
+ Indicates how the page was moved relative to the "to" page.
23434
+ - `within`: moved as the last child of the target page (or to the root when `to` is omitted)
23435
+ - `before`: moved directly before the target page
23436
+ - `after`: moved directly after the target page
23437
+ enum:
23438
+ - within
23439
+ - before
23440
+ - after
23441
+ required:
23442
+ - tool
23443
+ - spaceId
23444
+ - page
23445
+ - moveType
23446
+ AIToolCallListModifiedPages:
23447
+ type: object
23448
+ properties:
23449
+ tool:
23450
+ type: string
23451
+ enum:
23452
+ - listModifiedPages
23453
+ spaceId:
23454
+ type: string
23455
+ description: The ID of the space being accessed.
23456
+ required:
23457
+ - tool
23458
+ - spaceId
23459
+ AIToolCallGetPageDiff:
23460
+ type: object
23461
+ properties:
23462
+ tool:
23463
+ type: string
23464
+ enum:
23465
+ - getPageDiff
23466
+ spaceId:
23467
+ type: string
23468
+ description: The ID of the space being accessed.
23469
+ page:
23470
+ $ref: "#/components/schemas/ChangedRevisionPage"
23471
+ required:
23472
+ - tool
23473
+ - spaceId
23474
+ - page
23475
+ AIToolCallCreateReusableContent:
23476
+ type: object
23477
+ properties:
23478
+ tool:
23479
+ type: string
23480
+ enum:
23481
+ - createReusableContent
23482
+ spaceId:
23483
+ type: string
23484
+ description: The ID of the space being edited.
23485
+ reusableContent:
23486
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
23487
+ required:
23488
+ - tool
23489
+ - spaceId
23490
+ - reusableContent
23491
+ AIToolCallEditReusableContent:
23492
+ type: object
23493
+ properties:
23494
+ tool:
23495
+ type: string
23496
+ enum:
23497
+ - editReusableContent
23498
+ spaceId:
23499
+ type: string
23500
+ description: The ID of the space being edited.
23501
+ reusableContent:
23502
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
23503
+ required:
23504
+ - tool
23505
+ - spaceId
23506
+ - reusableContent
23507
+ AIToolCallGetReusableContent:
23508
+ type: object
23509
+ properties:
23510
+ tool:
23511
+ type: string
23512
+ enum:
23513
+ - getReusableContent
23514
+ spaceId:
23515
+ type: string
23516
+ description: The ID of the space being accessed.
23517
+ revisionId:
23518
+ type: string
23519
+ description: The ID of the revision within which the reusable content is being fetched.
23520
+ reusableContent:
23521
+ $ref: "#/components/schemas/ChangedRevisionReusableContent"
23522
+ required:
23523
+ - tool
23524
+ - spaceId
23525
+ - reusableContent
23526
+ - revisionId
23527
+ AIToolCallCreateChangeRequest:
23528
+ type: object
23529
+ properties:
23530
+ tool:
23531
+ type: string
23532
+ enum:
23533
+ - createChangeRequest
23534
+ spaceId:
23535
+ type: string
23536
+ description: The ID of the space the change request belongs to.
23537
+ action:
23538
+ type: string
23539
+ enum:
23540
+ - create
23541
+ - update
23542
+ changeRequest:
22756
23543
  type: object
22757
- description: JSON schema describing the input of the tool.
22758
23544
  properties:
22759
- type:
23545
+ id:
22760
23546
  type: string
22761
- enum:
22762
- - object
22763
- properties:
22764
- type: object
22765
- additionalProperties:
22766
- type: object
22767
- properties:
22768
- type:
22769
- type: string
22770
- enum:
22771
- - string
22772
- - number
22773
- - boolean
22774
- - array
22775
- - object
22776
- description:
22777
- type: string
22778
- description: Description of the property.
22779
- required:
22780
- - type
22781
- - description
22782
- additionalProperties: true
23547
+ description: The unique identifier of the change request.
23548
+ number:
23549
+ type: number
23550
+ description: Incremental identifier of the change request.
23551
+ subject:
23552
+ type: string
23553
+ description: A brief summary of the change request.
22783
23554
  required:
22784
- - type
22785
- - properties
23555
+ - id
23556
+ - number
23557
+ - subject
22786
23558
  required:
22787
- - name
22788
- - description
23559
+ - tool
23560
+ - spaceId
23561
+ - action
23562
+ - changeRequest
23563
+ AIToolCallComment:
23564
+ type: object
23565
+ properties:
23566
+ tool:
23567
+ type: string
23568
+ enum:
23569
+ - comment
23570
+ spaceId:
23571
+ type: string
23572
+ description: The ID of the space being commented.
23573
+ page:
23574
+ description: The page being commented.
23575
+ $ref: "#/components/schemas/ChangedRevisionPage"
23576
+ commentId:
23577
+ type: string
23578
+ description: The ID of the comment being posted.
23579
+ required:
23580
+ - tool
23581
+ - spaceId
23582
+ - commentId
23583
+ AIToolCallReplyToComment:
23584
+ type: object
23585
+ properties:
23586
+ tool:
23587
+ type: string
23588
+ enum:
23589
+ - replyToComment
23590
+ spaceId:
23591
+ type: string
23592
+ description: The ID of the space being commented.
23593
+ page:
23594
+ description: The page being commented.
23595
+ $ref: "#/components/schemas/ChangedRevisionPage"
23596
+ commentId:
23597
+ type: string
23598
+ description: The ID of the comment being replied to.
23599
+ replyId:
23600
+ type: string
23601
+ description: The ID of the reply being posted.
23602
+ required:
23603
+ - tool
23604
+ - spaceId
23605
+ - commentId
23606
+ - replyId
23607
+ AIToolCallSubmitChangeRequestReview:
23608
+ type: object
23609
+ properties:
23610
+ tool:
23611
+ type: string
23612
+ enum:
23613
+ - submitChangeRequestReview
23614
+ spaceId:
23615
+ type: string
23616
+ description: The ID of the space where the review was submitted.
23617
+ changeRequestId:
23618
+ type: string
23619
+ description: The ID of the change request being reviewed.
23620
+ status:
23621
+ $ref: "#/components/schemas/ChangeRequestReviewStatus"
23622
+ description: Result of the review.
23623
+ reviewId:
23624
+ type: string
23625
+ description: Identifier of the review that was created.
23626
+ commentId:
23627
+ type: string
23628
+ description: Identifier of the comment that was created as part of the review.
23629
+ required:
23630
+ - tool
23631
+ - spaceId
23632
+ - changeRequestId
23633
+ - status
23634
+ - reviewId
23635
+ - commentId
23636
+ AIToolCallMCP:
23637
+ type: object
23638
+ description: Tool called from an MCP server
23639
+ properties:
23640
+ tool:
23641
+ type: string
23642
+ enum:
23643
+ - mcp
23644
+ mcpServerId:
23645
+ type: string
23646
+ description: The ID of the MCP server that has been called.
23647
+ mcpToolName:
23648
+ type: string
23649
+ description: The name of the tool that has been called.
23650
+ mcpToolTitle:
23651
+ type: string
23652
+ description: The title of the tool that has been called.
23653
+ required:
23654
+ - tool
23655
+ - mcpServerId
23656
+ - mcpToolName
22789
23657
  AIToolCallOtherSummary:
22790
23658
  type: object
22791
23659
  description: Summary of a generic tool call.
@@ -22798,25 +23666,112 @@ components:
22798
23666
  required:
22799
23667
  - icon
22800
23668
  - text
22801
- AIToolCallResult:
23669
+ AIToolCallOther:
22802
23670
  type: object
22803
- description: Result of a tool call.
23671
+ description: Any tool call that is unknown by GitBook
23672
+ properties:
23673
+ tool:
23674
+ type: string
23675
+ enum:
23676
+ - other
23677
+ summary:
23678
+ $ref: "#/components/schemas/AIToolCallOtherSummary"
22804
23679
  required:
22805
23680
  - tool
22806
- - toolCallId
22807
- - output
23681
+ - summary
23682
+ AIToolCall:
23683
+ oneOf:
23684
+ - $ref: "#/components/schemas/AIToolCallGetPageContent"
23685
+ - $ref: "#/components/schemas/AIToolCallGetPages"
23686
+ - $ref: "#/components/schemas/AIToolCallGetReusableContents"
23687
+ - $ref: "#/components/schemas/AIToolCallSearch"
23688
+ - $ref: "#/components/schemas/AIToolCallEditPage"
23689
+ - $ref: "#/components/schemas/AIToolCallCreatePage"
23690
+ - $ref: "#/components/schemas/AIToolCallDeletePage"
23691
+ - $ref: "#/components/schemas/AIToolCallRenamePage"
23692
+ - $ref: "#/components/schemas/AIToolCallMovePage"
23693
+ - $ref: "#/components/schemas/AIToolCallListModifiedPages"
23694
+ - $ref: "#/components/schemas/AIToolCallGetPageDiff"
23695
+ - $ref: "#/components/schemas/AIToolCallCreateReusableContent"
23696
+ - $ref: "#/components/schemas/AIToolCallEditReusableContent"
23697
+ - $ref: "#/components/schemas/AIToolCallGetReusableContent"
23698
+ - $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
23699
+ - $ref: "#/components/schemas/AIToolCallComment"
23700
+ - $ref: "#/components/schemas/AIToolCallReplyToComment"
23701
+ - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
23702
+ - $ref: "#/components/schemas/AIToolCallMCP"
23703
+ - $ref: "#/components/schemas/AIToolCallOther"
23704
+ Timerange:
23705
+ type: object
22808
23706
  properties:
22809
- tool:
23707
+ start:
23708
+ $ref: "#/components/schemas/Timestamp"
23709
+ end:
23710
+ $ref: "#/components/schemas/Timestamp"
23711
+ required:
23712
+ - start
23713
+ - end
23714
+ AIAttachmentImage:
23715
+ type: object
23716
+ properties:
23717
+ type:
22810
23718
  type: string
22811
- description: The name of the tool that was called.
22812
- toolCallId:
23719
+ enum:
23720
+ - image
23721
+ url:
23722
+ $ref: "#/components/schemas/URL"
23723
+ required:
23724
+ - type
23725
+ - url
23726
+ AIAttachmentFile:
23727
+ type: object
23728
+ properties:
23729
+ type:
22813
23730
  type: string
22814
- description: The ID of the tool call.
22815
- output:
23731
+ enum:
23732
+ - file
23733
+ url:
23734
+ $ref: "#/components/schemas/URL"
23735
+ filename:
23736
+ type: string
23737
+ description: Name of the file.
23738
+ contentType:
23739
+ type: string
23740
+ enum:
23741
+ - application/pdf
23742
+ required:
23743
+ - type
23744
+ - url
23745
+ - filename
23746
+ - contentType
23747
+ AIAttachment:
23748
+ oneOf:
23749
+ - $ref: "#/components/schemas/AIAttachmentImage"
23750
+ - $ref: "#/components/schemas/AIAttachmentFile"
23751
+ AIMessageStep:
23752
+ type: object
23753
+ description: A step in a message from the AI agent.
23754
+ properties:
23755
+ content:
23756
+ $ref: "#/components/schemas/JSONDocument"
23757
+ reasoning:
23758
+ $ref: "#/components/schemas/JSONDocument"
23759
+ toolCalls:
23760
+ type: array
23761
+ items:
23762
+ $ref: "#/components/schemas/AIToolCall"
23763
+ timing:
22816
23764
  type: object
22817
- description: The output to the tool call.
22818
- summary:
22819
- $ref: "#/components/schemas/AIToolCallOtherSummary"
23765
+ description: The timing of the step.
23766
+ properties:
23767
+ reasoning:
23768
+ $ref: "#/components/schemas/Timerange"
23769
+ attachments:
23770
+ type: array
23771
+ items:
23772
+ $ref: "#/components/schemas/AIAttachment"
23773
+ required:
23774
+ - content
22820
23775
  AIMessageTask:
22821
23776
  oneOf:
22822
23777
  - type: object
@@ -22873,560 +23828,485 @@ components:
22873
23828
  - type
22874
23829
  - spaceId
22875
23830
  - changeRequestId
22876
- AIStreamResponseStart:
22877
- type: object
22878
- description: |
22879
- Message emitted by the server to indicate the start of the AI response.
22880
- properties:
22881
- type:
22882
- type: string
22883
- enum:
22884
- - response_start
22885
- messageId:
22886
- type: string
22887
- description: |
22888
- The ID of the message that this event is composing.
22889
- task:
22890
- $ref: "#/components/schemas/AIMessageTask"
22891
- required:
22892
- - type
22893
- - messageId
22894
- AIMessageResponseMetadata:
22895
- description: The response that generated this message.
22896
- type: object
22897
- properties:
22898
- stopReason:
22899
- type: string
22900
- description: The reason the response was stopped. If not defined, the response finished normally.
22901
- enum:
22902
- - aborted
22903
- id:
22904
- type: string
22905
- description: The ID of the response that generated this message. It can be undefined if the stream was aborted.
22906
- previous:
22907
- type: string
22908
- description: The ID of the previous response that this message is based on.
22909
- AIStreamResponseFinish:
22910
- type: object
22911
- description: |
22912
- 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.
22913
- properties:
22914
- type:
22915
- type: string
22916
- enum:
22917
- - response_finish
22918
- messageId:
22919
- type: string
22920
- description: |
22921
- The ID of the message that this event is composing.
22922
- responseId:
22923
- type: string
22924
- deprecated: true
22925
- description: The ID of the response
22926
- response:
22927
- description: The response metadata associated with the message.
22928
- $ref: "#/components/schemas/AIMessageResponseMetadata"
22929
- required:
22930
- - type
22931
- - messageId
22932
- - response
22933
- AIStreamResponseDocument:
22934
- type: object
22935
- description: |
22936
- 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.
22937
- properties:
22938
- type:
22939
- type: string
22940
- enum:
22941
- - response_document
22942
- - response_reasoning
22943
- messageId:
22944
- type: string
22945
- description: |
22946
- The ID of the message that this event is composing.
22947
- stepIndex:
22948
- type: integer
22949
- description: |
22950
- The index of the step of the message that this event is composing.
22951
- operation:
22952
- type: string
22953
- enum:
22954
- - insert
22955
- - update
22956
- blocks:
22957
- type: array
22958
- items:
22959
- $ref: "#/components/schemas/DocumentBlocksTopLevels"
22960
- required:
22961
- - type
22962
- - messageId
22963
- - stepIndex
22964
- - operation
22965
- - blocks
22966
- AIStreamResponseObject:
22967
- type: object
22968
- description: |
22969
- Message emitted by the server to indicate a chunk of the JSON object response.
22970
- properties:
22971
- type:
22972
- type: string
22973
- enum:
22974
- - response_object
22975
- messageId:
22976
- type: string
22977
- description: |
22978
- The ID of the message that this event is composing.
22979
- jsonChunk:
22980
- type: string
22981
- description: The chunk of the JSON object response
22982
- required:
22983
- - type
22984
- - messageId
22985
- - jsonChunk
22986
- AIToolCallGetPageContent:
22987
- type: object
22988
- properties:
22989
- tool:
22990
- type: string
22991
- enum:
22992
- - getPageContent
22993
- spaceId:
22994
- type: string
22995
- description: The ID of the space being accessed.
22996
- revisionId:
22997
- type: string
22998
- description: The ID of the revision within which the page content is being fetched.
22999
- page:
23000
- $ref: "#/components/schemas/ChangedRevisionPage"
23001
- required:
23002
- - tool
23003
- - spaceId
23004
- - page
23005
- - revisionId
23006
- AIToolCallGetPages:
23007
- type: object
23008
- properties:
23009
- tool:
23010
- type: string
23011
- enum:
23012
- - getPages
23013
- spaceId:
23014
- type: string
23015
- description: The ID of the space being accessed.
23016
- revisionId:
23017
- type: string
23018
- description: The revision ID of the space.
23019
- required:
23020
- - tool
23021
- - spaceId
23022
- - revisionId
23023
- AIToolCallGetReusableContents:
23024
- type: object
23025
- properties:
23026
- tool:
23027
- type: string
23028
- enum:
23029
- - getReusableContents
23030
- spaceId:
23031
- type: string
23032
- description: The ID of the space being accessed.
23033
- revisionId:
23034
- type: string
23035
- description: The revision ID of the space.
23036
- required:
23037
- - tool
23038
- - spaceId
23039
- - revisionId
23040
- AIToolCallSearchResult:
23041
- type: object
23042
- description: Result of a search
23043
- properties:
23044
- spaceId:
23045
- type: string
23046
- description: The ID of the space
23047
- pageId:
23048
- type: string
23049
- description: The ID of the page
23050
- revisionId:
23051
- type: string
23052
- description: The revision ID of the result
23053
- anchor:
23054
- type: string
23055
- description: The anchor of the result
23056
- title:
23057
- type: string
23058
- description: The title of the result
23059
- description:
23060
- type: string
23061
- description: The description of the result
23062
- required:
23063
- - spaceId
23064
- - pageId
23065
- - revisionId
23066
- - title
23067
- AIToolCallSearch:
23068
- type: object
23069
- description: Tool to search for content
23070
- properties:
23071
- tool:
23072
- type: string
23073
- enum:
23074
- - search
23075
- query:
23076
- type: string
23077
- description: The query that has been searched for.
23078
- results:
23079
- type: array
23080
- items:
23081
- $ref: "#/components/schemas/AIToolCallSearchResult"
23082
- required:
23083
- - tool
23084
- - query
23085
- - results
23086
- AIToolCallEditPage:
23087
- type: object
23088
- properties:
23089
- tool:
23090
- type: string
23091
- enum:
23092
- - editPage
23093
- spaceId:
23094
- type: string
23095
- description: The ID of the space being edited.
23096
- page:
23097
- $ref: "#/components/schemas/ChangedRevisionPage"
23098
- required:
23099
- - tool
23100
- - spaceId
23101
- - page
23102
- AIToolCallCreatePage:
23103
- type: object
23104
- properties:
23105
- tool:
23106
- type: string
23107
- enum:
23108
- - createPage
23109
- spaceId:
23110
- type: string
23111
- description: The ID of the space being edited.
23112
- page:
23113
- $ref: "#/components/schemas/ChangedRevisionPage"
23114
- required:
23115
- - tool
23116
- - spaceId
23117
- - page
23118
- AIToolCallDeletePage:
23831
+ AIMessageResponseMetadata:
23832
+ description: The response that generated this message.
23119
23833
  type: object
23120
23834
  properties:
23121
- tool:
23835
+ stopReason:
23122
23836
  type: string
23837
+ description: The reason the response was stopped. If not defined, the response finished normally.
23123
23838
  enum:
23124
- - deletePage
23125
- spaceId:
23839
+ - aborted
23840
+ id:
23126
23841
  type: string
23127
- description: The ID of the space being edited.
23128
- page:
23129
- $ref: "#/components/schemas/ChangedRevisionPage"
23842
+ description: The ID of the response that generated this message. It can be undefined if the stream was aborted.
23843
+ previous:
23844
+ type: string
23845
+ description: The ID of the previous response that this message is based on.
23846
+ AIMessage:
23847
+ type: object
23848
+ properties:
23849
+ id:
23850
+ type: string
23851
+ role:
23852
+ $ref: "#/components/schemas/AIMessageRole"
23853
+ steps:
23854
+ type: array
23855
+ items:
23856
+ $ref: "#/components/schemas/AIMessageStep"
23857
+ task:
23858
+ $ref: "#/components/schemas/AIMessageTask"
23859
+ response:
23860
+ $ref: "#/components/schemas/AIMessageResponseMetadata"
23130
23861
  required:
23131
- - tool
23132
- - spaceId
23133
- - page
23134
- AIToolCallRenamePage:
23862
+ - id
23863
+ - role
23864
+ - steps
23865
+ SiteQuestionAnswerWithResponse:
23866
+ allOf:
23867
+ - $ref: "#/components/schemas/SiteQuestionAnswer"
23868
+ - type: object
23869
+ properties:
23870
+ response:
23871
+ $ref: "#/components/schemas/AIMessage"
23872
+ required:
23873
+ - response
23874
+ SiteQuestionAnswerSourceBase:
23135
23875
  type: object
23136
23876
  properties:
23137
- tool:
23877
+ object:
23138
23878
  type: string
23139
23879
  enum:
23140
- - renamePage
23141
- spaceId:
23880
+ - site-question-answer-source
23881
+ id:
23142
23882
  type: string
23143
- description: The ID of the space being edited.
23144
- page:
23145
- $ref: "#/components/schemas/ChangedRevisionPage"
23883
+ description: The ID of the source.
23884
+ weight:
23885
+ type: number
23886
+ description: Relative weight of this source in the generated answer.
23146
23887
  title:
23147
23888
  type: string
23148
- description: The new title of the page.
23889
+ description: The title of the source.
23890
+ urls:
23891
+ type: object
23892
+ description: URLs associated with the site question answer.
23893
+ properties:
23894
+ location:
23895
+ type: string
23896
+ format: uri
23897
+ description: URL of the site question answer in the API.
23898
+ required:
23899
+ - location
23149
23900
  required:
23150
- - tool
23151
- - spaceId
23152
- - page
23901
+ - object
23902
+ - id
23153
23903
  - title
23154
- AIToolCallMovePage:
23904
+ - weight
23905
+ - urls
23906
+ SiteQuestionAnswerSourcePage:
23907
+ allOf:
23908
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
23909
+ - type: object
23910
+ title: Page source
23911
+ description: Source data pointing to a page used for a site question answer.
23912
+ properties:
23913
+ type:
23914
+ type: string
23915
+ enum:
23916
+ - page
23917
+ space:
23918
+ type: string
23919
+ description: The space ID of the source page.
23920
+ revision:
23921
+ type: string
23922
+ description: The revision ID used for this source page.
23923
+ page:
23924
+ type: string
23925
+ description: The page ID of the source page.
23926
+ required:
23927
+ - type
23928
+ - space
23929
+ - revision
23930
+ - page
23931
+ SiteQuestionAnswerSourceRecord:
23932
+ allOf:
23933
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourceBase"
23934
+ - type: object
23935
+ properties:
23936
+ type:
23937
+ type: string
23938
+ enum:
23939
+ - record
23940
+ record:
23941
+ type: string
23942
+ description: The site context record ID.
23943
+ required:
23944
+ - type
23945
+ - record
23946
+ SiteQuestionAnswerSource:
23947
+ oneOf:
23948
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourcePage"
23949
+ - $ref: "#/components/schemas/SiteQuestionAnswerSourceRecord"
23950
+ discriminator:
23951
+ propertyName: type
23952
+ SiteSpaceCustomizationSettings:
23953
+ allOf:
23954
+ - $ref: "#/components/schemas/SiteCustomizationSettings"
23955
+ - type: object
23956
+ properties:
23957
+ hasOverrides:
23958
+ type: boolean
23959
+ description: Indicates whether the site customization settings have been overridden.
23960
+ required:
23961
+ - hasOverrides
23962
+ SiteSectionGroupPointer:
23155
23963
  type: object
23156
23964
  properties:
23157
- tool:
23965
+ type:
23158
23966
  type: string
23159
23967
  enum:
23160
- - movePage
23161
- spaceId:
23162
- type: string
23163
- description: The ID of the space being edited.
23164
- page:
23165
- $ref: "#/components/schemas/ChangedRevisionPage"
23166
- to:
23167
- $ref: "#/components/schemas/ChangedRevisionPage"
23168
- moveType:
23968
+ - site-section
23969
+ - site-section-group
23970
+ id:
23169
23971
  type: string
23170
- description: |
23171
- Indicates how the page was moved relative to the "to" page.
23172
- - `within`: moved as the last child of the target page (or to the root when `to` is omitted)
23173
- - `before`: moved directly before the target page
23174
- - `after`: moved directly after the target page
23175
- enum:
23176
- - within
23177
- - before
23178
- - after
23972
+ description: Unique identifier for the site section
23179
23973
  required:
23180
- - tool
23181
- - spaceId
23182
- - page
23183
- - moveType
23184
- AIToolCallListModifiedPages:
23974
+ - type
23975
+ - id
23976
+ SiteSectionGroupMovePosition:
23185
23977
  type: object
23978
+ description: Position at which to move the site section group.
23186
23979
  properties:
23187
- tool:
23980
+ before:
23981
+ $ref: "#/components/schemas/SiteSectionGroupPointer"
23982
+ after:
23983
+ $ref: "#/components/schemas/SiteSectionGroupPointer"
23984
+ SiteSectionPointer:
23985
+ type: object
23986
+ properties:
23987
+ type:
23188
23988
  type: string
23189
23989
  enum:
23190
- - listModifiedPages
23191
- spaceId:
23990
+ - site-section
23991
+ siteSection:
23192
23992
  type: string
23193
- description: The ID of the space being accessed.
23993
+ description: Unique identifier for the site section
23194
23994
  required:
23195
- - tool
23196
- - spaceId
23197
- AIToolCallGetPageDiff:
23995
+ - type
23996
+ - siteSection
23997
+ SiteSectionMovePosition:
23198
23998
  type: object
23999
+ description: Position at which to move the site section to.
23199
24000
  properties:
23200
- tool:
24001
+ before:
24002
+ $ref: "#/components/schemas/SiteSectionPointer"
24003
+ after:
24004
+ $ref: "#/components/schemas/SiteSectionPointer"
24005
+ SiteSpacePointer:
24006
+ type: object
24007
+ properties:
24008
+ type:
23201
24009
  type: string
23202
24010
  enum:
23203
- - getPageDiff
23204
- spaceId:
24011
+ - site-space
24012
+ siteSpace:
23205
24013
  type: string
23206
- description: The ID of the space being accessed.
23207
- page:
23208
- $ref: "#/components/schemas/ChangedRevisionPage"
24014
+ description: Unique identifier for the site space
23209
24015
  required:
23210
- - tool
23211
- - spaceId
23212
- - page
23213
- AIToolCallCreateReusableContent:
24016
+ - type
24017
+ - siteSpace
24018
+ SiteSpaceMovePosition:
23214
24019
  type: object
24020
+ description: Position at which to move the site space to.
23215
24021
  properties:
23216
- tool:
24022
+ before:
24023
+ $ref: "#/components/schemas/SiteSpacePointer"
24024
+ after:
24025
+ $ref: "#/components/schemas/SiteSpacePointer"
24026
+ InviteSiteUsersAndTeams:
24027
+ type: object
24028
+ properties:
24029
+ role:
24030
+ description: Role to set.
24031
+ $ref: "#/components/schemas/MemberRole"
24032
+ anyOf:
24033
+ - type: object
24034
+ properties:
24035
+ teams:
24036
+ type: array
24037
+ minItems: 1
24038
+ items:
24039
+ type: string
24040
+ description: The ID of the team to be invited
24041
+ required:
24042
+ - teams
24043
+ - type: object
24044
+ properties:
24045
+ users:
24046
+ type: array
24047
+ minItems: 1
24048
+ items:
24049
+ type: string
24050
+ description: The ID of the user to be invited
24051
+ required:
24052
+ - users
24053
+ required:
24054
+ - role
24055
+ OrganizationPointer:
24056
+ type: object
24057
+ properties:
24058
+ type:
23217
24059
  type: string
23218
24060
  enum:
23219
- - createReusableContent
23220
- spaceId:
24061
+ - organization
24062
+ organization:
23221
24063
  type: string
23222
- description: The ID of the space being edited.
23223
- reusableContent:
23224
- $ref: "#/components/schemas/ChangedRevisionReusableContent"
24064
+ description: Unique identifier for the organization
24065
+ required:
24066
+ - type
24067
+ - organization
24068
+ UserSitePermission:
24069
+ type: object
24070
+ description: Permission of a user in a site.
24071
+ properties:
24072
+ permission:
24073
+ $ref: "#/components/schemas/MemberRoleOrGuest"
24074
+ user:
24075
+ $ref: "#/components/schemas/User"
24076
+ origin:
24077
+ description: The content or organization that enforced this permission level.
24078
+ oneOf:
24079
+ - $ref: "#/components/schemas/SpacePointer"
24080
+ - $ref: "#/components/schemas/OrganizationPointer"
24081
+ required:
24082
+ - permission
24083
+ - user
24084
+ - origin
24085
+ UserSitePermissionOverride:
24086
+ type: object
24087
+ description: Permission override of a user in a site.
24088
+ properties:
24089
+ permission:
24090
+ $ref: "#/components/schemas/MemberRole"
24091
+ user:
24092
+ $ref: "#/components/schemas/User"
23225
24093
  required:
23226
- - tool
23227
- - spaceId
23228
- - reusableContent
23229
- AIToolCallEditReusableContent:
24094
+ - permission
24095
+ - user
24096
+ TeamSitePermissionOverride:
23230
24097
  type: object
24098
+ description: Permission override of a team in a site.
23231
24099
  properties:
23232
- tool:
23233
- type: string
23234
- enum:
23235
- - editReusableContent
23236
- spaceId:
23237
- type: string
23238
- description: The ID of the space being edited.
23239
- reusableContent:
23240
- $ref: "#/components/schemas/ChangedRevisionReusableContent"
24100
+ permission:
24101
+ $ref: "#/components/schemas/MemberRole"
24102
+ team:
24103
+ $ref: "#/components/schemas/OrganizationTeam"
23241
24104
  required:
23242
- - tool
23243
- - spaceId
23244
- - reusableContent
23245
- AIToolCallGetReusableContent:
24105
+ - permission
24106
+ - team
24107
+ AIMessageContext:
24108
+ type: object
24109
+ description: Context about the current user sending a message.
24110
+ properties:
24111
+ location:
24112
+ type: object
24113
+ properties:
24114
+ spaceId:
24115
+ type: string
24116
+ description: ID of the current space.
24117
+ pageId:
24118
+ type: string
24119
+ description: ID of the current page.
24120
+ required:
24121
+ - spaceId
24122
+ - pageId
24123
+ AIMessageInput:
23246
24124
  type: object
24125
+ description: Input version of an AI message.
23247
24126
  properties:
23248
- tool:
24127
+ role:
23249
24128
  type: string
23250
24129
  enum:
23251
- - getReusableContent
23252
- spaceId:
23253
- type: string
23254
- description: The ID of the space being accessed.
23255
- revisionId:
23256
- type: string
23257
- description: The ID of the revision within which the reusable content is being fetched.
23258
- reusableContent:
23259
- $ref: "#/components/schemas/ChangedRevisionReusableContent"
24130
+ - user
24131
+ content:
24132
+ oneOf:
24133
+ - type: string
24134
+ maxLength: 2048
24135
+ - $ref: "#/components/schemas/JSONDocument"
24136
+ context:
24137
+ $ref: "#/components/schemas/AIMessageContext"
24138
+ attachments:
24139
+ type: array
24140
+ items:
24141
+ $ref: "#/components/schemas/AIAttachment"
23260
24142
  required:
23261
- - tool
23262
- - spaceId
23263
- - reusableContent
23264
- - revisionId
23265
- AIToolCallCreateChangeRequest:
24143
+ - role
24144
+ - content
24145
+ AIModel:
24146
+ type: string
24147
+ enum:
24148
+ - fast
24149
+ - reasoning-low
24150
+ - reasoning-medium
24151
+ - reasoning-high
24152
+ AIToolDefinition:
23266
24153
  type: object
24154
+ description: Description of a tool that can be called from an AI agent.
23267
24155
  properties:
23268
- tool:
23269
- type: string
23270
- enum:
23271
- - createChangeRequest
23272
- spaceId:
24156
+ name:
23273
24157
  type: string
23274
- description: The ID of the space the change request belongs to.
23275
- action:
24158
+ description: The name of the tool. It should be unique within the agent.
24159
+ description:
23276
24160
  type: string
23277
- enum:
23278
- - create
23279
- - update
23280
- changeRequest:
24161
+ description: The description of the tool, passed to the AI agent.
24162
+ inputSchema:
23281
24163
  type: object
24164
+ description: JSON schema describing the input of the tool.
23282
24165
  properties:
23283
- id:
23284
- type: string
23285
- description: The unique identifier of the change request.
23286
- number:
23287
- type: number
23288
- description: Incremental identifier of the change request.
23289
- subject:
24166
+ type:
23290
24167
  type: string
23291
- description: A brief summary of the change request.
24168
+ enum:
24169
+ - object
24170
+ properties:
24171
+ type: object
24172
+ additionalProperties:
24173
+ type: object
24174
+ properties:
24175
+ type:
24176
+ type: string
24177
+ enum:
24178
+ - string
24179
+ - number
24180
+ - boolean
24181
+ - array
24182
+ - object
24183
+ description:
24184
+ type: string
24185
+ description: Description of the property.
24186
+ required:
24187
+ - type
24188
+ - description
24189
+ additionalProperties: true
23292
24190
  required:
23293
- - id
23294
- - number
23295
- - subject
24191
+ - type
24192
+ - properties
23296
24193
  required:
23297
- - tool
23298
- - spaceId
23299
- - action
23300
- - changeRequest
23301
- AIToolCallComment:
24194
+ - name
24195
+ - description
24196
+ AIToolCallResult:
23302
24197
  type: object
24198
+ description: Result of a tool call.
24199
+ required:
24200
+ - tool
24201
+ - toolCallId
24202
+ - output
23303
24203
  properties:
23304
24204
  tool:
23305
24205
  type: string
23306
- enum:
23307
- - comment
23308
- spaceId:
23309
- type: string
23310
- description: The ID of the space being commented.
23311
- page:
23312
- description: The page being commented.
23313
- $ref: "#/components/schemas/ChangedRevisionPage"
23314
- commentId:
24206
+ description: The name of the tool that was called.
24207
+ toolCallId:
23315
24208
  type: string
23316
- description: The ID of the comment being posted.
23317
- required:
23318
- - tool
23319
- - spaceId
23320
- - commentId
23321
- AIToolCallReplyToComment:
24209
+ description: The ID of the tool call.
24210
+ output:
24211
+ type: object
24212
+ description: The output to the tool call.
24213
+ summary:
24214
+ $ref: "#/components/schemas/AIToolCallOtherSummary"
24215
+ AIStreamResponseStart:
23322
24216
  type: object
24217
+ description: |
24218
+ Message emitted by the server to indicate the start of the AI response.
23323
24219
  properties:
23324
- tool:
24220
+ type:
23325
24221
  type: string
23326
24222
  enum:
23327
- - replyToComment
23328
- spaceId:
23329
- type: string
23330
- description: The ID of the space being commented.
23331
- page:
23332
- description: The page being commented.
23333
- $ref: "#/components/schemas/ChangedRevisionPage"
23334
- commentId:
23335
- type: string
23336
- description: The ID of the comment being replied to.
23337
- replyId:
24223
+ - response_start
24224
+ messageId:
23338
24225
  type: string
23339
- description: The ID of the reply being posted.
24226
+ description: |
24227
+ The ID of the message that this event is composing.
24228
+ task:
24229
+ $ref: "#/components/schemas/AIMessageTask"
23340
24230
  required:
23341
- - tool
23342
- - spaceId
23343
- - commentId
23344
- - replyId
23345
- AIToolCallSubmitChangeRequestReview:
24231
+ - type
24232
+ - messageId
24233
+ AIStreamResponseFinish:
23346
24234
  type: object
24235
+ description: |
24236
+ 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.
23347
24237
  properties:
23348
- tool:
24238
+ type:
23349
24239
  type: string
23350
24240
  enum:
23351
- - submitChangeRequestReview
23352
- spaceId:
23353
- type: string
23354
- description: The ID of the space where the review was submitted.
23355
- changeRequestId:
23356
- type: string
23357
- description: The ID of the change request being reviewed.
23358
- status:
23359
- $ref: "#/components/schemas/ChangeRequestReviewStatus"
23360
- description: Result of the review.
23361
- reviewId:
24241
+ - response_finish
24242
+ messageId:
23362
24243
  type: string
23363
- description: Identifier of the review that was created.
23364
- commentId:
24244
+ description: |
24245
+ The ID of the message that this event is composing.
24246
+ responseId:
23365
24247
  type: string
23366
- description: Identifier of the comment that was created as part of the review.
24248
+ deprecated: true
24249
+ description: The ID of the response
24250
+ response:
24251
+ description: The response metadata associated with the message.
24252
+ $ref: "#/components/schemas/AIMessageResponseMetadata"
23367
24253
  required:
23368
- - tool
23369
- - spaceId
23370
- - changeRequestId
23371
- - status
23372
- - reviewId
23373
- - commentId
23374
- AIToolCallMCP:
24254
+ - type
24255
+ - messageId
24256
+ - response
24257
+ AIStreamResponseDocument:
23375
24258
  type: object
23376
- description: Tool called from an MCP server
24259
+ description: |
24260
+ 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.
23377
24261
  properties:
23378
- tool:
24262
+ type:
23379
24263
  type: string
23380
24264
  enum:
23381
- - mcp
23382
- mcpServerId:
23383
- type: string
23384
- description: The ID of the MCP server that has been called.
23385
- mcpToolName:
24265
+ - response_document
24266
+ - response_reasoning
24267
+ messageId:
23386
24268
  type: string
23387
- description: The name of the tool that has been called.
23388
- mcpToolTitle:
24269
+ description: |
24270
+ The ID of the message that this event is composing.
24271
+ stepIndex:
24272
+ type: integer
24273
+ description: |
24274
+ The index of the step of the message that this event is composing.
24275
+ operation:
23389
24276
  type: string
23390
- description: The title of the tool that has been called.
24277
+ enum:
24278
+ - insert
24279
+ - update
24280
+ blocks:
24281
+ type: array
24282
+ items:
24283
+ $ref: "#/components/schemas/DocumentBlocksTopLevels"
23391
24284
  required:
23392
- - tool
23393
- - mcpServerId
23394
- - mcpToolName
23395
- AIToolCallOther:
24285
+ - type
24286
+ - messageId
24287
+ - stepIndex
24288
+ - operation
24289
+ - blocks
24290
+ AIStreamResponseObject:
23396
24291
  type: object
23397
- description: Any tool call that is unknown by GitBook
24292
+ description: |
24293
+ Message emitted by the server to indicate a chunk of the JSON object response.
23398
24294
  properties:
23399
- tool:
24295
+ type:
23400
24296
  type: string
23401
24297
  enum:
23402
- - other
23403
- summary:
23404
- $ref: "#/components/schemas/AIToolCallOtherSummary"
24298
+ - response_object
24299
+ messageId:
24300
+ type: string
24301
+ description: |
24302
+ The ID of the message that this event is composing.
24303
+ jsonChunk:
24304
+ type: string
24305
+ description: The chunk of the JSON object response
23405
24306
  required:
23406
- - tool
23407
- - summary
23408
- AIToolCall:
23409
- oneOf:
23410
- - $ref: "#/components/schemas/AIToolCallGetPageContent"
23411
- - $ref: "#/components/schemas/AIToolCallGetPages"
23412
- - $ref: "#/components/schemas/AIToolCallGetReusableContents"
23413
- - $ref: "#/components/schemas/AIToolCallSearch"
23414
- - $ref: "#/components/schemas/AIToolCallEditPage"
23415
- - $ref: "#/components/schemas/AIToolCallCreatePage"
23416
- - $ref: "#/components/schemas/AIToolCallDeletePage"
23417
- - $ref: "#/components/schemas/AIToolCallRenamePage"
23418
- - $ref: "#/components/schemas/AIToolCallMovePage"
23419
- - $ref: "#/components/schemas/AIToolCallListModifiedPages"
23420
- - $ref: "#/components/schemas/AIToolCallGetPageDiff"
23421
- - $ref: "#/components/schemas/AIToolCallCreateReusableContent"
23422
- - $ref: "#/components/schemas/AIToolCallEditReusableContent"
23423
- - $ref: "#/components/schemas/AIToolCallGetReusableContent"
23424
- - $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
23425
- - $ref: "#/components/schemas/AIToolCallComment"
23426
- - $ref: "#/components/schemas/AIToolCallReplyToComment"
23427
- - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
23428
- - $ref: "#/components/schemas/AIToolCallMCP"
23429
- - $ref: "#/components/schemas/AIToolCallOther"
24307
+ - type
24308
+ - messageId
24309
+ - jsonChunk
23430
24310
  AIStreamResponseToolCall:
23431
24311
  type: object
23432
24312
  description: |
@@ -23548,62 +24428,56 @@ components:
23548
24428
  - $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
23549
24429
  - $ref: "#/components/schemas/AIStreamResponseAttachment"
23550
24430
  SiteInsightsEventSession:
23551
- type: object
23552
- description: Analytics info on the GitBook's site session.
23553
- properties:
23554
- visitorId:
23555
- type: string
23556
- description: GitBook's unique identifier of the visitor.
23557
- sessionId:
23558
- type: string
23559
- description: GitBook's unique identifier of the visitor's session.
23560
- cookies:
23561
- type: object
23562
- description: The visitors cookies.
23563
- additionalProperties:
23564
- type: string
23565
- ip:
23566
- type: string
23567
- description: |
23568
- IP address of the visitor.
23569
- If not defined, it'll default to the IP executing the request.
23570
- userAgent:
23571
- type: string
23572
- description: |
23573
- User-agent of the visitor.
23574
- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
23575
- language:
23576
- type: string
23577
- nullable: true
23578
- description: |
23579
- Language of the visitor.
23580
- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
23581
- referrer:
23582
- description: Referrer of the session
23583
- oneOf:
23584
- - type: string
24431
+ allOf:
24432
+ - $ref: "#/components/schemas/SiteInsightsSession"
24433
+ - type: object
24434
+ description: Analytics info on the GitBook's site session.
24435
+ properties:
24436
+ cookies:
24437
+ type: object
24438
+ description: The visitors cookies.
24439
+ additionalProperties:
24440
+ type: string
24441
+ ip:
24442
+ type: string
24443
+ description: |
24444
+ IP address of the visitor.
24445
+ If not defined, it'll default to the IP executing the request.
24446
+ userAgent:
24447
+ type: string
24448
+ description: |
24449
+ User-agent of the visitor.
24450
+ https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
24451
+ language:
24452
+ type: string
23585
24453
  nullable: true
23586
- enum:
23587
- - null
23588
- - ""
23589
- - $ref: "#/components/schemas/URL"
23590
- visitorAuthToken:
23591
- type: string
23592
- nullable: true
23593
- deprecated: true
23594
- description: Deprecated, use visitorAuthClaims instead.
23595
- visitorAuthClaims:
23596
- description: |
23597
- Claims of the visitor.
23598
- This is used to identify the visitor with adaptive content.
23599
- $ref: "#/components/schemas/PlainObject"
23600
- required:
23601
- - visitorId
23602
- - sessionId
23603
- - cookies
23604
- - userAgent
23605
- - language
23606
- - referrer
24454
+ description: |
24455
+ Language of the visitor.
24456
+ https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
24457
+ referrer:
24458
+ description: Referrer of the session
24459
+ oneOf:
24460
+ - type: string
24461
+ nullable: true
24462
+ enum:
24463
+ - null
24464
+ - ""
24465
+ - $ref: "#/components/schemas/URL"
24466
+ visitorAuthToken:
24467
+ type: string
24468
+ nullable: true
24469
+ deprecated: true
24470
+ description: Deprecated, use visitorAuthClaims instead.
24471
+ visitorAuthClaims:
24472
+ description: |
24473
+ Claims of the visitor.
24474
+ This is used to identify the visitor with adaptive content.
24475
+ $ref: "#/components/schemas/PlainObject"
24476
+ required:
24477
+ - cookies
24478
+ - userAgent
24479
+ - language
24480
+ - referrer
23607
24481
  SiteInsightsDisplayContext:
23608
24482
  type: string
23609
24483
  description: Context in which the event was recorded.
@@ -25624,6 +26498,41 @@ components:
25624
26498
  description: ID of the organization owning this site
25625
26499
  required:
25626
26500
  - organization
26501
+ PublishedContentRedirect:
26502
+ oneOf:
26503
+ - type: object
26504
+ title: Redirect to the application or a different content in the site
26505
+ properties:
26506
+ target:
26507
+ type: string
26508
+ description: Type of target for the redirect
26509
+ enum:
26510
+ - application
26511
+ - content
26512
+ redirect:
26513
+ $ref: "#/components/schemas/URL"
26514
+ required:
26515
+ - target
26516
+ - redirect
26517
+ - type: object
26518
+ title: Redirect to an external resource from the site
26519
+ properties:
26520
+ target:
26521
+ type: string
26522
+ description: Type of target for the redirect
26523
+ enum:
26524
+ - external
26525
+ site:
26526
+ type: string
26527
+ description: ID of the resolved site.
26528
+ redirect:
26529
+ $ref: "#/components/schemas/URL"
26530
+ required:
26531
+ - target
26532
+ - site
26533
+ - redirect
26534
+ discriminator:
26535
+ propertyName: target
25627
26536
  PublishedSiteContent:
25628
26537
  type: object
25629
26538
  title: Site Content
@@ -25686,21 +26595,7 @@ components:
25686
26595
  - canonicalUrl
25687
26596
  PublishedSiteContentLookup:
25688
26597
  oneOf:
25689
- - type: object
25690
- title: Redirect
25691
- properties:
25692
- target:
25693
- type: string
25694
- description: Type of target for the redirect
25695
- enum:
25696
- - application
25697
- - content
25698
- - external
25699
- redirect:
25700
- $ref: "#/components/schemas/URL"
25701
- required:
25702
- - target
25703
- - redirect
26598
+ - $ref: "#/components/schemas/PublishedContentRedirect"
25704
26599
  - $ref: "#/components/schemas/PublishedSiteContent"
25705
26600
  SiteVisitorPayload:
25706
26601
  type: object
@@ -25711,16 +26606,6 @@ components:
25711
26606
  description: JWT token generated for a authenticated access session.
25712
26607
  unsignedClaims:
25713
26608
  $ref: "#/components/schemas/PlainObject"
25714
- Timerange:
25715
- type: object
25716
- properties:
25717
- start:
25718
- $ref: "#/components/schemas/Timestamp"
25719
- end:
25720
- $ref: "#/components/schemas/Timestamp"
25721
- required:
25722
- - start
25723
- - end
25724
26609
  SHA256:
25725
26610
  type: string
25726
26611
  minLength: 64
@@ -27510,6 +28395,12 @@ components:
27510
28395
  - live
27511
28396
  - rejected
27512
28397
  - disabled
28398
+ SiteQuestionAnswerSourceType:
28399
+ type: string
28400
+ description: Source type used to answer a site question.
28401
+ enum:
28402
+ - page
28403
+ - record
27513
28404
  Seat:
27514
28405
  type: object
27515
28406
  properties:
@@ -27535,55 +28426,6 @@ components:
27535
28426
  - member
27536
28427
  - createdAt
27537
28428
  - updatedAt
27538
- AIMessageRole:
27539
- type: string
27540
- enum:
27541
- - user
27542
- - assistant
27543
- - developer
27544
- AIMessageStep:
27545
- type: object
27546
- description: A step in a message from the AI agent.
27547
- properties:
27548
- content:
27549
- $ref: "#/components/schemas/JSONDocument"
27550
- reasoning:
27551
- $ref: "#/components/schemas/JSONDocument"
27552
- toolCalls:
27553
- type: array
27554
- items:
27555
- $ref: "#/components/schemas/AIToolCall"
27556
- timing:
27557
- type: object
27558
- description: The timing of the step.
27559
- properties:
27560
- reasoning:
27561
- $ref: "#/components/schemas/Timerange"
27562
- attachments:
27563
- type: array
27564
- items:
27565
- $ref: "#/components/schemas/AIAttachment"
27566
- required:
27567
- - content
27568
- AIMessage:
27569
- type: object
27570
- properties:
27571
- id:
27572
- type: string
27573
- role:
27574
- $ref: "#/components/schemas/AIMessageRole"
27575
- steps:
27576
- type: array
27577
- items:
27578
- $ref: "#/components/schemas/AIMessageStep"
27579
- task:
27580
- $ref: "#/components/schemas/AIMessageTask"
27581
- response:
27582
- $ref: "#/components/schemas/AIMessageResponseMetadata"
27583
- required:
27584
- - id
27585
- - role
27586
- - steps
27587
28429
  AgentStreamMessages:
27588
28430
  type: object
27589
28431
  description: |