@gitbook/api 0.180.0 → 0.181.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
@@ -8522,6 +8522,13 @@ paths:
8522
8522
  type: array
8523
8523
  items:
8524
8524
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8525
+ - name: channelType
8526
+ in: query
8527
+ description: Filter questions by answer channel type.
8528
+ schema:
8529
+ type: array
8530
+ items:
8531
+ $ref: "#/components/schemas/SiteChannelType"
8525
8532
  - name: answered
8526
8533
  in: query
8527
8534
  description: Filter questions by answer resolution.
@@ -8594,6 +8601,13 @@ paths:
8594
8601
  type: array
8595
8602
  items:
8596
8603
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8604
+ - name: channelType
8605
+ in: query
8606
+ description: Filter stats by answer channel type.
8607
+ schema:
8608
+ type: array
8609
+ items:
8610
+ $ref: "#/components/schemas/SiteChannelType"
8597
8611
  - name: answered
8598
8612
  in: query
8599
8613
  description: Filter stats by answer resolution.
@@ -8639,6 +8653,13 @@ paths:
8639
8653
  type: array
8640
8654
  items:
8641
8655
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8656
+ - name: channelType
8657
+ in: query
8658
+ description: Filter answer sources by answer channel type.
8659
+ schema:
8660
+ type: array
8661
+ items:
8662
+ $ref: "#/components/schemas/SiteChannelType"
8642
8663
  - name: answered
8643
8664
  in: query
8644
8665
  description: Filter answer sources by answer resolution.
@@ -8697,6 +8718,13 @@ paths:
8697
8718
  type: array
8698
8719
  items:
8699
8720
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8721
+ - name: channelType
8722
+ in: query
8723
+ description: Filter stats by answer channel type.
8724
+ schema:
8725
+ type: array
8726
+ items:
8727
+ $ref: "#/components/schemas/SiteChannelType"
8700
8728
  - name: answered
8701
8729
  in: query
8702
8730
  description: Filter stats by answer resolution.
@@ -8761,6 +8789,13 @@ paths:
8761
8789
  type: array
8762
8790
  items:
8763
8791
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8792
+ - name: channelType
8793
+ in: query
8794
+ description: Filter answers by answer channel type.
8795
+ schema:
8796
+ type: array
8797
+ items:
8798
+ $ref: "#/components/schemas/SiteChannelType"
8764
8799
  - name: question.type
8765
8800
  in: query
8766
8801
  description: Filter answers by question type.
@@ -10156,6 +10191,8 @@ paths:
10156
10191
  $ref: "#/components/schemas/SiteMcpServerName"
10157
10192
  url:
10158
10193
  $ref: "#/components/schemas/URL"
10194
+ transport:
10195
+ $ref: "#/components/schemas/SiteMcpServerTransport"
10159
10196
  headers:
10160
10197
  $ref: "#/components/schemas/SiteMcpServerHeaders"
10161
10198
  condition:
@@ -10217,6 +10254,8 @@ paths:
10217
10254
  type: string
10218
10255
  format: uri
10219
10256
  maxLength: 2048
10257
+ transport:
10258
+ $ref: "#/components/schemas/SiteMcpServerTransport"
10220
10259
  headers:
10221
10260
  $ref: "#/components/schemas/SiteMcpServerHeaders"
10222
10261
  condition:
@@ -14321,6 +14360,15 @@ components:
14321
14360
  type: boolean
14322
14361
  enum:
14323
14362
  - true
14363
+ meta:
14364
+ type: object
14365
+ properties:
14366
+ token:
14367
+ type: string
14368
+ description: A content token that can be used to authenticate requests for cross-space integration blocks.
14369
+ spaceId:
14370
+ type: string
14371
+ description: ID of the space the integration block originates from
14324
14372
  required:
14325
14373
  - object
14326
14374
  - type
@@ -15394,9 +15442,12 @@ components:
15394
15442
  revision:
15395
15443
  type: string
15396
15444
  description: ID of the revision generated by the translation
15445
+ language:
15446
+ $ref: "#/components/schemas/TranslationLanguage"
15397
15447
  required:
15398
15448
  - space
15399
15449
  - revision
15450
+ - language
15400
15451
  ComputedContentDependencyTranslation:
15401
15452
  type: object
15402
15453
  properties:
@@ -15691,6 +15742,7 @@ components:
15691
15742
  required:
15692
15743
  - type
15693
15744
  - props
15745
+ - dependencies
15694
15746
  properties:
15695
15747
  type:
15696
15748
  type: string
@@ -15706,6 +15758,21 @@ components:
15706
15758
  type: string
15707
15759
  document:
15708
15760
  type: string
15761
+ dependencies:
15762
+ type: object
15763
+ required:
15764
+ - translation
15765
+ properties:
15766
+ translation:
15767
+ oneOf:
15768
+ - type: object
15769
+ additionalProperties: false
15770
+ required:
15771
+ - ref
15772
+ properties:
15773
+ ref:
15774
+ $ref: "#/components/schemas/TranslationRef"
15775
+ - $ref: "#/components/schemas/ComputedContentDependencyTranslation"
15709
15776
  ComputedContentSourceDocument:
15710
15777
  oneOf:
15711
15778
  - $ref: "#/components/schemas/ComputedContentSourceDocumentOpenAPI"
@@ -17921,6 +17988,8 @@ components:
17921
17988
  type: number
17922
17989
  teams:
17923
17990
  type: number
17991
+ sites:
17992
+ type: number
17924
17993
  required:
17925
17994
  - object
17926
17995
  - id
@@ -17931,6 +18000,7 @@ components:
17931
18000
  - sso
17932
18001
  - spaces
17933
18002
  - teams
18003
+ - sites
17934
18004
  IntegrationTitle:
17935
18005
  type: string
17936
18006
  description: Title of the integration
@@ -18921,6 +18991,11 @@ components:
18921
18991
  - fetch_visitor_authentication
18922
18992
  location:
18923
18993
  type: string
18994
+ action:
18995
+ type: string
18996
+ enum:
18997
+ - logout
18998
+ description: The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect.
18924
18999
  required:
18925
19000
  - type
18926
19001
  ContentKitContextBase:
@@ -19463,6 +19538,7 @@ components:
19463
19538
  - sites-ads
19464
19539
  - sites-ai-search
19465
19540
  - sites-ai-assistant
19541
+ - sites-ai-insights
19466
19542
  - sites-connections
19467
19543
  - sites-channels
19468
19544
  - sites-embed
@@ -19559,6 +19635,8 @@ components:
19559
19635
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
19560
19636
  siteSpaces:
19561
19637
  type: number
19638
+ gitSync:
19639
+ $ref: "#/components/schemas/GitSyncState"
19562
19640
  createdAt:
19563
19641
  type: string
19564
19642
  format: date-time
@@ -19597,6 +19675,11 @@ components:
19597
19675
  description: |
19598
19676
  URL of the login endpoint for visitors to authenticate with the site auth backend.
19599
19677
  format: uri
19678
+ logout:
19679
+ type: string
19680
+ description: |
19681
+ URL of the logout endpoint for visitors to sign out from the site auth backend.
19682
+ format: uri
19600
19683
  required:
19601
19684
  - app
19602
19685
  - location
@@ -20794,6 +20877,17 @@ components:
20794
20877
  required:
20795
20878
  - permission
20796
20879
  - space
20880
+ MemberSitePermission:
20881
+ type: object
20882
+ description: Permission of an organization member in a site.
20883
+ properties:
20884
+ site:
20885
+ $ref: "#/components/schemas/Site"
20886
+ permission:
20887
+ $ref: "#/components/schemas/MemberRoleOrGuest"
20888
+ required:
20889
+ - site
20890
+ - permission
20797
20891
  TeamMemberRole:
20798
20892
  type: string
20799
20893
  description: |
@@ -23397,6 +23491,10 @@ components:
23397
23491
  type: string
23398
23492
  format: uri
23399
23493
  description: URL to redirect to when the authenticated access secret is invalid.
23494
+ logoutURL:
23495
+ type: string
23496
+ format: uri
23497
+ description: URL used to log visitors out from the upstream custom auth backend.
23400
23498
  integration:
23401
23499
  type: string
23402
23500
  description: |
@@ -23418,6 +23516,12 @@ components:
23418
23516
  - "null"
23419
23517
  format: uri
23420
23518
  description: A fallback URL that will be used if authentication fails. If not provided, the fallback URL will not be changed. If set to null, the fallback URL will be unset.
23519
+ logoutURL:
23520
+ type:
23521
+ - string
23522
+ - "null"
23523
+ format: uri
23524
+ description: A logout URL used to log visitors out from the upstream custom auth backend. If not provided, the logout URL will not be changed. If set to null, the logout URL will be unset.
23421
23525
  SiteCustomizationSettingsInput:
23422
23526
  allOf:
23423
23527
  - $ref: "#/components/schemas/SiteCustomizationSettingsBase"
@@ -24290,6 +24394,23 @@ components:
24290
24394
  - spam
24291
24395
  - off-topic
24292
24396
  - unclear
24397
+ SiteCoreChannelType:
24398
+ type: string
24399
+ enum:
24400
+ - site
24401
+ - embed
24402
+ - api
24403
+ SiteConfigurableChannelType:
24404
+ type: string
24405
+ enum:
24406
+ - builtin:slack
24407
+ - builtin:discord
24408
+ - builtin:github
24409
+ - builtin:linear
24410
+ SiteChannelType:
24411
+ oneOf:
24412
+ - $ref: "#/components/schemas/SiteCoreChannelType"
24413
+ - $ref: "#/components/schemas/SiteConfigurableChannelType"
24293
24414
  SiteQuestionAnswerResolution:
24294
24415
  type: string
24295
24416
  description: Whether the response answered the question.
@@ -24384,19 +24505,6 @@ components:
24384
24505
  - low
24385
24506
  - medium
24386
24507
  - high
24387
- SiteCoreChannelType:
24388
- type: string
24389
- enum:
24390
- - site
24391
- - embed
24392
- - api
24393
- SiteConfigurableChannelType:
24394
- type: string
24395
- enum:
24396
- - builtin:slack
24397
- - builtin:discord
24398
- - builtin:github
24399
- - builtin:linear
24400
24508
  SiteQuestionAnswer:
24401
24509
  type: object
24402
24510
  properties:
@@ -24526,6 +24634,11 @@ components:
24526
24634
  - user
24527
24635
  - assistant
24528
24636
  - developer
24637
+ AIMessageStepStartCondition:
24638
+ type: string
24639
+ description: Describe the state in which the steps started.
24640
+ enum:
24641
+ - compaction
24529
24642
  AIToolCallGetPageContent:
24530
24643
  type: object
24531
24644
  properties:
@@ -25105,6 +25218,9 @@ components:
25105
25218
  - image
25106
25219
  url:
25107
25220
  $ref: "#/components/schemas/URL"
25221
+ filename:
25222
+ type: string
25223
+ description: Name of the image file.
25108
25224
  required:
25109
25225
  - type
25110
25226
  - url
@@ -25133,10 +25249,52 @@ components:
25133
25249
  oneOf:
25134
25250
  - $ref: "#/components/schemas/AIAttachmentImage"
25135
25251
  - $ref: "#/components/schemas/AIAttachmentFile"
25252
+ AIMessageContext:
25253
+ type: object
25254
+ description: Context about the current user sending a message.
25255
+ properties:
25256
+ location:
25257
+ type: object
25258
+ properties:
25259
+ spaceId:
25260
+ type: string
25261
+ description: ID of the current space.
25262
+ pageId:
25263
+ type: string
25264
+ description: ID of the current page.
25265
+ required:
25266
+ - spaceId
25267
+ - pageId
25268
+ selection:
25269
+ type: object
25270
+ description: Range of the current selection in a document.
25271
+ properties:
25272
+ anchorKey:
25273
+ oneOf:
25274
+ - type: string
25275
+ - type: "null"
25276
+ anchorOffset:
25277
+ type: integer
25278
+ focusKey:
25279
+ oneOf:
25280
+ - type: string
25281
+ - type: "null"
25282
+ focusOffset:
25283
+ type: integer
25284
+ content:
25285
+ type: string
25286
+ description: Snapshot of the selection for display.
25287
+ required:
25288
+ - anchorKey
25289
+ - anchorOffset
25290
+ - focusKey
25291
+ - focusOffset
25136
25292
  AIMessageStep:
25137
25293
  type: object
25138
25294
  description: A step in a message from the AI agent.
25139
25295
  properties:
25296
+ startCondition:
25297
+ $ref: "#/components/schemas/AIMessageStepStartCondition"
25140
25298
  content:
25141
25299
  $ref: "#/components/schemas/JSONDocument"
25142
25300
  reasoning:
@@ -25157,6 +25315,8 @@ components:
25157
25315
  type: array
25158
25316
  items:
25159
25317
  $ref: "#/components/schemas/AIAttachment"
25318
+ context:
25319
+ $ref: "#/components/schemas/AIMessageContext"
25160
25320
  AIMessageTask:
25161
25321
  oneOf:
25162
25322
  - type: object
@@ -25439,43 +25599,13 @@ components:
25439
25599
  required:
25440
25600
  - permission
25441
25601
  - team
25442
- AIMessageContext:
25443
- type: object
25444
- description: Context about the current user sending a message.
25445
- properties:
25446
- location:
25447
- type: object
25448
- properties:
25449
- spaceId:
25450
- type: string
25451
- description: ID of the current space.
25452
- pageId:
25453
- type: string
25454
- description: ID of the current page.
25455
- required:
25456
- - spaceId
25457
- - pageId
25458
- selection:
25459
- type: object
25460
- description: Range of the current selection in a document.
25461
- properties:
25462
- anchorKey:
25463
- oneOf:
25464
- - type: string
25465
- - type: "null"
25466
- anchorOffset:
25467
- type: integer
25468
- focusKey:
25469
- oneOf:
25470
- - type: string
25471
- - type: "null"
25472
- focusOffset:
25473
- type: integer
25474
- required:
25475
- - anchorKey
25476
- - anchorOffset
25477
- - focusKey
25478
- - focusOffset
25602
+ AIMessageMode:
25603
+ type: string
25604
+ description: The mode influences the response time and quality of the AI's answer. Fast mode will prioritize quicker responses with potentially less well reasoned answers and normal mode will allow for more comprehensive responses at the cost of longer response time.
25605
+ default: normal
25606
+ enum:
25607
+ - normal
25608
+ - fast
25479
25609
  AIMessageInput:
25480
25610
  type: object
25481
25611
  description: Input version of an AI message.
@@ -25493,6 +25623,8 @@ components:
25493
25623
  type: array
25494
25624
  items:
25495
25625
  $ref: "#/components/schemas/AIAttachment"
25626
+ mode:
25627
+ $ref: "#/components/schemas/AIMessageMode"
25496
25628
  required:
25497
25629
  - role
25498
25630
  - content
@@ -25794,6 +25926,27 @@ components:
25794
25926
  - messageId
25795
25927
  - stepIndex
25796
25928
  - attachment
25929
+ AIStreamResponseCompaction:
25930
+ type: object
25931
+ description: |
25932
+ Message emitted by the server to indicate a context compaction event.
25933
+ properties:
25934
+ type:
25935
+ type: string
25936
+ enum:
25937
+ - response_compaction
25938
+ messageId:
25939
+ type: string
25940
+ description: |
25941
+ The ID of the message that this event is composing.
25942
+ stepIndex:
25943
+ type: integer
25944
+ description: |
25945
+ The index of the step of the message that this event is composing.
25946
+ required:
25947
+ - type
25948
+ - messageId
25949
+ - stepIndex
25797
25950
  AIStreamResponse:
25798
25951
  oneOf:
25799
25952
  - $ref: "#/components/schemas/AIStreamResponseStart"
@@ -25805,6 +25958,7 @@ components:
25805
25958
  - $ref: "#/components/schemas/AIStreamResponseToolCallPending"
25806
25959
  - $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
25807
25960
  - $ref: "#/components/schemas/AIStreamResponseAttachment"
25961
+ - $ref: "#/components/schemas/AIStreamResponseCompaction"
25808
25962
  SiteSettingsScanTopics:
25809
25963
  type: string
25810
25964
  enum:
@@ -27706,6 +27860,13 @@ components:
27706
27860
  description: Name of the MCP server
27707
27861
  minLength: 1
27708
27862
  maxLength: 100
27863
+ SiteMcpServerTransport:
27864
+ type: string
27865
+ description: Transport protocol used to connect to the MCP server
27866
+ enum:
27867
+ - sse
27868
+ - http
27869
+ default: sse
27709
27870
  SiteMcpServerHeaders:
27710
27871
  type: object
27711
27872
  additionalProperties:
@@ -27727,6 +27888,8 @@ components:
27727
27888
  $ref: "#/components/schemas/SiteMcpServerName"
27728
27889
  url:
27729
27890
  $ref: "#/components/schemas/URL"
27891
+ transport:
27892
+ $ref: "#/components/schemas/SiteMcpServerTransport"
27730
27893
  headers:
27731
27894
  $ref: "#/components/schemas/SiteMcpServerHeaders"
27732
27895
  condition:
@@ -27747,6 +27910,7 @@ components:
27747
27910
  - id
27748
27911
  - name
27749
27912
  - url
27913
+ - transport
27750
27914
  - headers
27751
27915
  - urls
27752
27916
  GenericChannelPattern:
@@ -28407,14 +28571,36 @@ components:
28407
28571
  - github
28408
28572
  - gitlab
28409
28573
  GitSyncInstallationTarget:
28410
- type: object
28411
- description: Resource targeted by a Git Sync installation. Currently only spaces are supported.
28412
- properties:
28413
- spaceId:
28414
- type: string
28415
- description: Unique identifier of the space targeted by the Git Sync installation.
28416
- required:
28417
- - spaceId
28574
+ description: Resource targeted by a Git Sync installation.
28575
+ oneOf:
28576
+ - type: object
28577
+ properties:
28578
+ type:
28579
+ type: string
28580
+ enum:
28581
+ - space
28582
+ description: Type of resource targeted by the Git Sync installation.
28583
+ spaceId:
28584
+ type: string
28585
+ description: Unique identifier of the space targeted by the Git Sync installation.
28586
+ required:
28587
+ - type
28588
+ - spaceId
28589
+ - type: object
28590
+ properties:
28591
+ type:
28592
+ type: string
28593
+ enum:
28594
+ - site
28595
+ description: Type of resource targeted by the Git Sync installation.
28596
+ siteId:
28597
+ type: string
28598
+ description: Unique identifier of the site targeted by the Git Sync installation.
28599
+ required:
28600
+ - type
28601
+ - siteId
28602
+ discriminator:
28603
+ propertyName: type
28418
28604
  GitSyncInstallationPriority:
28419
28605
  type: string
28420
28606
  description: Which side should be treated as the source of truth when Git Sync is configured.
@@ -30433,10 +30619,6 @@ components:
30433
30619
  - live
30434
30620
  - rejected
30435
30621
  - disabled
30436
- SiteChannelType:
30437
- oneOf:
30438
- - $ref: "#/components/schemas/SiteCoreChannelType"
30439
- - $ref: "#/components/schemas/SiteConfigurableChannelType"
30440
30622
  SiteQuestionAnswerSourceType:
30441
30623
  type: string
30442
30624
  description: Source type used to answer a site question.
@@ -30517,12 +30699,18 @@ components:
30517
30699
  $ref: "#/components/schemas/AgentStatus"
30518
30700
  suggestions:
30519
30701
  type: array
30520
- description: A list of response suggestions for the user to select from.
30702
+ description: List of response suggestions for the user to select from.
30521
30703
  items:
30522
30704
  type: string
30705
+ queuedMessages:
30706
+ type: array
30707
+ description: List of messages sent by the users queued to processed.
30708
+ items:
30709
+ $ref: "#/components/schemas/AIMessageInput"
30523
30710
  required:
30524
30711
  - status
30525
30712
  - suggestions
30713
+ - queuedMessages
30526
30714
  AgentStreamState:
30527
30715
  type: object
30528
30716
  description: |