@botpress/api 1.13.1 → 1.14.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/index.js +151 -5
- package/dist/src/gen/files/state.d.ts +59 -0
- package/dist/src/gen/state.d.ts +59 -0
- package/package.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +1 -1
- package/src/gen/files/metadata.json +1 -1
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +74 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/runtime/openapi.json +1 -1
- package/src/gen/runtime/state.ts +1 -1
- package/src/gen/state.ts +74 -1
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -284126,7 +284126,7 @@ var state = {
|
|
|
284126
284126
|
"title": "Botpress API",
|
|
284127
284127
|
"description": "API for Botpress Cloud",
|
|
284128
284128
|
"server": "https://api.botpress.cloud",
|
|
284129
|
-
"version": "1.
|
|
284129
|
+
"version": "1.14.0",
|
|
284130
284130
|
"prefix": "v1"
|
|
284131
284131
|
},
|
|
284132
284132
|
"errors": [
|
|
@@ -300687,7 +300687,7 @@ var state2 = {
|
|
|
300687
300687
|
"title": "Botpress API",
|
|
300688
300688
|
"description": "API for Botpress Cloud",
|
|
300689
300689
|
"server": "https://api.botpress.cloud",
|
|
300690
|
-
"version": "1.
|
|
300690
|
+
"version": "1.14.0",
|
|
300691
300691
|
"prefix": "v1"
|
|
300692
300692
|
},
|
|
300693
300693
|
"errors": [
|
|
@@ -305830,6 +305830,76 @@ var state3 = {
|
|
|
305830
305830
|
}
|
|
305831
305831
|
}
|
|
305832
305832
|
},
|
|
305833
|
+
"setFilePassages": {
|
|
305834
|
+
"name": "setFilePassages",
|
|
305835
|
+
"path": "/v1/files/{id}/passages",
|
|
305836
|
+
"description": 'Sets the indexed file passages asynchronously. All existing indexed passages will be deleted as soon as the indexing begins. This endpoint will return immediately and set the file status to "indexing_pending". Once the new passages are indexed the file status will be set to "indexing_completed", or "indexing_failed" if the passages failed to be indexed.',
|
|
305837
|
+
"method": "put",
|
|
305838
|
+
"section": "files",
|
|
305839
|
+
"parameters": {
|
|
305840
|
+
"id": {
|
|
305841
|
+
"type": "string",
|
|
305842
|
+
"description": "File ID or Key",
|
|
305843
|
+
"in": "path"
|
|
305844
|
+
}
|
|
305845
|
+
},
|
|
305846
|
+
"requestBody": {
|
|
305847
|
+
"description": "List of passages to index for the file. These will replacing all the existing passages. Indexing of the new passages will be done asynchronously in the background. You can check the file status to see when the indexing is complete.",
|
|
305848
|
+
"schema": {
|
|
305849
|
+
"type": "object",
|
|
305850
|
+
"properties": {
|
|
305851
|
+
"passages": {
|
|
305852
|
+
"type": "array",
|
|
305853
|
+
"items": {
|
|
305854
|
+
"type": "object",
|
|
305855
|
+
"properties": {
|
|
305856
|
+
"content": {
|
|
305857
|
+
"type": "string",
|
|
305858
|
+
"description": "The content of the passage, supports Markdown formatting."
|
|
305859
|
+
},
|
|
305860
|
+
"type": {
|
|
305861
|
+
"default": "paragraph",
|
|
305862
|
+
"type": "string",
|
|
305863
|
+
"enum": [
|
|
305864
|
+
"title",
|
|
305865
|
+
"subtitle",
|
|
305866
|
+
"paragraph",
|
|
305867
|
+
"blockquote",
|
|
305868
|
+
"list",
|
|
305869
|
+
"table",
|
|
305870
|
+
"code",
|
|
305871
|
+
"image"
|
|
305872
|
+
],
|
|
305873
|
+
"description": "The type should match the Markdown format used for the passage content."
|
|
305874
|
+
},
|
|
305875
|
+
"pageNumber": {
|
|
305876
|
+
"type": "integer"
|
|
305877
|
+
}
|
|
305878
|
+
},
|
|
305879
|
+
"required": [
|
|
305880
|
+
"content"
|
|
305881
|
+
]
|
|
305882
|
+
},
|
|
305883
|
+
"description": "Note: The passages should appear in the array in the same order as they appear in the original document."
|
|
305884
|
+
}
|
|
305885
|
+
},
|
|
305886
|
+
"required": [
|
|
305887
|
+
"passages"
|
|
305888
|
+
],
|
|
305889
|
+
"title": "setFilePassagesBody",
|
|
305890
|
+
"additionalProperties": false
|
|
305891
|
+
}
|
|
305892
|
+
},
|
|
305893
|
+
"contentType": "application/json",
|
|
305894
|
+
"response": {
|
|
305895
|
+
"description": "Empty response.",
|
|
305896
|
+
"schema": {
|
|
305897
|
+
"type": "object",
|
|
305898
|
+
"title": "setFilePassagesResponse",
|
|
305899
|
+
"additionalProperties": false
|
|
305900
|
+
}
|
|
305901
|
+
}
|
|
305902
|
+
},
|
|
305833
305903
|
"listFileTags": {
|
|
305834
305904
|
"name": "listFileTags",
|
|
305835
305905
|
"path": "/v1/files/tags",
|
|
@@ -306133,7 +306203,7 @@ var state3 = {
|
|
|
306133
306203
|
"title": "Botpress API",
|
|
306134
306204
|
"description": "API for Botpress Cloud",
|
|
306135
306205
|
"server": "https://api.botpress.cloud",
|
|
306136
|
-
"version": "1.
|
|
306206
|
+
"version": "1.14.0",
|
|
306137
306207
|
"prefix": "v1"
|
|
306138
306208
|
},
|
|
306139
306209
|
"errors": [
|
|
@@ -306264,6 +306334,7 @@ var state3 = {
|
|
|
306264
306334
|
"upsertFileBody": true,
|
|
306265
306335
|
"updateFileMetadataBody": true,
|
|
306266
306336
|
"copyFileBody": true,
|
|
306337
|
+
"setFilePassagesBody": true,
|
|
306267
306338
|
"createKnowledgeBaseBody": true,
|
|
306268
306339
|
"updateKnowledgeBaseBody": true
|
|
306269
306340
|
},
|
|
@@ -306276,6 +306347,7 @@ var state3 = {
|
|
|
306276
306347
|
"copyFileResponse": true,
|
|
306277
306348
|
"searchFilesResponse": true,
|
|
306278
306349
|
"listFilePassagesResponse": true,
|
|
306350
|
+
"setFilePassagesResponse": true,
|
|
306279
306351
|
"listFileTagsResponse": true,
|
|
306280
306352
|
"listFileTagValuesResponse": true,
|
|
306281
306353
|
"createKnowledgeBaseResponse": true,
|
|
@@ -309787,6 +309859,7 @@ var state3 = {
|
|
|
309787
309859
|
"copyFile",
|
|
309788
309860
|
"searchFiles",
|
|
309789
309861
|
"listFilePassages",
|
|
309862
|
+
"setFilePassages",
|
|
309790
309863
|
"listFileTags",
|
|
309791
309864
|
"listFileTagValues",
|
|
309792
309865
|
"createKnowledgeBase",
|
|
@@ -311020,7 +311093,7 @@ var state4 = {
|
|
|
311020
311093
|
"title": "Botpress API",
|
|
311021
311094
|
"description": "API for Botpress Cloud",
|
|
311022
311095
|
"server": "https://api.botpress.cloud",
|
|
311023
|
-
"version": "1.
|
|
311096
|
+
"version": "1.14.0",
|
|
311024
311097
|
"prefix": "v1"
|
|
311025
311098
|
},
|
|
311026
311099
|
"errors": [
|
|
@@ -331366,6 +331439,76 @@ var state5 = {
|
|
|
331366
331439
|
}
|
|
331367
331440
|
}
|
|
331368
331441
|
},
|
|
331442
|
+
"setFilePassages": {
|
|
331443
|
+
"name": "setFilePassages",
|
|
331444
|
+
"path": "/v1/files/{id}/passages",
|
|
331445
|
+
"description": 'Sets the indexed file passages asynchronously. All existing indexed passages will be deleted as soon as the indexing begins. This endpoint will return immediately and set the file status to "indexing_pending". Once the new passages are indexed the file status will be set to "indexing_completed", or "indexing_failed" if the passages failed to be indexed.',
|
|
331446
|
+
"method": "put",
|
|
331447
|
+
"section": "files",
|
|
331448
|
+
"parameters": {
|
|
331449
|
+
"id": {
|
|
331450
|
+
"type": "string",
|
|
331451
|
+
"description": "File ID or Key",
|
|
331452
|
+
"in": "path"
|
|
331453
|
+
}
|
|
331454
|
+
},
|
|
331455
|
+
"requestBody": {
|
|
331456
|
+
"description": "List of passages to index for the file. These will replacing all the existing passages. Indexing of the new passages will be done asynchronously in the background. You can check the file status to see when the indexing is complete.",
|
|
331457
|
+
"schema": {
|
|
331458
|
+
"type": "object",
|
|
331459
|
+
"properties": {
|
|
331460
|
+
"passages": {
|
|
331461
|
+
"type": "array",
|
|
331462
|
+
"items": {
|
|
331463
|
+
"type": "object",
|
|
331464
|
+
"properties": {
|
|
331465
|
+
"content": {
|
|
331466
|
+
"type": "string",
|
|
331467
|
+
"description": "The content of the passage, supports Markdown formatting."
|
|
331468
|
+
},
|
|
331469
|
+
"type": {
|
|
331470
|
+
"default": "paragraph",
|
|
331471
|
+
"type": "string",
|
|
331472
|
+
"enum": [
|
|
331473
|
+
"title",
|
|
331474
|
+
"subtitle",
|
|
331475
|
+
"paragraph",
|
|
331476
|
+
"blockquote",
|
|
331477
|
+
"list",
|
|
331478
|
+
"table",
|
|
331479
|
+
"code",
|
|
331480
|
+
"image"
|
|
331481
|
+
],
|
|
331482
|
+
"description": "The type should match the Markdown format used for the passage content."
|
|
331483
|
+
},
|
|
331484
|
+
"pageNumber": {
|
|
331485
|
+
"type": "integer"
|
|
331486
|
+
}
|
|
331487
|
+
},
|
|
331488
|
+
"required": [
|
|
331489
|
+
"content"
|
|
331490
|
+
]
|
|
331491
|
+
},
|
|
331492
|
+
"description": "Note: The passages should appear in the array in the same order as they appear in the original document."
|
|
331493
|
+
}
|
|
331494
|
+
},
|
|
331495
|
+
"required": [
|
|
331496
|
+
"passages"
|
|
331497
|
+
],
|
|
331498
|
+
"title": "setFilePassagesBody",
|
|
331499
|
+
"additionalProperties": false
|
|
331500
|
+
}
|
|
331501
|
+
},
|
|
331502
|
+
"contentType": "application/json",
|
|
331503
|
+
"response": {
|
|
331504
|
+
"description": "Empty response.",
|
|
331505
|
+
"schema": {
|
|
331506
|
+
"type": "object",
|
|
331507
|
+
"title": "setFilePassagesResponse",
|
|
331508
|
+
"additionalProperties": false
|
|
331509
|
+
}
|
|
331510
|
+
}
|
|
331511
|
+
},
|
|
331369
331512
|
"listFileTags": {
|
|
331370
331513
|
"name": "listFileTags",
|
|
331371
331514
|
"path": "/v1/files/tags",
|
|
@@ -332875,7 +333018,7 @@ var state5 = {
|
|
|
332875
333018
|
"title": "Botpress API",
|
|
332876
333019
|
"description": "API for Botpress Cloud",
|
|
332877
333020
|
"server": "https://api.botpress.cloud",
|
|
332878
|
-
"version": "1.
|
|
333021
|
+
"version": "1.14.0",
|
|
332879
333022
|
"prefix": "v1"
|
|
332880
333023
|
},
|
|
332881
333024
|
"errors": [
|
|
@@ -333058,6 +333201,7 @@ var state5 = {
|
|
|
333058
333201
|
"upsertFileBody": true,
|
|
333059
333202
|
"updateFileMetadataBody": true,
|
|
333060
333203
|
"copyFileBody": true,
|
|
333204
|
+
"setFilePassagesBody": true,
|
|
333061
333205
|
"createKnowledgeBaseBody": true,
|
|
333062
333206
|
"updateKnowledgeBaseBody": true,
|
|
333063
333207
|
"getOrCreateTableBody": true,
|
|
@@ -333223,6 +333367,7 @@ var state5 = {
|
|
|
333223
333367
|
"copyFileResponse": true,
|
|
333224
333368
|
"searchFilesResponse": true,
|
|
333225
333369
|
"listFilePassagesResponse": true,
|
|
333370
|
+
"setFilePassagesResponse": true,
|
|
333226
333371
|
"listFileTagsResponse": true,
|
|
333227
333372
|
"listFileTagValuesResponse": true,
|
|
333228
333373
|
"createKnowledgeBaseResponse": true,
|
|
@@ -336927,6 +337072,7 @@ var state5 = {
|
|
|
336927
337072
|
"copyFile",
|
|
336928
337073
|
"searchFiles",
|
|
336929
337074
|
"listFilePassages",
|
|
337075
|
+
"setFilePassages",
|
|
336930
337076
|
"listFileTags",
|
|
336931
337077
|
"listFileTagValues",
|
|
336932
337078
|
"createKnowledgeBase",
|
|
@@ -1056,6 +1056,63 @@ export declare const state: {
|
|
|
1056
1056
|
};
|
|
1057
1057
|
};
|
|
1058
1058
|
};
|
|
1059
|
+
setFilePassages: {
|
|
1060
|
+
name: string;
|
|
1061
|
+
path: string;
|
|
1062
|
+
description: string;
|
|
1063
|
+
method: "put";
|
|
1064
|
+
section: "files";
|
|
1065
|
+
parameters: {
|
|
1066
|
+
id: {
|
|
1067
|
+
type: "string";
|
|
1068
|
+
description: string;
|
|
1069
|
+
in: "path";
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
requestBody: {
|
|
1073
|
+
description: string;
|
|
1074
|
+
schema: {
|
|
1075
|
+
type: "object";
|
|
1076
|
+
properties: {
|
|
1077
|
+
passages: {
|
|
1078
|
+
type: "array";
|
|
1079
|
+
items: {
|
|
1080
|
+
type: "object";
|
|
1081
|
+
properties: {
|
|
1082
|
+
content: {
|
|
1083
|
+
type: "string";
|
|
1084
|
+
description: string;
|
|
1085
|
+
};
|
|
1086
|
+
type: {
|
|
1087
|
+
default: string;
|
|
1088
|
+
type: "string";
|
|
1089
|
+
enum: string[];
|
|
1090
|
+
description: string;
|
|
1091
|
+
};
|
|
1092
|
+
pageNumber: {
|
|
1093
|
+
type: "integer";
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
required: string[];
|
|
1097
|
+
};
|
|
1098
|
+
description: string;
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
required: string[];
|
|
1102
|
+
title: string;
|
|
1103
|
+
additionalProperties: false;
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
contentType: "application/json";
|
|
1107
|
+
response: {
|
|
1108
|
+
description: string;
|
|
1109
|
+
schema: {
|
|
1110
|
+
type: "object";
|
|
1111
|
+
title: string;
|
|
1112
|
+
additionalProperties: false;
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1059
1116
|
listFileTags: {
|
|
1060
1117
|
name: string;
|
|
1061
1118
|
path: string;
|
|
@@ -1386,6 +1443,7 @@ export declare const state: {
|
|
|
1386
1443
|
upsertFileBody: true;
|
|
1387
1444
|
updateFileMetadataBody: true;
|
|
1388
1445
|
copyFileBody: true;
|
|
1446
|
+
setFilePassagesBody: true;
|
|
1389
1447
|
createKnowledgeBaseBody: true;
|
|
1390
1448
|
updateKnowledgeBaseBody: true;
|
|
1391
1449
|
};
|
|
@@ -1398,6 +1456,7 @@ export declare const state: {
|
|
|
1398
1456
|
copyFileResponse: true;
|
|
1399
1457
|
searchFilesResponse: true;
|
|
1400
1458
|
listFilePassagesResponse: true;
|
|
1459
|
+
setFilePassagesResponse: true;
|
|
1401
1460
|
listFileTagsResponse: true;
|
|
1402
1461
|
listFileTagValuesResponse: true;
|
|
1403
1462
|
createKnowledgeBaseResponse: true;
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -14670,6 +14670,63 @@ export declare const state: {
|
|
|
14670
14670
|
};
|
|
14671
14671
|
};
|
|
14672
14672
|
};
|
|
14673
|
+
setFilePassages: {
|
|
14674
|
+
name: string;
|
|
14675
|
+
path: string;
|
|
14676
|
+
description: string;
|
|
14677
|
+
method: "put";
|
|
14678
|
+
section: "files";
|
|
14679
|
+
parameters: {
|
|
14680
|
+
id: {
|
|
14681
|
+
type: "string";
|
|
14682
|
+
description: string;
|
|
14683
|
+
in: "path";
|
|
14684
|
+
};
|
|
14685
|
+
};
|
|
14686
|
+
requestBody: {
|
|
14687
|
+
description: string;
|
|
14688
|
+
schema: {
|
|
14689
|
+
type: "object";
|
|
14690
|
+
properties: {
|
|
14691
|
+
passages: {
|
|
14692
|
+
type: "array";
|
|
14693
|
+
items: {
|
|
14694
|
+
type: "object";
|
|
14695
|
+
properties: {
|
|
14696
|
+
content: {
|
|
14697
|
+
type: "string";
|
|
14698
|
+
description: string;
|
|
14699
|
+
};
|
|
14700
|
+
type: {
|
|
14701
|
+
default: string;
|
|
14702
|
+
type: "string";
|
|
14703
|
+
enum: string[];
|
|
14704
|
+
description: string;
|
|
14705
|
+
};
|
|
14706
|
+
pageNumber: {
|
|
14707
|
+
type: "integer";
|
|
14708
|
+
};
|
|
14709
|
+
};
|
|
14710
|
+
required: string[];
|
|
14711
|
+
};
|
|
14712
|
+
description: string;
|
|
14713
|
+
};
|
|
14714
|
+
};
|
|
14715
|
+
required: string[];
|
|
14716
|
+
title: string;
|
|
14717
|
+
additionalProperties: false;
|
|
14718
|
+
};
|
|
14719
|
+
};
|
|
14720
|
+
contentType: "application/json";
|
|
14721
|
+
response: {
|
|
14722
|
+
description: string;
|
|
14723
|
+
schema: {
|
|
14724
|
+
type: "object";
|
|
14725
|
+
title: string;
|
|
14726
|
+
additionalProperties: false;
|
|
14727
|
+
};
|
|
14728
|
+
};
|
|
14729
|
+
};
|
|
14673
14730
|
listFileTags: {
|
|
14674
14731
|
name: string;
|
|
14675
14732
|
path: string;
|
|
@@ -16133,6 +16190,7 @@ export declare const state: {
|
|
|
16133
16190
|
upsertFileBody: true;
|
|
16134
16191
|
updateFileMetadataBody: true;
|
|
16135
16192
|
copyFileBody: true;
|
|
16193
|
+
setFilePassagesBody: true;
|
|
16136
16194
|
createKnowledgeBaseBody: true;
|
|
16137
16195
|
updateKnowledgeBaseBody: true;
|
|
16138
16196
|
getOrCreateTableBody: true;
|
|
@@ -16298,6 +16356,7 @@ export declare const state: {
|
|
|
16298
16356
|
copyFileResponse: true;
|
|
16299
16357
|
searchFilesResponse: true;
|
|
16300
16358
|
listFilePassagesResponse: true;
|
|
16359
|
+
setFilePassagesResponse: true;
|
|
16301
16360
|
listFileTagsResponse: true;
|
|
16302
16361
|
listFileTagValuesResponse: true;
|
|
16303
16362
|
createKnowledgeBaseResponse: true;
|