@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/dist/index.js
CHANGED
|
@@ -280846,36 +280846,29 @@ var state = {
|
|
|
280846
280846
|
},
|
|
280847
280847
|
"description": "Access policies configured for the file."
|
|
280848
280848
|
},
|
|
280849
|
-
"
|
|
280850
|
-
"type": "
|
|
280851
|
-
"
|
|
280852
|
-
"PENDING",
|
|
280853
|
-
"IN_PROGRESS",
|
|
280854
|
-
"COMPLETE",
|
|
280855
|
-
"FAILED"
|
|
280856
|
-
],
|
|
280857
|
-
"description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
|
|
280858
|
-
},
|
|
280859
|
-
"indexingFailureReason": {
|
|
280860
|
-
"type": "string",
|
|
280861
|
-
"description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
|
|
280849
|
+
"index": {
|
|
280850
|
+
"type": "boolean",
|
|
280851
|
+
"description": "Whether the file was requested to be indexed for search or not."
|
|
280862
280852
|
},
|
|
280863
|
-
"
|
|
280853
|
+
"status": {
|
|
280864
280854
|
"type": "string",
|
|
280865
280855
|
"enum": [
|
|
280866
|
-
"
|
|
280867
|
-
"
|
|
280868
|
-
"
|
|
280856
|
+
"UPLOAD_PENDING",
|
|
280857
|
+
"UPLOAD_FAILED",
|
|
280858
|
+
"UPLOAD_COMPLETED",
|
|
280859
|
+
"INDEXING_PENDING",
|
|
280860
|
+
"INDEXING_FAILED",
|
|
280861
|
+
"INDEXING_COMPLETED"
|
|
280869
280862
|
],
|
|
280870
|
-
"description": 'Status of the file
|
|
280863
|
+
"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.'
|
|
280871
280864
|
},
|
|
280872
|
-
"
|
|
280865
|
+
"failedStatusReason": {
|
|
280873
280866
|
"type": "string",
|
|
280874
|
-
"description": '
|
|
280867
|
+
"description": 'If the file status is "UPLOAD_FAILED" or "INDEXING_FAILED" this will contain the reason of the failure.'
|
|
280875
280868
|
},
|
|
280876
280869
|
"uploadUrl": {
|
|
280877
280870
|
"type": "string",
|
|
280878
|
-
"description": "URL to upload the file content. File content needs to be sent to this URL via a
|
|
280871
|
+
"description": "URL to upload the file content. File content needs to be sent to this URL via a PUT request."
|
|
280879
280872
|
}
|
|
280880
280873
|
},
|
|
280881
280874
|
"required": [
|
|
@@ -280888,7 +280881,8 @@ var state = {
|
|
|
280888
280881
|
"createdAt",
|
|
280889
280882
|
"updatedAt",
|
|
280890
280883
|
"accessPolicies",
|
|
280891
|
-
"
|
|
280884
|
+
"index",
|
|
280885
|
+
"status",
|
|
280892
280886
|
"uploadUrl"
|
|
280893
280887
|
],
|
|
280894
280888
|
"additionalProperties": false
|
|
@@ -281009,32 +281003,25 @@ var state = {
|
|
|
281009
281003
|
},
|
|
281010
281004
|
"description": "Access policies configured for the file."
|
|
281011
281005
|
},
|
|
281012
|
-
"
|
|
281013
|
-
"type": "
|
|
281014
|
-
"
|
|
281015
|
-
"PENDING",
|
|
281016
|
-
"IN_PROGRESS",
|
|
281017
|
-
"COMPLETE",
|
|
281018
|
-
"FAILED"
|
|
281019
|
-
],
|
|
281020
|
-
"description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
|
|
281021
|
-
},
|
|
281022
|
-
"indexingFailureReason": {
|
|
281023
|
-
"type": "string",
|
|
281024
|
-
"description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
|
|
281006
|
+
"index": {
|
|
281007
|
+
"type": "boolean",
|
|
281008
|
+
"description": "Whether the file was requested to be indexed for search or not."
|
|
281025
281009
|
},
|
|
281026
|
-
"
|
|
281010
|
+
"status": {
|
|
281027
281011
|
"type": "string",
|
|
281028
281012
|
"enum": [
|
|
281029
|
-
"
|
|
281030
|
-
"
|
|
281031
|
-
"
|
|
281013
|
+
"UPLOAD_PENDING",
|
|
281014
|
+
"UPLOAD_FAILED",
|
|
281015
|
+
"UPLOAD_COMPLETED",
|
|
281016
|
+
"INDEXING_PENDING",
|
|
281017
|
+
"INDEXING_FAILED",
|
|
281018
|
+
"INDEXING_COMPLETED"
|
|
281032
281019
|
],
|
|
281033
|
-
"description": 'Status of the file
|
|
281020
|
+
"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.'
|
|
281034
281021
|
},
|
|
281035
|
-
"
|
|
281022
|
+
"failedStatusReason": {
|
|
281036
281023
|
"type": "string",
|
|
281037
|
-
"description": '
|
|
281024
|
+
"description": 'If the file status is "UPLOAD_FAILED" or "INDEXING_FAILED" this will contain the reason of the failure.'
|
|
281038
281025
|
}
|
|
281039
281026
|
},
|
|
281040
281027
|
"required": [
|
|
@@ -281047,7 +281034,8 @@ var state = {
|
|
|
281047
281034
|
"createdAt",
|
|
281048
281035
|
"updatedAt",
|
|
281049
281036
|
"accessPolicies",
|
|
281050
|
-
"
|
|
281037
|
+
"index",
|
|
281038
|
+
"status"
|
|
281051
281039
|
]
|
|
281052
281040
|
}
|
|
281053
281041
|
},
|
|
@@ -281137,32 +281125,25 @@ var state = {
|
|
|
281137
281125
|
},
|
|
281138
281126
|
"description": "Access policies configured for the file."
|
|
281139
281127
|
},
|
|
281140
|
-
"
|
|
281141
|
-
"type": "
|
|
281142
|
-
"
|
|
281143
|
-
"PENDING",
|
|
281144
|
-
"IN_PROGRESS",
|
|
281145
|
-
"COMPLETE",
|
|
281146
|
-
"FAILED"
|
|
281147
|
-
],
|
|
281148
|
-
"description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
|
|
281149
|
-
},
|
|
281150
|
-
"indexingFailureReason": {
|
|
281151
|
-
"type": "string",
|
|
281152
|
-
"description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
|
|
281128
|
+
"index": {
|
|
281129
|
+
"type": "boolean",
|
|
281130
|
+
"description": "Whether the file was requested to be indexed for search or not."
|
|
281153
281131
|
},
|
|
281154
|
-
"
|
|
281132
|
+
"status": {
|
|
281155
281133
|
"type": "string",
|
|
281156
281134
|
"enum": [
|
|
281157
|
-
"
|
|
281158
|
-
"
|
|
281159
|
-
"
|
|
281135
|
+
"UPLOAD_PENDING",
|
|
281136
|
+
"UPLOAD_FAILED",
|
|
281137
|
+
"UPLOAD_COMPLETED",
|
|
281138
|
+
"INDEXING_PENDING",
|
|
281139
|
+
"INDEXING_FAILED",
|
|
281140
|
+
"INDEXING_COMPLETED"
|
|
281160
281141
|
],
|
|
281161
|
-
"description": 'Status of the file
|
|
281142
|
+
"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.'
|
|
281162
281143
|
},
|
|
281163
|
-
"
|
|
281144
|
+
"failedStatusReason": {
|
|
281164
281145
|
"type": "string",
|
|
281165
|
-
"description": '
|
|
281146
|
+
"description": 'If the file status is "UPLOAD_FAILED" or "INDEXING_FAILED" this will contain the reason of the failure.'
|
|
281166
281147
|
}
|
|
281167
281148
|
},
|
|
281168
281149
|
"required": [
|
|
@@ -281175,7 +281156,8 @@ var state = {
|
|
|
281175
281156
|
"createdAt",
|
|
281176
281157
|
"updatedAt",
|
|
281177
281158
|
"accessPolicies",
|
|
281178
|
-
"
|
|
281159
|
+
"index",
|
|
281160
|
+
"status"
|
|
281179
281161
|
],
|
|
281180
281162
|
"additionalProperties": false
|
|
281181
281163
|
}
|
|
@@ -281922,20 +281904,27 @@ var state = {
|
|
|
281922
281904
|
"$ref": "#/components/schemas/Row"
|
|
281923
281905
|
}
|
|
281924
281906
|
},
|
|
281925
|
-
"
|
|
281926
|
-
"type": "
|
|
281927
|
-
"description": "
|
|
281907
|
+
"hasMore": {
|
|
281908
|
+
"type": "boolean",
|
|
281909
|
+
"description": "Flag indicating if there are more rows to fetch."
|
|
281928
281910
|
},
|
|
281929
281911
|
"offset": {
|
|
281930
281912
|
"type": "integer"
|
|
281931
281913
|
},
|
|
281932
281914
|
"limit": {
|
|
281933
281915
|
"type": "integer"
|
|
281916
|
+
},
|
|
281917
|
+
"warnings": {
|
|
281918
|
+
"type": "array",
|
|
281919
|
+
"items": {
|
|
281920
|
+
"type": "string"
|
|
281921
|
+
},
|
|
281922
|
+
"description": "Alerts for minor issues that don't block the operation but suggest possible improvements."
|
|
281934
281923
|
}
|
|
281935
281924
|
},
|
|
281936
281925
|
"required": [
|
|
281937
281926
|
"rows",
|
|
281938
|
-
"
|
|
281927
|
+
"hasMore",
|
|
281939
281928
|
"offset",
|
|
281940
281929
|
"limit"
|
|
281941
281930
|
],
|
|
@@ -282241,7 +282230,7 @@ var state = {
|
|
|
282241
282230
|
"title": "Botpress API",
|
|
282242
282231
|
"description": "API for Botpress Cloud",
|
|
282243
282232
|
"server": "https://api.botpress.cloud",
|
|
282244
|
-
"version": "0.
|
|
282233
|
+
"version": "0.27.0",
|
|
282245
282234
|
"prefix": "v1"
|
|
282246
282235
|
},
|
|
282247
282236
|
"errors": [
|
|
@@ -284603,32 +284592,25 @@ var state = {
|
|
|
284603
284592
|
},
|
|
284604
284593
|
"description": "Access policies configured for the file."
|
|
284605
284594
|
},
|
|
284606
|
-
"
|
|
284607
|
-
"type": "
|
|
284608
|
-
"
|
|
284609
|
-
"PENDING",
|
|
284610
|
-
"IN_PROGRESS",
|
|
284611
|
-
"COMPLETE",
|
|
284612
|
-
"FAILED"
|
|
284613
|
-
],
|
|
284614
|
-
"description": "Status of the file indexing process. No value will be set if indexing was not enabled for the file when it was created."
|
|
284615
|
-
},
|
|
284616
|
-
"indexingFailureReason": {
|
|
284617
|
-
"type": "string",
|
|
284618
|
-
"description": 'Last failure reason of the file indexing if the indexing status is "FAILED".'
|
|
284595
|
+
"index": {
|
|
284596
|
+
"type": "boolean",
|
|
284597
|
+
"description": "Whether the file was requested to be indexed for search or not."
|
|
284619
284598
|
},
|
|
284620
|
-
"
|
|
284599
|
+
"status": {
|
|
284621
284600
|
"type": "string",
|
|
284622
284601
|
"enum": [
|
|
284623
|
-
"
|
|
284624
|
-
"
|
|
284625
|
-
"
|
|
284602
|
+
"UPLOAD_PENDING",
|
|
284603
|
+
"UPLOAD_FAILED",
|
|
284604
|
+
"UPLOAD_COMPLETED",
|
|
284605
|
+
"INDEXING_PENDING",
|
|
284606
|
+
"INDEXING_FAILED",
|
|
284607
|
+
"INDEXING_COMPLETED"
|
|
284626
284608
|
],
|
|
284627
|
-
"description": 'Status of the file
|
|
284609
|
+
"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.'
|
|
284628
284610
|
},
|
|
284629
|
-
"
|
|
284611
|
+
"failedStatusReason": {
|
|
284630
284612
|
"type": "string",
|
|
284631
|
-
"description": '
|
|
284613
|
+
"description": 'If the file status is "UPLOAD_FAILED" or "INDEXING_FAILED" this will contain the reason of the failure.'
|
|
284632
284614
|
}
|
|
284633
284615
|
},
|
|
284634
284616
|
"required": [
|
|
@@ -284641,7 +284623,8 @@ var state = {
|
|
|
284641
284623
|
"createdAt",
|
|
284642
284624
|
"updatedAt",
|
|
284643
284625
|
"accessPolicies",
|
|
284644
|
-
"
|
|
284626
|
+
"index",
|
|
284627
|
+
"status"
|
|
284645
284628
|
],
|
|
284646
284629
|
"additionalProperties": false
|
|
284647
284630
|
}
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -7158,21 +7158,16 @@ export declare const state: {
|
|
|
7158
7158
|
};
|
|
7159
7159
|
description: string;
|
|
7160
7160
|
};
|
|
7161
|
-
|
|
7162
|
-
type: "
|
|
7163
|
-
enum: string[];
|
|
7164
|
-
description: string;
|
|
7165
|
-
};
|
|
7166
|
-
indexingFailureReason: {
|
|
7167
|
-
type: "string";
|
|
7161
|
+
index: {
|
|
7162
|
+
type: "boolean";
|
|
7168
7163
|
description: string;
|
|
7169
7164
|
};
|
|
7170
|
-
|
|
7165
|
+
status: {
|
|
7171
7166
|
type: "string";
|
|
7172
7167
|
enum: string[];
|
|
7173
7168
|
description: string;
|
|
7174
7169
|
};
|
|
7175
|
-
|
|
7170
|
+
failedStatusReason: {
|
|
7176
7171
|
type: "string";
|
|
7177
7172
|
description: string;
|
|
7178
7173
|
};
|
|
@@ -7298,21 +7293,16 @@ export declare const state: {
|
|
|
7298
7293
|
};
|
|
7299
7294
|
description: string;
|
|
7300
7295
|
};
|
|
7301
|
-
|
|
7302
|
-
type: "
|
|
7303
|
-
enum: string[];
|
|
7304
|
-
description: string;
|
|
7305
|
-
};
|
|
7306
|
-
indexingFailureReason: {
|
|
7307
|
-
type: "string";
|
|
7296
|
+
index: {
|
|
7297
|
+
type: "boolean";
|
|
7308
7298
|
description: string;
|
|
7309
7299
|
};
|
|
7310
|
-
|
|
7300
|
+
status: {
|
|
7311
7301
|
type: "string";
|
|
7312
7302
|
enum: string[];
|
|
7313
7303
|
description: string;
|
|
7314
7304
|
};
|
|
7315
|
-
|
|
7305
|
+
failedStatusReason: {
|
|
7316
7306
|
type: "string";
|
|
7317
7307
|
description: string;
|
|
7318
7308
|
};
|
|
@@ -7403,21 +7393,16 @@ export declare const state: {
|
|
|
7403
7393
|
};
|
|
7404
7394
|
description: string;
|
|
7405
7395
|
};
|
|
7406
|
-
|
|
7407
|
-
type: "
|
|
7408
|
-
enum: string[];
|
|
7409
|
-
description: string;
|
|
7410
|
-
};
|
|
7411
|
-
indexingFailureReason: {
|
|
7412
|
-
type: "string";
|
|
7396
|
+
index: {
|
|
7397
|
+
type: "boolean";
|
|
7413
7398
|
description: string;
|
|
7414
7399
|
};
|
|
7415
|
-
|
|
7400
|
+
status: {
|
|
7416
7401
|
type: "string";
|
|
7417
7402
|
enum: string[];
|
|
7418
7403
|
description: string;
|
|
7419
7404
|
};
|
|
7420
|
-
|
|
7405
|
+
failedStatusReason: {
|
|
7421
7406
|
type: "string";
|
|
7422
7407
|
description: string;
|
|
7423
7408
|
};
|
|
@@ -8115,8 +8100,8 @@ export declare const state: {
|
|
|
8115
8100
|
$ref: string;
|
|
8116
8101
|
};
|
|
8117
8102
|
};
|
|
8118
|
-
|
|
8119
|
-
type: "
|
|
8103
|
+
hasMore: {
|
|
8104
|
+
type: "boolean";
|
|
8120
8105
|
description: string;
|
|
8121
8106
|
};
|
|
8122
8107
|
offset: {
|
|
@@ -8125,6 +8110,13 @@ export declare const state: {
|
|
|
8125
8110
|
limit: {
|
|
8126
8111
|
type: "integer";
|
|
8127
8112
|
};
|
|
8113
|
+
warnings: {
|
|
8114
|
+
type: "array";
|
|
8115
|
+
items: {
|
|
8116
|
+
type: "string";
|
|
8117
|
+
};
|
|
8118
|
+
description: string;
|
|
8119
|
+
};
|
|
8128
8120
|
};
|
|
8129
8121
|
required: string[];
|
|
8130
8122
|
title: string;
|
|
@@ -10346,21 +10338,16 @@ export declare const state: {
|
|
|
10346
10338
|
};
|
|
10347
10339
|
description: string;
|
|
10348
10340
|
};
|
|
10349
|
-
|
|
10350
|
-
type: "
|
|
10351
|
-
enum: string[];
|
|
10352
|
-
description: string;
|
|
10353
|
-
};
|
|
10354
|
-
indexingFailureReason: {
|
|
10355
|
-
type: "string";
|
|
10341
|
+
index: {
|
|
10342
|
+
type: "boolean";
|
|
10356
10343
|
description: string;
|
|
10357
10344
|
};
|
|
10358
|
-
|
|
10345
|
+
status: {
|
|
10359
10346
|
type: "string";
|
|
10360
10347
|
enum: string[];
|
|
10361
10348
|
description: string;
|
|
10362
10349
|
};
|
|
10363
|
-
|
|
10350
|
+
failedStatusReason: {
|
|
10364
10351
|
type: "string";
|
|
10365
10352
|
description: string;
|
|
10366
10353
|
};
|