@botpress/api 0.33.0 → 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 +36 -7
- package/dist/src/gen/state.d.ts +22 -2
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +36 -7
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": [
|
|
@@ -278236,7 +278265,7 @@ var state = {
|
|
|
278236
278265
|
"type": "string",
|
|
278237
278266
|
"enum": [
|
|
278238
278267
|
"ai",
|
|
278239
|
-
"
|
|
278268
|
+
"workflow"
|
|
278240
278269
|
]
|
|
278241
278270
|
},
|
|
278242
278271
|
"dependencies": {
|
|
@@ -278266,9 +278295,9 @@ var state = {
|
|
|
278266
278295
|
],
|
|
278267
278296
|
"description": 'Model to use when action is "ai"'
|
|
278268
278297
|
},
|
|
278269
|
-
"
|
|
278298
|
+
"workflowId": {
|
|
278270
278299
|
"type": "string",
|
|
278271
|
-
"description": '
|
|
278300
|
+
"description": 'ID of Workflow to execute when action is "workflow"'
|
|
278272
278301
|
},
|
|
278273
278302
|
"enabled": {
|
|
278274
278303
|
"type": "boolean"
|
|
@@ -278402,7 +278431,7 @@ var state = {
|
|
|
278402
278431
|
"type": "string",
|
|
278403
278432
|
"enum": [
|
|
278404
278433
|
"ai",
|
|
278405
|
-
"
|
|
278434
|
+
"workflow"
|
|
278406
278435
|
]
|
|
278407
278436
|
},
|
|
278408
278437
|
"dependencies": {
|
|
@@ -278432,9 +278461,9 @@ var state = {
|
|
|
278432
278461
|
],
|
|
278433
278462
|
"description": 'Model to use when action is "ai"'
|
|
278434
278463
|
},
|
|
278435
|
-
"
|
|
278464
|
+
"workflowId": {
|
|
278436
278465
|
"type": "string",
|
|
278437
|
-
"description": '
|
|
278466
|
+
"description": 'ID of Workflow to execute when action is "workflow"'
|
|
278438
278467
|
},
|
|
278439
278468
|
"enabled": {
|
|
278440
278469
|
"type": "boolean"
|
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: {
|
|
@@ -11626,7 +11646,7 @@ export declare const state: {
|
|
|
11626
11646
|
enum: string[];
|
|
11627
11647
|
description: string;
|
|
11628
11648
|
};
|
|
11629
|
-
|
|
11649
|
+
workflowId: {
|
|
11630
11650
|
type: "string";
|
|
11631
11651
|
description: string;
|
|
11632
11652
|
};
|
|
@@ -11753,7 +11773,7 @@ export declare const state: {
|
|
|
11753
11773
|
enum: string[];
|
|
11754
11774
|
description: string;
|
|
11755
11775
|
};
|
|
11756
|
-
|
|
11776
|
+
workflowId: {
|
|
11757
11777
|
type: "string";
|
|
11758
11778
|
description: string;
|
|
11759
11779
|
};
|