@botpress/api 0.27.1 → 0.27.3
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 +94 -18
- package/dist/src/gen/state.d.ts +65 -8
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +94 -18
package/src/gen/state.ts
CHANGED
|
@@ -8349,7 +8349,7 @@ export const state = {
|
|
|
8349
8349
|
}
|
|
8350
8350
|
},
|
|
8351
8351
|
"response": {
|
|
8352
|
-
"description": "
|
|
8352
|
+
"description": "An object containing the file metadata and URL",
|
|
8353
8353
|
"schema": {
|
|
8354
8354
|
"type": "object",
|
|
8355
8355
|
"properties": {
|
|
@@ -8452,10 +8452,10 @@ export const state = {
|
|
|
8452
8452
|
}
|
|
8453
8453
|
}
|
|
8454
8454
|
},
|
|
8455
|
-
"
|
|
8456
|
-
"name": "
|
|
8457
|
-
"path": "/v1/files/{id}
|
|
8458
|
-
"description": "Update file
|
|
8455
|
+
"updateFile": {
|
|
8456
|
+
"name": "updateFile",
|
|
8457
|
+
"path": "/v1/files/{id}",
|
|
8458
|
+
"description": "Update file",
|
|
8459
8459
|
"method": "put",
|
|
8460
8460
|
"section": "files",
|
|
8461
8461
|
"parameters": {
|
|
@@ -8483,28 +8483,104 @@ export const state = {
|
|
|
8483
8483
|
"required": [
|
|
8484
8484
|
"tags"
|
|
8485
8485
|
],
|
|
8486
|
-
"title": "
|
|
8486
|
+
"title": "updateFileBody",
|
|
8487
8487
|
"additionalProperties": false
|
|
8488
8488
|
}
|
|
8489
8489
|
},
|
|
8490
8490
|
"response": {
|
|
8491
|
-
"description": "An object containing the updated metadata
|
|
8491
|
+
"description": "An object containing the updated file metadata.",
|
|
8492
8492
|
"schema": {
|
|
8493
8493
|
"type": "object",
|
|
8494
8494
|
"properties": {
|
|
8495
|
-
"
|
|
8495
|
+
"file": {
|
|
8496
8496
|
"type": "object",
|
|
8497
|
-
"
|
|
8498
|
-
"
|
|
8499
|
-
|
|
8497
|
+
"properties": {
|
|
8498
|
+
"id": {
|
|
8499
|
+
"type": "string",
|
|
8500
|
+
"description": "File ID"
|
|
8501
|
+
},
|
|
8502
|
+
"botId": {
|
|
8503
|
+
"type": "string",
|
|
8504
|
+
"description": "The ID of the bot the file belongs to"
|
|
8505
|
+
},
|
|
8506
|
+
"name": {
|
|
8507
|
+
"type": "string",
|
|
8508
|
+
"description": "File name",
|
|
8509
|
+
"nullable": true
|
|
8510
|
+
},
|
|
8511
|
+
"size": {
|
|
8512
|
+
"type": "number",
|
|
8513
|
+
"description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
|
|
8514
|
+
"nullable": true
|
|
8515
|
+
},
|
|
8516
|
+
"contentType": {
|
|
8517
|
+
"type": "string",
|
|
8518
|
+
"description": "MIME type of the file's content"
|
|
8519
|
+
},
|
|
8520
|
+
"tags": {
|
|
8521
|
+
"type": "object",
|
|
8522
|
+
"additionalProperties": {
|
|
8523
|
+
"type": "string",
|
|
8524
|
+
"maxLength": 1000
|
|
8525
|
+
},
|
|
8526
|
+
"description": "The tags of the file as an object of key/value pairs"
|
|
8527
|
+
},
|
|
8528
|
+
"createdAt": {
|
|
8529
|
+
"type": "string",
|
|
8530
|
+
"description": "File creation timestamp in ISO 8601 format"
|
|
8531
|
+
},
|
|
8532
|
+
"updatedAt": {
|
|
8533
|
+
"type": "string",
|
|
8534
|
+
"description": "File last update timestamp in ISO 8601 format"
|
|
8535
|
+
},
|
|
8536
|
+
"accessPolicies": {
|
|
8537
|
+
"type": "array",
|
|
8538
|
+
"items": {
|
|
8539
|
+
"type": "string"
|
|
8540
|
+
},
|
|
8541
|
+
"description": "Access policies configured for the file."
|
|
8542
|
+
},
|
|
8543
|
+
"index": {
|
|
8544
|
+
"type": "boolean",
|
|
8545
|
+
"description": "Whether the file was requested to be indexed for search or not."
|
|
8546
|
+
},
|
|
8547
|
+
"status": {
|
|
8548
|
+
"type": "string",
|
|
8549
|
+
"enum": [
|
|
8550
|
+
"UPLOAD_PENDING",
|
|
8551
|
+
"UPLOAD_FAILED",
|
|
8552
|
+
"UPLOAD_COMPLETED",
|
|
8553
|
+
"INDEXING_PENDING",
|
|
8554
|
+
"INDEXING_FAILED",
|
|
8555
|
+
"INDEXING_COMPLETED"
|
|
8556
|
+
],
|
|
8557
|
+
"description": "Status of the file. If the status is \"UPLOAD_PENDING\", the file content has not been uploaded yet. The status will be set to \"UPLOAD_COMPLETED\" once the file content has been uploaded successfully.\n\nIf the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to \"UPLOAD_FAILED\" and the reason for the failure will be available in the `failedStatusReason` field of the file.\n\nHowever, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the \"INDEXING_PENDING\" status (the \"UPLOAD_COMPLETED\" status step will be skipped).\n\nOnce the indexing is completed and the file is ready to be used for searching its status will be set to \"INDEXING_COMPLETED\". If the indexing failed the status will be set to \"INDEXING_FAILED\" and the reason for the failure will be available in the `failedStatusReason` field."
|
|
8558
|
+
},
|
|
8559
|
+
"failedStatusReason": {
|
|
8560
|
+
"type": "string",
|
|
8561
|
+
"description": "If the file status is \"UPLOAD_FAILED\" or \"INDEXING_FAILED\" this will contain the reason of the failure."
|
|
8562
|
+
}
|
|
8500
8563
|
},
|
|
8501
|
-
"
|
|
8564
|
+
"required": [
|
|
8565
|
+
"id",
|
|
8566
|
+
"botId",
|
|
8567
|
+
"name",
|
|
8568
|
+
"size",
|
|
8569
|
+
"contentType",
|
|
8570
|
+
"tags",
|
|
8571
|
+
"createdAt",
|
|
8572
|
+
"updatedAt",
|
|
8573
|
+
"accessPolicies",
|
|
8574
|
+
"index",
|
|
8575
|
+
"status"
|
|
8576
|
+
],
|
|
8577
|
+
"additionalProperties": false
|
|
8502
8578
|
}
|
|
8503
8579
|
},
|
|
8504
8580
|
"required": [
|
|
8505
|
-
"
|
|
8581
|
+
"file"
|
|
8506
8582
|
],
|
|
8507
|
-
"title": "
|
|
8583
|
+
"title": "updateFileResponse",
|
|
8508
8584
|
"additionalProperties": false
|
|
8509
8585
|
}
|
|
8510
8586
|
}
|
|
@@ -9481,7 +9557,7 @@ export const state = {
|
|
|
9481
9557
|
"title": "Botpress API",
|
|
9482
9558
|
"description": "API for Botpress Cloud",
|
|
9483
9559
|
"server": "https://api.botpress.cloud",
|
|
9484
|
-
"version": "0.27.
|
|
9560
|
+
"version": "0.27.3",
|
|
9485
9561
|
"prefix": "v1"
|
|
9486
9562
|
},
|
|
9487
9563
|
"errors": [
|
|
@@ -9643,7 +9719,7 @@ export const state = {
|
|
|
9643
9719
|
"changeAISpendQuotaBody": true,
|
|
9644
9720
|
"introspectBody": true,
|
|
9645
9721
|
"createFileBody": true,
|
|
9646
|
-
"
|
|
9722
|
+
"updateFileBody": true,
|
|
9647
9723
|
"getOrCreateTableBody": true,
|
|
9648
9724
|
"createTableBody": true,
|
|
9649
9725
|
"duplicateTableBody": true,
|
|
@@ -9756,7 +9832,7 @@ export const state = {
|
|
|
9756
9832
|
"deleteFileResponse": true,
|
|
9757
9833
|
"listFilesResponse": true,
|
|
9758
9834
|
"getFileResponse": true,
|
|
9759
|
-
"
|
|
9835
|
+
"updateFileResponse": true,
|
|
9760
9836
|
"searchFilesResponse": true,
|
|
9761
9837
|
"listTablesResponse": true,
|
|
9762
9838
|
"getTableResponse": true,
|
|
@@ -12142,7 +12218,7 @@ export const state = {
|
|
|
12142
12218
|
"deleteFile",
|
|
12143
12219
|
"listFiles",
|
|
12144
12220
|
"getFile",
|
|
12145
|
-
"
|
|
12221
|
+
"updateFile",
|
|
12146
12222
|
"searchFiles"
|
|
12147
12223
|
],
|
|
12148
12224
|
"schema": "File"
|