@botpress/api 1.13.0 → 1.14.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 CHANGED
@@ -284126,7 +284126,7 @@ var state = {
284126
284126
  "title": "Botpress API",
284127
284127
  "description": "API for Botpress Cloud",
284128
284128
  "server": "https://api.botpress.cloud",
284129
- "version": "1.13.0",
284129
+ "version": "1.14.0",
284130
284130
  "prefix": "v1"
284131
284131
  },
284132
284132
  "errors": [
@@ -292648,6 +292648,12 @@ var state2 = {
292648
292648
  "type": "string",
292649
292649
  "required": false
292650
292650
  },
292651
+ "messageContains": {
292652
+ "in": "query",
292653
+ "description": "Filter logs where the message contains this substring",
292654
+ "type": "string",
292655
+ "required": false
292656
+ },
292651
292657
  "nextToken": {
292652
292658
  "in": "query",
292653
292659
  "description": "Token to get the next page of logs",
@@ -298373,6 +298379,12 @@ var state2 = {
298373
298379
  "type": "string",
298374
298380
  "required": false
298375
298381
  },
298382
+ "messageContains": {
298383
+ "in": "query",
298384
+ "description": "Filter logs where the message contains this substring",
298385
+ "type": "string",
298386
+ "required": false
298387
+ },
298376
298388
  "nextToken": {
298377
298389
  "in": "query",
298378
298390
  "description": "Token to get the next page of logs",
@@ -300675,7 +300687,7 @@ var state2 = {
300675
300687
  "title": "Botpress API",
300676
300688
  "description": "API for Botpress Cloud",
300677
300689
  "server": "https://api.botpress.cloud",
300678
- "version": "1.13.0",
300690
+ "version": "1.14.0",
300679
300691
  "prefix": "v1"
300680
300692
  },
300681
300693
  "errors": [
@@ -305818,6 +305830,76 @@ var state3 = {
305818
305830
  }
305819
305831
  }
305820
305832
  },
305833
+ "setFilePassages": {
305834
+ "name": "setFilePassages",
305835
+ "path": "/v1/files/{id}/passages",
305836
+ "description": 'Sets the indexed file passages asynchronously. All existing indexed passages will be deleted as soon as the indexing begins. This endpoint will return immediately and set the file status to "indexing_pending". Once the new passages are indexed the file status will be set to "indexing_completed", or "indexing_failed" if the passages failed to be indexed.',
305837
+ "method": "put",
305838
+ "section": "files",
305839
+ "parameters": {
305840
+ "id": {
305841
+ "type": "string",
305842
+ "description": "File ID or Key",
305843
+ "in": "path"
305844
+ }
305845
+ },
305846
+ "requestBody": {
305847
+ "description": "List of passages to index for the file. These will replacing all the existing passages. Indexing of the new passages will be done asynchronously in the background. You can check the file status to see when the indexing is complete.",
305848
+ "schema": {
305849
+ "type": "object",
305850
+ "properties": {
305851
+ "passages": {
305852
+ "type": "array",
305853
+ "items": {
305854
+ "type": "object",
305855
+ "properties": {
305856
+ "content": {
305857
+ "type": "string",
305858
+ "description": "The content of the passage, supports Markdown formatting."
305859
+ },
305860
+ "type": {
305861
+ "default": "paragraph",
305862
+ "type": "string",
305863
+ "enum": [
305864
+ "title",
305865
+ "subtitle",
305866
+ "paragraph",
305867
+ "blockquote",
305868
+ "list",
305869
+ "table",
305870
+ "code",
305871
+ "image"
305872
+ ],
305873
+ "description": "The type should match the Markdown format used for the passage content."
305874
+ },
305875
+ "pageNumber": {
305876
+ "type": "integer"
305877
+ }
305878
+ },
305879
+ "required": [
305880
+ "content"
305881
+ ]
305882
+ },
305883
+ "description": "Note: The passages should appear in the array in the same order as they appear in the original document."
305884
+ }
305885
+ },
305886
+ "required": [
305887
+ "passages"
305888
+ ],
305889
+ "title": "setFilePassagesBody",
305890
+ "additionalProperties": false
305891
+ }
305892
+ },
305893
+ "contentType": "application/json",
305894
+ "response": {
305895
+ "description": "Empty response.",
305896
+ "schema": {
305897
+ "type": "object",
305898
+ "title": "setFilePassagesResponse",
305899
+ "additionalProperties": false
305900
+ }
305901
+ }
305902
+ },
305821
305903
  "listFileTags": {
305822
305904
  "name": "listFileTags",
305823
305905
  "path": "/v1/files/tags",
@@ -306121,7 +306203,7 @@ var state3 = {
306121
306203
  "title": "Botpress API",
306122
306204
  "description": "API for Botpress Cloud",
306123
306205
  "server": "https://api.botpress.cloud",
306124
- "version": "1.13.0",
306206
+ "version": "1.14.0",
306125
306207
  "prefix": "v1"
306126
306208
  },
306127
306209
  "errors": [
@@ -306252,6 +306334,7 @@ var state3 = {
306252
306334
  "upsertFileBody": true,
306253
306335
  "updateFileMetadataBody": true,
306254
306336
  "copyFileBody": true,
306337
+ "setFilePassagesBody": true,
306255
306338
  "createKnowledgeBaseBody": true,
306256
306339
  "updateKnowledgeBaseBody": true
306257
306340
  },
@@ -306264,6 +306347,7 @@ var state3 = {
306264
306347
  "copyFileResponse": true,
306265
306348
  "searchFilesResponse": true,
306266
306349
  "listFilePassagesResponse": true,
306350
+ "setFilePassagesResponse": true,
306267
306351
  "listFileTagsResponse": true,
306268
306352
  "listFileTagValuesResponse": true,
306269
306353
  "createKnowledgeBaseResponse": true,
@@ -309775,6 +309859,7 @@ var state3 = {
309775
309859
  "copyFile",
309776
309860
  "searchFiles",
309777
309861
  "listFilePassages",
309862
+ "setFilePassages",
309778
309863
  "listFileTags",
309779
309864
  "listFileTagValues",
309780
309865
  "createKnowledgeBase",
@@ -311008,7 +311093,7 @@ var state4 = {
311008
311093
  "title": "Botpress API",
311009
311094
  "description": "API for Botpress Cloud",
311010
311095
  "server": "https://api.botpress.cloud",
311011
- "version": "1.13.0",
311096
+ "version": "1.14.0",
311012
311097
  "prefix": "v1"
311013
311098
  },
311014
311099
  "errors": [
@@ -322048,6 +322133,12 @@ var state5 = {
322048
322133
  "type": "string",
322049
322134
  "required": false
322050
322135
  },
322136
+ "messageContains": {
322137
+ "in": "query",
322138
+ "description": "Filter logs where the message contains this substring",
322139
+ "type": "string",
322140
+ "required": false
322141
+ },
322051
322142
  "nextToken": {
322052
322143
  "in": "query",
322053
322144
  "description": "Token to get the next page of logs",
@@ -327774,6 +327865,12 @@ var state5 = {
327774
327865
  "type": "string",
327775
327866
  "required": false
327776
327867
  },
327868
+ "messageContains": {
327869
+ "in": "query",
327870
+ "description": "Filter logs where the message contains this substring",
327871
+ "type": "string",
327872
+ "required": false
327873
+ },
327777
327874
  "nextToken": {
327778
327875
  "in": "query",
327779
327876
  "description": "Token to get the next page of logs",
@@ -331342,6 +331439,76 @@ var state5 = {
331342
331439
  }
331343
331440
  }
331344
331441
  },
331442
+ "setFilePassages": {
331443
+ "name": "setFilePassages",
331444
+ "path": "/v1/files/{id}/passages",
331445
+ "description": 'Sets the indexed file passages asynchronously. All existing indexed passages will be deleted as soon as the indexing begins. This endpoint will return immediately and set the file status to "indexing_pending". Once the new passages are indexed the file status will be set to "indexing_completed", or "indexing_failed" if the passages failed to be indexed.',
331446
+ "method": "put",
331447
+ "section": "files",
331448
+ "parameters": {
331449
+ "id": {
331450
+ "type": "string",
331451
+ "description": "File ID or Key",
331452
+ "in": "path"
331453
+ }
331454
+ },
331455
+ "requestBody": {
331456
+ "description": "List of passages to index for the file. These will replacing all the existing passages. Indexing of the new passages will be done asynchronously in the background. You can check the file status to see when the indexing is complete.",
331457
+ "schema": {
331458
+ "type": "object",
331459
+ "properties": {
331460
+ "passages": {
331461
+ "type": "array",
331462
+ "items": {
331463
+ "type": "object",
331464
+ "properties": {
331465
+ "content": {
331466
+ "type": "string",
331467
+ "description": "The content of the passage, supports Markdown formatting."
331468
+ },
331469
+ "type": {
331470
+ "default": "paragraph",
331471
+ "type": "string",
331472
+ "enum": [
331473
+ "title",
331474
+ "subtitle",
331475
+ "paragraph",
331476
+ "blockquote",
331477
+ "list",
331478
+ "table",
331479
+ "code",
331480
+ "image"
331481
+ ],
331482
+ "description": "The type should match the Markdown format used for the passage content."
331483
+ },
331484
+ "pageNumber": {
331485
+ "type": "integer"
331486
+ }
331487
+ },
331488
+ "required": [
331489
+ "content"
331490
+ ]
331491
+ },
331492
+ "description": "Note: The passages should appear in the array in the same order as they appear in the original document."
331493
+ }
331494
+ },
331495
+ "required": [
331496
+ "passages"
331497
+ ],
331498
+ "title": "setFilePassagesBody",
331499
+ "additionalProperties": false
331500
+ }
331501
+ },
331502
+ "contentType": "application/json",
331503
+ "response": {
331504
+ "description": "Empty response.",
331505
+ "schema": {
331506
+ "type": "object",
331507
+ "title": "setFilePassagesResponse",
331508
+ "additionalProperties": false
331509
+ }
331510
+ }
331511
+ },
331345
331512
  "listFileTags": {
331346
331513
  "name": "listFileTags",
331347
331514
  "path": "/v1/files/tags",
@@ -332851,7 +333018,7 @@ var state5 = {
332851
333018
  "title": "Botpress API",
332852
333019
  "description": "API for Botpress Cloud",
332853
333020
  "server": "https://api.botpress.cloud",
332854
- "version": "1.13.0",
333021
+ "version": "1.14.0",
332855
333022
  "prefix": "v1"
332856
333023
  },
332857
333024
  "errors": [
@@ -333034,6 +333201,7 @@ var state5 = {
333034
333201
  "upsertFileBody": true,
333035
333202
  "updateFileMetadataBody": true,
333036
333203
  "copyFileBody": true,
333204
+ "setFilePassagesBody": true,
333037
333205
  "createKnowledgeBaseBody": true,
333038
333206
  "updateKnowledgeBaseBody": true,
333039
333207
  "getOrCreateTableBody": true,
@@ -333199,6 +333367,7 @@ var state5 = {
333199
333367
  "copyFileResponse": true,
333200
333368
  "searchFilesResponse": true,
333201
333369
  "listFilePassagesResponse": true,
333370
+ "setFilePassagesResponse": true,
333202
333371
  "listFileTagsResponse": true,
333203
333372
  "listFileTagValuesResponse": true,
333204
333373
  "createKnowledgeBaseResponse": true,
@@ -336903,6 +337072,7 @@ var state5 = {
336903
337072
  "copyFile",
336904
337073
  "searchFiles",
336905
337074
  "listFilePassages",
337075
+ "setFilePassages",
336906
337076
  "listFileTags",
336907
337077
  "listFileTagValues",
336908
337078
  "createKnowledgeBase",
@@ -4186,6 +4186,12 @@ export declare const state: {
4186
4186
  type: "string";
4187
4187
  required: false;
4188
4188
  };
4189
+ messageContains: {
4190
+ in: "query";
4191
+ description: string;
4192
+ type: "string";
4193
+ required: false;
4194
+ };
4189
4195
  nextToken: {
4190
4196
  in: "query";
4191
4197
  description: string;
@@ -9209,6 +9215,12 @@ export declare const state: {
9209
9215
  type: "string";
9210
9216
  required: false;
9211
9217
  };
9218
+ messageContains: {
9219
+ in: "query";
9220
+ description: string;
9221
+ type: "string";
9222
+ required: false;
9223
+ };
9212
9224
  nextToken: {
9213
9225
  in: "query";
9214
9226
  description: string;
@@ -1056,6 +1056,63 @@ export declare const state: {
1056
1056
  };
1057
1057
  };
1058
1058
  };
1059
+ setFilePassages: {
1060
+ name: string;
1061
+ path: string;
1062
+ description: string;
1063
+ method: "put";
1064
+ section: "files";
1065
+ parameters: {
1066
+ id: {
1067
+ type: "string";
1068
+ description: string;
1069
+ in: "path";
1070
+ };
1071
+ };
1072
+ requestBody: {
1073
+ description: string;
1074
+ schema: {
1075
+ type: "object";
1076
+ properties: {
1077
+ passages: {
1078
+ type: "array";
1079
+ items: {
1080
+ type: "object";
1081
+ properties: {
1082
+ content: {
1083
+ type: "string";
1084
+ description: string;
1085
+ };
1086
+ type: {
1087
+ default: string;
1088
+ type: "string";
1089
+ enum: string[];
1090
+ description: string;
1091
+ };
1092
+ pageNumber: {
1093
+ type: "integer";
1094
+ };
1095
+ };
1096
+ required: string[];
1097
+ };
1098
+ description: string;
1099
+ };
1100
+ };
1101
+ required: string[];
1102
+ title: string;
1103
+ additionalProperties: false;
1104
+ };
1105
+ };
1106
+ contentType: "application/json";
1107
+ response: {
1108
+ description: string;
1109
+ schema: {
1110
+ type: "object";
1111
+ title: string;
1112
+ additionalProperties: false;
1113
+ };
1114
+ };
1115
+ };
1059
1116
  listFileTags: {
1060
1117
  name: string;
1061
1118
  path: string;
@@ -1386,6 +1443,7 @@ export declare const state: {
1386
1443
  upsertFileBody: true;
1387
1444
  updateFileMetadataBody: true;
1388
1445
  copyFileBody: true;
1446
+ setFilePassagesBody: true;
1389
1447
  createKnowledgeBaseBody: true;
1390
1448
  updateKnowledgeBaseBody: true;
1391
1449
  };
@@ -1398,6 +1456,7 @@ export declare const state: {
1398
1456
  copyFileResponse: true;
1399
1457
  searchFilesResponse: true;
1400
1458
  listFilePassagesResponse: true;
1459
+ setFilePassagesResponse: true;
1401
1460
  listFileTagsResponse: true;
1402
1461
  listFileTagValuesResponse: true;
1403
1462
  createKnowledgeBaseResponse: true;
@@ -6535,6 +6535,12 @@ export declare const state: {
6535
6535
  type: "string";
6536
6536
  required: false;
6537
6537
  };
6538
+ messageContains: {
6539
+ in: "query";
6540
+ description: string;
6541
+ type: "string";
6542
+ required: false;
6543
+ };
6538
6544
  nextToken: {
6539
6545
  in: "query";
6540
6546
  description: string;
@@ -11559,6 +11565,12 @@ export declare const state: {
11559
11565
  type: "string";
11560
11566
  required: false;
11561
11567
  };
11568
+ messageContains: {
11569
+ in: "query";
11570
+ description: string;
11571
+ type: "string";
11572
+ required: false;
11573
+ };
11562
11574
  nextToken: {
11563
11575
  in: "query";
11564
11576
  description: string;
@@ -14658,6 +14670,63 @@ export declare const state: {
14658
14670
  };
14659
14671
  };
14660
14672
  };
14673
+ setFilePassages: {
14674
+ name: string;
14675
+ path: string;
14676
+ description: string;
14677
+ method: "put";
14678
+ section: "files";
14679
+ parameters: {
14680
+ id: {
14681
+ type: "string";
14682
+ description: string;
14683
+ in: "path";
14684
+ };
14685
+ };
14686
+ requestBody: {
14687
+ description: string;
14688
+ schema: {
14689
+ type: "object";
14690
+ properties: {
14691
+ passages: {
14692
+ type: "array";
14693
+ items: {
14694
+ type: "object";
14695
+ properties: {
14696
+ content: {
14697
+ type: "string";
14698
+ description: string;
14699
+ };
14700
+ type: {
14701
+ default: string;
14702
+ type: "string";
14703
+ enum: string[];
14704
+ description: string;
14705
+ };
14706
+ pageNumber: {
14707
+ type: "integer";
14708
+ };
14709
+ };
14710
+ required: string[];
14711
+ };
14712
+ description: string;
14713
+ };
14714
+ };
14715
+ required: string[];
14716
+ title: string;
14717
+ additionalProperties: false;
14718
+ };
14719
+ };
14720
+ contentType: "application/json";
14721
+ response: {
14722
+ description: string;
14723
+ schema: {
14724
+ type: "object";
14725
+ title: string;
14726
+ additionalProperties: false;
14727
+ };
14728
+ };
14729
+ };
14661
14730
  listFileTags: {
14662
14731
  name: string;
14663
14732
  path: string;
@@ -16121,6 +16190,7 @@ export declare const state: {
16121
16190
  upsertFileBody: true;
16122
16191
  updateFileMetadataBody: true;
16123
16192
  copyFileBody: true;
16193
+ setFilePassagesBody: true;
16124
16194
  createKnowledgeBaseBody: true;
16125
16195
  updateKnowledgeBaseBody: true;
16126
16196
  getOrCreateTableBody: true;
@@ -16286,6 +16356,7 @@ export declare const state: {
16286
16356
  copyFileResponse: true;
16287
16357
  searchFilesResponse: true;
16288
16358
  listFilePassagesResponse: true;
16359
+ setFilePassagesResponse: true;
16289
16360
  listFileTagsResponse: true;
16290
16361
  listFileTagValuesResponse: true;
16291
16362
  createKnowledgeBaseResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {