@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/src/gen/runtime/state.ts
CHANGED
package/src/gen/state.ts
CHANGED
|
@@ -16667,6 +16667,76 @@ export const state = {
|
|
|
16667
16667
|
}
|
|
16668
16668
|
}
|
|
16669
16669
|
},
|
|
16670
|
+
"setFilePassages": {
|
|
16671
|
+
"name": "setFilePassages",
|
|
16672
|
+
"path": "/v1/files/{id}/passages",
|
|
16673
|
+
"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.",
|
|
16674
|
+
"method": "put",
|
|
16675
|
+
"section": "files",
|
|
16676
|
+
"parameters": {
|
|
16677
|
+
"id": {
|
|
16678
|
+
"type": "string",
|
|
16679
|
+
"description": "File ID or Key",
|
|
16680
|
+
"in": "path"
|
|
16681
|
+
}
|
|
16682
|
+
},
|
|
16683
|
+
"requestBody": {
|
|
16684
|
+
"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.",
|
|
16685
|
+
"schema": {
|
|
16686
|
+
"type": "object",
|
|
16687
|
+
"properties": {
|
|
16688
|
+
"passages": {
|
|
16689
|
+
"type": "array",
|
|
16690
|
+
"items": {
|
|
16691
|
+
"type": "object",
|
|
16692
|
+
"properties": {
|
|
16693
|
+
"content": {
|
|
16694
|
+
"type": "string",
|
|
16695
|
+
"description": "The content of the passage, supports Markdown formatting."
|
|
16696
|
+
},
|
|
16697
|
+
"type": {
|
|
16698
|
+
"default": "paragraph",
|
|
16699
|
+
"type": "string",
|
|
16700
|
+
"enum": [
|
|
16701
|
+
"title",
|
|
16702
|
+
"subtitle",
|
|
16703
|
+
"paragraph",
|
|
16704
|
+
"blockquote",
|
|
16705
|
+
"list",
|
|
16706
|
+
"table",
|
|
16707
|
+
"code",
|
|
16708
|
+
"image"
|
|
16709
|
+
],
|
|
16710
|
+
"description": "The type should match the Markdown format used for the passage content."
|
|
16711
|
+
},
|
|
16712
|
+
"pageNumber": {
|
|
16713
|
+
"type": "integer"
|
|
16714
|
+
}
|
|
16715
|
+
},
|
|
16716
|
+
"required": [
|
|
16717
|
+
"content"
|
|
16718
|
+
]
|
|
16719
|
+
},
|
|
16720
|
+
"description": "Note: The passages should appear in the array in the same order as they appear in the original document."
|
|
16721
|
+
}
|
|
16722
|
+
},
|
|
16723
|
+
"required": [
|
|
16724
|
+
"passages"
|
|
16725
|
+
],
|
|
16726
|
+
"title": "setFilePassagesBody",
|
|
16727
|
+
"additionalProperties": false
|
|
16728
|
+
}
|
|
16729
|
+
},
|
|
16730
|
+
"contentType": "application/json",
|
|
16731
|
+
"response": {
|
|
16732
|
+
"description": "Empty response.",
|
|
16733
|
+
"schema": {
|
|
16734
|
+
"type": "object",
|
|
16735
|
+
"title": "setFilePassagesResponse",
|
|
16736
|
+
"additionalProperties": false
|
|
16737
|
+
}
|
|
16738
|
+
}
|
|
16739
|
+
},
|
|
16670
16740
|
"listFileTags": {
|
|
16671
16741
|
"name": "listFileTags",
|
|
16672
16742
|
"path": "/v1/files/tags",
|
|
@@ -18176,7 +18246,7 @@ export const state = {
|
|
|
18176
18246
|
"title": "Botpress API",
|
|
18177
18247
|
"description": "API for Botpress Cloud",
|
|
18178
18248
|
"server": "https://api.botpress.cloud",
|
|
18179
|
-
"version": "1.
|
|
18249
|
+
"version": "1.14.0",
|
|
18180
18250
|
"prefix": "v1"
|
|
18181
18251
|
},
|
|
18182
18252
|
"errors": [
|
|
@@ -18359,6 +18429,7 @@ export const state = {
|
|
|
18359
18429
|
"upsertFileBody": true,
|
|
18360
18430
|
"updateFileMetadataBody": true,
|
|
18361
18431
|
"copyFileBody": true,
|
|
18432
|
+
"setFilePassagesBody": true,
|
|
18362
18433
|
"createKnowledgeBaseBody": true,
|
|
18363
18434
|
"updateKnowledgeBaseBody": true,
|
|
18364
18435
|
"getOrCreateTableBody": true,
|
|
@@ -18524,6 +18595,7 @@ export const state = {
|
|
|
18524
18595
|
"copyFileResponse": true,
|
|
18525
18596
|
"searchFilesResponse": true,
|
|
18526
18597
|
"listFilePassagesResponse": true,
|
|
18598
|
+
"setFilePassagesResponse": true,
|
|
18527
18599
|
"listFileTagsResponse": true,
|
|
18528
18600
|
"listFileTagValuesResponse": true,
|
|
18529
18601
|
"createKnowledgeBaseResponse": true,
|
|
@@ -22228,6 +22300,7 @@ export const state = {
|
|
|
22228
22300
|
"copyFile",
|
|
22229
22301
|
"searchFiles",
|
|
22230
22302
|
"listFilePassages",
|
|
22303
|
+
"setFilePassages",
|
|
22231
22304
|
"listFileTags",
|
|
22232
22305
|
"listFileTagValues",
|
|
22233
22306
|
"createKnowledgeBase",
|