@botpress/api 0.33.1 → 0.34.1

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
@@ -266206,10 +266206,23 @@ var state = {
266206
266206
  "properties": {
266207
266207
  "state": {
266208
266208
  "$ref": "#/components/schemas/State"
266209
+ },
266210
+ "meta": {
266211
+ "type": "object",
266212
+ "properties": {
266213
+ "cached": {
266214
+ "type": "boolean"
266215
+ }
266216
+ },
266217
+ "required": [
266218
+ "cached"
266219
+ ],
266220
+ "additionalProperties": false
266209
266221
  }
266210
266222
  },
266211
266223
  "required": [
266212
- "state"
266224
+ "state",
266225
+ "meta"
266213
266226
  ],
266214
266227
  "title": "getStateResponse",
266215
266228
  "additionalProperties": false
@@ -266349,10 +266362,23 @@ var state = {
266349
266362
  "properties": {
266350
266363
  "state": {
266351
266364
  "$ref": "#/components/schemas/State"
266365
+ },
266366
+ "meta": {
266367
+ "type": "object",
266368
+ "properties": {
266369
+ "cached": {
266370
+ "type": "boolean"
266371
+ }
266372
+ },
266373
+ "required": [
266374
+ "cached"
266375
+ ],
266376
+ "additionalProperties": false
266352
266377
  }
266353
266378
  },
266354
266379
  "required": [
266355
- "state"
266380
+ "state",
266381
+ "meta"
266356
266382
  ],
266357
266383
  "title": "getOrSetStateResponse",
266358
266384
  "additionalProperties": false
@@ -266463,10 +266489,23 @@ var state = {
266463
266489
  "type": "object",
266464
266490
  "additionalProperties": true,
266465
266491
  "description": "Input of the action"
266492
+ },
266493
+ "meta": {
266494
+ "type": "object",
266495
+ "properties": {
266496
+ "cached": {
266497
+ "type": "boolean"
266498
+ }
266499
+ },
266500
+ "required": [
266501
+ "cached"
266502
+ ],
266503
+ "additionalProperties": false
266466
266504
  }
266467
266505
  },
266468
266506
  "required": [
266469
- "output"
266507
+ "output",
266508
+ "meta"
266470
266509
  ],
266471
266510
  "title": "callActionResponse",
266472
266511
  "additionalProperties": false
@@ -274849,6 +274888,34 @@ var state = {
274849
274888
  "type": "number",
274850
274889
  "description": "The score indicating the similarity of the passage to the query. A higher score indicates higher similarity."
274851
274890
  },
274891
+ "meta": {
274892
+ "type": "object",
274893
+ "properties": {
274894
+ "type": {
274895
+ "type": "string",
274896
+ "enum": [
274897
+ "chunk"
274898
+ ],
274899
+ "description": "The type of passage"
274900
+ },
274901
+ "subtype": {
274902
+ "type": "string",
274903
+ "enum": [
274904
+ "title",
274905
+ "subtitle",
274906
+ "paragraph",
274907
+ "list",
274908
+ "note"
274909
+ ],
274910
+ "description": "The subtype of passage, if any."
274911
+ },
274912
+ "pageNumber": {
274913
+ "type": "integer",
274914
+ "description": "Page number the passage is located on, if any. Only applicable if the passage was extracted from a multi-page document (e.g. PDF)."
274915
+ }
274916
+ },
274917
+ "description": "The passage metadata"
274918
+ },
274852
274919
  "file": {
274853
274920
  "type": "object",
274854
274921
  "properties": {
@@ -274884,6 +274951,7 @@ var state = {
274884
274951
  "required": [
274885
274952
  "content",
274886
274953
  "score",
274954
+ "meta",
274887
274955
  "file"
274888
274956
  ]
274889
274957
  }
@@ -275798,7 +275866,7 @@ var state = {
275798
275866
  "title": "Botpress API",
275799
275867
  "description": "API for Botpress Cloud",
275800
275868
  "server": "https://api.botpress.cloud",
275801
- "version": "0.33.1",
275869
+ "version": "0.34.1",
275802
275870
  "prefix": "v1"
275803
275871
  },
275804
275872
  "errors": [
@@ -1216,6 +1216,16 @@ export declare const state: {
1216
1216
  state: {
1217
1217
  $ref: string;
1218
1218
  };
1219
+ meta: {
1220
+ type: "object";
1221
+ properties: {
1222
+ cached: {
1223
+ type: "boolean";
1224
+ };
1225
+ };
1226
+ required: string[];
1227
+ additionalProperties: false;
1228
+ };
1219
1229
  };
1220
1230
  required: string[];
1221
1231
  title: string;
@@ -1339,6 +1349,16 @@ export declare const state: {
1339
1349
  state: {
1340
1350
  $ref: string;
1341
1351
  };
1352
+ meta: {
1353
+ type: "object";
1354
+ properties: {
1355
+ cached: {
1356
+ type: "boolean";
1357
+ };
1358
+ };
1359
+ required: string[];
1360
+ additionalProperties: false;
1361
+ };
1342
1362
  };
1343
1363
  required: string[];
1344
1364
  title: string;
@@ -1438,6 +1458,16 @@ export declare const state: {
1438
1458
  additionalProperties: true;
1439
1459
  description: string;
1440
1460
  };
1461
+ meta: {
1462
+ type: "object";
1463
+ properties: {
1464
+ cached: {
1465
+ type: "boolean";
1466
+ };
1467
+ };
1468
+ required: string[];
1469
+ additionalProperties: false;
1470
+ };
1441
1471
  };
1442
1472
  required: string[];
1443
1473
  title: string;
@@ -8726,6 +8756,26 @@ export declare const state: {
8726
8756
  type: "number";
8727
8757
  description: string;
8728
8758
  };
8759
+ meta: {
8760
+ type: "object";
8761
+ properties: {
8762
+ type: {
8763
+ type: "string";
8764
+ enum: string[];
8765
+ description: string;
8766
+ };
8767
+ subtype: {
8768
+ type: "string";
8769
+ enum: string[];
8770
+ description: string;
8771
+ };
8772
+ pageNumber: {
8773
+ type: "integer";
8774
+ description: string;
8775
+ };
8776
+ };
8777
+ description: string;
8778
+ };
8729
8779
  file: {
8730
8780
  type: "object";
8731
8781
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.33.1",
3
+ "version": "0.34.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {