@botpress/api 0.26.4 → 0.27.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
@@ -8122,36 +8122,29 @@ export const state = {
8122
8122
  },
8123
8123
  "description": "Access policies configured for the file."
8124
8124
  },
8125
- "indexingStatus": {
8126
- "type": "string",
8127
- "enum": [
8128
- "PENDING",
8129
- "IN_PROGRESS",
8130
- "COMPLETE",
8131
- "FAILED"
8132
- ],
8133
- "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
8134
- },
8135
- "indexingFailureReason": {
8136
- "type": "string",
8137
- "description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
8125
+ "index": {
8126
+ "type": "boolean",
8127
+ "description": "Whether the file was requested to be indexed for search or not."
8138
8128
  },
8139
- "uploadStatus": {
8129
+ "status": {
8140
8130
  "type": "string",
8141
8131
  "enum": [
8142
- "PENDING",
8143
- "COMPLETE",
8144
- "FAILED"
8132
+ "UPLOAD_PENDING",
8133
+ "UPLOAD_FAILED",
8134
+ "UPLOAD_COMPLETED",
8135
+ "INDEXING_PENDING",
8136
+ "INDEXING_FAILED",
8137
+ "INDEXING_COMPLETED"
8145
8138
  ],
8146
- "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."
8139
+ "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."
8147
8140
  },
8148
- "uploadFailureReason": {
8141
+ "failedStatusReason": {
8149
8142
  "type": "string",
8150
- "description": "Failure reason of the file upload if the upload status is \"FAILED\"."
8143
+ "description": "If the file status is \"UPLOAD_FAILED\" or \"INDEXING_FAILED\" this will contain the reason of the failure."
8151
8144
  },
8152
8145
  "uploadUrl": {
8153
8146
  "type": "string",
8154
- "description": "URL to upload the file content. File content needs to be sent to this URL via a POST request."
8147
+ "description": "URL to upload the file content. File content needs to be sent to this URL via a PUT request."
8155
8148
  }
8156
8149
  },
8157
8150
  "required": [
@@ -8164,7 +8157,8 @@ export const state = {
8164
8157
  "createdAt",
8165
8158
  "updatedAt",
8166
8159
  "accessPolicies",
8167
- "uploadStatus",
8160
+ "index",
8161
+ "status",
8168
8162
  "uploadUrl"
8169
8163
  ],
8170
8164
  "additionalProperties": false
@@ -8285,32 +8279,25 @@ export const state = {
8285
8279
  },
8286
8280
  "description": "Access policies configured for the file."
8287
8281
  },
8288
- "indexingStatus": {
8289
- "type": "string",
8290
- "enum": [
8291
- "PENDING",
8292
- "IN_PROGRESS",
8293
- "COMPLETE",
8294
- "FAILED"
8295
- ],
8296
- "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
8297
- },
8298
- "indexingFailureReason": {
8299
- "type": "string",
8300
- "description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
8282
+ "index": {
8283
+ "type": "boolean",
8284
+ "description": "Whether the file was requested to be indexed for search or not."
8301
8285
  },
8302
- "uploadStatus": {
8286
+ "status": {
8303
8287
  "type": "string",
8304
8288
  "enum": [
8305
- "PENDING",
8306
- "COMPLETE",
8307
- "FAILED"
8289
+ "UPLOAD_PENDING",
8290
+ "UPLOAD_FAILED",
8291
+ "UPLOAD_COMPLETED",
8292
+ "INDEXING_PENDING",
8293
+ "INDEXING_FAILED",
8294
+ "INDEXING_COMPLETED"
8308
8295
  ],
8309
- "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."
8296
+ "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."
8310
8297
  },
8311
- "uploadFailureReason": {
8298
+ "failedStatusReason": {
8312
8299
  "type": "string",
8313
- "description": "Failure reason of the file upload if the upload status is \"FAILED\"."
8300
+ "description": "If the file status is \"UPLOAD_FAILED\" or \"INDEXING_FAILED\" this will contain the reason of the failure."
8314
8301
  }
8315
8302
  },
8316
8303
  "required": [
@@ -8323,7 +8310,8 @@ export const state = {
8323
8310
  "createdAt",
8324
8311
  "updatedAt",
8325
8312
  "accessPolicies",
8326
- "uploadStatus"
8313
+ "index",
8314
+ "status"
8327
8315
  ]
8328
8316
  }
8329
8317
  },
@@ -8413,32 +8401,25 @@ export const state = {
8413
8401
  },
8414
8402
  "description": "Access policies configured for the file."
8415
8403
  },
8416
- "indexingStatus": {
8417
- "type": "string",
8418
- "enum": [
8419
- "PENDING",
8420
- "IN_PROGRESS",
8421
- "COMPLETE",
8422
- "FAILED"
8423
- ],
8424
- "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
8425
- },
8426
- "indexingFailureReason": {
8427
- "type": "string",
8428
- "description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
8404
+ "index": {
8405
+ "type": "boolean",
8406
+ "description": "Whether the file was requested to be indexed for search or not."
8429
8407
  },
8430
- "uploadStatus": {
8408
+ "status": {
8431
8409
  "type": "string",
8432
8410
  "enum": [
8433
- "PENDING",
8434
- "COMPLETE",
8435
- "FAILED"
8411
+ "UPLOAD_PENDING",
8412
+ "UPLOAD_FAILED",
8413
+ "UPLOAD_COMPLETED",
8414
+ "INDEXING_PENDING",
8415
+ "INDEXING_FAILED",
8416
+ "INDEXING_COMPLETED"
8436
8417
  ],
8437
- "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."
8418
+ "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."
8438
8419
  },
8439
- "uploadFailureReason": {
8420
+ "failedStatusReason": {
8440
8421
  "type": "string",
8441
- "description": "Failure reason of the file upload if the upload status is \"FAILED\"."
8422
+ "description": "If the file status is \"UPLOAD_FAILED\" or \"INDEXING_FAILED\" this will contain the reason of the failure."
8442
8423
  }
8443
8424
  },
8444
8425
  "required": [
@@ -8451,7 +8432,8 @@ export const state = {
8451
8432
  "createdAt",
8452
8433
  "updatedAt",
8453
8434
  "accessPolicies",
8454
- "uploadStatus"
8435
+ "index",
8436
+ "status"
8455
8437
  ],
8456
8438
  "additionalProperties": false
8457
8439
  }
@@ -9524,7 +9506,7 @@ export const state = {
9524
9506
  "title": "Botpress API",
9525
9507
  "description": "API for Botpress Cloud",
9526
9508
  "server": "https://api.botpress.cloud",
9527
- "version": "0.26.4",
9509
+ "version": "0.27.0",
9528
9510
  "prefix": "v1"
9529
9511
  },
9530
9512
  "errors": [
@@ -11886,32 +11868,25 @@ export const state = {
11886
11868
  },
11887
11869
  "description": "Access policies configured for the file."
11888
11870
  },
11889
- "indexingStatus": {
11890
- "type": "string",
11891
- "enum": [
11892
- "PENDING",
11893
- "IN_PROGRESS",
11894
- "COMPLETE",
11895
- "FAILED"
11896
- ],
11897
- "description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
11898
- },
11899
- "indexingFailureReason": {
11900
- "type": "string",
11901
- "description": "Last failure reason of the file indexing if the indexing status is \"FAILED\"."
11871
+ "index": {
11872
+ "type": "boolean",
11873
+ "description": "Whether the file was requested to be indexed for search or not."
11902
11874
  },
11903
- "uploadStatus": {
11875
+ "status": {
11904
11876
  "type": "string",
11905
11877
  "enum": [
11906
- "PENDING",
11907
- "COMPLETE",
11908
- "FAILED"
11878
+ "UPLOAD_PENDING",
11879
+ "UPLOAD_FAILED",
11880
+ "UPLOAD_COMPLETED",
11881
+ "INDEXING_PENDING",
11882
+ "INDEXING_FAILED",
11883
+ "INDEXING_COMPLETED"
11909
11884
  ],
11910
- "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."
11885
+ "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."
11911
11886
  },
11912
- "uploadFailureReason": {
11887
+ "failedStatusReason": {
11913
11888
  "type": "string",
11914
- "description": "Failure reason of the file upload if the upload status is \"FAILED\"."
11889
+ "description": "If the file status is \"UPLOAD_FAILED\" or \"INDEXING_FAILED\" this will contain the reason of the failure."
11915
11890
  }
11916
11891
  },
11917
11892
  "required": [
@@ -11924,7 +11899,8 @@ export const state = {
11924
11899
  "createdAt",
11925
11900
  "updatedAt",
11926
11901
  "accessPolicies",
11927
- "uploadStatus"
11902
+ "index",
11903
+ "status"
11928
11904
  ],
11929
11905
  "additionalProperties": false
11930
11906
  }