@botpress/api 0.26.3 → 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/dist/index.js +73 -90
- package/dist/src/gen/state.d.ts +25 -38
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +73 -90
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
|
-
"
|
|
8126
|
-
"type": "
|
|
8127
|
-
"
|
|
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
|
-
"
|
|
8129
|
+
"status": {
|
|
8140
8130
|
"type": "string",
|
|
8141
8131
|
"enum": [
|
|
8142
|
-
"
|
|
8143
|
-
"
|
|
8144
|
-
"
|
|
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
|
|
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
|
-
"
|
|
8141
|
+
"failedStatusReason": {
|
|
8149
8142
|
"type": "string",
|
|
8150
|
-
"description": "
|
|
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
|
|
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
|
-
"
|
|
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
|
-
"
|
|
8289
|
-
"type": "
|
|
8290
|
-
"
|
|
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
|
-
"
|
|
8286
|
+
"status": {
|
|
8303
8287
|
"type": "string",
|
|
8304
8288
|
"enum": [
|
|
8305
|
-
"
|
|
8306
|
-
"
|
|
8307
|
-
"
|
|
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
|
|
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
|
-
"
|
|
8298
|
+
"failedStatusReason": {
|
|
8312
8299
|
"type": "string",
|
|
8313
|
-
"description": "
|
|
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
|
-
"
|
|
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
|
-
"
|
|
8417
|
-
"type": "
|
|
8418
|
-
"
|
|
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
|
-
"
|
|
8408
|
+
"status": {
|
|
8431
8409
|
"type": "string",
|
|
8432
8410
|
"enum": [
|
|
8433
|
-
"
|
|
8434
|
-
"
|
|
8435
|
-
"
|
|
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
|
|
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
|
-
"
|
|
8420
|
+
"failedStatusReason": {
|
|
8440
8421
|
"type": "string",
|
|
8441
|
-
"description": "
|
|
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
|
-
"
|
|
8435
|
+
"index",
|
|
8436
|
+
"status"
|
|
8455
8437
|
],
|
|
8456
8438
|
"additionalProperties": false
|
|
8457
8439
|
}
|
|
@@ -9198,20 +9180,27 @@ export const state = {
|
|
|
9198
9180
|
"$ref": "#/components/schemas/Row"
|
|
9199
9181
|
}
|
|
9200
9182
|
},
|
|
9201
|
-
"
|
|
9202
|
-
"type": "
|
|
9203
|
-
"description": "
|
|
9183
|
+
"hasMore": {
|
|
9184
|
+
"type": "boolean",
|
|
9185
|
+
"description": "Flag indicating if there are more rows to fetch."
|
|
9204
9186
|
},
|
|
9205
9187
|
"offset": {
|
|
9206
9188
|
"type": "integer"
|
|
9207
9189
|
},
|
|
9208
9190
|
"limit": {
|
|
9209
9191
|
"type": "integer"
|
|
9192
|
+
},
|
|
9193
|
+
"warnings": {
|
|
9194
|
+
"type": "array",
|
|
9195
|
+
"items": {
|
|
9196
|
+
"type": "string"
|
|
9197
|
+
},
|
|
9198
|
+
"description": "Alerts for minor issues that don't block the operation but suggest possible improvements."
|
|
9210
9199
|
}
|
|
9211
9200
|
},
|
|
9212
9201
|
"required": [
|
|
9213
9202
|
"rows",
|
|
9214
|
-
"
|
|
9203
|
+
"hasMore",
|
|
9215
9204
|
"offset",
|
|
9216
9205
|
"limit"
|
|
9217
9206
|
],
|
|
@@ -9517,7 +9506,7 @@ export const state = {
|
|
|
9517
9506
|
"title": "Botpress API",
|
|
9518
9507
|
"description": "API for Botpress Cloud",
|
|
9519
9508
|
"server": "https://api.botpress.cloud",
|
|
9520
|
-
"version": "0.
|
|
9509
|
+
"version": "0.27.0",
|
|
9521
9510
|
"prefix": "v1"
|
|
9522
9511
|
},
|
|
9523
9512
|
"errors": [
|
|
@@ -11879,32 +11868,25 @@ export const state = {
|
|
|
11879
11868
|
},
|
|
11880
11869
|
"description": "Access policies configured for the file."
|
|
11881
11870
|
},
|
|
11882
|
-
"
|
|
11883
|
-
"type": "
|
|
11884
|
-
"
|
|
11885
|
-
"PENDING",
|
|
11886
|
-
"IN_PROGRESS",
|
|
11887
|
-
"COMPLETE",
|
|
11888
|
-
"FAILED"
|
|
11889
|
-
],
|
|
11890
|
-
"description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
|
|
11891
|
-
},
|
|
11892
|
-
"indexingFailureReason": {
|
|
11893
|
-
"type": "string",
|
|
11894
|
-
"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."
|
|
11895
11874
|
},
|
|
11896
|
-
"
|
|
11875
|
+
"status": {
|
|
11897
11876
|
"type": "string",
|
|
11898
11877
|
"enum": [
|
|
11899
|
-
"
|
|
11900
|
-
"
|
|
11901
|
-
"
|
|
11878
|
+
"UPLOAD_PENDING",
|
|
11879
|
+
"UPLOAD_FAILED",
|
|
11880
|
+
"UPLOAD_COMPLETED",
|
|
11881
|
+
"INDEXING_PENDING",
|
|
11882
|
+
"INDEXING_FAILED",
|
|
11883
|
+
"INDEXING_COMPLETED"
|
|
11902
11884
|
],
|
|
11903
|
-
"description": "Status of the file
|
|
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."
|
|
11904
11886
|
},
|
|
11905
|
-
"
|
|
11887
|
+
"failedStatusReason": {
|
|
11906
11888
|
"type": "string",
|
|
11907
|
-
"description": "
|
|
11889
|
+
"description": "If the file status is \"UPLOAD_FAILED\" or \"INDEXING_FAILED\" this will contain the reason of the failure."
|
|
11908
11890
|
}
|
|
11909
11891
|
},
|
|
11910
11892
|
"required": [
|
|
@@ -11917,7 +11899,8 @@ export const state = {
|
|
|
11917
11899
|
"createdAt",
|
|
11918
11900
|
"updatedAt",
|
|
11919
11901
|
"accessPolicies",
|
|
11920
|
-
"
|
|
11902
|
+
"index",
|
|
11903
|
+
"status"
|
|
11921
11904
|
],
|
|
11922
11905
|
"additionalProperties": false
|
|
11923
11906
|
}
|