@gitbook/api 0.125.0 → 0.126.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/dist/client.d.ts +36 -103
- package/dist/index.cjs +14 -7
- package/dist/index.js +13 -7
- package/package.json +1 -1
- package/spec/openapi.json +218 -188
- package/spec/openapi.yaml +148 -131
package/spec/openapi.yaml
CHANGED
|
@@ -648,6 +648,8 @@ paths:
|
|
|
648
648
|
parameters:
|
|
649
649
|
- $ref: "#/components/parameters/spaceId"
|
|
650
650
|
responses:
|
|
651
|
+
"204":
|
|
652
|
+
description: Space did not exist
|
|
651
653
|
"205":
|
|
652
654
|
description: Space has been deleted
|
|
653
655
|
"/spaces/{spaceId}/duplicate":
|
|
@@ -946,14 +948,13 @@ paths:
|
|
|
946
948
|
- $ref: "#/components/parameters/spaceId"
|
|
947
949
|
- $ref: "#/components/parameters/teamId"
|
|
948
950
|
responses:
|
|
951
|
+
"204":
|
|
952
|
+
description: The team was not found in the space
|
|
949
953
|
"205":
|
|
950
954
|
description: The team has been removed from the space
|
|
951
955
|
"400":
|
|
952
956
|
description: Team does not have access to space
|
|
953
957
|
$ref: "#/components/responses/BadRequestError"
|
|
954
|
-
"404":
|
|
955
|
-
description: No team found with the given ID
|
|
956
|
-
$ref: "#/components/responses/NotFoundError"
|
|
957
958
|
"/spaces/{spaceId}/permissions/users":
|
|
958
959
|
get:
|
|
959
960
|
operationId: listUserPermissionsInSpace
|
|
@@ -1022,11 +1023,10 @@ paths:
|
|
|
1022
1023
|
- $ref: "#/components/parameters/spaceId"
|
|
1023
1024
|
- $ref: "#/components/parameters/userId"
|
|
1024
1025
|
responses:
|
|
1026
|
+
"204":
|
|
1027
|
+
description: The user was not found in the space
|
|
1025
1028
|
"205":
|
|
1026
1029
|
description: The user has been removed from the space
|
|
1027
|
-
"404":
|
|
1028
|
-
description: No user found with the given ID
|
|
1029
|
-
$ref: "#/components/responses/NotFoundError"
|
|
1030
1030
|
"/spaces/{spaceId}/permissions/teams":
|
|
1031
1031
|
get:
|
|
1032
1032
|
operationId: listTeamPermissionsInSpace
|
|
@@ -1822,11 +1822,10 @@ paths:
|
|
|
1822
1822
|
- $ref: "#/components/parameters/changeRequestId"
|
|
1823
1823
|
- $ref: "#/components/parameters/userId"
|
|
1824
1824
|
responses:
|
|
1825
|
+
"204":
|
|
1826
|
+
description: Reviewer was not found
|
|
1825
1827
|
"205":
|
|
1826
1828
|
description: The reviewer has been removed from the change request
|
|
1827
|
-
"404":
|
|
1828
|
-
description: The reviewer could not be found
|
|
1829
|
-
$ref: "#/components/responses/NotFoundError"
|
|
1830
1829
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/links":
|
|
1831
1830
|
get:
|
|
1832
1831
|
operationId: listChangeRequestLinks
|
|
@@ -1966,6 +1965,8 @@ paths:
|
|
|
1966
1965
|
- $ref: "#/components/parameters/changeRequestId"
|
|
1967
1966
|
- $ref: "#/components/parameters/commentId"
|
|
1968
1967
|
responses:
|
|
1968
|
+
"204":
|
|
1969
|
+
description: Comment did not exist.
|
|
1969
1970
|
"205":
|
|
1970
1971
|
description: The comment has been deleted.
|
|
1971
1972
|
put:
|
|
@@ -2107,6 +2108,8 @@ paths:
|
|
|
2107
2108
|
- $ref: "#/components/parameters/commentId"
|
|
2108
2109
|
- $ref: "#/components/parameters/commentReplyId"
|
|
2109
2110
|
responses:
|
|
2111
|
+
"204":
|
|
2112
|
+
description: Comment reply did not exist.
|
|
2110
2113
|
"205":
|
|
2111
2114
|
description: The comment has been deleted.
|
|
2112
2115
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/contributors":
|
|
@@ -2823,6 +2826,8 @@ paths:
|
|
|
2823
2826
|
- $ref: "#/components/parameters/spaceId"
|
|
2824
2827
|
- $ref: "#/components/parameters/commentId"
|
|
2825
2828
|
responses:
|
|
2829
|
+
"204":
|
|
2830
|
+
description: Comment did not exist.
|
|
2826
2831
|
"205":
|
|
2827
2832
|
description: The comment has been deleted.
|
|
2828
2833
|
put:
|
|
@@ -2957,6 +2962,8 @@ paths:
|
|
|
2957
2962
|
- $ref: "#/components/parameters/commentId"
|
|
2958
2963
|
- $ref: "#/components/parameters/commentReplyId"
|
|
2959
2964
|
responses:
|
|
2965
|
+
"204":
|
|
2966
|
+
description: Comment reply did not exist.
|
|
2960
2967
|
"205":
|
|
2961
2968
|
description: The comment has been deleted.
|
|
2962
2969
|
"/spaces/{spaceId}/commenters":
|
|
@@ -3247,6 +3254,8 @@ paths:
|
|
|
3247
3254
|
parameters:
|
|
3248
3255
|
- $ref: "#/components/parameters/collectionId"
|
|
3249
3256
|
responses:
|
|
3257
|
+
"204":
|
|
3258
|
+
description: Collection did not exist
|
|
3250
3259
|
"205":
|
|
3251
3260
|
description: Collection has been deleted
|
|
3252
3261
|
"/collections/{collectionId}/spaces":
|
|
@@ -3452,11 +3461,10 @@ paths:
|
|
|
3452
3461
|
- $ref: "#/components/parameters/collectionId"
|
|
3453
3462
|
- $ref: "#/components/parameters/teamId"
|
|
3454
3463
|
responses:
|
|
3464
|
+
"204":
|
|
3465
|
+
description: The team was not found in the collection
|
|
3455
3466
|
"205":
|
|
3456
3467
|
description: The team has been removed from the collection
|
|
3457
|
-
"404":
|
|
3458
|
-
description: No team found with the given ID
|
|
3459
|
-
$ref: "#/components/responses/NotFoundError"
|
|
3460
3468
|
"/collections/{collectionId}/permissions/users":
|
|
3461
3469
|
get:
|
|
3462
3470
|
operationId: listUserPermissionsInCollection
|
|
@@ -3525,11 +3533,10 @@ paths:
|
|
|
3525
3533
|
- $ref: "#/components/parameters/collectionId"
|
|
3526
3534
|
- $ref: "#/components/parameters/userId"
|
|
3527
3535
|
responses:
|
|
3536
|
+
"204":
|
|
3537
|
+
description: The user was not found in the collection
|
|
3528
3538
|
"205":
|
|
3529
3539
|
description: The user has been removed from the collection
|
|
3530
|
-
"404":
|
|
3531
|
-
description: No user found with the given ID
|
|
3532
|
-
$ref: "#/components/responses/NotFoundError"
|
|
3533
3540
|
"/collections/{collectionId}/permissions/aggregate":
|
|
3534
3541
|
get:
|
|
3535
3542
|
operationId: listPermissionsAggregateInCollection
|
|
@@ -3650,6 +3657,8 @@ paths:
|
|
|
3650
3657
|
- $ref: "#/components/parameters/integrationName"
|
|
3651
3658
|
responses:
|
|
3652
3659
|
"204":
|
|
3660
|
+
description: Integration did not exist
|
|
3661
|
+
"205":
|
|
3653
3662
|
description: Integration has been deleted
|
|
3654
3663
|
"/integrations/{integrationName}/installations":
|
|
3655
3664
|
get:
|
|
@@ -4024,9 +4033,9 @@ paths:
|
|
|
4024
4033
|
- $ref: "#/components/parameters/installationId"
|
|
4025
4034
|
responses:
|
|
4026
4035
|
"204":
|
|
4036
|
+
description: Integration installation did not exist
|
|
4037
|
+
"205":
|
|
4027
4038
|
description: Integration uninstalled successfully
|
|
4028
|
-
"404":
|
|
4029
|
-
$ref: "#/components/responses/NotFoundError"
|
|
4030
4039
|
"/integrations/{integrationName}/installations/{installationId}/tokens":
|
|
4031
4040
|
post:
|
|
4032
4041
|
operationId: createIntegrationInstallationToken
|
|
@@ -4185,6 +4194,8 @@ paths:
|
|
|
4185
4194
|
- $ref: "#/components/parameters/spaceId"
|
|
4186
4195
|
responses:
|
|
4187
4196
|
"204":
|
|
4197
|
+
description: The space installation did not exist.
|
|
4198
|
+
"205":
|
|
4188
4199
|
description: The space installation has been deleted.
|
|
4189
4200
|
"/integrations/{integrationName}/installations/{installationId}/sites":
|
|
4190
4201
|
get:
|
|
@@ -4323,6 +4334,8 @@ paths:
|
|
|
4323
4334
|
- $ref: "#/components/parameters/siteId"
|
|
4324
4335
|
responses:
|
|
4325
4336
|
"204":
|
|
4337
|
+
description: The site installation did not exist.
|
|
4338
|
+
"205":
|
|
4326
4339
|
description: The site installation has been deleted.
|
|
4327
4340
|
/orgs:
|
|
4328
4341
|
get:
|
|
@@ -4534,6 +4547,8 @@ paths:
|
|
|
4534
4547
|
- $ref: "#/components/parameters/userId"
|
|
4535
4548
|
responses:
|
|
4536
4549
|
"204":
|
|
4550
|
+
description: Member did not exist in the organization.
|
|
4551
|
+
"205":
|
|
4537
4552
|
description: The member was deleted from the organization.
|
|
4538
4553
|
"/orgs/{organizationId}/ping":
|
|
4539
4554
|
post:
|
|
@@ -4774,6 +4789,8 @@ paths:
|
|
|
4774
4789
|
- $ref: "#/components/parameters/teamId"
|
|
4775
4790
|
responses:
|
|
4776
4791
|
"204":
|
|
4792
|
+
description: The team did not exist in the organization.
|
|
4793
|
+
"205":
|
|
4777
4794
|
description: The team was deleted from the organization.
|
|
4778
4795
|
"/orgs/{organizationId}/teams/{teamId}/members":
|
|
4779
4796
|
put:
|
|
@@ -4867,6 +4884,8 @@ paths:
|
|
|
4867
4884
|
- $ref: "#/components/parameters/userId"
|
|
4868
4885
|
responses:
|
|
4869
4886
|
"204":
|
|
4887
|
+
description: Member was not part of the team
|
|
4888
|
+
"205":
|
|
4870
4889
|
description: Member has been deleted from the team
|
|
4871
4890
|
"/orgs/{organizationId}/invites":
|
|
4872
4891
|
post:
|
|
@@ -5045,6 +5064,8 @@ paths:
|
|
|
5045
5064
|
- $ref: "#/components/parameters/organizationId"
|
|
5046
5065
|
- $ref: "#/components/parameters/inviteId"
|
|
5047
5066
|
responses:
|
|
5067
|
+
"204":
|
|
5068
|
+
description: Organization invite did not exist
|
|
5048
5069
|
"205":
|
|
5049
5070
|
description: The organization invite has been deleted
|
|
5050
5071
|
"/orgs/{organizationId}/search":
|
|
@@ -5472,6 +5493,8 @@ paths:
|
|
|
5472
5493
|
- $ref: "#/components/parameters/samlProviderId"
|
|
5473
5494
|
responses:
|
|
5474
5495
|
"204":
|
|
5496
|
+
description: SAML provider did not exist
|
|
5497
|
+
"205":
|
|
5475
5498
|
description: SAML provider has been deleted
|
|
5476
5499
|
"/orgs/{organizationId}/sso":
|
|
5477
5500
|
get:
|
|
@@ -5719,6 +5742,8 @@ paths:
|
|
|
5719
5742
|
- $ref: "#/components/parameters/organizationId"
|
|
5720
5743
|
- $ref: "#/components/parameters/openapiSpecSlug"
|
|
5721
5744
|
responses:
|
|
5745
|
+
"204":
|
|
5746
|
+
description: Specification did not exist
|
|
5722
5747
|
"205":
|
|
5723
5748
|
description: OpenAPI specification has been deleted
|
|
5724
5749
|
"/orgs/{organizationId}/openapi/{specSlug}/versions":
|
|
@@ -6210,6 +6235,8 @@ paths:
|
|
|
6210
6235
|
- $ref: "#/components/parameters/organizationId"
|
|
6211
6236
|
- $ref: "#/components/parameters/translationSettingsId"
|
|
6212
6237
|
responses:
|
|
6238
|
+
"204":
|
|
6239
|
+
description: Translation settings did not exist
|
|
6213
6240
|
"205":
|
|
6214
6241
|
description: Translation settings has been deleted
|
|
6215
6242
|
"/orgs/{organizationId}/translations/{translationSettingsId}/languages":
|
|
@@ -6318,11 +6345,10 @@ paths:
|
|
|
6318
6345
|
- $ref: "#/components/parameters/translationSettingsId"
|
|
6319
6346
|
- $ref: "#/components/parameters/translationLanguage"
|
|
6320
6347
|
responses:
|
|
6348
|
+
"204":
|
|
6349
|
+
description: Translation language settings not found
|
|
6321
6350
|
"205":
|
|
6322
6351
|
description: Language successfully removed
|
|
6323
|
-
"404":
|
|
6324
|
-
description: No matching translation language settings found
|
|
6325
|
-
$ref: "#/components/responses/NotFoundError"
|
|
6326
6352
|
"/orgs/{organizationId}/storage/upload":
|
|
6327
6353
|
post:
|
|
6328
6354
|
operationId: generateStorageUploadURL
|
|
@@ -6519,10 +6545,9 @@ paths:
|
|
|
6519
6545
|
- $ref: "#/components/parameters/fontId"
|
|
6520
6546
|
responses:
|
|
6521
6547
|
"204":
|
|
6522
|
-
description: Custom font deleted successfully.
|
|
6523
|
-
"404":
|
|
6524
6548
|
description: Organization or font not found.
|
|
6525
|
-
|
|
6549
|
+
"205":
|
|
6550
|
+
description: Custom font deleted successfully.
|
|
6526
6551
|
"/orgs/{organizationId}/sites":
|
|
6527
6552
|
get:
|
|
6528
6553
|
operationId: listSites
|
|
@@ -6705,6 +6730,8 @@ paths:
|
|
|
6705
6730
|
- $ref: "#/components/parameters/organizationId"
|
|
6706
6731
|
- $ref: "#/components/parameters/siteId"
|
|
6707
6732
|
responses:
|
|
6733
|
+
"204":
|
|
6734
|
+
description: Site did not exist
|
|
6708
6735
|
"205":
|
|
6709
6736
|
description: Site has been deleted
|
|
6710
6737
|
"/orgs/{organizationId}/sites/{siteId}/adaptive-schema":
|
|
@@ -6964,6 +6991,8 @@ paths:
|
|
|
6964
6991
|
- $ref: "#/components/parameters/siteId"
|
|
6965
6992
|
- $ref: "#/components/parameters/shareLinkId"
|
|
6966
6993
|
responses:
|
|
6994
|
+
"204":
|
|
6995
|
+
description: Site share link did not exist
|
|
6967
6996
|
"205":
|
|
6968
6997
|
description: Site share link has been deleted
|
|
6969
6998
|
"/orgs/{organizationId}/sites/{siteId}/structure":
|
|
@@ -7424,6 +7453,8 @@ paths:
|
|
|
7424
7453
|
- $ref: "#/components/parameters/siteId"
|
|
7425
7454
|
- $ref: "#/components/parameters/siteSectionGroupId"
|
|
7426
7455
|
responses:
|
|
7456
|
+
"204":
|
|
7457
|
+
description: Site section group did not exist
|
|
7427
7458
|
"205":
|
|
7428
7459
|
description: Site section group has been deleted
|
|
7429
7460
|
"/orgs/{organizationId}/sites/{siteId}/section-groups/{siteSectionGroupId}/sections":
|
|
@@ -7476,6 +7507,8 @@ paths:
|
|
|
7476
7507
|
- $ref: "#/components/parameters/siteSectionGroupId"
|
|
7477
7508
|
- $ref: "#/components/parameters/siteSectionId"
|
|
7478
7509
|
responses:
|
|
7510
|
+
"204":
|
|
7511
|
+
description: Section was not part of the group
|
|
7479
7512
|
"205":
|
|
7480
7513
|
description: Section has been removed from the section group
|
|
7481
7514
|
"/orgs/{organizationId}/sites/{siteId}/sections":
|
|
@@ -7623,6 +7656,8 @@ paths:
|
|
|
7623
7656
|
- $ref: "#/components/parameters/siteId"
|
|
7624
7657
|
- $ref: "#/components/parameters/siteSectionId"
|
|
7625
7658
|
responses:
|
|
7659
|
+
"204":
|
|
7660
|
+
description: Site section did not exist
|
|
7626
7661
|
"205":
|
|
7627
7662
|
description: Site section has been deleted
|
|
7628
7663
|
"/orgs/{organizationId}/sites/{siteId}/search":
|
|
@@ -7825,6 +7860,8 @@ paths:
|
|
|
7825
7860
|
- $ref: "#/components/parameters/siteId"
|
|
7826
7861
|
- $ref: "#/components/parameters/siteSpaceId"
|
|
7827
7862
|
responses:
|
|
7863
|
+
"204":
|
|
7864
|
+
description: Site space did not exist
|
|
7828
7865
|
"205":
|
|
7829
7866
|
description: Site space has been deleted
|
|
7830
7867
|
"/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization":
|
|
@@ -8220,6 +8257,8 @@ paths:
|
|
|
8220
8257
|
- $ref: "#/components/parameters/siteId"
|
|
8221
8258
|
- $ref: "#/components/parameters/siteSpaceId"
|
|
8222
8259
|
responses:
|
|
8260
|
+
"204":
|
|
8261
|
+
description: Customization settings did not exist
|
|
8223
8262
|
"205":
|
|
8224
8263
|
description: Site space customization removed
|
|
8225
8264
|
"400":
|
|
@@ -8363,7 +8402,7 @@ paths:
|
|
|
8363
8402
|
operationId: streamAIResponseInSite
|
|
8364
8403
|
summary: Generate an AI response in a site
|
|
8365
8404
|
description: |
|
|
8366
|
-
|
|
8405
|
+
Generate an AI response in a conversation.
|
|
8367
8406
|
tags:
|
|
8368
8407
|
- sites
|
|
8369
8408
|
x-internal: true
|
|
@@ -8377,27 +8416,44 @@ paths:
|
|
|
8377
8416
|
content:
|
|
8378
8417
|
application/json:
|
|
8379
8418
|
schema:
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8419
|
+
allOf:
|
|
8420
|
+
- type: object
|
|
8421
|
+
required:
|
|
8422
|
+
- input
|
|
8423
|
+
- output
|
|
8424
|
+
properties:
|
|
8425
|
+
previousResponseId:
|
|
8426
|
+
type: string
|
|
8427
|
+
description: The ID of the previous response to continue from
|
|
8428
|
+
input:
|
|
8429
|
+
type: array
|
|
8430
|
+
items:
|
|
8431
|
+
$ref: "#/components/schemas/AIMessageInput"
|
|
8432
|
+
output:
|
|
8433
|
+
$ref: "#/components/schemas/AIOutputFormat"
|
|
8434
|
+
model:
|
|
8435
|
+
$ref: "#/components/schemas/AIModel"
|
|
8436
|
+
- oneOf:
|
|
8437
|
+
- type: object
|
|
8438
|
+
required:
|
|
8439
|
+
- mode
|
|
8440
|
+
- instructions
|
|
8441
|
+
properties:
|
|
8442
|
+
mode:
|
|
8443
|
+
type: string
|
|
8444
|
+
enum:
|
|
8445
|
+
- custom
|
|
8446
|
+
instructions:
|
|
8447
|
+
type: string
|
|
8448
|
+
description: Custom instructions for the AI
|
|
8449
|
+
- type: object
|
|
8450
|
+
required:
|
|
8451
|
+
- mode
|
|
8452
|
+
properties:
|
|
8453
|
+
mode:
|
|
8454
|
+
type: string
|
|
8455
|
+
enum:
|
|
8456
|
+
- assistant
|
|
8401
8457
|
responses:
|
|
8402
8458
|
"200":
|
|
8403
8459
|
description: OK
|
|
@@ -8636,6 +8692,8 @@ paths:
|
|
|
8636
8692
|
- $ref: "#/components/parameters/siteId"
|
|
8637
8693
|
- $ref: "#/components/parameters/siteRedirectId"
|
|
8638
8694
|
responses:
|
|
8695
|
+
"204":
|
|
8696
|
+
description: Site redirect did not exist
|
|
8639
8697
|
"205":
|
|
8640
8698
|
description: Site redirect deleted
|
|
8641
8699
|
"/orgs/{organizationId}/sites/{siteId}/redirect":
|
|
@@ -8801,6 +8859,8 @@ paths:
|
|
|
8801
8859
|
- $ref: "#/components/parameters/siteId"
|
|
8802
8860
|
- $ref: "#/components/parameters/siteMcpServerId"
|
|
8803
8861
|
responses:
|
|
8862
|
+
"204":
|
|
8863
|
+
description: MCP server did not exist
|
|
8804
8864
|
"205":
|
|
8805
8865
|
description: MCP server deleted
|
|
8806
8866
|
"/subdomains/{subdomain}":
|
|
@@ -8867,6 +8927,8 @@ paths:
|
|
|
8867
8927
|
parameters:
|
|
8868
8928
|
- $ref: "#/components/parameters/hostname"
|
|
8869
8929
|
responses:
|
|
8930
|
+
"204":
|
|
8931
|
+
description: Custom hostname did not exist
|
|
8870
8932
|
"205":
|
|
8871
8933
|
description: Custom hostname has been removed
|
|
8872
8934
|
"/email-domains/{emailDomain}/orgs":
|
|
@@ -13176,6 +13238,12 @@ components:
|
|
|
13176
13238
|
required:
|
|
13177
13239
|
- oid
|
|
13178
13240
|
- path
|
|
13241
|
+
RevisionPageLayoutOptionsWidth:
|
|
13242
|
+
type: string
|
|
13243
|
+
description: Width of the page.
|
|
13244
|
+
enum:
|
|
13245
|
+
- default
|
|
13246
|
+
- wide
|
|
13179
13247
|
RevisionPageLayoutOptionsCoverSize:
|
|
13180
13248
|
type: string
|
|
13181
13249
|
description: Size of the cover image.
|
|
@@ -13185,6 +13253,8 @@ components:
|
|
|
13185
13253
|
RevisionPageLayoutOptions:
|
|
13186
13254
|
type: object
|
|
13187
13255
|
properties:
|
|
13256
|
+
width:
|
|
13257
|
+
$ref: "#/components/schemas/RevisionPageLayoutOptionsWidth"
|
|
13188
13258
|
cover:
|
|
13189
13259
|
type: boolean
|
|
13190
13260
|
description: Should the cover be visible?
|
|
@@ -20420,74 +20490,6 @@ components:
|
|
|
20420
20490
|
- permission
|
|
20421
20491
|
- user
|
|
20422
20492
|
- origin
|
|
20423
|
-
AIMessageRole:
|
|
20424
|
-
type: string
|
|
20425
|
-
enum:
|
|
20426
|
-
- user
|
|
20427
|
-
- assistant
|
|
20428
|
-
- developer
|
|
20429
|
-
AIMessageAttachmentSearch:
|
|
20430
|
-
type: object
|
|
20431
|
-
description: Attachment to attach search results to a message.
|
|
20432
|
-
properties:
|
|
20433
|
-
type:
|
|
20434
|
-
type: string
|
|
20435
|
-
enum:
|
|
20436
|
-
- search
|
|
20437
|
-
query:
|
|
20438
|
-
type: string
|
|
20439
|
-
description: The query to use to extract the knowledge.
|
|
20440
|
-
required:
|
|
20441
|
-
- type
|
|
20442
|
-
- query
|
|
20443
|
-
AIMessageAttachmentVisitorProfile:
|
|
20444
|
-
type: object
|
|
20445
|
-
description: Attachment representing the profile of the visitor
|
|
20446
|
-
properties:
|
|
20447
|
-
type:
|
|
20448
|
-
type: string
|
|
20449
|
-
enum:
|
|
20450
|
-
- visitor_profile
|
|
20451
|
-
required:
|
|
20452
|
-
- type
|
|
20453
|
-
AIMessageAttachmentPage:
|
|
20454
|
-
type: object
|
|
20455
|
-
description: Attachment to extract and pass the content of a page to the AI.
|
|
20456
|
-
properties:
|
|
20457
|
-
type:
|
|
20458
|
-
type: string
|
|
20459
|
-
enum:
|
|
20460
|
-
- page
|
|
20461
|
-
spaceId:
|
|
20462
|
-
type: string
|
|
20463
|
-
description: The ID of the space to extract the content from.
|
|
20464
|
-
pageId:
|
|
20465
|
-
type: string
|
|
20466
|
-
description: The ID of the page to extract the content from.
|
|
20467
|
-
required:
|
|
20468
|
-
- type
|
|
20469
|
-
- spaceId
|
|
20470
|
-
- pageId
|
|
20471
|
-
AIMessageAttachmentPages:
|
|
20472
|
-
type: object
|
|
20473
|
-
description: Attachment to pass the tree of pages to the AI
|
|
20474
|
-
properties:
|
|
20475
|
-
type:
|
|
20476
|
-
type: string
|
|
20477
|
-
enum:
|
|
20478
|
-
- pages
|
|
20479
|
-
spaceId:
|
|
20480
|
-
type: string
|
|
20481
|
-
description: The ID of the space to extract the content from.
|
|
20482
|
-
required:
|
|
20483
|
-
- type
|
|
20484
|
-
- spaceId
|
|
20485
|
-
AIMessageAttachment:
|
|
20486
|
-
oneOf:
|
|
20487
|
-
- $ref: "#/components/schemas/AIMessageAttachmentSearch"
|
|
20488
|
-
- $ref: "#/components/schemas/AIMessageAttachmentVisitorProfile"
|
|
20489
|
-
- $ref: "#/components/schemas/AIMessageAttachmentPage"
|
|
20490
|
-
- $ref: "#/components/schemas/AIMessageAttachmentPages"
|
|
20491
20493
|
AIMessageContext:
|
|
20492
20494
|
type: object
|
|
20493
20495
|
description: Context about the current user sending a message.
|
|
@@ -20509,16 +20511,14 @@ components:
|
|
|
20509
20511
|
description: Input version of an AI message.
|
|
20510
20512
|
properties:
|
|
20511
20513
|
role:
|
|
20512
|
-
|
|
20514
|
+
type: string
|
|
20515
|
+
enum:
|
|
20516
|
+
- user
|
|
20513
20517
|
content:
|
|
20514
20518
|
oneOf:
|
|
20515
20519
|
- type: string
|
|
20516
20520
|
maxLength: 2048
|
|
20517
20521
|
- $ref: "#/components/schemas/JSONDocument"
|
|
20518
|
-
attachments:
|
|
20519
|
-
type: array
|
|
20520
|
-
items:
|
|
20521
|
-
$ref: "#/components/schemas/AIMessageAttachment"
|
|
20522
20522
|
context:
|
|
20523
20523
|
$ref: "#/components/schemas/AIMessageContext"
|
|
20524
20524
|
required:
|
|
@@ -20561,19 +20561,6 @@ components:
|
|
|
20561
20561
|
- reasoning-low
|
|
20562
20562
|
- reasoning-medium
|
|
20563
20563
|
- reasoning-high
|
|
20564
|
-
AIToolCapabilities:
|
|
20565
|
-
type: object
|
|
20566
|
-
description: Tools provided to the AI
|
|
20567
|
-
properties:
|
|
20568
|
-
getPageContent:
|
|
20569
|
-
type: boolean
|
|
20570
|
-
description: Whether the AI can read the content of a page
|
|
20571
|
-
getPages:
|
|
20572
|
-
type: boolean
|
|
20573
|
-
description: Whether the AI can read the table of contents of a space
|
|
20574
|
-
search:
|
|
20575
|
-
type: boolean
|
|
20576
|
-
description: Whether the AI can search for content
|
|
20577
20564
|
AIStreamResponseFinish:
|
|
20578
20565
|
type: object
|
|
20579
20566
|
description: |
|
|
@@ -20936,12 +20923,36 @@ components:
|
|
|
20936
20923
|
- messageId
|
|
20937
20924
|
- stepIndex
|
|
20938
20925
|
- toolCall
|
|
20926
|
+
AIStreamResponseFollowupSuggestion:
|
|
20927
|
+
type: object
|
|
20928
|
+
description: |
|
|
20929
|
+
Message emitted by the server to suggest a followup message the user could respond with.
|
|
20930
|
+
properties:
|
|
20931
|
+
type:
|
|
20932
|
+
type: string
|
|
20933
|
+
enum:
|
|
20934
|
+
- response_followup_suggestion
|
|
20935
|
+
messageId:
|
|
20936
|
+
type: string
|
|
20937
|
+
description: |
|
|
20938
|
+
The ID of the message that this event is composing.
|
|
20939
|
+
suggestions:
|
|
20940
|
+
type: array
|
|
20941
|
+
items:
|
|
20942
|
+
type: string
|
|
20943
|
+
description: |
|
|
20944
|
+
A followup message the user could respond with.
|
|
20945
|
+
required:
|
|
20946
|
+
- type
|
|
20947
|
+
- messageId
|
|
20948
|
+
- suggestions
|
|
20939
20949
|
AIStreamResponse:
|
|
20940
20950
|
oneOf:
|
|
20941
20951
|
- $ref: "#/components/schemas/AIStreamResponseFinish"
|
|
20942
20952
|
- $ref: "#/components/schemas/AIStreamResponseDocument"
|
|
20943
20953
|
- $ref: "#/components/schemas/AIStreamResponseObject"
|
|
20944
20954
|
- $ref: "#/components/schemas/AIStreamResponseToolCall"
|
|
20955
|
+
- $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
|
|
20945
20956
|
SiteInsightsEventSession:
|
|
20946
20957
|
type: object
|
|
20947
20958
|
description: Analytics info on the GitBook's site session.
|
|
@@ -24646,6 +24657,12 @@ components:
|
|
|
24646
24657
|
- member
|
|
24647
24658
|
- createdAt
|
|
24648
24659
|
- updatedAt
|
|
24660
|
+
AIMessageRole:
|
|
24661
|
+
type: string
|
|
24662
|
+
enum:
|
|
24663
|
+
- user
|
|
24664
|
+
- assistant
|
|
24665
|
+
- developer
|
|
24649
24666
|
AIMessageStep:
|
|
24650
24667
|
type: object
|
|
24651
24668
|
description: A step in a message from the AI agent.
|