@gitbook/api 0.161.0 → 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
@@ -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
@@ -8434,6 +8444,162 @@ paths:
8434
8444
  application/json:
8435
8445
  schema:
8436
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"
8437
8603
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
8438
8604
  patch:
8439
8605
  operationId: updateSiteSpaceById
@@ -9247,6 +9413,8 @@ paths:
9247
9413
  $ref: "#/components/schemas/AIToolDefinition"
9248
9414
  toolCall:
9249
9415
  $ref: "#/components/schemas/AIToolCallResult"
9416
+ session:
9417
+ $ref: "#/components/schemas/SiteInsightsSession"
9250
9418
  responses:
9251
9419
  "200":
9252
9420
  description: OK
@@ -10459,6 +10627,20 @@ components:
10459
10627
  description: The unique id of the context topic
10460
10628
  schema:
10461
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
10462
10644
  siteSpaceId:
10463
10645
  name: siteSpaceId
10464
10646
  in: path
@@ -14784,18 +14966,30 @@ components:
14784
14966
  type: string
14785
14967
  description: ID of the document with the content body. If undefined, the reusable content is empty.
14786
14968
  RevisionTag:
14787
- type: object
14788
- description: A reusable tag that different types of content can be associated to (e.g. pages, update entries)
14789
- properties:
14790
- slug:
14791
- type: string
14792
- description: The slug identifier for the tag, immutable after creation.
14793
- label:
14794
- type: string
14795
- description: Display label for the tag. Can be renamed and differ from the slug.
14796
- required:
14797
- - slug
14798
- - 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"
14799
14993
  GitSyncCommit:
14800
14994
  type: object
14801
14995
  properties:
@@ -15074,6 +15268,7 @@ components:
15074
15268
  description: Name of the organization
15075
15269
  minLength: 2
15076
15270
  maxLength: 255
15271
+ pattern: \S.*\S
15077
15272
  OrganizationEmailDomains:
15078
15273
  type: array
15079
15274
  items:
@@ -22798,177 +22993,724 @@ components:
22798
22993
  - createdAt
22799
22994
  - updatedAt
22800
22995
  - urls
22801
- SiteSpaceCustomizationSettings:
22802
- allOf:
22803
- - $ref: "#/components/schemas/SiteCustomizationSettings"
22804
- - type: object
22805
- properties:
22806
- hasOverrides:
22807
- type: boolean
22808
- description: Indicates whether the site customization settings have been overridden.
22809
- required:
22810
- - hasOverrides
22811
- SiteSectionGroupPointer:
22996
+ SiteQuestionStatsFeedback:
22812
22997
  type: object
22998
+ description: Aggregated feedback for answers linked to a site question.
22813
22999
  properties:
22814
- type:
22815
- type: string
22816
- enum:
22817
- - site-section
22818
- - site-section-group
22819
- id:
22820
- type: string
22821
- description: Unique identifier for the site section
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.
22822
23009
  required:
22823
- - type
22824
- - id
22825
- SiteSectionGroupMovePosition:
23010
+ - positive
23011
+ - negative
23012
+ - unrated
23013
+ SiteQuestionStatsAnswered:
22826
23014
  type: object
22827
- description: Position at which to move the site section group.
23015
+ description: Aggregated answered assessment for answers linked to a site question.
22828
23016
  properties:
22829
- before:
22830
- $ref: "#/components/schemas/SiteSectionGroupPointer"
22831
- after:
22832
- $ref: "#/components/schemas/SiteSectionGroupPointer"
22833
- SiteSectionPointer:
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:
22834
23031
  type: object
23032
+ description: Aggregated stats for answers linked to a site question.
22835
23033
  properties:
22836
- type:
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:
22837
23049
  type: string
22838
23050
  enum:
22839
- - site-section
22840
- siteSection:
23051
+ - site-question
23052
+ id:
22841
23053
  type: string
22842
- 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
22843
23072
  required:
22844
- - type
22845
- - siteSection
22846
- SiteSectionMovePosition:
23073
+ - object
23074
+ - id
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:
22847
23102
  type: object
22848
- description: Position at which to move the site section to.
23103
+ description: Identifiers for a GitBook site session, used for analytics and adaptive content.
22849
23104
  properties:
22850
- before:
22851
- $ref: "#/components/schemas/SiteSectionPointer"
22852
- after:
22853
- $ref: "#/components/schemas/SiteSectionPointer"
22854
- SiteSpacePointer:
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:
22855
23115
  type: object
22856
23116
  properties:
22857
- type:
23117
+ object:
22858
23118
  type: string
22859
23119
  enum:
22860
- - site-space
22861
- siteSpace:
23120
+ - site-question-answer
23121
+ id:
22862
23122
  type: string
22863
- description: Unique identifier for the site space
22864
- required:
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
23187
+ required:
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:
23206
+ type: object
23207
+ properties:
23208
+ tool:
23209
+ type: string
23210
+ enum:
23211
+ - getPageContent
23212
+ spaceId:
23213
+ type: string
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"
23220
+ required:
23221
+ - tool
23222
+ - spaceId
23223
+ - page
23224
+ - revisionId
23225
+ AIToolCallGetPages:
23226
+ type: object
23227
+ properties:
23228
+ tool:
23229
+ type: string
23230
+ enum:
23231
+ - getPages
23232
+ spaceId:
23233
+ type: string
23234
+ description: The ID of the space being accessed.
23235
+ revisionId:
23236
+ type: string
23237
+ description: The revision ID of the space.
23238
+ required:
23239
+ - tool
23240
+ - spaceId
23241
+ - revisionId
23242
+ AIToolCallGetReusableContents:
23243
+ type: object
23244
+ properties:
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.
23255
+ required:
23256
+ - tool
23257
+ - spaceId
23258
+ - revisionId
23259
+ AIToolCallSearchResultPage:
23260
+ type: object
23261
+ title: Page result
23262
+ description: Result of a search matching a page.
23263
+ properties:
23264
+ type:
23265
+ type: string
23266
+ enum:
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
23286
+ required:
22865
23287
  - type
22866
- - siteSpace
22867
- SiteSpaceMovePosition:
23288
+ - spaceId
23289
+ - pageId
23290
+ - revisionId
23291
+ - title
23292
+ AIToolCallSearchResultRecord:
22868
23293
  type: object
22869
- description: Position at which to move the site space to.
23294
+ title: Site context record result
23295
+ description: Result of a search matching a site context record.
22870
23296
  properties:
22871
- before:
22872
- $ref: "#/components/schemas/SiteSpacePointer"
22873
- after:
22874
- $ref: "#/components/schemas/SiteSpacePointer"
22875
- InviteSiteUsersAndTeams:
23297
+ type:
23298
+ type: string
23299
+ enum:
23300
+ - record
23301
+ siteId:
23302
+ type: string
23303
+ description: The ID of the site owning the context record
23304
+ recordId:
23305
+ type: string
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
23317
+ required:
23318
+ - type
23319
+ - siteId
23320
+ - recordId
23321
+ - title
23322
+ AIToolCallSearchResult:
23323
+ description: Result of a search
23324
+ oneOf:
23325
+ - $ref: "#/components/schemas/AIToolCallSearchResultPage"
23326
+ - $ref: "#/components/schemas/AIToolCallSearchResultRecord"
23327
+ discriminator:
23328
+ propertyName: type
23329
+ AIToolCallSearch:
22876
23330
  type: object
23331
+ description: Tool to search for content
22877
23332
  properties:
22878
- role:
22879
- description: Role to set.
22880
- $ref: "#/components/schemas/MemberRole"
22881
- anyOf:
22882
- - type: object
22883
- properties:
22884
- teams:
22885
- type: array
22886
- minItems: 1
22887
- items:
22888
- type: string
22889
- description: The ID of the team to be invited
22890
- required:
22891
- - teams
22892
- - type: object
23333
+ tool:
23334
+ type: string
23335
+ enum:
23336
+ - search
23337
+ query:
23338
+ type: string
23339
+ description: The query that has been searched for.
23340
+ results:
23341
+ type: array
23342
+ items:
23343
+ $ref: "#/components/schemas/AIToolCallSearchResult"
23344
+ required:
23345
+ - tool
23346
+ - query
23347
+ - results
23348
+ AIToolCallEditPage:
23349
+ type: object
23350
+ properties:
23351
+ tool:
23352
+ type: string
23353
+ enum:
23354
+ - editPage
23355
+ spaceId:
23356
+ type: string
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:
23543
+ type: object
22893
23544
  properties:
22894
- users:
22895
- type: array
22896
- minItems: 1
22897
- items:
22898
- type: string
22899
- description: The ID of the user to be invited
23545
+ id:
23546
+ type: string
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.
22900
23554
  required:
22901
- - users
23555
+ - id
23556
+ - number
23557
+ - subject
23558
+ required:
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.
22902
23602
  required:
22903
- - role
22904
- OrganizationPointer:
23603
+ - tool
23604
+ - spaceId
23605
+ - commentId
23606
+ - replyId
23607
+ AIToolCallSubmitChangeRequestReview:
22905
23608
  type: object
22906
23609
  properties:
22907
- type:
23610
+ tool:
22908
23611
  type: string
22909
23612
  enum:
22910
- - organization
22911
- organization:
23613
+ - submitChangeRequestReview
23614
+ spaceId:
22912
23615
  type: string
22913
- description: Unique identifier for the organization
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.
22914
23629
  required:
22915
- - type
22916
- - organization
22917
- UserSitePermission:
23630
+ - tool
23631
+ - spaceId
23632
+ - changeRequestId
23633
+ - status
23634
+ - reviewId
23635
+ - commentId
23636
+ AIToolCallMCP:
22918
23637
  type: object
22919
- description: Permission of a user in a site.
23638
+ description: Tool called from an MCP server
22920
23639
  properties:
22921
- permission:
22922
- $ref: "#/components/schemas/MemberRoleOrGuest"
22923
- user:
22924
- $ref: "#/components/schemas/User"
22925
- origin:
22926
- description: The content or organization that enforced this permission level.
22927
- oneOf:
22928
- - $ref: "#/components/schemas/SpacePointer"
22929
- - $ref: "#/components/schemas/OrganizationPointer"
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.
22930
23653
  required:
22931
- - permission
22932
- - user
22933
- - origin
22934
- UserSitePermissionOverride:
23654
+ - tool
23655
+ - mcpServerId
23656
+ - mcpToolName
23657
+ AIToolCallOtherSummary:
22935
23658
  type: object
22936
- description: Permission override of a user in a site.
23659
+ description: Summary of a generic tool call.
22937
23660
  properties:
22938
- permission:
22939
- $ref: "#/components/schemas/MemberRole"
22940
- user:
22941
- $ref: "#/components/schemas/User"
23661
+ icon:
23662
+ $ref: "#/components/schemas/Icon"
23663
+ text:
23664
+ type: string
23665
+ description: Text to display to the user to describe the tool call.
22942
23666
  required:
22943
- - permission
22944
- - user
22945
- TeamSitePermissionOverride:
23667
+ - icon
23668
+ - text
23669
+ AIToolCallOther:
22946
23670
  type: object
22947
- description: Permission override of a team in a site.
23671
+ description: Any tool call that is unknown by GitBook
22948
23672
  properties:
22949
- permission:
22950
- $ref: "#/components/schemas/MemberRole"
22951
- team:
22952
- $ref: "#/components/schemas/OrganizationTeam"
23673
+ tool:
23674
+ type: string
23675
+ enum:
23676
+ - other
23677
+ summary:
23678
+ $ref: "#/components/schemas/AIToolCallOtherSummary"
22953
23679
  required:
22954
- - permission
22955
- - team
22956
- AIMessageContext:
23680
+ - tool
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:
22957
23705
  type: object
22958
- description: Context about the current user sending a message.
22959
23706
  properties:
22960
- location:
22961
- type: object
22962
- properties:
22963
- spaceId:
22964
- type: string
22965
- description: ID of the current space.
22966
- pageId:
22967
- type: string
22968
- description: ID of the current page.
22969
- required:
22970
- - spaceId
22971
- - pageId
23707
+ start:
23708
+ $ref: "#/components/schemas/Timestamp"
23709
+ end:
23710
+ $ref: "#/components/schemas/Timestamp"
23711
+ required:
23712
+ - start
23713
+ - end
22972
23714
  AIAttachmentImage:
22973
23715
  type: object
22974
23716
  properties:
@@ -23006,110 +23748,30 @@ components:
23006
23748
  oneOf:
23007
23749
  - $ref: "#/components/schemas/AIAttachmentImage"
23008
23750
  - $ref: "#/components/schemas/AIAttachmentFile"
23009
- AIMessageInput:
23010
- type: object
23011
- description: Input version of an AI message.
23012
- properties:
23013
- role:
23014
- type: string
23015
- enum:
23016
- - user
23017
- content:
23018
- oneOf:
23019
- - type: string
23020
- maxLength: 2048
23021
- - $ref: "#/components/schemas/JSONDocument"
23022
- context:
23023
- $ref: "#/components/schemas/AIMessageContext"
23024
- attachments:
23025
- type: array
23026
- items:
23027
- $ref: "#/components/schemas/AIAttachment"
23028
- required:
23029
- - role
23030
- - content
23031
- AIModel:
23032
- type: string
23033
- enum:
23034
- - fast
23035
- - reasoning-low
23036
- - reasoning-medium
23037
- - reasoning-high
23038
- AIToolDefinition:
23039
- type: object
23040
- description: Description of a tool that can be called from an AI agent.
23041
- properties:
23042
- name:
23043
- type: string
23044
- description: The name of the tool. It should be unique within the agent.
23045
- description:
23046
- type: string
23047
- description: The description of the tool, passed to the AI agent.
23048
- inputSchema:
23049
- type: object
23050
- description: JSON schema describing the input of the tool.
23051
- properties:
23052
- type:
23053
- type: string
23054
- enum:
23055
- - object
23056
- properties:
23057
- type: object
23058
- additionalProperties:
23059
- type: object
23060
- properties:
23061
- type:
23062
- type: string
23063
- enum:
23064
- - string
23065
- - number
23066
- - boolean
23067
- - array
23068
- - object
23069
- description:
23070
- type: string
23071
- description: Description of the property.
23072
- required:
23073
- - type
23074
- - description
23075
- additionalProperties: true
23076
- required:
23077
- - type
23078
- - properties
23079
- required:
23080
- - name
23081
- - description
23082
- AIToolCallOtherSummary:
23083
- type: object
23084
- description: Summary of a generic tool call.
23085
- properties:
23086
- icon:
23087
- $ref: "#/components/schemas/Icon"
23088
- text:
23089
- type: string
23090
- description: Text to display to the user to describe the tool call.
23091
- required:
23092
- - icon
23093
- - text
23094
- AIToolCallResult:
23751
+ AIMessageStep:
23095
23752
  type: object
23096
- description: Result of a tool call.
23097
- required:
23098
- - tool
23099
- - toolCallId
23100
- - output
23753
+ description: A step in a message from the AI agent.
23101
23754
  properties:
23102
- tool:
23103
- type: string
23104
- description: The name of the tool that was called.
23105
- toolCallId:
23106
- type: string
23107
- description: The ID of the tool call.
23108
- output:
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:
23109
23764
  type: object
23110
- description: The output to the tool call.
23111
- summary:
23112
- $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
23113
23775
  AIMessageTask:
23114
23776
  oneOf:
23115
23777
  - type: object
@@ -23166,603 +23828,485 @@ components:
23166
23828
  - type
23167
23829
  - spaceId
23168
23830
  - changeRequestId
23169
- AIStreamResponseStart:
23170
- type: object
23171
- description: |
23172
- Message emitted by the server to indicate the start of the AI response.
23173
- properties:
23174
- type:
23175
- type: string
23176
- enum:
23177
- - response_start
23178
- messageId:
23179
- type: string
23180
- description: |
23181
- The ID of the message that this event is composing.
23182
- task:
23183
- $ref: "#/components/schemas/AIMessageTask"
23184
- required:
23185
- - type
23186
- - messageId
23187
23831
  AIMessageResponseMetadata:
23188
23832
  description: The response that generated this message.
23189
23833
  type: object
23190
23834
  properties:
23191
- stopReason:
23192
- type: string
23193
- description: The reason the response was stopped. If not defined, the response finished normally.
23194
- enum:
23195
- - aborted
23196
- id:
23197
- type: string
23198
- description: The ID of the response that generated this message. It can be undefined if the stream was aborted.
23199
- previous:
23200
- type: string
23201
- description: The ID of the previous response that this message is based on.
23202
- AIStreamResponseFinish:
23203
- type: object
23204
- description: |
23205
- 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.
23206
- properties:
23207
- type:
23208
- type: string
23209
- enum:
23210
- - response_finish
23211
- messageId:
23212
- type: string
23213
- description: |
23214
- The ID of the message that this event is composing.
23215
- responseId:
23216
- type: string
23217
- deprecated: true
23218
- description: The ID of the response
23219
- response:
23220
- description: The response metadata associated with the message.
23221
- $ref: "#/components/schemas/AIMessageResponseMetadata"
23222
- required:
23223
- - type
23224
- - messageId
23225
- - response
23226
- AIStreamResponseDocument:
23227
- type: object
23228
- description: |
23229
- 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.
23230
- properties:
23231
- type:
23232
- type: string
23233
- enum:
23234
- - response_document
23235
- - response_reasoning
23236
- messageId:
23237
- type: string
23238
- description: |
23239
- The ID of the message that this event is composing.
23240
- stepIndex:
23241
- type: integer
23242
- description: |
23243
- The index of the step of the message that this event is composing.
23244
- operation:
23245
- type: string
23246
- enum:
23247
- - insert
23248
- - update
23249
- blocks:
23250
- type: array
23251
- items:
23252
- $ref: "#/components/schemas/DocumentBlocksTopLevels"
23253
- required:
23254
- - type
23255
- - messageId
23256
- - stepIndex
23257
- - operation
23258
- - blocks
23259
- AIStreamResponseObject:
23260
- type: object
23261
- description: |
23262
- Message emitted by the server to indicate a chunk of the JSON object response.
23263
- properties:
23264
- type:
23265
- type: string
23266
- enum:
23267
- - response_object
23268
- messageId:
23269
- type: string
23270
- description: |
23271
- The ID of the message that this event is composing.
23272
- jsonChunk:
23273
- type: string
23274
- description: The chunk of the JSON object response
23275
- required:
23276
- - type
23277
- - messageId
23278
- - jsonChunk
23279
- AIToolCallGetPageContent:
23280
- type: object
23281
- properties:
23282
- tool:
23283
- type: string
23284
- enum:
23285
- - getPageContent
23286
- spaceId:
23287
- type: string
23288
- description: The ID of the space being accessed.
23289
- revisionId:
23290
- type: string
23291
- description: The ID of the revision within which the page content is being fetched.
23292
- page:
23293
- $ref: "#/components/schemas/ChangedRevisionPage"
23294
- required:
23295
- - tool
23296
- - spaceId
23297
- - page
23298
- - revisionId
23299
- AIToolCallGetPages:
23300
- type: object
23301
- properties:
23302
- tool:
23303
- type: string
23304
- enum:
23305
- - getPages
23306
- spaceId:
23307
- type: string
23308
- description: The ID of the space being accessed.
23309
- revisionId:
23310
- type: string
23311
- description: The revision ID of the space.
23312
- required:
23313
- - tool
23314
- - spaceId
23315
- - revisionId
23316
- AIToolCallGetReusableContents:
23317
- type: object
23318
- properties:
23319
- tool:
23320
- type: string
23321
- enum:
23322
- - getReusableContents
23323
- spaceId:
23324
- type: string
23325
- description: The ID of the space being accessed.
23326
- revisionId:
23327
- type: string
23328
- description: The revision ID of the space.
23329
- required:
23330
- - tool
23331
- - spaceId
23332
- - revisionId
23333
- AIToolCallSearchResultPage:
23334
- type: object
23335
- title: Page result
23336
- description: Result of a search matching a page.
23337
- properties:
23338
- type:
23339
- type: string
23340
- enum:
23341
- - page
23342
- spaceId:
23343
- type: string
23344
- description: The ID of the space
23345
- pageId:
23346
- type: string
23347
- description: The ID of the page
23348
- revisionId:
23349
- type: string
23350
- description: The revision ID of the result
23351
- anchor:
23352
- type: string
23353
- description: The anchor of the result
23354
- title:
23355
- type: string
23356
- description: The title of the result
23357
- description:
23358
- type: string
23359
- description: The description of the result
23360
- required:
23361
- - type
23362
- - spaceId
23363
- - pageId
23364
- - revisionId
23365
- - title
23366
- AIToolCallSearchResultRecord:
23367
- type: object
23368
- title: Site context record result
23369
- description: Result of a search matching a site context record.
23370
- properties:
23371
- type:
23372
- type: string
23373
- enum:
23374
- - record
23375
- siteId:
23376
- type: string
23377
- description: The ID of the site owning the context record
23378
- recordId:
23379
- type: string
23380
- description: The ID of the context record
23381
- title:
23382
- type: string
23383
- description: The title of the record
23384
- description:
23385
- type: string
23386
- description: The description of the record
23387
- url:
23388
- type: string
23389
- format: uri
23390
- description: URL of the record in its original source
23391
- required:
23392
- - type
23393
- - siteId
23394
- - recordId
23395
- - title
23396
- AIToolCallSearchResult:
23397
- description: Result of a search
23398
- oneOf:
23399
- - $ref: "#/components/schemas/AIToolCallSearchResultPage"
23400
- - $ref: "#/components/schemas/AIToolCallSearchResultRecord"
23401
- discriminator:
23402
- propertyName: type
23403
- AIToolCallSearch:
23404
- type: object
23405
- description: Tool to search for content
23406
- properties:
23407
- tool:
23835
+ stopReason:
23408
23836
  type: string
23837
+ description: The reason the response was stopped. If not defined, the response finished normally.
23409
23838
  enum:
23410
- - search
23411
- query:
23839
+ - aborted
23840
+ id:
23412
23841
  type: string
23413
- description: The query that has been searched for.
23414
- results:
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:
23415
23854
  type: array
23416
23855
  items:
23417
- $ref: "#/components/schemas/AIToolCallSearchResult"
23856
+ $ref: "#/components/schemas/AIMessageStep"
23857
+ task:
23858
+ $ref: "#/components/schemas/AIMessageTask"
23859
+ response:
23860
+ $ref: "#/components/schemas/AIMessageResponseMetadata"
23418
23861
  required:
23419
- - tool
23420
- - query
23421
- - results
23422
- AIToolCallEditPage:
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:
23423
23875
  type: object
23424
23876
  properties:
23425
- tool:
23877
+ object:
23426
23878
  type: string
23427
23879
  enum:
23428
- - editPage
23429
- spaceId:
23880
+ - site-question-answer-source
23881
+ id:
23430
23882
  type: string
23431
- description: The ID of the space being edited.
23432
- page:
23433
- $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.
23887
+ title:
23888
+ type: string
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
23434
23900
  required:
23435
- - tool
23436
- - spaceId
23437
- - page
23438
- AIToolCallCreatePage:
23901
+ - object
23902
+ - id
23903
+ - title
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:
23439
23963
  type: object
23440
23964
  properties:
23441
- tool:
23965
+ type:
23442
23966
  type: string
23443
23967
  enum:
23444
- - createPage
23445
- spaceId:
23968
+ - site-section
23969
+ - site-section-group
23970
+ id:
23446
23971
  type: string
23447
- description: The ID of the space being edited.
23448
- page:
23449
- $ref: "#/components/schemas/ChangedRevisionPage"
23972
+ description: Unique identifier for the site section
23450
23973
  required:
23451
- - tool
23452
- - spaceId
23453
- - page
23454
- AIToolCallDeletePage:
23974
+ - type
23975
+ - id
23976
+ SiteSectionGroupMovePosition:
23977
+ type: object
23978
+ description: Position at which to move the site section group.
23979
+ properties:
23980
+ before:
23981
+ $ref: "#/components/schemas/SiteSectionGroupPointer"
23982
+ after:
23983
+ $ref: "#/components/schemas/SiteSectionGroupPointer"
23984
+ SiteSectionPointer:
23455
23985
  type: object
23456
23986
  properties:
23457
- tool:
23987
+ type:
23458
23988
  type: string
23459
23989
  enum:
23460
- - deletePage
23461
- spaceId:
23990
+ - site-section
23991
+ siteSection:
23462
23992
  type: string
23463
- description: The ID of the space being edited.
23464
- page:
23465
- $ref: "#/components/schemas/ChangedRevisionPage"
23993
+ description: Unique identifier for the site section
23466
23994
  required:
23467
- - tool
23468
- - spaceId
23469
- - page
23470
- AIToolCallRenamePage:
23995
+ - type
23996
+ - siteSection
23997
+ SiteSectionMovePosition:
23471
23998
  type: object
23999
+ description: Position at which to move the site section to.
23472
24000
  properties:
23473
- tool:
23474
- type: string
23475
- enum:
23476
- - renamePage
23477
- spaceId:
23478
- type: string
23479
- description: The ID of the space being edited.
23480
- page:
23481
- $ref: "#/components/schemas/ChangedRevisionPage"
23482
- title:
23483
- type: string
23484
- description: The new title of the page.
23485
- required:
23486
- - tool
23487
- - spaceId
23488
- - page
23489
- - title
23490
- AIToolCallMovePage:
24001
+ before:
24002
+ $ref: "#/components/schemas/SiteSectionPointer"
24003
+ after:
24004
+ $ref: "#/components/schemas/SiteSectionPointer"
24005
+ SiteSpacePointer:
23491
24006
  type: object
23492
24007
  properties:
23493
- tool:
24008
+ type:
23494
24009
  type: string
23495
24010
  enum:
23496
- - movePage
23497
- spaceId:
23498
- type: string
23499
- description: The ID of the space being edited.
23500
- page:
23501
- $ref: "#/components/schemas/ChangedRevisionPage"
23502
- to:
23503
- $ref: "#/components/schemas/ChangedRevisionPage"
23504
- moveType:
24011
+ - site-space
24012
+ siteSpace:
23505
24013
  type: string
23506
- description: |
23507
- Indicates how the page was moved relative to the "to" page.
23508
- - `within`: moved as the last child of the target page (or to the root when `to` is omitted)
23509
- - `before`: moved directly before the target page
23510
- - `after`: moved directly after the target page
23511
- enum:
23512
- - within
23513
- - before
23514
- - after
24014
+ description: Unique identifier for the site space
23515
24015
  required:
23516
- - tool
23517
- - spaceId
23518
- - page
23519
- - moveType
23520
- AIToolCallListModifiedPages:
24016
+ - type
24017
+ - siteSpace
24018
+ SiteSpaceMovePosition:
23521
24019
  type: object
24020
+ description: Position at which to move the site space to.
23522
24021
  properties:
23523
- tool:
23524
- type: string
23525
- enum:
23526
- - listModifiedPages
23527
- spaceId:
23528
- type: string
23529
- description: The ID of the space being accessed.
23530
- required:
23531
- - tool
23532
- - spaceId
23533
- AIToolCallGetPageDiff:
24022
+ before:
24023
+ $ref: "#/components/schemas/SiteSpacePointer"
24024
+ after:
24025
+ $ref: "#/components/schemas/SiteSpacePointer"
24026
+ InviteSiteUsersAndTeams:
23534
24027
  type: object
23535
24028
  properties:
23536
- tool:
23537
- type: string
23538
- enum:
23539
- - getPageDiff
23540
- spaceId:
23541
- type: string
23542
- description: The ID of the space being accessed.
23543
- page:
23544
- $ref: "#/components/schemas/ChangedRevisionPage"
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
23545
24053
  required:
23546
- - tool
23547
- - spaceId
23548
- - page
23549
- AIToolCallCreateReusableContent:
24054
+ - role
24055
+ OrganizationPointer:
23550
24056
  type: object
23551
24057
  properties:
23552
- tool:
24058
+ type:
23553
24059
  type: string
23554
24060
  enum:
23555
- - createReusableContent
23556
- spaceId:
24061
+ - organization
24062
+ organization:
23557
24063
  type: string
23558
- description: The ID of the space being edited.
23559
- reusableContent:
23560
- $ref: "#/components/schemas/ChangedRevisionReusableContent"
24064
+ description: Unique identifier for the organization
23561
24065
  required:
23562
- - tool
23563
- - spaceId
23564
- - reusableContent
23565
- AIToolCallEditReusableContent:
24066
+ - type
24067
+ - organization
24068
+ UserSitePermission:
23566
24069
  type: object
24070
+ description: Permission of a user in a site.
23567
24071
  properties:
23568
- tool:
23569
- type: string
23570
- enum:
23571
- - editReusableContent
23572
- spaceId:
23573
- type: string
23574
- description: The ID of the space being edited.
23575
- reusableContent:
23576
- $ref: "#/components/schemas/ChangedRevisionReusableContent"
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"
23577
24081
  required:
23578
- - tool
23579
- - spaceId
23580
- - reusableContent
23581
- AIToolCallGetReusableContent:
24082
+ - permission
24083
+ - user
24084
+ - origin
24085
+ UserSitePermissionOverride:
23582
24086
  type: object
24087
+ description: Permission override of a user in a site.
23583
24088
  properties:
23584
- tool:
23585
- type: string
23586
- enum:
23587
- - getReusableContent
23588
- spaceId:
23589
- type: string
23590
- description: The ID of the space being accessed.
23591
- revisionId:
23592
- type: string
23593
- description: The ID of the revision within which the reusable content is being fetched.
23594
- reusableContent:
23595
- $ref: "#/components/schemas/ChangedRevisionReusableContent"
24089
+ permission:
24090
+ $ref: "#/components/schemas/MemberRole"
24091
+ user:
24092
+ $ref: "#/components/schemas/User"
23596
24093
  required:
23597
- - tool
23598
- - spaceId
23599
- - reusableContent
23600
- - revisionId
23601
- AIToolCallCreateChangeRequest:
24094
+ - permission
24095
+ - user
24096
+ TeamSitePermissionOverride:
23602
24097
  type: object
24098
+ description: Permission override of a team in a site.
23603
24099
  properties:
23604
- tool:
23605
- type: string
23606
- enum:
23607
- - createChangeRequest
23608
- spaceId:
23609
- type: string
23610
- description: The ID of the space the change request belongs to.
23611
- action:
23612
- type: string
23613
- enum:
23614
- - create
23615
- - update
23616
- changeRequest:
24100
+ permission:
24101
+ $ref: "#/components/schemas/MemberRole"
24102
+ team:
24103
+ $ref: "#/components/schemas/OrganizationTeam"
24104
+ required:
24105
+ - permission
24106
+ - team
24107
+ AIMessageContext:
24108
+ type: object
24109
+ description: Context about the current user sending a message.
24110
+ properties:
24111
+ location:
23617
24112
  type: object
23618
24113
  properties:
23619
- id:
24114
+ spaceId:
23620
24115
  type: string
23621
- description: The unique identifier of the change request.
23622
- number:
23623
- type: number
23624
- description: Incremental identifier of the change request.
23625
- subject:
24116
+ description: ID of the current space.
24117
+ pageId:
23626
24118
  type: string
23627
- description: A brief summary of the change request.
24119
+ description: ID of the current page.
23628
24120
  required:
23629
- - id
23630
- - number
23631
- - subject
23632
- required:
23633
- - tool
23634
- - spaceId
23635
- - action
23636
- - changeRequest
23637
- AIToolCallComment:
24121
+ - spaceId
24122
+ - pageId
24123
+ AIMessageInput:
23638
24124
  type: object
24125
+ description: Input version of an AI message.
23639
24126
  properties:
23640
- tool:
24127
+ role:
23641
24128
  type: string
23642
24129
  enum:
23643
- - comment
23644
- spaceId:
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"
24142
+ required:
24143
+ - role
24144
+ - content
24145
+ AIModel:
24146
+ type: string
24147
+ enum:
24148
+ - fast
24149
+ - reasoning-low
24150
+ - reasoning-medium
24151
+ - reasoning-high
24152
+ AIToolDefinition:
24153
+ type: object
24154
+ description: Description of a tool that can be called from an AI agent.
24155
+ properties:
24156
+ name:
23645
24157
  type: string
23646
- description: The ID of the space being commented.
23647
- page:
23648
- description: The page being commented.
23649
- $ref: "#/components/schemas/ChangedRevisionPage"
23650
- commentId:
24158
+ description: The name of the tool. It should be unique within the agent.
24159
+ description:
23651
24160
  type: string
23652
- description: The ID of the comment being posted.
24161
+ description: The description of the tool, passed to the AI agent.
24162
+ inputSchema:
24163
+ type: object
24164
+ description: JSON schema describing the input of the tool.
24165
+ properties:
24166
+ type:
24167
+ type: string
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
24190
+ required:
24191
+ - type
24192
+ - properties
23653
24193
  required:
23654
- - tool
23655
- - spaceId
23656
- - commentId
23657
- AIToolCallReplyToComment:
24194
+ - name
24195
+ - description
24196
+ AIToolCallResult:
23658
24197
  type: object
24198
+ description: Result of a tool call.
24199
+ required:
24200
+ - tool
24201
+ - toolCallId
24202
+ - output
23659
24203
  properties:
23660
24204
  tool:
23661
24205
  type: string
23662
- enum:
23663
- - replyToComment
23664
- spaceId:
23665
- type: string
23666
- description: The ID of the space being commented.
23667
- page:
23668
- description: The page being commented.
23669
- $ref: "#/components/schemas/ChangedRevisionPage"
23670
- commentId:
23671
- type: string
23672
- description: The ID of the comment being replied to.
23673
- replyId:
24206
+ description: The name of the tool that was called.
24207
+ toolCallId:
23674
24208
  type: string
23675
- description: The ID of the reply being posted.
23676
- required:
23677
- - tool
23678
- - spaceId
23679
- - commentId
23680
- - replyId
23681
- AIToolCallSubmitChangeRequestReview:
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:
23682
24216
  type: object
24217
+ description: |
24218
+ Message emitted by the server to indicate the start of the AI response.
23683
24219
  properties:
23684
- tool:
24220
+ type:
23685
24221
  type: string
23686
24222
  enum:
23687
- - submitChangeRequestReview
23688
- spaceId:
24223
+ - response_start
24224
+ messageId:
23689
24225
  type: string
23690
- description: The ID of the space where the review was submitted.
23691
- changeRequestId:
24226
+ description: |
24227
+ The ID of the message that this event is composing.
24228
+ task:
24229
+ $ref: "#/components/schemas/AIMessageTask"
24230
+ required:
24231
+ - type
24232
+ - messageId
24233
+ AIStreamResponseFinish:
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.
24237
+ properties:
24238
+ type:
23692
24239
  type: string
23693
- description: The ID of the change request being reviewed.
23694
- status:
23695
- $ref: "#/components/schemas/ChangeRequestReviewStatus"
23696
- description: Result of the review.
23697
- reviewId:
24240
+ enum:
24241
+ - response_finish
24242
+ messageId:
23698
24243
  type: string
23699
- description: Identifier of the review that was created.
23700
- commentId:
24244
+ description: |
24245
+ The ID of the message that this event is composing.
24246
+ responseId:
23701
24247
  type: string
23702
- 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"
23703
24253
  required:
23704
- - tool
23705
- - spaceId
23706
- - changeRequestId
23707
- - status
23708
- - reviewId
23709
- - commentId
23710
- AIToolCallMCP:
24254
+ - type
24255
+ - messageId
24256
+ - response
24257
+ AIStreamResponseDocument:
23711
24258
  type: object
23712
- 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.
23713
24261
  properties:
23714
- tool:
24262
+ type:
23715
24263
  type: string
23716
24264
  enum:
23717
- - mcp
23718
- mcpServerId:
23719
- type: string
23720
- description: The ID of the MCP server that has been called.
23721
- mcpToolName:
24265
+ - response_document
24266
+ - response_reasoning
24267
+ messageId:
23722
24268
  type: string
23723
- description: The name of the tool that has been called.
23724
- 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:
23725
24276
  type: string
23726
- 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"
23727
24284
  required:
23728
- - tool
23729
- - mcpServerId
23730
- - mcpToolName
23731
- AIToolCallOther:
24285
+ - type
24286
+ - messageId
24287
+ - stepIndex
24288
+ - operation
24289
+ - blocks
24290
+ AIStreamResponseObject:
23732
24291
  type: object
23733
- 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.
23734
24294
  properties:
23735
- tool:
24295
+ type:
23736
24296
  type: string
23737
24297
  enum:
23738
- - other
23739
- summary:
23740
- $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
23741
24306
  required:
23742
- - tool
23743
- - summary
23744
- AIToolCall:
23745
- oneOf:
23746
- - $ref: "#/components/schemas/AIToolCallGetPageContent"
23747
- - $ref: "#/components/schemas/AIToolCallGetPages"
23748
- - $ref: "#/components/schemas/AIToolCallGetReusableContents"
23749
- - $ref: "#/components/schemas/AIToolCallSearch"
23750
- - $ref: "#/components/schemas/AIToolCallEditPage"
23751
- - $ref: "#/components/schemas/AIToolCallCreatePage"
23752
- - $ref: "#/components/schemas/AIToolCallDeletePage"
23753
- - $ref: "#/components/schemas/AIToolCallRenamePage"
23754
- - $ref: "#/components/schemas/AIToolCallMovePage"
23755
- - $ref: "#/components/schemas/AIToolCallListModifiedPages"
23756
- - $ref: "#/components/schemas/AIToolCallGetPageDiff"
23757
- - $ref: "#/components/schemas/AIToolCallCreateReusableContent"
23758
- - $ref: "#/components/schemas/AIToolCallEditReusableContent"
23759
- - $ref: "#/components/schemas/AIToolCallGetReusableContent"
23760
- - $ref: "#/components/schemas/AIToolCallCreateChangeRequest"
23761
- - $ref: "#/components/schemas/AIToolCallComment"
23762
- - $ref: "#/components/schemas/AIToolCallReplyToComment"
23763
- - $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
23764
- - $ref: "#/components/schemas/AIToolCallMCP"
23765
- - $ref: "#/components/schemas/AIToolCallOther"
24307
+ - type
24308
+ - messageId
24309
+ - jsonChunk
23766
24310
  AIStreamResponseToolCall:
23767
24311
  type: object
23768
24312
  description: |
@@ -23884,62 +24428,56 @@ components:
23884
24428
  - $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
23885
24429
  - $ref: "#/components/schemas/AIStreamResponseAttachment"
23886
24430
  SiteInsightsEventSession:
23887
- type: object
23888
- description: Analytics info on the GitBook's site session.
23889
- properties:
23890
- visitorId:
23891
- type: string
23892
- description: GitBook's unique identifier of the visitor.
23893
- sessionId:
23894
- type: string
23895
- description: GitBook's unique identifier of the visitor's session.
23896
- cookies:
23897
- type: object
23898
- description: The visitors cookies.
23899
- additionalProperties:
23900
- type: string
23901
- ip:
23902
- type: string
23903
- description: |
23904
- IP address of the visitor.
23905
- If not defined, it'll default to the IP executing the request.
23906
- userAgent:
23907
- type: string
23908
- description: |
23909
- User-agent of the visitor.
23910
- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
23911
- language:
23912
- type: string
23913
- nullable: true
23914
- description: |
23915
- Language of the visitor.
23916
- https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
23917
- referrer:
23918
- description: Referrer of the session
23919
- oneOf:
23920
- - 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
23921
24453
  nullable: true
23922
- enum:
23923
- - null
23924
- - ""
23925
- - $ref: "#/components/schemas/URL"
23926
- visitorAuthToken:
23927
- type: string
23928
- nullable: true
23929
- deprecated: true
23930
- description: Deprecated, use visitorAuthClaims instead.
23931
- visitorAuthClaims:
23932
- description: |
23933
- Claims of the visitor.
23934
- This is used to identify the visitor with adaptive content.
23935
- $ref: "#/components/schemas/PlainObject"
23936
- required:
23937
- - visitorId
23938
- - sessionId
23939
- - cookies
23940
- - userAgent
23941
- - language
23942
- - 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
23943
24481
  SiteInsightsDisplayContext:
23944
24482
  type: string
23945
24483
  description: Context in which the event was recorded.
@@ -26068,16 +26606,6 @@ components:
26068
26606
  description: JWT token generated for a authenticated access session.
26069
26607
  unsignedClaims:
26070
26608
  $ref: "#/components/schemas/PlainObject"
26071
- Timerange:
26072
- type: object
26073
- properties:
26074
- start:
26075
- $ref: "#/components/schemas/Timestamp"
26076
- end:
26077
- $ref: "#/components/schemas/Timestamp"
26078
- required:
26079
- - start
26080
- - end
26081
26609
  SHA256:
26082
26610
  type: string
26083
26611
  minLength: 64
@@ -27867,6 +28395,12 @@ components:
27867
28395
  - live
27868
28396
  - rejected
27869
28397
  - disabled
28398
+ SiteQuestionAnswerSourceType:
28399
+ type: string
28400
+ description: Source type used to answer a site question.
28401
+ enum:
28402
+ - page
28403
+ - record
27870
28404
  Seat:
27871
28405
  type: object
27872
28406
  properties:
@@ -27892,55 +28426,6 @@ components:
27892
28426
  - member
27893
28427
  - createdAt
27894
28428
  - updatedAt
27895
- AIMessageRole:
27896
- type: string
27897
- enum:
27898
- - user
27899
- - assistant
27900
- - developer
27901
- AIMessageStep:
27902
- type: object
27903
- description: A step in a message from the AI agent.
27904
- properties:
27905
- content:
27906
- $ref: "#/components/schemas/JSONDocument"
27907
- reasoning:
27908
- $ref: "#/components/schemas/JSONDocument"
27909
- toolCalls:
27910
- type: array
27911
- items:
27912
- $ref: "#/components/schemas/AIToolCall"
27913
- timing:
27914
- type: object
27915
- description: The timing of the step.
27916
- properties:
27917
- reasoning:
27918
- $ref: "#/components/schemas/Timerange"
27919
- attachments:
27920
- type: array
27921
- items:
27922
- $ref: "#/components/schemas/AIAttachment"
27923
- required:
27924
- - content
27925
- AIMessage:
27926
- type: object
27927
- properties:
27928
- id:
27929
- type: string
27930
- role:
27931
- $ref: "#/components/schemas/AIMessageRole"
27932
- steps:
27933
- type: array
27934
- items:
27935
- $ref: "#/components/schemas/AIMessageStep"
27936
- task:
27937
- $ref: "#/components/schemas/AIMessageTask"
27938
- response:
27939
- $ref: "#/components/schemas/AIMessageResponseMetadata"
27940
- required:
27941
- - id
27942
- - role
27943
- - steps
27944
28429
  AgentStreamMessages:
27945
28430
  type: object
27946
28431
  description: |