@gitbook/api 0.180.0 → 0.182.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
@@ -6693,8 +6693,6 @@ paths:
6693
6693
  summary: Get a site by its ID
6694
6694
  tags:
6695
6695
  - sites
6696
- security:
6697
- - user: []
6698
6696
  parameters:
6699
6697
  - $ref: "#/components/parameters/organizationId"
6700
6698
  - $ref: "#/components/parameters/siteId"
@@ -8522,6 +8520,13 @@ paths:
8522
8520
  type: array
8523
8521
  items:
8524
8522
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8523
+ - name: channelType
8524
+ in: query
8525
+ description: Filter questions by answer channel type.
8526
+ schema:
8527
+ type: array
8528
+ items:
8529
+ $ref: "#/components/schemas/SiteChannelType"
8525
8530
  - name: answered
8526
8531
  in: query
8527
8532
  description: Filter questions by answer resolution.
@@ -8594,6 +8599,13 @@ paths:
8594
8599
  type: array
8595
8600
  items:
8596
8601
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8602
+ - name: channelType
8603
+ in: query
8604
+ description: Filter stats by answer channel type.
8605
+ schema:
8606
+ type: array
8607
+ items:
8608
+ $ref: "#/components/schemas/SiteChannelType"
8597
8609
  - name: answered
8598
8610
  in: query
8599
8611
  description: Filter stats by answer resolution.
@@ -8639,6 +8651,13 @@ paths:
8639
8651
  type: array
8640
8652
  items:
8641
8653
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8654
+ - name: channelType
8655
+ in: query
8656
+ description: Filter answer sources by answer channel type.
8657
+ schema:
8658
+ type: array
8659
+ items:
8660
+ $ref: "#/components/schemas/SiteChannelType"
8642
8661
  - name: answered
8643
8662
  in: query
8644
8663
  description: Filter answer sources by answer resolution.
@@ -8697,6 +8716,13 @@ paths:
8697
8716
  type: array
8698
8717
  items:
8699
8718
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8719
+ - name: channelType
8720
+ in: query
8721
+ description: Filter stats by answer channel type.
8722
+ schema:
8723
+ type: array
8724
+ items:
8725
+ $ref: "#/components/schemas/SiteChannelType"
8700
8726
  - name: answered
8701
8727
  in: query
8702
8728
  description: Filter stats by answer resolution.
@@ -8761,6 +8787,13 @@ paths:
8761
8787
  type: array
8762
8788
  items:
8763
8789
  $ref: "#/components/schemas/SiteQuestionAnswerRelevance"
8790
+ - name: channelType
8791
+ in: query
8792
+ description: Filter answers by answer channel type.
8793
+ schema:
8794
+ type: array
8795
+ items:
8796
+ $ref: "#/components/schemas/SiteChannelType"
8764
8797
  - name: question.type
8765
8798
  in: query
8766
8799
  description: Filter answers by question type.
@@ -10156,6 +10189,8 @@ paths:
10156
10189
  $ref: "#/components/schemas/SiteMcpServerName"
10157
10190
  url:
10158
10191
  $ref: "#/components/schemas/URL"
10192
+ transport:
10193
+ $ref: "#/components/schemas/SiteMcpServerTransport"
10159
10194
  headers:
10160
10195
  $ref: "#/components/schemas/SiteMcpServerHeaders"
10161
10196
  condition:
@@ -10217,6 +10252,8 @@ paths:
10217
10252
  type: string
10218
10253
  format: uri
10219
10254
  maxLength: 2048
10255
+ transport:
10256
+ $ref: "#/components/schemas/SiteMcpServerTransport"
10220
10257
  headers:
10221
10258
  $ref: "#/components/schemas/SiteMcpServerHeaders"
10222
10259
  condition:
@@ -14321,6 +14358,15 @@ components:
14321
14358
  type: boolean
14322
14359
  enum:
14323
14360
  - true
14361
+ meta:
14362
+ type: object
14363
+ properties:
14364
+ token:
14365
+ type: string
14366
+ description: A content token that can be used to authenticate requests for cross-space integration blocks.
14367
+ spaceId:
14368
+ type: string
14369
+ description: ID of the space the integration block originates from
14324
14370
  required:
14325
14371
  - object
14326
14372
  - type
@@ -14481,6 +14527,8 @@ components:
14481
14527
  properties:
14482
14528
  title:
14483
14529
  type: string
14530
+ icon:
14531
+ $ref: "#/components/schemas/Icon"
14484
14532
  meta:
14485
14533
  type: object
14486
14534
  properties:
@@ -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:
@@ -15584,6 +15635,9 @@ components:
15584
15635
  tags:
15585
15636
  type: boolean
15586
15637
  description: Should the tags be visible on the page?
15638
+ actions:
15639
+ type: boolean
15640
+ description: Should the page actions be visible on the page?
15587
15641
  required:
15588
15642
  - width
15589
15643
  - cover
@@ -15595,6 +15649,7 @@ components:
15595
15649
  - pagination
15596
15650
  - metadata
15597
15651
  - tags
15652
+ - actions
15598
15653
  RevisionPageDocumentCover:
15599
15654
  type: object
15600
15655
  properties:
@@ -15691,6 +15746,7 @@ components:
15691
15746
  required:
15692
15747
  - type
15693
15748
  - props
15749
+ - dependencies
15694
15750
  properties:
15695
15751
  type:
15696
15752
  type: string
@@ -15706,6 +15762,21 @@ components:
15706
15762
  type: string
15707
15763
  document:
15708
15764
  type: string
15765
+ dependencies:
15766
+ type: object
15767
+ required:
15768
+ - translation
15769
+ properties:
15770
+ translation:
15771
+ oneOf:
15772
+ - type: object
15773
+ additionalProperties: false
15774
+ required:
15775
+ - ref
15776
+ properties:
15777
+ ref:
15778
+ $ref: "#/components/schemas/TranslationRef"
15779
+ - $ref: "#/components/schemas/ComputedContentDependencyTranslation"
15709
15780
  ComputedContentSourceDocument:
15710
15781
  oneOf:
15711
15782
  - $ref: "#/components/schemas/ComputedContentSourceDocumentOpenAPI"
@@ -17921,6 +17992,8 @@ components:
17921
17992
  type: number
17922
17993
  teams:
17923
17994
  type: number
17995
+ sites:
17996
+ type: number
17924
17997
  required:
17925
17998
  - object
17926
17999
  - id
@@ -17931,6 +18004,7 @@ components:
17931
18004
  - sso
17932
18005
  - spaces
17933
18006
  - teams
18007
+ - sites
17934
18008
  IntegrationTitle:
17935
18009
  type: string
17936
18010
  description: Title of the integration
@@ -18921,6 +18995,16 @@ components:
18921
18995
  - fetch_visitor_authentication
18922
18996
  location:
18923
18997
  type: string
18998
+ searchParams:
18999
+ type: object
19000
+ additionalProperties:
19001
+ type: string
19002
+ description: Whitelisted search parameters from the visitor authentication request.
19003
+ action:
19004
+ type: string
19005
+ enum:
19006
+ - logout
19007
+ description: The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect.
18924
19008
  required:
18925
19009
  - type
18926
19010
  ContentKitContextBase:
@@ -19463,6 +19547,7 @@ components:
19463
19547
  - sites-ads
19464
19548
  - sites-ai-search
19465
19549
  - sites-ai-assistant
19550
+ - sites-ai-insights
19466
19551
  - sites-connections
19467
19552
  - sites-channels
19468
19553
  - sites-embed
@@ -19559,6 +19644,8 @@ components:
19559
19644
  description: Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting.
19560
19645
  siteSpaces:
19561
19646
  type: number
19647
+ gitSync:
19648
+ $ref: "#/components/schemas/GitSyncState"
19562
19649
  createdAt:
19563
19650
  type: string
19564
19651
  format: date-time
@@ -19597,6 +19684,11 @@ components:
19597
19684
  description: |
19598
19685
  URL of the login endpoint for visitors to authenticate with the site auth backend.
19599
19686
  format: uri
19687
+ logout:
19688
+ type: string
19689
+ description: |
19690
+ URL of the logout endpoint for visitors to sign out from the site auth backend.
19691
+ format: uri
19600
19692
  required:
19601
19693
  - app
19602
19694
  - location
@@ -20794,6 +20886,17 @@ components:
20794
20886
  required:
20795
20887
  - permission
20796
20888
  - space
20889
+ MemberSitePermission:
20890
+ type: object
20891
+ description: Permission of an organization member in a site.
20892
+ properties:
20893
+ site:
20894
+ $ref: "#/components/schemas/Site"
20895
+ permission:
20896
+ $ref: "#/components/schemas/MemberRoleOrGuest"
20897
+ required:
20898
+ - site
20899
+ - permission
20797
20900
  TeamMemberRole:
20798
20901
  type: string
20799
20902
  description: |
@@ -23397,6 +23500,10 @@ components:
23397
23500
  type: string
23398
23501
  format: uri
23399
23502
  description: URL to redirect to when the authenticated access secret is invalid.
23503
+ logoutURL:
23504
+ type: string
23505
+ format: uri
23506
+ description: URL used to log visitors out from the upstream custom auth backend.
23400
23507
  integration:
23401
23508
  type: string
23402
23509
  description: |
@@ -23418,6 +23525,12 @@ components:
23418
23525
  - "null"
23419
23526
  format: uri
23420
23527
  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.
23528
+ logoutURL:
23529
+ type:
23530
+ - string
23531
+ - "null"
23532
+ format: uri
23533
+ 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
23534
  SiteCustomizationSettingsInput:
23422
23535
  allOf:
23423
23536
  - $ref: "#/components/schemas/SiteCustomizationSettingsBase"
@@ -24290,6 +24403,23 @@ components:
24290
24403
  - spam
24291
24404
  - off-topic
24292
24405
  - unclear
24406
+ SiteCoreChannelType:
24407
+ type: string
24408
+ enum:
24409
+ - site
24410
+ - embed
24411
+ - api
24412
+ SiteConfigurableChannelType:
24413
+ type: string
24414
+ enum:
24415
+ - builtin:slack
24416
+ - builtin:discord
24417
+ - builtin:github
24418
+ - builtin:linear
24419
+ SiteChannelType:
24420
+ oneOf:
24421
+ - $ref: "#/components/schemas/SiteCoreChannelType"
24422
+ - $ref: "#/components/schemas/SiteConfigurableChannelType"
24293
24423
  SiteQuestionAnswerResolution:
24294
24424
  type: string
24295
24425
  description: Whether the response answered the question.
@@ -24384,19 +24514,6 @@ components:
24384
24514
  - low
24385
24515
  - medium
24386
24516
  - 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
24517
  SiteQuestionAnswer:
24401
24518
  type: object
24402
24519
  properties:
@@ -24526,6 +24643,11 @@ components:
24526
24643
  - user
24527
24644
  - assistant
24528
24645
  - developer
24646
+ AIMessageStepStartCondition:
24647
+ type: string
24648
+ description: Describe the state in which the steps started.
24649
+ enum:
24650
+ - compaction
24529
24651
  AIToolCallGetPageContent:
24530
24652
  type: object
24531
24653
  properties:
@@ -25105,6 +25227,9 @@ components:
25105
25227
  - image
25106
25228
  url:
25107
25229
  $ref: "#/components/schemas/URL"
25230
+ filename:
25231
+ type: string
25232
+ description: Name of the image file.
25108
25233
  required:
25109
25234
  - type
25110
25235
  - url
@@ -25133,10 +25258,52 @@ components:
25133
25258
  oneOf:
25134
25259
  - $ref: "#/components/schemas/AIAttachmentImage"
25135
25260
  - $ref: "#/components/schemas/AIAttachmentFile"
25261
+ AIMessageContext:
25262
+ type: object
25263
+ description: Context about the current user sending a message.
25264
+ properties:
25265
+ location:
25266
+ type: object
25267
+ properties:
25268
+ spaceId:
25269
+ type: string
25270
+ description: ID of the current space.
25271
+ pageId:
25272
+ type: string
25273
+ description: ID of the current page.
25274
+ required:
25275
+ - spaceId
25276
+ - pageId
25277
+ selection:
25278
+ type: object
25279
+ description: Range of the current selection in a document.
25280
+ properties:
25281
+ anchorKey:
25282
+ oneOf:
25283
+ - type: string
25284
+ - type: "null"
25285
+ anchorOffset:
25286
+ type: integer
25287
+ focusKey:
25288
+ oneOf:
25289
+ - type: string
25290
+ - type: "null"
25291
+ focusOffset:
25292
+ type: integer
25293
+ content:
25294
+ type: string
25295
+ description: Snapshot of the selection for display.
25296
+ required:
25297
+ - anchorKey
25298
+ - anchorOffset
25299
+ - focusKey
25300
+ - focusOffset
25136
25301
  AIMessageStep:
25137
25302
  type: object
25138
25303
  description: A step in a message from the AI agent.
25139
25304
  properties:
25305
+ startCondition:
25306
+ $ref: "#/components/schemas/AIMessageStepStartCondition"
25140
25307
  content:
25141
25308
  $ref: "#/components/schemas/JSONDocument"
25142
25309
  reasoning:
@@ -25157,6 +25324,8 @@ components:
25157
25324
  type: array
25158
25325
  items:
25159
25326
  $ref: "#/components/schemas/AIAttachment"
25327
+ context:
25328
+ $ref: "#/components/schemas/AIMessageContext"
25160
25329
  AIMessageTask:
25161
25330
  oneOf:
25162
25331
  - type: object
@@ -25439,43 +25608,13 @@ components:
25439
25608
  required:
25440
25609
  - permission
25441
25610
  - 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
25611
+ AIMessageMode:
25612
+ type: string
25613
+ 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.
25614
+ default: normal
25615
+ enum:
25616
+ - normal
25617
+ - fast
25479
25618
  AIMessageInput:
25480
25619
  type: object
25481
25620
  description: Input version of an AI message.
@@ -25493,6 +25632,8 @@ components:
25493
25632
  type: array
25494
25633
  items:
25495
25634
  $ref: "#/components/schemas/AIAttachment"
25635
+ mode:
25636
+ $ref: "#/components/schemas/AIMessageMode"
25496
25637
  required:
25497
25638
  - role
25498
25639
  - content
@@ -25794,6 +25935,27 @@ components:
25794
25935
  - messageId
25795
25936
  - stepIndex
25796
25937
  - attachment
25938
+ AIStreamResponseCompaction:
25939
+ type: object
25940
+ description: |
25941
+ Message emitted by the server to indicate a context compaction event.
25942
+ properties:
25943
+ type:
25944
+ type: string
25945
+ enum:
25946
+ - response_compaction
25947
+ messageId:
25948
+ type: string
25949
+ description: |
25950
+ The ID of the message that this event is composing.
25951
+ stepIndex:
25952
+ type: integer
25953
+ description: |
25954
+ The index of the step of the message that this event is composing.
25955
+ required:
25956
+ - type
25957
+ - messageId
25958
+ - stepIndex
25797
25959
  AIStreamResponse:
25798
25960
  oneOf:
25799
25961
  - $ref: "#/components/schemas/AIStreamResponseStart"
@@ -25805,6 +25967,7 @@ components:
25805
25967
  - $ref: "#/components/schemas/AIStreamResponseToolCallPending"
25806
25968
  - $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
25807
25969
  - $ref: "#/components/schemas/AIStreamResponseAttachment"
25970
+ - $ref: "#/components/schemas/AIStreamResponseCompaction"
25808
25971
  SiteSettingsScanTopics:
25809
25972
  type: string
25810
25973
  enum:
@@ -27706,6 +27869,13 @@ components:
27706
27869
  description: Name of the MCP server
27707
27870
  minLength: 1
27708
27871
  maxLength: 100
27872
+ SiteMcpServerTransport:
27873
+ type: string
27874
+ description: Transport protocol used to connect to the MCP server
27875
+ enum:
27876
+ - sse
27877
+ - http
27878
+ default: sse
27709
27879
  SiteMcpServerHeaders:
27710
27880
  type: object
27711
27881
  additionalProperties:
@@ -27727,6 +27897,8 @@ components:
27727
27897
  $ref: "#/components/schemas/SiteMcpServerName"
27728
27898
  url:
27729
27899
  $ref: "#/components/schemas/URL"
27900
+ transport:
27901
+ $ref: "#/components/schemas/SiteMcpServerTransport"
27730
27902
  headers:
27731
27903
  $ref: "#/components/schemas/SiteMcpServerHeaders"
27732
27904
  condition:
@@ -27747,6 +27919,7 @@ components:
27747
27919
  - id
27748
27920
  - name
27749
27921
  - url
27922
+ - transport
27750
27923
  - headers
27751
27924
  - urls
27752
27925
  GenericChannelPattern:
@@ -28407,14 +28580,36 @@ components:
28407
28580
  - github
28408
28581
  - gitlab
28409
28582
  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
28583
+ description: Resource targeted by a Git Sync installation.
28584
+ oneOf:
28585
+ - type: object
28586
+ properties:
28587
+ type:
28588
+ type: string
28589
+ enum:
28590
+ - space
28591
+ description: Type of resource targeted by the Git Sync installation.
28592
+ spaceId:
28593
+ type: string
28594
+ description: Unique identifier of the space targeted by the Git Sync installation.
28595
+ required:
28596
+ - type
28597
+ - spaceId
28598
+ - type: object
28599
+ properties:
28600
+ type:
28601
+ type: string
28602
+ enum:
28603
+ - site
28604
+ description: Type of resource targeted by the Git Sync installation.
28605
+ siteId:
28606
+ type: string
28607
+ description: Unique identifier of the site targeted by the Git Sync installation.
28608
+ required:
28609
+ - type
28610
+ - siteId
28611
+ discriminator:
28612
+ propertyName: type
28418
28613
  GitSyncInstallationPriority:
28419
28614
  type: string
28420
28615
  description: Which side should be treated as the source of truth when Git Sync is configured.
@@ -30433,10 +30628,6 @@ components:
30433
30628
  - live
30434
30629
  - rejected
30435
30630
  - disabled
30436
- SiteChannelType:
30437
- oneOf:
30438
- - $ref: "#/components/schemas/SiteCoreChannelType"
30439
- - $ref: "#/components/schemas/SiteConfigurableChannelType"
30440
30631
  SiteQuestionAnswerSourceType:
30441
30632
  type: string
30442
30633
  description: Source type used to answer a site question.
@@ -30517,12 +30708,18 @@ components:
30517
30708
  $ref: "#/components/schemas/AgentStatus"
30518
30709
  suggestions:
30519
30710
  type: array
30520
- description: A list of response suggestions for the user to select from.
30711
+ description: List of response suggestions for the user to select from.
30521
30712
  items:
30522
30713
  type: string
30714
+ queuedMessages:
30715
+ type: array
30716
+ description: List of messages sent by the users queued to processed.
30717
+ items:
30718
+ $ref: "#/components/schemas/AIMessageInput"
30523
30719
  required:
30524
30720
  - status
30525
30721
  - suggestions
30722
+ - queuedMessages
30526
30723
  AgentStreamState:
30527
30724
  type: object
30528
30725
  description: |