@botpress/api 0.24.0 → 0.25.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 +104 -46
- package/dist/src/gen/state.d.ts +70 -36
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +104 -46
package/src/gen/state.ts
CHANGED
|
@@ -8110,48 +8110,44 @@ export const state = {
|
|
|
8110
8110
|
"schema": {
|
|
8111
8111
|
"type": "object",
|
|
8112
8112
|
"properties": {
|
|
8113
|
-
"
|
|
8114
|
-
"
|
|
8113
|
+
"name": {
|
|
8114
|
+
"type": "string",
|
|
8115
|
+
"description": "File name"
|
|
8116
|
+
},
|
|
8117
|
+
"tags": {
|
|
8118
|
+
"type": "object",
|
|
8119
|
+
"additionalProperties": {
|
|
8120
|
+
"type": "string",
|
|
8121
|
+
"maxLength": 1000
|
|
8122
|
+
},
|
|
8123
|
+
"description": "File tags as an object of key/value pairs"
|
|
8124
|
+
},
|
|
8125
|
+
"index": {
|
|
8126
|
+
"default": false,
|
|
8127
|
+
"type": "boolean",
|
|
8128
|
+
"description": "Set to a value of 'true' to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota of the workspace rather than the File Storage quota."
|
|
8129
|
+
},
|
|
8130
|
+
"accessPolicies": {
|
|
8131
|
+
"type": "array",
|
|
8132
|
+
"items": {
|
|
8133
|
+
"type": "string",
|
|
8134
|
+
"enum": [
|
|
8135
|
+
"public_content",
|
|
8136
|
+
"integrations"
|
|
8137
|
+
]
|
|
8138
|
+
},
|
|
8139
|
+
"description": "File access policies. Add \"public_content\" to allow public access to the file content. Add \"integrations\" to allow read, search and list operations for any integration installed in the bot."
|
|
8140
|
+
},
|
|
8141
|
+
"contentType": {
|
|
8142
|
+
"type": "string",
|
|
8143
|
+
"description": "File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is \"application/octet-stream\"."
|
|
8115
8144
|
}
|
|
8116
8145
|
},
|
|
8117
8146
|
"title": "createFileBody",
|
|
8118
|
-
"format": "binary",
|
|
8119
8147
|
"additionalProperties": false
|
|
8120
8148
|
}
|
|
8121
8149
|
},
|
|
8122
|
-
"
|
|
8123
|
-
"x-name": {
|
|
8124
|
-
"type": "string",
|
|
8125
|
-
"description": "File name",
|
|
8126
|
-
"in": "header"
|
|
8127
|
-
},
|
|
8128
|
-
"x-tags": {
|
|
8129
|
-
"type": "string",
|
|
8130
|
-
"description": "File tags as URL-encoded JSON string representing an object of key-value pairs.",
|
|
8131
|
-
"in": "header"
|
|
8132
|
-
},
|
|
8133
|
-
"x-access-policies": {
|
|
8134
|
-
"type": "string",
|
|
8135
|
-
"description": "File access policies, comma-separated. Add \"public_content\" to allow public access to the file content. Add \"integrations\" to allo read, search and list operations for any integration installed in the bot.",
|
|
8136
|
-
"in": "header"
|
|
8137
|
-
},
|
|
8138
|
-
"x-index": {
|
|
8139
|
-
"type": "boolean",
|
|
8140
|
-
"description": "Set to a value of \"true\" to index the file in vector storage (default: false). Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota of the workspace rather than the File Storage quota.",
|
|
8141
|
-
"in": "header"
|
|
8142
|
-
},
|
|
8143
|
-
"Content-Type": {
|
|
8144
|
-
"type": "string",
|
|
8145
|
-
"description": "File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is \"application/octet-stream\".",
|
|
8146
|
-
"in": "header"
|
|
8147
|
-
},
|
|
8148
|
-
"Content-Length": {
|
|
8149
|
-
"type": "string",
|
|
8150
|
-
"description": "File content length",
|
|
8151
|
-
"in": "header"
|
|
8152
|
-
}
|
|
8153
|
-
},
|
|
8154
|
-
"contentType": "*/*",
|
|
8150
|
+
"contentType": "application/json",
|
|
8155
8151
|
"section": "files",
|
|
8156
8152
|
"response": {
|
|
8157
8153
|
"description": "The file metadata.",
|
|
@@ -8176,7 +8172,7 @@ export const state = {
|
|
|
8176
8172
|
},
|
|
8177
8173
|
"size": {
|
|
8178
8174
|
"type": "number",
|
|
8179
|
-
"description": "File size in bytes",
|
|
8175
|
+
"description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
|
|
8180
8176
|
"nullable": true
|
|
8181
8177
|
},
|
|
8182
8178
|
"contentType": {
|
|
@@ -8219,6 +8215,23 @@ export const state = {
|
|
|
8219
8215
|
"indexingFailureReason": {
|
|
8220
8216
|
"type": "string",
|
|
8221
8217
|
"description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
|
|
8218
|
+
},
|
|
8219
|
+
"uploadStatus": {
|
|
8220
|
+
"type": "string",
|
|
8221
|
+
"enum": [
|
|
8222
|
+
"PENDING",
|
|
8223
|
+
"COMPLETE",
|
|
8224
|
+
"FAILED"
|
|
8225
|
+
],
|
|
8226
|
+
"description": "Status of the file upload process. If the status is \"PENDING\", the file content has not been uploaded yet. \nThe status will be set to \"COMPLETE\" once the file content has been uploaded successfully. \nIf the status is \"FAILED\", the file content could not be uploaded. See \"uploadFailureReason\" for more details."
|
|
8227
|
+
},
|
|
8228
|
+
"uploadFailureReason": {
|
|
8229
|
+
"type": "string",
|
|
8230
|
+
"description": "Failure reason of the file upload if the upload status is \"FAILED\"."
|
|
8231
|
+
},
|
|
8232
|
+
"uploadUrl": {
|
|
8233
|
+
"type": "string",
|
|
8234
|
+
"description": "URL to upload the file content. File content needs to be sent to this URL via a POST request."
|
|
8222
8235
|
}
|
|
8223
8236
|
},
|
|
8224
8237
|
"required": [
|
|
@@ -8230,7 +8243,9 @@ export const state = {
|
|
|
8230
8243
|
"tags",
|
|
8231
8244
|
"createdAt",
|
|
8232
8245
|
"updatedAt",
|
|
8233
|
-
"accessPolicies"
|
|
8246
|
+
"accessPolicies",
|
|
8247
|
+
"uploadStatus",
|
|
8248
|
+
"uploadUrl"
|
|
8234
8249
|
],
|
|
8235
8250
|
"additionalProperties": false
|
|
8236
8251
|
}
|
|
@@ -8241,7 +8256,8 @@ export const state = {
|
|
|
8241
8256
|
"title": "createFileResponse",
|
|
8242
8257
|
"additionalProperties": false
|
|
8243
8258
|
}
|
|
8244
|
-
}
|
|
8259
|
+
},
|
|
8260
|
+
"parameters": {}
|
|
8245
8261
|
},
|
|
8246
8262
|
"deleteFile": {
|
|
8247
8263
|
"name": "deleteFile",
|
|
@@ -8319,7 +8335,7 @@ export const state = {
|
|
|
8319
8335
|
},
|
|
8320
8336
|
"size": {
|
|
8321
8337
|
"type": "number",
|
|
8322
|
-
"description": "File size in bytes",
|
|
8338
|
+
"description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
|
|
8323
8339
|
"nullable": true
|
|
8324
8340
|
},
|
|
8325
8341
|
"contentType": {
|
|
@@ -8362,6 +8378,19 @@ export const state = {
|
|
|
8362
8378
|
"indexingFailureReason": {
|
|
8363
8379
|
"type": "string",
|
|
8364
8380
|
"description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
|
|
8381
|
+
},
|
|
8382
|
+
"uploadStatus": {
|
|
8383
|
+
"type": "string",
|
|
8384
|
+
"enum": [
|
|
8385
|
+
"PENDING",
|
|
8386
|
+
"COMPLETE",
|
|
8387
|
+
"FAILED"
|
|
8388
|
+
],
|
|
8389
|
+
"description": "Status of the file upload process. If the status is \"PENDING\", the file content has not been uploaded yet. \nThe status will be set to \"COMPLETE\" once the file content has been uploaded successfully. \nIf the status is \"FAILED\", the file content could not be uploaded. See \"uploadFailureReason\" for more details."
|
|
8390
|
+
},
|
|
8391
|
+
"uploadFailureReason": {
|
|
8392
|
+
"type": "string",
|
|
8393
|
+
"description": "Failure reason of the file upload if the upload status is \"FAILED\"."
|
|
8365
8394
|
}
|
|
8366
8395
|
},
|
|
8367
8396
|
"required": [
|
|
@@ -8373,7 +8402,8 @@ export const state = {
|
|
|
8373
8402
|
"tags",
|
|
8374
8403
|
"createdAt",
|
|
8375
8404
|
"updatedAt",
|
|
8376
|
-
"accessPolicies"
|
|
8405
|
+
"accessPolicies",
|
|
8406
|
+
"uploadStatus"
|
|
8377
8407
|
]
|
|
8378
8408
|
}
|
|
8379
8409
|
},
|
|
@@ -8433,7 +8463,7 @@ export const state = {
|
|
|
8433
8463
|
},
|
|
8434
8464
|
"size": {
|
|
8435
8465
|
"type": "number",
|
|
8436
|
-
"description": "File size in bytes",
|
|
8466
|
+
"description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
|
|
8437
8467
|
"nullable": true
|
|
8438
8468
|
},
|
|
8439
8469
|
"contentType": {
|
|
@@ -8476,6 +8506,19 @@ export const state = {
|
|
|
8476
8506
|
"indexingFailureReason": {
|
|
8477
8507
|
"type": "string",
|
|
8478
8508
|
"description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
|
|
8509
|
+
},
|
|
8510
|
+
"uploadStatus": {
|
|
8511
|
+
"type": "string",
|
|
8512
|
+
"enum": [
|
|
8513
|
+
"PENDING",
|
|
8514
|
+
"COMPLETE",
|
|
8515
|
+
"FAILED"
|
|
8516
|
+
],
|
|
8517
|
+
"description": "Status of the file upload process. If the status is \"PENDING\", the file content has not been uploaded yet. \nThe status will be set to \"COMPLETE\" once the file content has been uploaded successfully. \nIf the status is \"FAILED\", the file content could not be uploaded. See \"uploadFailureReason\" for more details."
|
|
8518
|
+
},
|
|
8519
|
+
"uploadFailureReason": {
|
|
8520
|
+
"type": "string",
|
|
8521
|
+
"description": "Failure reason of the file upload if the upload status is \"FAILED\"."
|
|
8479
8522
|
}
|
|
8480
8523
|
},
|
|
8481
8524
|
"required": [
|
|
@@ -8487,7 +8530,8 @@ export const state = {
|
|
|
8487
8530
|
"tags",
|
|
8488
8531
|
"createdAt",
|
|
8489
8532
|
"updatedAt",
|
|
8490
|
-
"accessPolicies"
|
|
8533
|
+
"accessPolicies",
|
|
8534
|
+
"uploadStatus"
|
|
8491
8535
|
],
|
|
8492
8536
|
"additionalProperties": false
|
|
8493
8537
|
}
|
|
@@ -9552,7 +9596,7 @@ export const state = {
|
|
|
9552
9596
|
"title": "Botpress API",
|
|
9553
9597
|
"description": "API for Botpress Cloud",
|
|
9554
9598
|
"server": "https://api.botpress.cloud",
|
|
9555
|
-
"version": "0.
|
|
9599
|
+
"version": "0.25.0",
|
|
9556
9600
|
"prefix": "v1"
|
|
9557
9601
|
},
|
|
9558
9602
|
"errors": [
|
|
@@ -11880,7 +11924,7 @@ export const state = {
|
|
|
11880
11924
|
},
|
|
11881
11925
|
"size": {
|
|
11882
11926
|
"type": "number",
|
|
11883
|
-
"description": "File size in bytes",
|
|
11927
|
+
"description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
|
|
11884
11928
|
"nullable": true
|
|
11885
11929
|
},
|
|
11886
11930
|
"contentType": {
|
|
@@ -11923,6 +11967,19 @@ export const state = {
|
|
|
11923
11967
|
"indexingFailureReason": {
|
|
11924
11968
|
"type": "string",
|
|
11925
11969
|
"description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
|
|
11970
|
+
},
|
|
11971
|
+
"uploadStatus": {
|
|
11972
|
+
"type": "string",
|
|
11973
|
+
"enum": [
|
|
11974
|
+
"PENDING",
|
|
11975
|
+
"COMPLETE",
|
|
11976
|
+
"FAILED"
|
|
11977
|
+
],
|
|
11978
|
+
"description": "Status of the file upload process. If the status is \"PENDING\", the file content has not been uploaded yet. \nThe status will be set to \"COMPLETE\" once the file content has been uploaded successfully. \nIf the status is \"FAILED\", the file content could not be uploaded. See \"uploadFailureReason\" for more details."
|
|
11979
|
+
},
|
|
11980
|
+
"uploadFailureReason": {
|
|
11981
|
+
"type": "string",
|
|
11982
|
+
"description": "Failure reason of the file upload if the upload status is \"FAILED\"."
|
|
11926
11983
|
}
|
|
11927
11984
|
},
|
|
11928
11985
|
"required": [
|
|
@@ -11934,7 +11991,8 @@ export const state = {
|
|
|
11934
11991
|
"tags",
|
|
11935
11992
|
"createdAt",
|
|
11936
11993
|
"updatedAt",
|
|
11937
|
-
"accessPolicies"
|
|
11994
|
+
"accessPolicies",
|
|
11995
|
+
"uploadStatus"
|
|
11938
11996
|
],
|
|
11939
11997
|
"additionalProperties": false
|
|
11940
11998
|
}
|