@botpress/api 1.13.1 → 1.15.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 +212 -5
- package/dist/src/gen/admin/state.d.ts +16 -0
- package/dist/src/gen/files/state.d.ts +67 -0
- package/dist/src/gen/runtime/state.d.ts +8 -0
- package/dist/src/gen/state.d.ts +75 -0
- package/dist/src/gen/tables/state.d.ts +8 -0
- package/package.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +18 -1
- package/src/gen/files/metadata.json +1 -1
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +83 -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 +10 -1
- package/src/gen/state.ts +91 -1
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +10 -1
package/src/gen/runtime/state.ts
CHANGED
|
@@ -2604,7 +2604,7 @@ export const state = {
|
|
|
2604
2604
|
"title": "Botpress API",
|
|
2605
2605
|
"description": "API for Botpress Cloud",
|
|
2606
2606
|
"server": "https://api.botpress.cloud",
|
|
2607
|
-
"version": "1.
|
|
2607
|
+
"version": "1.15.0",
|
|
2608
2608
|
"prefix": "v1"
|
|
2609
2609
|
},
|
|
2610
2610
|
"errors": [
|
|
@@ -2911,6 +2911,14 @@ export const state = {
|
|
|
2911
2911
|
"maxLength": 2000,
|
|
2912
2912
|
"nullable": true
|
|
2913
2913
|
},
|
|
2914
|
+
"disabledChannels": {
|
|
2915
|
+
"type": "array",
|
|
2916
|
+
"items": {
|
|
2917
|
+
"type": "string",
|
|
2918
|
+
"description": "Channel name"
|
|
2919
|
+
},
|
|
2920
|
+
"description": "Disabled channels for this integration"
|
|
2921
|
+
},
|
|
2914
2922
|
"id": {
|
|
2915
2923
|
"type": "string",
|
|
2916
2924
|
"minLength": 28,
|
|
@@ -2967,6 +2975,7 @@ export const state = {
|
|
|
2967
2975
|
"configuration",
|
|
2968
2976
|
"status",
|
|
2969
2977
|
"statusReason",
|
|
2978
|
+
"disabledChannels",
|
|
2970
2979
|
"id",
|
|
2971
2980
|
"createdAt",
|
|
2972
2981
|
"updatedAt",
|
package/src/gen/state.ts
CHANGED
|
@@ -7023,6 +7023,14 @@ export const state = {
|
|
|
7023
7023
|
"configuration": {
|
|
7024
7024
|
"type": "object",
|
|
7025
7025
|
"additionalProperties": true
|
|
7026
|
+
},
|
|
7027
|
+
"disabledChannels": {
|
|
7028
|
+
"type": "array",
|
|
7029
|
+
"items": {
|
|
7030
|
+
"type": "string",
|
|
7031
|
+
"description": "Channel name"
|
|
7032
|
+
},
|
|
7033
|
+
"description": "Disabled channels for this integration"
|
|
7026
7034
|
}
|
|
7027
7035
|
},
|
|
7028
7036
|
"nullable": true,
|
|
@@ -16667,6 +16675,76 @@ export const state = {
|
|
|
16667
16675
|
}
|
|
16668
16676
|
}
|
|
16669
16677
|
},
|
|
16678
|
+
"setFilePassages": {
|
|
16679
|
+
"name": "setFilePassages",
|
|
16680
|
+
"path": "/v1/files/{id}/passages",
|
|
16681
|
+
"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.",
|
|
16682
|
+
"method": "put",
|
|
16683
|
+
"section": "files",
|
|
16684
|
+
"parameters": {
|
|
16685
|
+
"id": {
|
|
16686
|
+
"type": "string",
|
|
16687
|
+
"description": "File ID or Key",
|
|
16688
|
+
"in": "path"
|
|
16689
|
+
}
|
|
16690
|
+
},
|
|
16691
|
+
"requestBody": {
|
|
16692
|
+
"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.",
|
|
16693
|
+
"schema": {
|
|
16694
|
+
"type": "object",
|
|
16695
|
+
"properties": {
|
|
16696
|
+
"passages": {
|
|
16697
|
+
"type": "array",
|
|
16698
|
+
"items": {
|
|
16699
|
+
"type": "object",
|
|
16700
|
+
"properties": {
|
|
16701
|
+
"content": {
|
|
16702
|
+
"type": "string",
|
|
16703
|
+
"description": "The content of the passage, supports Markdown formatting."
|
|
16704
|
+
},
|
|
16705
|
+
"type": {
|
|
16706
|
+
"default": "paragraph",
|
|
16707
|
+
"type": "string",
|
|
16708
|
+
"enum": [
|
|
16709
|
+
"title",
|
|
16710
|
+
"subtitle",
|
|
16711
|
+
"paragraph",
|
|
16712
|
+
"blockquote",
|
|
16713
|
+
"list",
|
|
16714
|
+
"table",
|
|
16715
|
+
"code",
|
|
16716
|
+
"image"
|
|
16717
|
+
],
|
|
16718
|
+
"description": "The type should match the Markdown format used for the passage content."
|
|
16719
|
+
},
|
|
16720
|
+
"pageNumber": {
|
|
16721
|
+
"type": "integer"
|
|
16722
|
+
}
|
|
16723
|
+
},
|
|
16724
|
+
"required": [
|
|
16725
|
+
"content"
|
|
16726
|
+
]
|
|
16727
|
+
},
|
|
16728
|
+
"description": "Note: The passages should appear in the array in the same order as they appear in the original document."
|
|
16729
|
+
}
|
|
16730
|
+
},
|
|
16731
|
+
"required": [
|
|
16732
|
+
"passages"
|
|
16733
|
+
],
|
|
16734
|
+
"title": "setFilePassagesBody",
|
|
16735
|
+
"additionalProperties": false
|
|
16736
|
+
}
|
|
16737
|
+
},
|
|
16738
|
+
"contentType": "application/json",
|
|
16739
|
+
"response": {
|
|
16740
|
+
"description": "Empty response.",
|
|
16741
|
+
"schema": {
|
|
16742
|
+
"type": "object",
|
|
16743
|
+
"title": "setFilePassagesResponse",
|
|
16744
|
+
"additionalProperties": false
|
|
16745
|
+
}
|
|
16746
|
+
}
|
|
16747
|
+
},
|
|
16670
16748
|
"listFileTags": {
|
|
16671
16749
|
"name": "listFileTags",
|
|
16672
16750
|
"path": "/v1/files/tags",
|
|
@@ -18176,7 +18254,7 @@ export const state = {
|
|
|
18176
18254
|
"title": "Botpress API",
|
|
18177
18255
|
"description": "API for Botpress Cloud",
|
|
18178
18256
|
"server": "https://api.botpress.cloud",
|
|
18179
|
-
"version": "1.
|
|
18257
|
+
"version": "1.15.0",
|
|
18180
18258
|
"prefix": "v1"
|
|
18181
18259
|
},
|
|
18182
18260
|
"errors": [
|
|
@@ -18359,6 +18437,7 @@ export const state = {
|
|
|
18359
18437
|
"upsertFileBody": true,
|
|
18360
18438
|
"updateFileMetadataBody": true,
|
|
18361
18439
|
"copyFileBody": true,
|
|
18440
|
+
"setFilePassagesBody": true,
|
|
18362
18441
|
"createKnowledgeBaseBody": true,
|
|
18363
18442
|
"updateKnowledgeBaseBody": true,
|
|
18364
18443
|
"getOrCreateTableBody": true,
|
|
@@ -18524,6 +18603,7 @@ export const state = {
|
|
|
18524
18603
|
"copyFileResponse": true,
|
|
18525
18604
|
"searchFilesResponse": true,
|
|
18526
18605
|
"listFilePassagesResponse": true,
|
|
18606
|
+
"setFilePassagesResponse": true,
|
|
18527
18607
|
"listFileTagsResponse": true,
|
|
18528
18608
|
"listFileTagValuesResponse": true,
|
|
18529
18609
|
"createKnowledgeBaseResponse": true,
|
|
@@ -18656,6 +18736,14 @@ export const state = {
|
|
|
18656
18736
|
"maxLength": 2000,
|
|
18657
18737
|
"nullable": true
|
|
18658
18738
|
},
|
|
18739
|
+
"disabledChannels": {
|
|
18740
|
+
"type": "array",
|
|
18741
|
+
"items": {
|
|
18742
|
+
"type": "string",
|
|
18743
|
+
"description": "Channel name"
|
|
18744
|
+
},
|
|
18745
|
+
"description": "Disabled channels for this integration"
|
|
18746
|
+
},
|
|
18659
18747
|
"id": {
|
|
18660
18748
|
"type": "string",
|
|
18661
18749
|
"minLength": 28,
|
|
@@ -18712,6 +18800,7 @@ export const state = {
|
|
|
18712
18800
|
"configuration",
|
|
18713
18801
|
"status",
|
|
18714
18802
|
"statusReason",
|
|
18803
|
+
"disabledChannels",
|
|
18715
18804
|
"id",
|
|
18716
18805
|
"createdAt",
|
|
18717
18806
|
"updatedAt",
|
|
@@ -22228,6 +22317,7 @@ export const state = {
|
|
|
22228
22317
|
"copyFile",
|
|
22229
22318
|
"searchFiles",
|
|
22230
22319
|
"listFilePassages",
|
|
22320
|
+
"setFilePassages",
|
|
22231
22321
|
"listFileTags",
|
|
22232
22322
|
"listFileTagValues",
|
|
22233
22323
|
"createKnowledgeBase",
|