@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/src/gen/state.ts CHANGED
@@ -9943,6 +9943,34 @@ export const state = {
9943
9943
  "type": "number",
9944
9944
  "description": "The score indicating the similarity of the passage to the query. A higher score indicates higher similarity."
9945
9945
  },
9946
+ "meta": {
9947
+ "type": "object",
9948
+ "properties": {
9949
+ "type": {
9950
+ "type": "string",
9951
+ "enum": [
9952
+ "chunk"
9953
+ ],
9954
+ "description": "The type of passage"
9955
+ },
9956
+ "subtype": {
9957
+ "type": "string",
9958
+ "enum": [
9959
+ "title",
9960
+ "subtitle",
9961
+ "paragraph",
9962
+ "list",
9963
+ "note"
9964
+ ],
9965
+ "description": "The subtype of passage, if any."
9966
+ },
9967
+ "pageNumber": {
9968
+ "type": "integer",
9969
+ "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)."
9970
+ }
9971
+ },
9972
+ "description": "The passage metadata"
9973
+ },
9946
9974
  "file": {
9947
9975
  "type": "object",
9948
9976
  "properties": {
@@ -9978,6 +10006,7 @@ export const state = {
9978
10006
  "required": [
9979
10007
  "content",
9980
10008
  "score",
10009
+ "meta",
9981
10010
  "file"
9982
10011
  ]
9983
10012
  }
@@ -10892,7 +10921,7 @@ export const state = {
10892
10921
  "title": "Botpress API",
10893
10922
  "description": "API for Botpress Cloud",
10894
10923
  "server": "https://api.botpress.cloud",
10895
- "version": "0.33.0",
10924
+ "version": "0.34.0",
10896
10925
  "prefix": "v1"
10897
10926
  },
10898
10927
  "errors": [
@@ -13330,7 +13359,7 @@ export const state = {
13330
13359
  "type": "string",
13331
13360
  "enum": [
13332
13361
  "ai",
13333
- "code"
13362
+ "workflow"
13334
13363
  ]
13335
13364
  },
13336
13365
  "dependencies": {
@@ -13360,9 +13389,9 @@ export const state = {
13360
13389
  ],
13361
13390
  "description": "Model to use when action is \"ai\""
13362
13391
  },
13363
- "code": {
13392
+ "workflowId": {
13364
13393
  "type": "string",
13365
- "description": "Code to execute when action is \"code\""
13394
+ "description": "ID of Workflow to execute when action is \"workflow\""
13366
13395
  },
13367
13396
  "enabled": {
13368
13397
  "type": "boolean"
@@ -13496,7 +13525,7 @@ export const state = {
13496
13525
  "type": "string",
13497
13526
  "enum": [
13498
13527
  "ai",
13499
- "code"
13528
+ "workflow"
13500
13529
  ]
13501
13530
  },
13502
13531
  "dependencies": {
@@ -13526,9 +13555,9 @@ export const state = {
13526
13555
  ],
13527
13556
  "description": "Model to use when action is \"ai\""
13528
13557
  },
13529
- "code": {
13558
+ "workflowId": {
13530
13559
  "type": "string",
13531
- "description": "Code to execute when action is \"code\""
13560
+ "description": "ID of Workflow to execute when action is \"workflow\""
13532
13561
  },
13533
13562
  "enabled": {
13534
13563
  "type": "boolean"