@botpress/api 1.13.0 → 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 +175 -5
- package/dist/src/gen/admin/state.d.ts +12 -0
- package/dist/src/gen/files/state.d.ts +59 -0
- package/dist/src/gen/state.d.ts +71 -0
- package/package.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +13 -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 +86 -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
|
@@ -7361,6 +7361,12 @@ export const state = {
|
|
|
7361
7361
|
"type": "string",
|
|
7362
7362
|
"required": false
|
|
7363
7363
|
},
|
|
7364
|
+
"messageContains": {
|
|
7365
|
+
"in": "query",
|
|
7366
|
+
"description": "Filter logs where the message contains this substring",
|
|
7367
|
+
"type": "string",
|
|
7368
|
+
"required": false
|
|
7369
|
+
},
|
|
7364
7370
|
"nextToken": {
|
|
7365
7371
|
"in": "query",
|
|
7366
7372
|
"description": "Token to get the next page of logs",
|
|
@@ -13087,6 +13093,12 @@ export const state = {
|
|
|
13087
13093
|
"type": "string",
|
|
13088
13094
|
"required": false
|
|
13089
13095
|
},
|
|
13096
|
+
"messageContains": {
|
|
13097
|
+
"in": "query",
|
|
13098
|
+
"description": "Filter logs where the message contains this substring",
|
|
13099
|
+
"type": "string",
|
|
13100
|
+
"required": false
|
|
13101
|
+
},
|
|
13090
13102
|
"nextToken": {
|
|
13091
13103
|
"in": "query",
|
|
13092
13104
|
"description": "Token to get the next page of logs",
|
|
@@ -16655,6 +16667,76 @@ export const state = {
|
|
|
16655
16667
|
}
|
|
16656
16668
|
}
|
|
16657
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
|
+
},
|
|
16658
16740
|
"listFileTags": {
|
|
16659
16741
|
"name": "listFileTags",
|
|
16660
16742
|
"path": "/v1/files/tags",
|
|
@@ -18164,7 +18246,7 @@ export const state = {
|
|
|
18164
18246
|
"title": "Botpress API",
|
|
18165
18247
|
"description": "API for Botpress Cloud",
|
|
18166
18248
|
"server": "https://api.botpress.cloud",
|
|
18167
|
-
"version": "1.
|
|
18249
|
+
"version": "1.14.0",
|
|
18168
18250
|
"prefix": "v1"
|
|
18169
18251
|
},
|
|
18170
18252
|
"errors": [
|
|
@@ -18347,6 +18429,7 @@ export const state = {
|
|
|
18347
18429
|
"upsertFileBody": true,
|
|
18348
18430
|
"updateFileMetadataBody": true,
|
|
18349
18431
|
"copyFileBody": true,
|
|
18432
|
+
"setFilePassagesBody": true,
|
|
18350
18433
|
"createKnowledgeBaseBody": true,
|
|
18351
18434
|
"updateKnowledgeBaseBody": true,
|
|
18352
18435
|
"getOrCreateTableBody": true,
|
|
@@ -18512,6 +18595,7 @@ export const state = {
|
|
|
18512
18595
|
"copyFileResponse": true,
|
|
18513
18596
|
"searchFilesResponse": true,
|
|
18514
18597
|
"listFilePassagesResponse": true,
|
|
18598
|
+
"setFilePassagesResponse": true,
|
|
18515
18599
|
"listFileTagsResponse": true,
|
|
18516
18600
|
"listFileTagValuesResponse": true,
|
|
18517
18601
|
"createKnowledgeBaseResponse": true,
|
|
@@ -22216,6 +22300,7 @@ export const state = {
|
|
|
22216
22300
|
"copyFile",
|
|
22217
22301
|
"searchFiles",
|
|
22218
22302
|
"listFilePassages",
|
|
22303
|
+
"setFilePassages",
|
|
22219
22304
|
"listFileTags",
|
|
22220
22305
|
"listFileTagValues",
|
|
22221
22306
|
"createKnowledgeBase",
|