@botpress/api 0.33.1 → 0.34.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 +30 -1
- package/dist/src/gen/state.d.ts +20 -0
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +30 -1
package/dist/index.js
CHANGED
|
@@ -274849,6 +274849,34 @@ var state = {
|
|
|
274849
274849
|
"type": "number",
|
|
274850
274850
|
"description": "The score indicating the similarity of the passage to the query. A higher score indicates higher similarity."
|
|
274851
274851
|
},
|
|
274852
|
+
"meta": {
|
|
274853
|
+
"type": "object",
|
|
274854
|
+
"properties": {
|
|
274855
|
+
"type": {
|
|
274856
|
+
"type": "string",
|
|
274857
|
+
"enum": [
|
|
274858
|
+
"chunk"
|
|
274859
|
+
],
|
|
274860
|
+
"description": "The type of passage"
|
|
274861
|
+
},
|
|
274862
|
+
"subtype": {
|
|
274863
|
+
"type": "string",
|
|
274864
|
+
"enum": [
|
|
274865
|
+
"title",
|
|
274866
|
+
"subtitle",
|
|
274867
|
+
"paragraph",
|
|
274868
|
+
"list",
|
|
274869
|
+
"note"
|
|
274870
|
+
],
|
|
274871
|
+
"description": "The subtype of passage, if any."
|
|
274872
|
+
},
|
|
274873
|
+
"pageNumber": {
|
|
274874
|
+
"type": "integer",
|
|
274875
|
+
"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)."
|
|
274876
|
+
}
|
|
274877
|
+
},
|
|
274878
|
+
"description": "The passage metadata"
|
|
274879
|
+
},
|
|
274852
274880
|
"file": {
|
|
274853
274881
|
"type": "object",
|
|
274854
274882
|
"properties": {
|
|
@@ -274884,6 +274912,7 @@ var state = {
|
|
|
274884
274912
|
"required": [
|
|
274885
274913
|
"content",
|
|
274886
274914
|
"score",
|
|
274915
|
+
"meta",
|
|
274887
274916
|
"file"
|
|
274888
274917
|
]
|
|
274889
274918
|
}
|
|
@@ -275798,7 +275827,7 @@ var state = {
|
|
|
275798
275827
|
"title": "Botpress API",
|
|
275799
275828
|
"description": "API for Botpress Cloud",
|
|
275800
275829
|
"server": "https://api.botpress.cloud",
|
|
275801
|
-
"version": "0.
|
|
275830
|
+
"version": "0.34.0",
|
|
275802
275831
|
"prefix": "v1"
|
|
275803
275832
|
},
|
|
275804
275833
|
"errors": [
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -8726,6 +8726,26 @@ export declare const state: {
|
|
|
8726
8726
|
type: "number";
|
|
8727
8727
|
description: string;
|
|
8728
8728
|
};
|
|
8729
|
+
meta: {
|
|
8730
|
+
type: "object";
|
|
8731
|
+
properties: {
|
|
8732
|
+
type: {
|
|
8733
|
+
type: "string";
|
|
8734
|
+
enum: string[];
|
|
8735
|
+
description: string;
|
|
8736
|
+
};
|
|
8737
|
+
subtype: {
|
|
8738
|
+
type: "string";
|
|
8739
|
+
enum: string[];
|
|
8740
|
+
description: string;
|
|
8741
|
+
};
|
|
8742
|
+
pageNumber: {
|
|
8743
|
+
type: "integer";
|
|
8744
|
+
description: string;
|
|
8745
|
+
};
|
|
8746
|
+
};
|
|
8747
|
+
description: string;
|
|
8748
|
+
};
|
|
8729
8749
|
file: {
|
|
8730
8750
|
type: "object";
|
|
8731
8751
|
properties: {
|