@gitbook/api 0.125.0 → 0.127.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 +37 -109
- package/dist/index.cjs +14 -7
- package/dist/index.js +13 -7
- package/package.json +1 -1
- package/spec/openapi.json +219 -205
- package/spec/openapi.yaml +149 -142
package/spec/openapi.json
CHANGED
|
@@ -723,6 +723,9 @@
|
|
|
723
723
|
}
|
|
724
724
|
],
|
|
725
725
|
"responses": {
|
|
726
|
+
"204": {
|
|
727
|
+
"description": "Space did not exist"
|
|
728
|
+
},
|
|
726
729
|
"205": {
|
|
727
730
|
"description": "Space has been deleted"
|
|
728
731
|
}
|
|
@@ -1240,16 +1243,15 @@
|
|
|
1240
1243
|
}
|
|
1241
1244
|
],
|
|
1242
1245
|
"responses": {
|
|
1246
|
+
"204": {
|
|
1247
|
+
"description": "The team was not found in the space"
|
|
1248
|
+
},
|
|
1243
1249
|
"205": {
|
|
1244
1250
|
"description": "The team has been removed from the space"
|
|
1245
1251
|
},
|
|
1246
1252
|
"400": {
|
|
1247
1253
|
"description": "Team does not have access to space",
|
|
1248
1254
|
"$ref": "#/components/responses/BadRequestError"
|
|
1249
|
-
},
|
|
1250
|
-
"404": {
|
|
1251
|
-
"description": "No team found with the given ID",
|
|
1252
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
1253
1255
|
}
|
|
1254
1256
|
}
|
|
1255
1257
|
}
|
|
@@ -1378,12 +1380,11 @@
|
|
|
1378
1380
|
}
|
|
1379
1381
|
],
|
|
1380
1382
|
"responses": {
|
|
1383
|
+
"204": {
|
|
1384
|
+
"description": "The user was not found in the space"
|
|
1385
|
+
},
|
|
1381
1386
|
"205": {
|
|
1382
1387
|
"description": "The user has been removed from the space"
|
|
1383
|
-
},
|
|
1384
|
-
"404": {
|
|
1385
|
-
"description": "No user found with the given ID",
|
|
1386
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
1387
1388
|
}
|
|
1388
1389
|
}
|
|
1389
1390
|
}
|
|
@@ -2848,12 +2849,11 @@
|
|
|
2848
2849
|
}
|
|
2849
2850
|
],
|
|
2850
2851
|
"responses": {
|
|
2852
|
+
"204": {
|
|
2853
|
+
"description": "Reviewer was not found"
|
|
2854
|
+
},
|
|
2851
2855
|
"205": {
|
|
2852
2856
|
"description": "The reviewer has been removed from the change request"
|
|
2853
|
-
},
|
|
2854
|
-
"404": {
|
|
2855
|
-
"description": "The reviewer could not be found",
|
|
2856
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
2859
|
}
|
|
@@ -3123,6 +3123,9 @@
|
|
|
3123
3123
|
}
|
|
3124
3124
|
],
|
|
3125
3125
|
"responses": {
|
|
3126
|
+
"204": {
|
|
3127
|
+
"description": "Comment did not exist."
|
|
3128
|
+
},
|
|
3126
3129
|
"205": {
|
|
3127
3130
|
"description": "The comment has been deleted."
|
|
3128
3131
|
}
|
|
@@ -3402,6 +3405,9 @@
|
|
|
3402
3405
|
}
|
|
3403
3406
|
],
|
|
3404
3407
|
"responses": {
|
|
3408
|
+
"204": {
|
|
3409
|
+
"description": "Comment reply did not exist."
|
|
3410
|
+
},
|
|
3405
3411
|
"205": {
|
|
3406
3412
|
"description": "The comment has been deleted."
|
|
3407
3413
|
}
|
|
@@ -4814,6 +4820,9 @@
|
|
|
4814
4820
|
}
|
|
4815
4821
|
],
|
|
4816
4822
|
"responses": {
|
|
4823
|
+
"204": {
|
|
4824
|
+
"description": "Comment did not exist."
|
|
4825
|
+
},
|
|
4817
4826
|
"205": {
|
|
4818
4827
|
"description": "The comment has been deleted."
|
|
4819
4828
|
}
|
|
@@ -5072,6 +5081,9 @@
|
|
|
5072
5081
|
}
|
|
5073
5082
|
],
|
|
5074
5083
|
"responses": {
|
|
5084
|
+
"204": {
|
|
5085
|
+
"description": "Comment reply did not exist."
|
|
5086
|
+
},
|
|
5075
5087
|
"205": {
|
|
5076
5088
|
"description": "The comment has been deleted."
|
|
5077
5089
|
}
|
|
@@ -5601,6 +5613,9 @@
|
|
|
5601
5613
|
}
|
|
5602
5614
|
],
|
|
5603
5615
|
"responses": {
|
|
5616
|
+
"204": {
|
|
5617
|
+
"description": "Collection did not exist"
|
|
5618
|
+
},
|
|
5604
5619
|
"205": {
|
|
5605
5620
|
"description": "Collection has been deleted"
|
|
5606
5621
|
}
|
|
@@ -5960,12 +5975,11 @@
|
|
|
5960
5975
|
}
|
|
5961
5976
|
],
|
|
5962
5977
|
"responses": {
|
|
5978
|
+
"204": {
|
|
5979
|
+
"description": "The team was not found in the collection"
|
|
5980
|
+
},
|
|
5963
5981
|
"205": {
|
|
5964
5982
|
"description": "The team has been removed from the collection"
|
|
5965
|
-
},
|
|
5966
|
-
"404": {
|
|
5967
|
-
"description": "No team found with the given ID",
|
|
5968
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
5969
5983
|
}
|
|
5970
5984
|
}
|
|
5971
5985
|
}
|
|
@@ -6094,12 +6108,11 @@
|
|
|
6094
6108
|
}
|
|
6095
6109
|
],
|
|
6096
6110
|
"responses": {
|
|
6111
|
+
"204": {
|
|
6112
|
+
"description": "The user was not found in the collection"
|
|
6113
|
+
},
|
|
6097
6114
|
"205": {
|
|
6098
6115
|
"description": "The user has been removed from the collection"
|
|
6099
|
-
},
|
|
6100
|
-
"404": {
|
|
6101
|
-
"description": "No user found with the given ID",
|
|
6102
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
6103
6116
|
}
|
|
6104
6117
|
}
|
|
6105
6118
|
}
|
|
@@ -6328,6 +6341,9 @@
|
|
|
6328
6341
|
],
|
|
6329
6342
|
"responses": {
|
|
6330
6343
|
"204": {
|
|
6344
|
+
"description": "Integration did not exist"
|
|
6345
|
+
},
|
|
6346
|
+
"205": {
|
|
6331
6347
|
"description": "Integration has been deleted"
|
|
6332
6348
|
}
|
|
6333
6349
|
}
|
|
@@ -6992,10 +7008,10 @@
|
|
|
6992
7008
|
],
|
|
6993
7009
|
"responses": {
|
|
6994
7010
|
"204": {
|
|
6995
|
-
"description": "Integration
|
|
7011
|
+
"description": "Integration installation did not exist"
|
|
6996
7012
|
},
|
|
6997
|
-
"
|
|
6998
|
-
"
|
|
7013
|
+
"205": {
|
|
7014
|
+
"description": "Integration uninstalled successfully"
|
|
6999
7015
|
}
|
|
7000
7016
|
}
|
|
7001
7017
|
}
|
|
@@ -7275,6 +7291,9 @@
|
|
|
7275
7291
|
],
|
|
7276
7292
|
"responses": {
|
|
7277
7293
|
"204": {
|
|
7294
|
+
"description": "The space installation did not exist."
|
|
7295
|
+
},
|
|
7296
|
+
"205": {
|
|
7278
7297
|
"description": "The space installation has been deleted."
|
|
7279
7298
|
}
|
|
7280
7299
|
}
|
|
@@ -7519,6 +7538,9 @@
|
|
|
7519
7538
|
],
|
|
7520
7539
|
"responses": {
|
|
7521
7540
|
"204": {
|
|
7541
|
+
"description": "The site installation did not exist."
|
|
7542
|
+
},
|
|
7543
|
+
"205": {
|
|
7522
7544
|
"description": "The site installation has been deleted."
|
|
7523
7545
|
}
|
|
7524
7546
|
}
|
|
@@ -7901,6 +7923,9 @@
|
|
|
7901
7923
|
],
|
|
7902
7924
|
"responses": {
|
|
7903
7925
|
"204": {
|
|
7926
|
+
"description": "Member did not exist in the organization."
|
|
7927
|
+
},
|
|
7928
|
+
"205": {
|
|
7904
7929
|
"description": "The member was deleted from the organization."
|
|
7905
7930
|
}
|
|
7906
7931
|
}
|
|
@@ -8345,6 +8370,9 @@
|
|
|
8345
8370
|
],
|
|
8346
8371
|
"responses": {
|
|
8347
8372
|
"204": {
|
|
8373
|
+
"description": "The team did not exist in the organization."
|
|
8374
|
+
},
|
|
8375
|
+
"205": {
|
|
8348
8376
|
"description": "The team was deleted from the organization."
|
|
8349
8377
|
}
|
|
8350
8378
|
}
|
|
@@ -8514,6 +8542,9 @@
|
|
|
8514
8542
|
],
|
|
8515
8543
|
"responses": {
|
|
8516
8544
|
"204": {
|
|
8545
|
+
"description": "Member was not part of the team"
|
|
8546
|
+
},
|
|
8547
|
+
"205": {
|
|
8517
8548
|
"description": "Member has been deleted from the team"
|
|
8518
8549
|
}
|
|
8519
8550
|
}
|
|
@@ -8836,6 +8867,9 @@
|
|
|
8836
8867
|
}
|
|
8837
8868
|
],
|
|
8838
8869
|
"responses": {
|
|
8870
|
+
"204": {
|
|
8871
|
+
"description": "Organization invite did not exist"
|
|
8872
|
+
},
|
|
8839
8873
|
"205": {
|
|
8840
8874
|
"description": "The organization invite has been deleted"
|
|
8841
8875
|
}
|
|
@@ -9622,6 +9656,9 @@
|
|
|
9622
9656
|
],
|
|
9623
9657
|
"responses": {
|
|
9624
9658
|
"204": {
|
|
9659
|
+
"description": "SAML provider did not exist"
|
|
9660
|
+
},
|
|
9661
|
+
"205": {
|
|
9625
9662
|
"description": "SAML provider has been deleted"
|
|
9626
9663
|
}
|
|
9627
9664
|
}
|
|
@@ -10064,6 +10101,9 @@
|
|
|
10064
10101
|
}
|
|
10065
10102
|
],
|
|
10066
10103
|
"responses": {
|
|
10104
|
+
"204": {
|
|
10105
|
+
"description": "Specification did not exist"
|
|
10106
|
+
},
|
|
10067
10107
|
"205": {
|
|
10068
10108
|
"description": "OpenAPI specification has been deleted"
|
|
10069
10109
|
}
|
|
@@ -10957,6 +10997,9 @@
|
|
|
10957
10997
|
}
|
|
10958
10998
|
],
|
|
10959
10999
|
"responses": {
|
|
11000
|
+
"204": {
|
|
11001
|
+
"description": "Translation settings did not exist"
|
|
11002
|
+
},
|
|
10960
11003
|
"205": {
|
|
10961
11004
|
"description": "Translation settings has been deleted"
|
|
10962
11005
|
}
|
|
@@ -11158,12 +11201,11 @@
|
|
|
11158
11201
|
}
|
|
11159
11202
|
],
|
|
11160
11203
|
"responses": {
|
|
11204
|
+
"204": {
|
|
11205
|
+
"description": "Translation language settings not found"
|
|
11206
|
+
},
|
|
11161
11207
|
"205": {
|
|
11162
11208
|
"description": "Language successfully removed"
|
|
11163
|
-
},
|
|
11164
|
-
"404": {
|
|
11165
|
-
"description": "No matching translation language settings found",
|
|
11166
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
11167
11209
|
}
|
|
11168
11210
|
}
|
|
11169
11211
|
}
|
|
@@ -11496,11 +11538,10 @@
|
|
|
11496
11538
|
],
|
|
11497
11539
|
"responses": {
|
|
11498
11540
|
"204": {
|
|
11499
|
-
"description": "
|
|
11541
|
+
"description": "Organization or font not found."
|
|
11500
11542
|
},
|
|
11501
|
-
"
|
|
11502
|
-
"description": "
|
|
11503
|
-
"$ref": "#/components/responses/NotFoundError"
|
|
11543
|
+
"205": {
|
|
11544
|
+
"description": "Custom font deleted successfully."
|
|
11504
11545
|
}
|
|
11505
11546
|
}
|
|
11506
11547
|
}
|
|
@@ -11816,6 +11857,9 @@
|
|
|
11816
11857
|
}
|
|
11817
11858
|
],
|
|
11818
11859
|
"responses": {
|
|
11860
|
+
"204": {
|
|
11861
|
+
"description": "Site did not exist"
|
|
11862
|
+
},
|
|
11819
11863
|
"205": {
|
|
11820
11864
|
"description": "Site has been deleted"
|
|
11821
11865
|
}
|
|
@@ -12288,6 +12332,9 @@
|
|
|
12288
12332
|
}
|
|
12289
12333
|
],
|
|
12290
12334
|
"responses": {
|
|
12335
|
+
"204": {
|
|
12336
|
+
"description": "Site share link did not exist"
|
|
12337
|
+
},
|
|
12291
12338
|
"205": {
|
|
12292
12339
|
"description": "Site share link has been deleted"
|
|
12293
12340
|
}
|
|
@@ -13126,6 +13173,9 @@
|
|
|
13126
13173
|
}
|
|
13127
13174
|
],
|
|
13128
13175
|
"responses": {
|
|
13176
|
+
"204": {
|
|
13177
|
+
"description": "Site section group did not exist"
|
|
13178
|
+
},
|
|
13129
13179
|
"205": {
|
|
13130
13180
|
"description": "Site section group has been deleted"
|
|
13131
13181
|
}
|
|
@@ -13223,6 +13273,9 @@
|
|
|
13223
13273
|
}
|
|
13224
13274
|
],
|
|
13225
13275
|
"responses": {
|
|
13276
|
+
"204": {
|
|
13277
|
+
"description": "Section was not part of the group"
|
|
13278
|
+
},
|
|
13226
13279
|
"205": {
|
|
13227
13280
|
"description": "Section has been removed from the section group"
|
|
13228
13281
|
}
|
|
@@ -13501,6 +13554,9 @@
|
|
|
13501
13554
|
}
|
|
13502
13555
|
],
|
|
13503
13556
|
"responses": {
|
|
13557
|
+
"204": {
|
|
13558
|
+
"description": "Site section did not exist"
|
|
13559
|
+
},
|
|
13504
13560
|
"205": {
|
|
13505
13561
|
"description": "Site section has been deleted"
|
|
13506
13562
|
}
|
|
@@ -13861,6 +13917,9 @@
|
|
|
13861
13917
|
}
|
|
13862
13918
|
],
|
|
13863
13919
|
"responses": {
|
|
13920
|
+
"204": {
|
|
13921
|
+
"description": "Site space did not exist"
|
|
13922
|
+
},
|
|
13864
13923
|
"205": {
|
|
13865
13924
|
"description": "Site space has been deleted"
|
|
13866
13925
|
}
|
|
@@ -14561,6 +14620,9 @@
|
|
|
14561
14620
|
}
|
|
14562
14621
|
],
|
|
14563
14622
|
"responses": {
|
|
14623
|
+
"204": {
|
|
14624
|
+
"description": "Customization settings did not exist"
|
|
14625
|
+
},
|
|
14564
14626
|
"205": {
|
|
14565
14627
|
"description": "Site space customization removed"
|
|
14566
14628
|
},
|
|
@@ -14815,7 +14877,7 @@
|
|
|
14815
14877
|
"post": {
|
|
14816
14878
|
"operationId": "streamAIResponseInSite",
|
|
14817
14879
|
"summary": "Generate an AI response in a site",
|
|
14818
|
-
"description": "
|
|
14880
|
+
"description": "Generate an AI response in a conversation.\n",
|
|
14819
14881
|
"tags": [
|
|
14820
14882
|
"sites"
|
|
14821
14883
|
],
|
|
@@ -14838,36 +14900,70 @@
|
|
|
14838
14900
|
"content": {
|
|
14839
14901
|
"application/json": {
|
|
14840
14902
|
"schema": {
|
|
14841
|
-
"
|
|
14842
|
-
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
"
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14903
|
+
"allOf": [
|
|
14904
|
+
{
|
|
14905
|
+
"type": "object",
|
|
14906
|
+
"required": [
|
|
14907
|
+
"input",
|
|
14908
|
+
"output"
|
|
14909
|
+
],
|
|
14910
|
+
"properties": {
|
|
14911
|
+
"previousResponseId": {
|
|
14912
|
+
"type": "string",
|
|
14913
|
+
"description": "The ID of the previous response to continue from"
|
|
14914
|
+
},
|
|
14915
|
+
"input": {
|
|
14916
|
+
"type": "array",
|
|
14917
|
+
"items": {
|
|
14918
|
+
"$ref": "#/components/schemas/AIMessageInput"
|
|
14919
|
+
}
|
|
14920
|
+
},
|
|
14921
|
+
"output": {
|
|
14922
|
+
"$ref": "#/components/schemas/AIOutputFormat"
|
|
14923
|
+
},
|
|
14924
|
+
"model": {
|
|
14925
|
+
"$ref": "#/components/schemas/AIModel"
|
|
14926
|
+
}
|
|
14859
14927
|
}
|
|
14860
14928
|
},
|
|
14861
|
-
|
|
14862
|
-
"
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14929
|
+
{
|
|
14930
|
+
"oneOf": [
|
|
14931
|
+
{
|
|
14932
|
+
"type": "object",
|
|
14933
|
+
"required": [
|
|
14934
|
+
"mode",
|
|
14935
|
+
"instructions"
|
|
14936
|
+
],
|
|
14937
|
+
"properties": {
|
|
14938
|
+
"mode": {
|
|
14939
|
+
"type": "string",
|
|
14940
|
+
"enum": [
|
|
14941
|
+
"custom"
|
|
14942
|
+
]
|
|
14943
|
+
},
|
|
14944
|
+
"instructions": {
|
|
14945
|
+
"type": "string",
|
|
14946
|
+
"description": "Custom instructions for the AI"
|
|
14947
|
+
}
|
|
14948
|
+
}
|
|
14949
|
+
},
|
|
14950
|
+
{
|
|
14951
|
+
"type": "object",
|
|
14952
|
+
"required": [
|
|
14953
|
+
"mode"
|
|
14954
|
+
],
|
|
14955
|
+
"properties": {
|
|
14956
|
+
"mode": {
|
|
14957
|
+
"type": "string",
|
|
14958
|
+
"enum": [
|
|
14959
|
+
"assistant"
|
|
14960
|
+
]
|
|
14961
|
+
}
|
|
14962
|
+
}
|
|
14963
|
+
}
|
|
14964
|
+
]
|
|
14869
14965
|
}
|
|
14870
|
-
|
|
14966
|
+
]
|
|
14871
14967
|
}
|
|
14872
14968
|
}
|
|
14873
14969
|
}
|
|
@@ -15303,6 +15399,9 @@
|
|
|
15303
15399
|
}
|
|
15304
15400
|
],
|
|
15305
15401
|
"responses": {
|
|
15402
|
+
"204": {
|
|
15403
|
+
"description": "Site redirect did not exist"
|
|
15404
|
+
},
|
|
15306
15405
|
"205": {
|
|
15307
15406
|
"description": "Site redirect deleted"
|
|
15308
15407
|
}
|
|
@@ -15604,6 +15703,9 @@
|
|
|
15604
15703
|
}
|
|
15605
15704
|
],
|
|
15606
15705
|
"responses": {
|
|
15706
|
+
"204": {
|
|
15707
|
+
"description": "MCP server did not exist"
|
|
15708
|
+
},
|
|
15607
15709
|
"205": {
|
|
15608
15710
|
"description": "MCP server deleted"
|
|
15609
15711
|
}
|
|
@@ -15720,6 +15822,9 @@
|
|
|
15720
15822
|
}
|
|
15721
15823
|
],
|
|
15722
15824
|
"responses": {
|
|
15825
|
+
"204": {
|
|
15826
|
+
"description": "Custom hostname did not exist"
|
|
15827
|
+
},
|
|
15723
15828
|
"205": {
|
|
15724
15829
|
"description": "Custom hostname has been removed"
|
|
15725
15830
|
}
|
|
@@ -22394,6 +22499,14 @@
|
|
|
22394
22499
|
"path"
|
|
22395
22500
|
]
|
|
22396
22501
|
},
|
|
22502
|
+
"RevisionPageLayoutOptionsWidth": {
|
|
22503
|
+
"type": "string",
|
|
22504
|
+
"description": "Width of the page.",
|
|
22505
|
+
"enum": [
|
|
22506
|
+
"default",
|
|
22507
|
+
"wide"
|
|
22508
|
+
]
|
|
22509
|
+
},
|
|
22397
22510
|
"RevisionPageLayoutOptionsCoverSize": {
|
|
22398
22511
|
"type": "string",
|
|
22399
22512
|
"description": "Size of the cover image.",
|
|
@@ -22405,6 +22518,9 @@
|
|
|
22405
22518
|
"RevisionPageLayoutOptions": {
|
|
22406
22519
|
"type": "object",
|
|
22407
22520
|
"properties": {
|
|
22521
|
+
"width": {
|
|
22522
|
+
"$ref": "#/components/schemas/RevisionPageLayoutOptionsWidth"
|
|
22523
|
+
},
|
|
22408
22524
|
"cover": {
|
|
22409
22525
|
"type": "boolean",
|
|
22410
22526
|
"description": "Should the cover be visible?"
|
|
@@ -32497,23 +32613,7 @@
|
|
|
32497
32613
|
},
|
|
32498
32614
|
"ai": {
|
|
32499
32615
|
"type": "object",
|
|
32500
|
-
"properties": {
|
|
32501
|
-
"pageLinkSummaries": {
|
|
32502
|
-
"type": "object",
|
|
32503
|
-
"properties": {
|
|
32504
|
-
"enabled": {
|
|
32505
|
-
"type": "boolean",
|
|
32506
|
-
"description": "If true, AI page links summaries is enabled"
|
|
32507
|
-
}
|
|
32508
|
-
},
|
|
32509
|
-
"required": [
|
|
32510
|
-
"enabled"
|
|
32511
|
-
]
|
|
32512
|
-
}
|
|
32513
|
-
},
|
|
32514
|
-
"required": [
|
|
32515
|
-
"pageLinkSummaries"
|
|
32516
|
-
]
|
|
32616
|
+
"properties": {}
|
|
32517
32617
|
},
|
|
32518
32618
|
"advancedCustomization": {
|
|
32519
32619
|
"type": "object",
|
|
@@ -33099,110 +33199,6 @@
|
|
|
33099
33199
|
"origin"
|
|
33100
33200
|
]
|
|
33101
33201
|
},
|
|
33102
|
-
"AIMessageRole": {
|
|
33103
|
-
"type": "string",
|
|
33104
|
-
"enum": [
|
|
33105
|
-
"user",
|
|
33106
|
-
"assistant",
|
|
33107
|
-
"developer"
|
|
33108
|
-
]
|
|
33109
|
-
},
|
|
33110
|
-
"AIMessageAttachmentSearch": {
|
|
33111
|
-
"type": "object",
|
|
33112
|
-
"description": "Attachment to attach search results to a message.",
|
|
33113
|
-
"properties": {
|
|
33114
|
-
"type": {
|
|
33115
|
-
"type": "string",
|
|
33116
|
-
"enum": [
|
|
33117
|
-
"search"
|
|
33118
|
-
]
|
|
33119
|
-
},
|
|
33120
|
-
"query": {
|
|
33121
|
-
"type": "string",
|
|
33122
|
-
"description": "The query to use to extract the knowledge."
|
|
33123
|
-
}
|
|
33124
|
-
},
|
|
33125
|
-
"required": [
|
|
33126
|
-
"type",
|
|
33127
|
-
"query"
|
|
33128
|
-
]
|
|
33129
|
-
},
|
|
33130
|
-
"AIMessageAttachmentVisitorProfile": {
|
|
33131
|
-
"type": "object",
|
|
33132
|
-
"description": "Attachment representing the profile of the visitor",
|
|
33133
|
-
"properties": {
|
|
33134
|
-
"type": {
|
|
33135
|
-
"type": "string",
|
|
33136
|
-
"enum": [
|
|
33137
|
-
"visitor_profile"
|
|
33138
|
-
]
|
|
33139
|
-
}
|
|
33140
|
-
},
|
|
33141
|
-
"required": [
|
|
33142
|
-
"type"
|
|
33143
|
-
]
|
|
33144
|
-
},
|
|
33145
|
-
"AIMessageAttachmentPage": {
|
|
33146
|
-
"type": "object",
|
|
33147
|
-
"description": "Attachment to extract and pass the content of a page to the AI.",
|
|
33148
|
-
"properties": {
|
|
33149
|
-
"type": {
|
|
33150
|
-
"type": "string",
|
|
33151
|
-
"enum": [
|
|
33152
|
-
"page"
|
|
33153
|
-
]
|
|
33154
|
-
},
|
|
33155
|
-
"spaceId": {
|
|
33156
|
-
"type": "string",
|
|
33157
|
-
"description": "The ID of the space to extract the content from."
|
|
33158
|
-
},
|
|
33159
|
-
"pageId": {
|
|
33160
|
-
"type": "string",
|
|
33161
|
-
"description": "The ID of the page to extract the content from."
|
|
33162
|
-
}
|
|
33163
|
-
},
|
|
33164
|
-
"required": [
|
|
33165
|
-
"type",
|
|
33166
|
-
"spaceId",
|
|
33167
|
-
"pageId"
|
|
33168
|
-
]
|
|
33169
|
-
},
|
|
33170
|
-
"AIMessageAttachmentPages": {
|
|
33171
|
-
"type": "object",
|
|
33172
|
-
"description": "Attachment to pass the tree of pages to the AI",
|
|
33173
|
-
"properties": {
|
|
33174
|
-
"type": {
|
|
33175
|
-
"type": "string",
|
|
33176
|
-
"enum": [
|
|
33177
|
-
"pages"
|
|
33178
|
-
]
|
|
33179
|
-
},
|
|
33180
|
-
"spaceId": {
|
|
33181
|
-
"type": "string",
|
|
33182
|
-
"description": "The ID of the space to extract the content from."
|
|
33183
|
-
}
|
|
33184
|
-
},
|
|
33185
|
-
"required": [
|
|
33186
|
-
"type",
|
|
33187
|
-
"spaceId"
|
|
33188
|
-
]
|
|
33189
|
-
},
|
|
33190
|
-
"AIMessageAttachment": {
|
|
33191
|
-
"oneOf": [
|
|
33192
|
-
{
|
|
33193
|
-
"$ref": "#/components/schemas/AIMessageAttachmentSearch"
|
|
33194
|
-
},
|
|
33195
|
-
{
|
|
33196
|
-
"$ref": "#/components/schemas/AIMessageAttachmentVisitorProfile"
|
|
33197
|
-
},
|
|
33198
|
-
{
|
|
33199
|
-
"$ref": "#/components/schemas/AIMessageAttachmentPage"
|
|
33200
|
-
},
|
|
33201
|
-
{
|
|
33202
|
-
"$ref": "#/components/schemas/AIMessageAttachmentPages"
|
|
33203
|
-
}
|
|
33204
|
-
]
|
|
33205
|
-
},
|
|
33206
33202
|
"AIMessageContext": {
|
|
33207
33203
|
"type": "object",
|
|
33208
33204
|
"description": "Context about the current user sending a message.",
|
|
@@ -33231,7 +33227,10 @@
|
|
|
33231
33227
|
"description": "Input version of an AI message.",
|
|
33232
33228
|
"properties": {
|
|
33233
33229
|
"role": {
|
|
33234
|
-
"
|
|
33230
|
+
"type": "string",
|
|
33231
|
+
"enum": [
|
|
33232
|
+
"user"
|
|
33233
|
+
]
|
|
33235
33234
|
},
|
|
33236
33235
|
"content": {
|
|
33237
33236
|
"oneOf": [
|
|
@@ -33244,12 +33243,6 @@
|
|
|
33244
33243
|
}
|
|
33245
33244
|
]
|
|
33246
33245
|
},
|
|
33247
|
-
"attachments": {
|
|
33248
|
-
"type": "array",
|
|
33249
|
-
"items": {
|
|
33250
|
-
"$ref": "#/components/schemas/AIMessageAttachment"
|
|
33251
|
-
}
|
|
33252
|
-
},
|
|
33253
33246
|
"context": {
|
|
33254
33247
|
"$ref": "#/components/schemas/AIMessageContext"
|
|
33255
33248
|
}
|
|
@@ -33313,24 +33306,6 @@
|
|
|
33313
33306
|
"reasoning-high"
|
|
33314
33307
|
]
|
|
33315
33308
|
},
|
|
33316
|
-
"AIToolCapabilities": {
|
|
33317
|
-
"type": "object",
|
|
33318
|
-
"description": "Tools provided to the AI",
|
|
33319
|
-
"properties": {
|
|
33320
|
-
"getPageContent": {
|
|
33321
|
-
"type": "boolean",
|
|
33322
|
-
"description": "Whether the AI can read the content of a page"
|
|
33323
|
-
},
|
|
33324
|
-
"getPages": {
|
|
33325
|
-
"type": "boolean",
|
|
33326
|
-
"description": "Whether the AI can read the table of contents of a space"
|
|
33327
|
-
},
|
|
33328
|
-
"search": {
|
|
33329
|
-
"type": "boolean",
|
|
33330
|
-
"description": "Whether the AI can search for content"
|
|
33331
|
-
}
|
|
33332
|
-
}
|
|
33333
|
-
},
|
|
33334
33309
|
"AIStreamResponseFinish": {
|
|
33335
33310
|
"type": "object",
|
|
33336
33311
|
"description": "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.\n",
|
|
@@ -33840,6 +33815,34 @@
|
|
|
33840
33815
|
"toolCall"
|
|
33841
33816
|
]
|
|
33842
33817
|
},
|
|
33818
|
+
"AIStreamResponseFollowupSuggestion": {
|
|
33819
|
+
"type": "object",
|
|
33820
|
+
"description": "Message emitted by the server to suggest a followup message the user could respond with.\n",
|
|
33821
|
+
"properties": {
|
|
33822
|
+
"type": {
|
|
33823
|
+
"type": "string",
|
|
33824
|
+
"enum": [
|
|
33825
|
+
"response_followup_suggestion"
|
|
33826
|
+
]
|
|
33827
|
+
},
|
|
33828
|
+
"messageId": {
|
|
33829
|
+
"type": "string",
|
|
33830
|
+
"description": "The ID of the message that this event is composing.\n"
|
|
33831
|
+
},
|
|
33832
|
+
"suggestions": {
|
|
33833
|
+
"type": "array",
|
|
33834
|
+
"items": {
|
|
33835
|
+
"type": "string",
|
|
33836
|
+
"description": "A followup message the user could respond with.\n"
|
|
33837
|
+
}
|
|
33838
|
+
}
|
|
33839
|
+
},
|
|
33840
|
+
"required": [
|
|
33841
|
+
"type",
|
|
33842
|
+
"messageId",
|
|
33843
|
+
"suggestions"
|
|
33844
|
+
]
|
|
33845
|
+
},
|
|
33843
33846
|
"AIStreamResponse": {
|
|
33844
33847
|
"oneOf": [
|
|
33845
33848
|
{
|
|
@@ -33853,6 +33856,9 @@
|
|
|
33853
33856
|
},
|
|
33854
33857
|
{
|
|
33855
33858
|
"$ref": "#/components/schemas/AIStreamResponseToolCall"
|
|
33859
|
+
},
|
|
33860
|
+
{
|
|
33861
|
+
"$ref": "#/components/schemas/AIStreamResponseFollowupSuggestion"
|
|
33856
33862
|
}
|
|
33857
33863
|
]
|
|
33858
33864
|
},
|
|
@@ -39615,6 +39621,14 @@
|
|
|
39615
39621
|
"updatedAt"
|
|
39616
39622
|
]
|
|
39617
39623
|
},
|
|
39624
|
+
"AIMessageRole": {
|
|
39625
|
+
"type": "string",
|
|
39626
|
+
"enum": [
|
|
39627
|
+
"user",
|
|
39628
|
+
"assistant",
|
|
39629
|
+
"developer"
|
|
39630
|
+
]
|
|
39631
|
+
},
|
|
39618
39632
|
"AIMessageStep": {
|
|
39619
39633
|
"type": "object",
|
|
39620
39634
|
"description": "A step in a message from the AI agent.",
|