@botpress/api 1.54.0 → 1.55.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
@@ -282718,6 +282718,16 @@ var state = {
282718
282718
  "type": "string",
282719
282719
  "description": "Filter by integration channel name"
282720
282720
  },
282721
+ "afterDate": {
282722
+ "in": "query",
282723
+ "description": "Date in ISO 8601 string with UTC timezone after which the conversation was created (inclusive)",
282724
+ "type": "string"
282725
+ },
282726
+ "beforeDate": {
282727
+ "in": "query",
282728
+ "description": "Date in ISO 8601 string with UTC timezone before which the conversation was created (inclusive)",
282729
+ "type": "string"
282730
+ },
282721
282731
  "x-bot-id": {
282722
282732
  "in": "header",
282723
282733
  "description": "Bot id",
@@ -286135,7 +286145,7 @@ var state = {
286135
286145
  "title": "Botpress Runtime API",
286136
286146
  "description": "API for Botpress Runtime",
286137
286147
  "server": "https://api.botpress.cloud",
286138
- "version": "1.54.0",
286148
+ "version": "1.55.0",
286139
286149
  "prefix": "v1"
286140
286150
  },
286141
286151
  "defaultParameters": {
@@ -295088,7 +295098,8 @@ var state2 = {
295088
295098
  "ai_spend",
295089
295099
  "openai_spend",
295090
295100
  "bing_search_spend",
295091
- "always_alive"
295101
+ "always_alive",
295102
+ "indexed_file_count"
295092
295103
  ],
295093
295104
  "required": true
295094
295105
  },
@@ -295157,7 +295168,8 @@ var state2 = {
295157
295168
  "ai_spend",
295158
295169
  "openai_spend",
295159
295170
  "bing_search_spend",
295160
- "always_alive"
295171
+ "always_alive",
295172
+ "indexed_file_count"
295161
295173
  ],
295162
295174
  "required": true
295163
295175
  },
@@ -295237,7 +295249,8 @@ var state2 = {
295237
295249
  "ai_spend",
295238
295250
  "openai_spend",
295239
295251
  "bing_search_spend",
295240
- "always_alive"
295252
+ "always_alive",
295253
+ "indexed_file_count"
295241
295254
  ]
295242
295255
  },
295243
295256
  "completion": {
@@ -295294,7 +295307,8 @@ var state2 = {
295294
295307
  "ai_spend",
295295
295308
  "openai_spend",
295296
295309
  "bing_search_spend",
295297
- "always_alive"
295310
+ "always_alive",
295311
+ "indexed_file_count"
295298
295312
  ],
295299
295313
  "required": true
295300
295314
  },
@@ -295342,7 +295356,8 @@ var state2 = {
295342
295356
  "ai_spend",
295343
295357
  "openai_spend",
295344
295358
  "bing_search_spend",
295345
- "always_alive"
295359
+ "always_alive",
295360
+ "indexed_file_count"
295346
295361
  ],
295347
295362
  "description": "Usage type that can be used"
295348
295363
  }
@@ -295424,7 +295439,8 @@ var state2 = {
295424
295439
  "ai_spend",
295425
295440
  "openai_spend",
295426
295441
  "bing_search_spend",
295427
- "always_alive"
295442
+ "always_alive",
295443
+ "indexed_file_count"
295428
295444
  ],
295429
295445
  "description": "Usage type that can be used"
295430
295446
  }
@@ -301839,7 +301855,8 @@ var state2 = {
301839
301855
  "ai_spend",
301840
301856
  "openai_spend",
301841
301857
  "bing_search_spend",
301842
- "always_alive"
301858
+ "always_alive",
301859
+ "indexed_file_count"
301843
301860
  ],
301844
301861
  "required": true
301845
301862
  },
@@ -301962,7 +301979,8 @@ var state2 = {
301962
301979
  "ai_spend",
301963
301980
  "openai_spend",
301964
301981
  "bing_search_spend",
301965
- "always_alive"
301982
+ "always_alive",
301983
+ "indexed_file_count"
301966
301984
  ],
301967
301985
  "required": true
301968
301986
  },
@@ -302027,7 +302045,8 @@ var state2 = {
302027
302045
  "ai_spend",
302028
302046
  "openai_spend",
302029
302047
  "bing_search_spend",
302030
- "always_alive"
302048
+ "always_alive",
302049
+ "indexed_file_count"
302031
302050
  ],
302032
302051
  "required": true
302033
302052
  },
@@ -302141,7 +302160,8 @@ var state2 = {
302141
302160
  "ai_spend",
302142
302161
  "openai_spend",
302143
302162
  "bing_search_spend",
302144
- "always_alive"
302163
+ "always_alive",
302164
+ "indexed_file_count"
302145
302165
  ],
302146
302166
  "required": true
302147
302167
  },
@@ -302423,7 +302443,7 @@ var state2 = {
302423
302443
  "title": "Botpress Admin API",
302424
302444
  "description": "API for Botpress Cloud Manager",
302425
302445
  "server": "https://api.botpress.cloud",
302426
- "version": "1.54.0",
302446
+ "version": "1.55.0",
302427
302447
  "prefix": "v1"
302428
302448
  },
302429
302449
  "defaultParameters": {
@@ -304990,7 +305010,8 @@ var state2 = {
304990
305010
  "ai_spend",
304991
305011
  "openai_spend",
304992
305012
  "bing_search_spend",
304993
- "always_alive"
305013
+ "always_alive",
305014
+ "indexed_file_count"
304994
305015
  ],
304995
305016
  "description": "Usage type that can be used"
304996
305017
  }
@@ -305447,6 +305468,14 @@ var state3 = {
305447
305468
  "parsing": {
305448
305469
  "type": "object",
305449
305470
  "properties": {
305471
+ "mode": {
305472
+ "type": "string",
305473
+ "enum": [
305474
+ "agent",
305475
+ "standard"
305476
+ ],
305477
+ "description": "The parsing mode to index the file. Using `agent` will use agentic document processing to parse the file and will incurr in AI Spend cost, while `standard` will use a faster but less accurate parser that will not incur in AI Spend cost."
305478
+ },
305450
305479
  "minimumParagraphLength": {
305451
305480
  "type": "integer",
305452
305481
  "minimum": 50,
@@ -307850,7 +307879,7 @@ var state3 = {
307850
307879
  "title": "Botpress Files API",
307851
307880
  "description": "API for Botpress Files",
307852
307881
  "server": "https://api.botpress.cloud",
307853
- "version": "1.54.0",
307882
+ "version": "1.55.0",
307854
307883
  "prefix": "v1"
307855
307884
  },
307856
307885
  "defaultParameters": {
@@ -309204,6 +309233,13 @@ var state4 = {
309204
309233
  "type": "string",
309205
309234
  "minLength": 1
309206
309235
  },
309236
+ "factor": {
309237
+ "default": 1,
309238
+ "type": "number",
309239
+ "minimum": 1,
309240
+ "maximum": 30,
309241
+ "description": "The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1."
309242
+ },
309207
309243
  "frozen": {
309208
309244
  "type": "boolean",
309209
309245
  "description": 'A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.'
@@ -310108,7 +310144,7 @@ var state4 = {
310108
310144
  "title": "Botpress Tables API",
310109
310145
  "description": "API for Botpress Tables",
310110
310146
  "server": "https://api.botpress.cloud",
310111
- "version": "1.54.0",
310147
+ "version": "1.55.0",
310112
310148
  "prefix": "v1"
310113
310149
  },
310114
310150
  "defaultParameters": {
@@ -310930,6 +310966,16 @@ var state5 = {
310930
310966
  "in": "query",
310931
310967
  "type": "string",
310932
310968
  "description": "Filter by integration channel name"
310969
+ },
310970
+ "afterDate": {
310971
+ "in": "query",
310972
+ "description": "Date in ISO 8601 string with UTC timezone after which the conversation was created (inclusive)",
310973
+ "type": "string"
310974
+ },
310975
+ "beforeDate": {
310976
+ "in": "query",
310977
+ "description": "Date in ISO 8601 string with UTC timezone before which the conversation was created (inclusive)",
310978
+ "type": "string"
310933
310979
  }
310934
310980
  },
310935
310981
  "section": "conversation",
@@ -321047,7 +321093,8 @@ var state5 = {
321047
321093
  "ai_spend",
321048
321094
  "openai_spend",
321049
321095
  "bing_search_spend",
321050
- "always_alive"
321096
+ "always_alive",
321097
+ "indexed_file_count"
321051
321098
  ],
321052
321099
  "required": true
321053
321100
  },
@@ -321110,7 +321157,8 @@ var state5 = {
321110
321157
  "ai_spend",
321111
321158
  "openai_spend",
321112
321159
  "bing_search_spend",
321113
- "always_alive"
321160
+ "always_alive",
321161
+ "indexed_file_count"
321114
321162
  ],
321115
321163
  "required": true
321116
321164
  },
@@ -321184,7 +321232,8 @@ var state5 = {
321184
321232
  "ai_spend",
321185
321233
  "openai_spend",
321186
321234
  "bing_search_spend",
321187
- "always_alive"
321235
+ "always_alive",
321236
+ "indexed_file_count"
321188
321237
  ]
321189
321238
  },
321190
321239
  "completion": {
@@ -321234,7 +321283,8 @@ var state5 = {
321234
321283
  "ai_spend",
321235
321284
  "openai_spend",
321236
321285
  "bing_search_spend",
321237
- "always_alive"
321286
+ "always_alive",
321287
+ "indexed_file_count"
321238
321288
  ],
321239
321289
  "required": true
321240
321290
  },
@@ -321276,7 +321326,8 @@ var state5 = {
321276
321326
  "ai_spend",
321277
321327
  "openai_spend",
321278
321328
  "bing_search_spend",
321279
- "always_alive"
321329
+ "always_alive",
321330
+ "indexed_file_count"
321280
321331
  ],
321281
321332
  "description": "Usage type that can be used"
321282
321333
  }
@@ -321352,7 +321403,8 @@ var state5 = {
321352
321403
  "ai_spend",
321353
321404
  "openai_spend",
321354
321405
  "bing_search_spend",
321355
- "always_alive"
321406
+ "always_alive",
321407
+ "indexed_file_count"
321356
321408
  ],
321357
321409
  "description": "Usage type that can be used"
321358
321410
  }
@@ -327327,7 +327379,8 @@ var state5 = {
327327
327379
  "ai_spend",
327328
327380
  "openai_spend",
327329
327381
  "bing_search_spend",
327330
- "always_alive"
327382
+ "always_alive",
327383
+ "indexed_file_count"
327331
327384
  ],
327332
327385
  "required": true
327333
327386
  },
@@ -327432,7 +327485,8 @@ var state5 = {
327432
327485
  "ai_spend",
327433
327486
  "openai_spend",
327434
327487
  "bing_search_spend",
327435
- "always_alive"
327488
+ "always_alive",
327489
+ "indexed_file_count"
327436
327490
  ],
327437
327491
  "required": true
327438
327492
  },
@@ -327485,7 +327539,8 @@ var state5 = {
327485
327539
  "ai_spend",
327486
327540
  "openai_spend",
327487
327541
  "bing_search_spend",
327488
- "always_alive"
327542
+ "always_alive",
327543
+ "indexed_file_count"
327489
327544
  ],
327490
327545
  "required": true
327491
327546
  },
@@ -327587,7 +327642,8 @@ var state5 = {
327587
327642
  "ai_spend",
327588
327643
  "openai_spend",
327589
327644
  "bing_search_spend",
327590
- "always_alive"
327645
+ "always_alive",
327646
+ "indexed_file_count"
327591
327647
  ],
327592
327648
  "required": true
327593
327649
  },
@@ -327866,6 +327922,14 @@ var state5 = {
327866
327922
  "parsing": {
327867
327923
  "type": "object",
327868
327924
  "properties": {
327925
+ "mode": {
327926
+ "type": "string",
327927
+ "enum": [
327928
+ "agent",
327929
+ "standard"
327930
+ ],
327931
+ "description": "The parsing mode to index the file. Using `agent` will use agentic document processing to parse the file and will incurr in AI Spend cost, while `standard` will use a faster but less accurate parser that will not incur in AI Spend cost."
327932
+ },
327869
327933
  "minimumParagraphLength": {
327870
327934
  "type": "integer",
327871
327935
  "minimum": 50,
@@ -330369,6 +330433,13 @@ var state5 = {
330369
330433
  "type": "string",
330370
330434
  "minLength": 1
330371
330435
  },
330436
+ "factor": {
330437
+ "default": 1,
330438
+ "type": "number",
330439
+ "minimum": 1,
330440
+ "maximum": 30,
330441
+ "description": "The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1."
330442
+ },
330372
330443
  "frozen": {
330373
330444
  "type": "boolean",
330374
330445
  "description": 'A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.'
@@ -330985,7 +331056,7 @@ var state5 = {
330985
331056
  "title": "Botpress API",
330986
331057
  "description": "API for Botpress Cloud",
330987
331058
  "server": "https://api.botpress.cloud",
330988
- "version": "1.54.0",
331059
+ "version": "1.55.0",
330989
331060
  "prefix": "v1"
330990
331061
  },
330991
331062
  "errors": [
@@ -333669,7 +333740,8 @@ var state5 = {
333669
333740
  "ai_spend",
333670
333741
  "openai_spend",
333671
333742
  "bing_search_spend",
333672
- "always_alive"
333743
+ "always_alive",
333744
+ "indexed_file_count"
333673
333745
  ],
333674
333746
  "description": "Usage type that can be used"
333675
333747
  }
@@ -42,6 +42,11 @@ export declare const state: {
42
42
  parsing: {
43
43
  type: "object";
44
44
  properties: {
45
+ mode: {
46
+ type: "string";
47
+ enum: string[];
48
+ description: string;
49
+ };
45
50
  minimumParagraphLength: {
46
51
  type: "integer";
47
52
  minimum: number;
@@ -171,6 +171,16 @@ export declare const state: {
171
171
  type: "string";
172
172
  description: string;
173
173
  };
174
+ afterDate: {
175
+ in: "query";
176
+ description: string;
177
+ type: "string";
178
+ };
179
+ beforeDate: {
180
+ in: "query";
181
+ description: string;
182
+ type: "string";
183
+ };
174
184
  "x-bot-id": {
175
185
  in: "header";
176
186
  description: string;
@@ -134,6 +134,16 @@ export declare const state: {
134
134
  type: "string";
135
135
  description: string;
136
136
  };
137
+ afterDate: {
138
+ in: "query";
139
+ description: string;
140
+ type: "string";
141
+ };
142
+ beforeDate: {
143
+ in: "query";
144
+ description: string;
145
+ type: "string";
146
+ };
137
147
  };
138
148
  section: "conversation";
139
149
  response: {
@@ -14982,6 +14992,11 @@ export declare const state: {
14982
14992
  parsing: {
14983
14993
  type: "object";
14984
14994
  properties: {
14995
+ mode: {
14996
+ type: "string";
14997
+ enum: string[];
14998
+ description: string;
14999
+ };
14985
15000
  minimumParagraphLength: {
14986
15001
  type: "integer";
14987
15002
  minimum: number;
@@ -17052,6 +17067,13 @@ export declare const state: {
17052
17067
  type: "string";
17053
17068
  minLength: number;
17054
17069
  };
17070
+ factor: {
17071
+ default: number;
17072
+ type: "number";
17073
+ minimum: number;
17074
+ maximum: number;
17075
+ description: string;
17076
+ };
17055
17077
  frozen: {
17056
17078
  type: "boolean";
17057
17079
  description: string;
@@ -873,6 +873,13 @@ export declare const state: {
873
873
  type: "string";
874
874
  minLength: number;
875
875
  };
876
+ factor: {
877
+ default: number;
878
+ type: "number";
879
+ minimum: number;
880
+ maximum: number;
881
+ description: string;
882
+ };
876
883
  frozen: {
877
884
  type: "boolean";
878
885
  description: string;
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.54.0",
3
+ "version": "1.55.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "devDependencies": {
7
7
  "@bpinternal/es-node": "0.0.3",
8
8
  "esbuild": "^0.16.10",
9
9
  "zod": "^3.24.4",
10
+ "typescript": "5.5.4",
10
11
  "@botpress/bridge": "1.8.0",
11
- "@botpress/cloud-manager": "0.2.0",
12
12
  "@botpress/common": "0.5.0",
13
+ "@botpress/cloud-manager": "0.2.0",
13
14
  "@botpress/files-api": "0.18.0",
14
- "@bpinternal/const": "0.3.7",
15
+ "@bpinternal/const": "0.3.9",
15
16
  "@bpinternal/tables-api": "0.17.2"
16
17
  },
17
18
  "dependencies": {