@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.json CHANGED
@@ -15123,6 +15123,17 @@
15123
15123
  }
15124
15124
  }
15125
15125
  },
15126
+ {
15127
+ "name": "channelType",
15128
+ "in": "query",
15129
+ "description": "Filter questions by answer channel type.",
15130
+ "schema": {
15131
+ "type": "array",
15132
+ "items": {
15133
+ "$ref": "#/components/schemas/SiteChannelType"
15134
+ }
15135
+ }
15136
+ },
15126
15137
  {
15127
15138
  "name": "answered",
15128
15139
  "in": "query",
@@ -15250,6 +15261,17 @@
15250
15261
  }
15251
15262
  }
15252
15263
  },
15264
+ {
15265
+ "name": "channelType",
15266
+ "in": "query",
15267
+ "description": "Filter stats by answer channel type.",
15268
+ "schema": {
15269
+ "type": "array",
15270
+ "items": {
15271
+ "$ref": "#/components/schemas/SiteChannelType"
15272
+ }
15273
+ }
15274
+ },
15253
15275
  {
15254
15276
  "name": "answered",
15255
15277
  "in": "query",
@@ -15331,6 +15353,17 @@
15331
15353
  }
15332
15354
  }
15333
15355
  },
15356
+ {
15357
+ "name": "channelType",
15358
+ "in": "query",
15359
+ "description": "Filter answer sources by answer channel type.",
15360
+ "schema": {
15361
+ "type": "array",
15362
+ "items": {
15363
+ "$ref": "#/components/schemas/SiteChannelType"
15364
+ }
15365
+ }
15366
+ },
15334
15367
  {
15335
15368
  "name": "answered",
15336
15369
  "in": "query",
@@ -15432,6 +15465,17 @@
15432
15465
  }
15433
15466
  }
15434
15467
  },
15468
+ {
15469
+ "name": "channelType",
15470
+ "in": "query",
15471
+ "description": "Filter stats by answer channel type.",
15472
+ "schema": {
15473
+ "type": "array",
15474
+ "items": {
15475
+ "$ref": "#/components/schemas/SiteChannelType"
15476
+ }
15477
+ }
15478
+ },
15435
15479
  {
15436
15480
  "name": "answered",
15437
15481
  "in": "query",
@@ -15539,6 +15583,17 @@
15539
15583
  }
15540
15584
  }
15541
15585
  },
15586
+ {
15587
+ "name": "channelType",
15588
+ "in": "query",
15589
+ "description": "Filter answers by answer channel type.",
15590
+ "schema": {
15591
+ "type": "array",
15592
+ "items": {
15593
+ "$ref": "#/components/schemas/SiteChannelType"
15594
+ }
15595
+ }
15596
+ },
15542
15597
  {
15543
15598
  "name": "question.type",
15544
15599
  "in": "query",
@@ -18051,6 +18106,9 @@
18051
18106
  "url": {
18052
18107
  "$ref": "#/components/schemas/URL"
18053
18108
  },
18109
+ "transport": {
18110
+ "$ref": "#/components/schemas/SiteMcpServerTransport"
18111
+ },
18054
18112
  "headers": {
18055
18113
  "$ref": "#/components/schemas/SiteMcpServerHeaders"
18056
18114
  },
@@ -18162,6 +18220,9 @@
18162
18220
  "format": "uri",
18163
18221
  "maxLength": 2048
18164
18222
  },
18223
+ "transport": {
18224
+ "$ref": "#/components/schemas/SiteMcpServerTransport"
18225
+ },
18165
18226
  "headers": {
18166
18227
  "$ref": "#/components/schemas/SiteMcpServerHeaders"
18167
18228
  },
@@ -24468,6 +24529,19 @@
24468
24529
  "enum": [
24469
24530
  true
24470
24531
  ]
24532
+ },
24533
+ "meta": {
24534
+ "type": "object",
24535
+ "properties": {
24536
+ "token": {
24537
+ "type": "string",
24538
+ "description": "A content token that can be used to authenticate requests for cross-space integration blocks."
24539
+ },
24540
+ "spaceId": {
24541
+ "type": "string",
24542
+ "description": "ID of the space the integration block originates from"
24543
+ }
24544
+ }
24471
24545
  }
24472
24546
  },
24473
24547
  "required": [
@@ -26255,11 +26329,15 @@
26255
26329
  "revision": {
26256
26330
  "type": "string",
26257
26331
  "description": "ID of the revision generated by the translation"
26332
+ },
26333
+ "language": {
26334
+ "$ref": "#/components/schemas/TranslationLanguage"
26258
26335
  }
26259
26336
  },
26260
26337
  "required": [
26261
26338
  "space",
26262
- "revision"
26339
+ "revision",
26340
+ "language"
26263
26341
  ]
26264
26342
  },
26265
26343
  "ComputedContentDependencyTranslation": {
@@ -26730,7 +26808,8 @@
26730
26808
  "description": "Parameters for a document translation computed content source",
26731
26809
  "required": [
26732
26810
  "type",
26733
- "props"
26811
+ "props",
26812
+ "dependencies"
26734
26813
  ],
26735
26814
  "properties": {
26736
26815
  "type": {
@@ -26753,6 +26832,33 @@
26753
26832
  "type": "string"
26754
26833
  }
26755
26834
  }
26835
+ },
26836
+ "dependencies": {
26837
+ "type": "object",
26838
+ "required": [
26839
+ "translation"
26840
+ ],
26841
+ "properties": {
26842
+ "translation": {
26843
+ "oneOf": [
26844
+ {
26845
+ "type": "object",
26846
+ "additionalProperties": false,
26847
+ "required": [
26848
+ "ref"
26849
+ ],
26850
+ "properties": {
26851
+ "ref": {
26852
+ "$ref": "#/components/schemas/TranslationRef"
26853
+ }
26854
+ }
26855
+ },
26856
+ {
26857
+ "$ref": "#/components/schemas/ComputedContentDependencyTranslation"
26858
+ }
26859
+ ]
26860
+ }
26861
+ }
26756
26862
  }
26757
26863
  }
26758
26864
  },
@@ -30012,6 +30118,9 @@
30012
30118
  },
30013
30119
  "teams": {
30014
30120
  "type": "number"
30121
+ },
30122
+ "sites": {
30123
+ "type": "number"
30015
30124
  }
30016
30125
  },
30017
30126
  "required": [
@@ -30023,7 +30132,8 @@
30023
30132
  "joinedAt",
30024
30133
  "sso",
30025
30134
  "spaces",
30026
- "teams"
30135
+ "teams",
30136
+ "sites"
30027
30137
  ]
30028
30138
  },
30029
30139
  "IntegrationTitle": {
@@ -31501,6 +31611,13 @@
31501
31611
  },
31502
31612
  "location": {
31503
31613
  "type": "string"
31614
+ },
31615
+ "action": {
31616
+ "type": "string",
31617
+ "enum": [
31618
+ "logout"
31619
+ ],
31620
+ "description": "The visitor authentication action to resolve. If omitted, integrations resolve to the existing login redirect."
31504
31621
  }
31505
31622
  },
31506
31623
  "required": [
@@ -32356,6 +32473,7 @@
32356
32473
  "sites-ads",
32357
32474
  "sites-ai-search",
32358
32475
  "sites-ai-assistant",
32476
+ "sites-ai-insights",
32359
32477
  "sites-connections",
32360
32478
  "sites-channels",
32361
32479
  "sites-embed",
@@ -32484,6 +32602,9 @@
32484
32602
  "siteSpaces": {
32485
32603
  "type": "number"
32486
32604
  },
32605
+ "gitSync": {
32606
+ "$ref": "#/components/schemas/GitSyncState"
32607
+ },
32487
32608
  "createdAt": {
32488
32609
  "type": "string",
32489
32610
  "format": "date-time"
@@ -32529,6 +32650,11 @@
32529
32650
  "type": "string",
32530
32651
  "description": "URL of the login endpoint for visitors to authenticate with the site auth backend.\n",
32531
32652
  "format": "uri"
32653
+ },
32654
+ "logout": {
32655
+ "type": "string",
32656
+ "description": "URL of the logout endpoint for visitors to sign out from the site auth backend.\n",
32657
+ "format": "uri"
32532
32658
  }
32533
32659
  },
32534
32660
  "required": [
@@ -34399,6 +34525,22 @@
34399
34525
  "space"
34400
34526
  ]
34401
34527
  },
34528
+ "MemberSitePermission": {
34529
+ "type": "object",
34530
+ "description": "Permission of an organization member in a site.",
34531
+ "properties": {
34532
+ "site": {
34533
+ "$ref": "#/components/schemas/Site"
34534
+ },
34535
+ "permission": {
34536
+ "$ref": "#/components/schemas/MemberRoleOrGuest"
34537
+ }
34538
+ },
34539
+ "required": [
34540
+ "site",
34541
+ "permission"
34542
+ ]
34543
+ },
34402
34544
  "TeamMemberRole": {
34403
34545
  "type": "string",
34404
34546
  "description": "\"The role of a team member.\n\"owner\": Can manage team members.\n\"member\": Is a member of the team.\n",
@@ -38084,6 +38226,11 @@
38084
38226
  "format": "uri",
38085
38227
  "description": "URL to redirect to when the authenticated access secret is invalid."
38086
38228
  },
38229
+ "logoutURL": {
38230
+ "type": "string",
38231
+ "format": "uri",
38232
+ "description": "URL used to log visitors out from the upstream custom auth backend."
38233
+ },
38087
38234
  "integration": {
38088
38235
  "type": "string",
38089
38236
  "description": "Name of the authenticated access integration installed on the site (if any).\nIt is also the one being used as VA backend when the published auth settings are configured to use \"integration\" as backend.\n"
@@ -38118,6 +38265,14 @@
38118
38265
  ],
38119
38266
  "format": "uri",
38120
38267
  "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."
38268
+ },
38269
+ "logoutURL": {
38270
+ "type": [
38271
+ "string",
38272
+ "null"
38273
+ ],
38274
+ "format": "uri",
38275
+ "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."
38121
38276
  }
38122
38277
  }
38123
38278
  }
@@ -39352,6 +39507,33 @@
39352
39507
  "unclear"
39353
39508
  ]
39354
39509
  },
39510
+ "SiteCoreChannelType": {
39511
+ "type": "string",
39512
+ "enum": [
39513
+ "site",
39514
+ "embed",
39515
+ "api"
39516
+ ]
39517
+ },
39518
+ "SiteConfigurableChannelType": {
39519
+ "type": "string",
39520
+ "enum": [
39521
+ "builtin:slack",
39522
+ "builtin:discord",
39523
+ "builtin:github",
39524
+ "builtin:linear"
39525
+ ]
39526
+ },
39527
+ "SiteChannelType": {
39528
+ "oneOf": [
39529
+ {
39530
+ "$ref": "#/components/schemas/SiteCoreChannelType"
39531
+ },
39532
+ {
39533
+ "$ref": "#/components/schemas/SiteConfigurableChannelType"
39534
+ }
39535
+ ]
39536
+ },
39355
39537
  "SiteQuestionAnswerResolution": {
39356
39538
  "type": "string",
39357
39539
  "description": "Whether the response answered the question.",
@@ -39494,23 +39676,6 @@
39494
39676
  "high"
39495
39677
  ]
39496
39678
  },
39497
- "SiteCoreChannelType": {
39498
- "type": "string",
39499
- "enum": [
39500
- "site",
39501
- "embed",
39502
- "api"
39503
- ]
39504
- },
39505
- "SiteConfigurableChannelType": {
39506
- "type": "string",
39507
- "enum": [
39508
- "builtin:slack",
39509
- "builtin:discord",
39510
- "builtin:github",
39511
- "builtin:linear"
39512
- ]
39513
- },
39514
39679
  "SiteQuestionAnswer": {
39515
39680
  "type": "object",
39516
39681
  "properties": {
@@ -39696,6 +39861,13 @@
39696
39861
  "developer"
39697
39862
  ]
39698
39863
  },
39864
+ "AIMessageStepStartCondition": {
39865
+ "type": "string",
39866
+ "description": "Describe the state in which the steps started.",
39867
+ "enum": [
39868
+ "compaction"
39869
+ ]
39870
+ },
39699
39871
  "AIToolCallGetPageContent": {
39700
39872
  "type": "object",
39701
39873
  "properties": {
@@ -40532,6 +40704,10 @@
40532
40704
  },
40533
40705
  "url": {
40534
40706
  "$ref": "#/components/schemas/URL"
40707
+ },
40708
+ "filename": {
40709
+ "type": "string",
40710
+ "description": "Name of the image file."
40535
40711
  }
40536
40712
  },
40537
40713
  "required": [
@@ -40579,10 +40755,78 @@
40579
40755
  }
40580
40756
  ]
40581
40757
  },
40758
+ "AIMessageContext": {
40759
+ "type": "object",
40760
+ "description": "Context about the current user sending a message.",
40761
+ "properties": {
40762
+ "location": {
40763
+ "type": "object",
40764
+ "properties": {
40765
+ "spaceId": {
40766
+ "type": "string",
40767
+ "description": "ID of the current space."
40768
+ },
40769
+ "pageId": {
40770
+ "type": "string",
40771
+ "description": "ID of the current page."
40772
+ }
40773
+ },
40774
+ "required": [
40775
+ "spaceId",
40776
+ "pageId"
40777
+ ]
40778
+ },
40779
+ "selection": {
40780
+ "type": "object",
40781
+ "description": "Range of the current selection in a document.",
40782
+ "properties": {
40783
+ "anchorKey": {
40784
+ "oneOf": [
40785
+ {
40786
+ "type": "string"
40787
+ },
40788
+ {
40789
+ "type": "null"
40790
+ }
40791
+ ]
40792
+ },
40793
+ "anchorOffset": {
40794
+ "type": "integer"
40795
+ },
40796
+ "focusKey": {
40797
+ "oneOf": [
40798
+ {
40799
+ "type": "string"
40800
+ },
40801
+ {
40802
+ "type": "null"
40803
+ }
40804
+ ]
40805
+ },
40806
+ "focusOffset": {
40807
+ "type": "integer"
40808
+ },
40809
+ "content": {
40810
+ "type": "string",
40811
+ "description": "Snapshot of the selection for display."
40812
+ }
40813
+ },
40814
+ "required": [
40815
+ "anchorKey",
40816
+ "anchorOffset",
40817
+ "focusKey",
40818
+ "focusOffset"
40819
+ ]
40820
+ }
40821
+ }
40822
+ },
40582
40823
  "AIMessageStep": {
40583
40824
  "type": "object",
40584
40825
  "description": "A step in a message from the AI agent.",
40585
40826
  "properties": {
40827
+ "startCondition": {
40828
+ "$ref": "#/components/schemas/AIMessageStepStartCondition"
40829
+ },
40586
40830
  "content": {
40587
40831
  "$ref": "#/components/schemas/JSONDocument"
40588
40832
  },
@@ -40612,6 +40856,9 @@
40612
40856
  "items": {
40613
40857
  "$ref": "#/components/schemas/AIAttachment"
40614
40858
  }
40859
+ },
40860
+ "context": {
40861
+ "$ref": "#/components/schemas/AIMessageContext"
40615
40862
  }
40616
40863
  }
40617
40864
  },
@@ -41043,66 +41290,14 @@
41043
41290
  "team"
41044
41291
  ]
41045
41292
  },
41046
- "AIMessageContext": {
41047
- "type": "object",
41048
- "description": "Context about the current user sending a message.",
41049
- "properties": {
41050
- "location": {
41051
- "type": "object",
41052
- "properties": {
41053
- "spaceId": {
41054
- "type": "string",
41055
- "description": "ID of the current space."
41056
- },
41057
- "pageId": {
41058
- "type": "string",
41059
- "description": "ID of the current page."
41060
- }
41061
- },
41062
- "required": [
41063
- "spaceId",
41064
- "pageId"
41065
- ]
41066
- },
41067
- "selection": {
41068
- "type": "object",
41069
- "description": "Range of the current selection in a document.",
41070
- "properties": {
41071
- "anchorKey": {
41072
- "oneOf": [
41073
- {
41074
- "type": "string"
41075
- },
41076
- {
41077
- "type": "null"
41078
- }
41079
- ]
41080
- },
41081
- "anchorOffset": {
41082
- "type": "integer"
41083
- },
41084
- "focusKey": {
41085
- "oneOf": [
41086
- {
41087
- "type": "string"
41088
- },
41089
- {
41090
- "type": "null"
41091
- }
41092
- ]
41093
- },
41094
- "focusOffset": {
41095
- "type": "integer"
41096
- }
41097
- },
41098
- "required": [
41099
- "anchorKey",
41100
- "anchorOffset",
41101
- "focusKey",
41102
- "focusOffset"
41103
- ]
41104
- }
41105
- }
41293
+ "AIMessageMode": {
41294
+ "type": "string",
41295
+ "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.",
41296
+ "default": "normal",
41297
+ "enum": [
41298
+ "normal",
41299
+ "fast"
41300
+ ]
41106
41301
  },
41107
41302
  "AIMessageInput": {
41108
41303
  "type": "object",
@@ -41130,6 +41325,9 @@
41130
41325
  "items": {
41131
41326
  "$ref": "#/components/schemas/AIAttachment"
41132
41327
  }
41328
+ },
41329
+ "mode": {
41330
+ "$ref": "#/components/schemas/AIMessageMode"
41133
41331
  }
41134
41332
  },
41135
41333
  "required": [
@@ -41515,6 +41713,31 @@
41515
41713
  "attachment"
41516
41714
  ]
41517
41715
  },
41716
+ "AIStreamResponseCompaction": {
41717
+ "type": "object",
41718
+ "description": "Message emitted by the server to indicate a context compaction event.\n",
41719
+ "properties": {
41720
+ "type": {
41721
+ "type": "string",
41722
+ "enum": [
41723
+ "response_compaction"
41724
+ ]
41725
+ },
41726
+ "messageId": {
41727
+ "type": "string",
41728
+ "description": "The ID of the message that this event is composing.\n"
41729
+ },
41730
+ "stepIndex": {
41731
+ "type": "integer",
41732
+ "description": "The index of the step of the message that this event is composing.\n"
41733
+ }
41734
+ },
41735
+ "required": [
41736
+ "type",
41737
+ "messageId",
41738
+ "stepIndex"
41739
+ ]
41740
+ },
41518
41741
  "AIStreamResponse": {
41519
41742
  "oneOf": [
41520
41743
  {
@@ -41543,6 +41766,9 @@
41543
41766
  },
41544
41767
  {
41545
41768
  "$ref": "#/components/schemas/AIStreamResponseAttachment"
41769
+ },
41770
+ {
41771
+ "$ref": "#/components/schemas/AIStreamResponseCompaction"
41546
41772
  }
41547
41773
  ]
41548
41774
  },
@@ -44611,6 +44837,15 @@
44611
44837
  "minLength": 1,
44612
44838
  "maxLength": 100
44613
44839
  },
44840
+ "SiteMcpServerTransport": {
44841
+ "type": "string",
44842
+ "description": "Transport protocol used to connect to the MCP server",
44843
+ "enum": [
44844
+ "sse",
44845
+ "http"
44846
+ ],
44847
+ "default": "sse"
44848
+ },
44614
44849
  "SiteMcpServerHeaders": {
44615
44850
  "type": "object",
44616
44851
  "additionalProperties": {
@@ -44639,6 +44874,9 @@
44639
44874
  "url": {
44640
44875
  "$ref": "#/components/schemas/URL"
44641
44876
  },
44877
+ "transport": {
44878
+ "$ref": "#/components/schemas/SiteMcpServerTransport"
44879
+ },
44642
44880
  "headers": {
44643
44881
  "$ref": "#/components/schemas/SiteMcpServerHeaders"
44644
44882
  },
@@ -44666,6 +44904,7 @@
44666
44904
  "id",
44667
44905
  "name",
44668
44906
  "url",
44907
+ "transport",
44669
44908
  "headers",
44670
44909
  "urls"
44671
44910
  ]
@@ -45636,17 +45875,52 @@
45636
45875
  ]
45637
45876
  },
45638
45877
  "GitSyncInstallationTarget": {
45639
- "type": "object",
45640
- "description": "Resource targeted by a Git Sync installation. Currently only spaces are supported.",
45641
- "properties": {
45642
- "spaceId": {
45643
- "type": "string",
45644
- "description": "Unique identifier of the space targeted by the Git Sync installation."
45878
+ "description": "Resource targeted by a Git Sync installation.",
45879
+ "oneOf": [
45880
+ {
45881
+ "type": "object",
45882
+ "properties": {
45883
+ "type": {
45884
+ "type": "string",
45885
+ "enum": [
45886
+ "space"
45887
+ ],
45888
+ "description": "Type of resource targeted by the Git Sync installation."
45889
+ },
45890
+ "spaceId": {
45891
+ "type": "string",
45892
+ "description": "Unique identifier of the space targeted by the Git Sync installation."
45893
+ }
45894
+ },
45895
+ "required": [
45896
+ "type",
45897
+ "spaceId"
45898
+ ]
45899
+ },
45900
+ {
45901
+ "type": "object",
45902
+ "properties": {
45903
+ "type": {
45904
+ "type": "string",
45905
+ "enum": [
45906
+ "site"
45907
+ ],
45908
+ "description": "Type of resource targeted by the Git Sync installation."
45909
+ },
45910
+ "siteId": {
45911
+ "type": "string",
45912
+ "description": "Unique identifier of the site targeted by the Git Sync installation."
45913
+ }
45914
+ },
45915
+ "required": [
45916
+ "type",
45917
+ "siteId"
45918
+ ]
45645
45919
  }
45646
- },
45647
- "required": [
45648
- "spaceId"
45649
- ]
45920
+ ],
45921
+ "discriminator": {
45922
+ "propertyName": "type"
45923
+ }
45650
45924
  },
45651
45925
  "GitSyncInstallationPriority": {
45652
45926
  "type": "string",
@@ -48757,16 +49031,6 @@
48757
49031
  "disabled"
48758
49032
  ]
48759
49033
  },
48760
- "SiteChannelType": {
48761
- "oneOf": [
48762
- {
48763
- "$ref": "#/components/schemas/SiteCoreChannelType"
48764
- },
48765
- {
48766
- "$ref": "#/components/schemas/SiteConfigurableChannelType"
48767
- }
48768
- ]
48769
- },
48770
49034
  "SiteQuestionAnswerSourceType": {
48771
49035
  "type": "string",
48772
49036
  "description": "Source type used to answer a site question.",
@@ -48874,15 +49138,23 @@
48874
49138
  },
48875
49139
  "suggestions": {
48876
49140
  "type": "array",
48877
- "description": "A list of response suggestions for the user to select from.",
49141
+ "description": "List of response suggestions for the user to select from.",
48878
49142
  "items": {
48879
49143
  "type": "string"
48880
49144
  }
49145
+ },
49146
+ "queuedMessages": {
49147
+ "type": "array",
49148
+ "description": "List of messages sent by the users queued to processed.",
49149
+ "items": {
49150
+ "$ref": "#/components/schemas/AIMessageInput"
49151
+ }
48881
49152
  }
48882
49153
  },
48883
49154
  "required": [
48884
49155
  "status",
48885
- "suggestions"
49156
+ "suggestions",
49157
+ "queuedMessages"
48886
49158
  ]
48887
49159
  },
48888
49160
  "AgentStreamState": {