@botpress/api 0.23.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/src/gen/state.ts CHANGED
@@ -587,6 +587,11 @@ export const state = {
587
587
  "in": "query",
588
588
  "type": "string",
589
589
  "description": "Filter by message id"
590
+ },
591
+ "status": {
592
+ "in": "query",
593
+ "type": "string",
594
+ "description": "Filter by status. Allowed values: pending, ignored, processed, failed."
590
595
  }
591
596
  },
592
597
  "response": {
@@ -8105,48 +8110,44 @@ export const state = {
8105
8110
  "schema": {
8106
8111
  "type": "object",
8107
8112
  "properties": {
8108
- "data": {
8109
- "nullable": true
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\"."
8110
8144
  }
8111
8145
  },
8112
8146
  "title": "createFileBody",
8113
- "format": "binary",
8114
8147
  "additionalProperties": false
8115
8148
  }
8116
8149
  },
8117
- "parameters": {
8118
- "x-name": {
8119
- "type": "string",
8120
- "description": "File name",
8121
- "in": "header"
8122
- },
8123
- "x-tags": {
8124
- "type": "string",
8125
- "description": "File tags as URL-encoded JSON string representing an object of key-value pairs.",
8126
- "in": "header"
8127
- },
8128
- "x-access-policies": {
8129
- "type": "string",
8130
- "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.",
8131
- "in": "header"
8132
- },
8133
- "x-index": {
8134
- "type": "boolean",
8135
- "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.",
8136
- "in": "header"
8137
- },
8138
- "Content-Type": {
8139
- "type": "string",
8140
- "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\".",
8141
- "in": "header"
8142
- },
8143
- "Content-Length": {
8144
- "type": "string",
8145
- "description": "File content length",
8146
- "in": "header"
8147
- }
8148
- },
8149
- "contentType": "*/*",
8150
+ "contentType": "application/json",
8150
8151
  "section": "files",
8151
8152
  "response": {
8152
8153
  "description": "The file metadata.",
@@ -8171,7 +8172,7 @@ export const state = {
8171
8172
  },
8172
8173
  "size": {
8173
8174
  "type": "number",
8174
- "description": "File size in bytes",
8175
+ "description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
8175
8176
  "nullable": true
8176
8177
  },
8177
8178
  "contentType": {
@@ -8214,6 +8215,23 @@ export const state = {
8214
8215
  "indexingFailureReason": {
8215
8216
  "type": "string",
8216
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."
8217
8235
  }
8218
8236
  },
8219
8237
  "required": [
@@ -8225,7 +8243,9 @@ export const state = {
8225
8243
  "tags",
8226
8244
  "createdAt",
8227
8245
  "updatedAt",
8228
- "accessPolicies"
8246
+ "accessPolicies",
8247
+ "uploadStatus",
8248
+ "uploadUrl"
8229
8249
  ],
8230
8250
  "additionalProperties": false
8231
8251
  }
@@ -8236,7 +8256,8 @@ export const state = {
8236
8256
  "title": "createFileResponse",
8237
8257
  "additionalProperties": false
8238
8258
  }
8239
- }
8259
+ },
8260
+ "parameters": {}
8240
8261
  },
8241
8262
  "deleteFile": {
8242
8263
  "name": "deleteFile",
@@ -8314,7 +8335,7 @@ export const state = {
8314
8335
  },
8315
8336
  "size": {
8316
8337
  "type": "number",
8317
- "description": "File size in bytes",
8338
+ "description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
8318
8339
  "nullable": true
8319
8340
  },
8320
8341
  "contentType": {
@@ -8357,6 +8378,19 @@ export const state = {
8357
8378
  "indexingFailureReason": {
8358
8379
  "type": "string",
8359
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\"."
8360
8394
  }
8361
8395
  },
8362
8396
  "required": [
@@ -8368,7 +8402,8 @@ export const state = {
8368
8402
  "tags",
8369
8403
  "createdAt",
8370
8404
  "updatedAt",
8371
- "accessPolicies"
8405
+ "accessPolicies",
8406
+ "uploadStatus"
8372
8407
  ]
8373
8408
  }
8374
8409
  },
@@ -8428,7 +8463,7 @@ export const state = {
8428
8463
  },
8429
8464
  "size": {
8430
8465
  "type": "number",
8431
- "description": "File size in bytes",
8466
+ "description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
8432
8467
  "nullable": true
8433
8468
  },
8434
8469
  "contentType": {
@@ -8471,6 +8506,19 @@ export const state = {
8471
8506
  "indexingFailureReason": {
8472
8507
  "type": "string",
8473
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\"."
8474
8522
  }
8475
8523
  },
8476
8524
  "required": [
@@ -8482,7 +8530,8 @@ export const state = {
8482
8530
  "tags",
8483
8531
  "createdAt",
8484
8532
  "updatedAt",
8485
- "accessPolicies"
8533
+ "accessPolicies",
8534
+ "uploadStatus"
8486
8535
  ],
8487
8536
  "additionalProperties": false
8488
8537
  }
@@ -9547,7 +9596,7 @@ export const state = {
9547
9596
  "title": "Botpress API",
9548
9597
  "description": "API for Botpress Cloud",
9549
9598
  "server": "https://api.botpress.cloud",
9550
- "version": "0.23.0",
9599
+ "version": "0.25.0",
9551
9600
  "prefix": "v1"
9552
9601
  },
9553
9602
  "errors": [
@@ -11875,7 +11924,7 @@ export const state = {
11875
11924
  },
11876
11925
  "size": {
11877
11926
  "type": "number",
11878
- "description": "File size in bytes",
11927
+ "description": "File size in bytes. Non-null if file upload status is \"COMPLETE\".",
11879
11928
  "nullable": true
11880
11929
  },
11881
11930
  "contentType": {
@@ -11918,6 +11967,19 @@ export const state = {
11918
11967
  "indexingFailureReason": {
11919
11968
  "type": "string",
11920
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\"."
11921
11983
  }
11922
11984
  },
11923
11985
  "required": [
@@ -11929,7 +11991,8 @@ export const state = {
11929
11991
  "tags",
11930
11992
  "createdAt",
11931
11993
  "updatedAt",
11932
- "accessPolicies"
11994
+ "accessPolicies",
11995
+ "uploadStatus"
11933
11996
  ],
11934
11997
  "additionalProperties": false
11935
11998
  }