@botpress/api 0.27.13 → 0.27.15
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 +183 -8
- package/dist/src/gen/state.d.ts +156 -2
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +183 -8
package/src/gen/state.ts
CHANGED
|
@@ -8846,15 +8846,20 @@ export const state = {
|
|
|
8846
8846
|
"type": "number",
|
|
8847
8847
|
"description": "The total number of rows present in the table."
|
|
8848
8848
|
},
|
|
8849
|
-
"
|
|
8849
|
+
"stale": {
|
|
8850
8850
|
"type": "number",
|
|
8851
|
-
"description": "The number of rows
|
|
8851
|
+
"description": "The number of stale rows that are waiting to be processed"
|
|
8852
|
+
},
|
|
8853
|
+
"indexing": {
|
|
8854
|
+
"type": "number",
|
|
8855
|
+
"description": "The number of rows that are waiting to be indexed (for search)"
|
|
8852
8856
|
}
|
|
8853
8857
|
},
|
|
8854
8858
|
"required": [
|
|
8855
8859
|
"table",
|
|
8856
8860
|
"rows",
|
|
8857
|
-
"
|
|
8861
|
+
"stale",
|
|
8862
|
+
"indexing"
|
|
8858
8863
|
],
|
|
8859
8864
|
"title": "getTableResponse",
|
|
8860
8865
|
"additionalProperties": false
|
|
@@ -8900,6 +8905,10 @@ export const state = {
|
|
|
8900
8905
|
"type": "string"
|
|
8901
8906
|
},
|
|
8902
8907
|
"description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
|
|
8908
|
+
},
|
|
8909
|
+
"isComputeEnabled": {
|
|
8910
|
+
"type": "boolean",
|
|
8911
|
+
"description": "Indicates if the table is enabled for computation."
|
|
8903
8912
|
}
|
|
8904
8913
|
},
|
|
8905
8914
|
"required": [
|
|
@@ -8926,16 +8935,21 @@ export const state = {
|
|
|
8926
8935
|
"type": "number",
|
|
8927
8936
|
"description": "The total number of rows present in the table."
|
|
8928
8937
|
},
|
|
8929
|
-
"
|
|
8938
|
+
"stale": {
|
|
8930
8939
|
"type": "number",
|
|
8931
|
-
"description": "The number of rows
|
|
8940
|
+
"description": "The number of stale rows that are waiting to be processed"
|
|
8941
|
+
},
|
|
8942
|
+
"indexing": {
|
|
8943
|
+
"type": "number",
|
|
8944
|
+
"description": "The number of rows that are waiting to be indexed (for search)"
|
|
8932
8945
|
}
|
|
8933
8946
|
},
|
|
8934
8947
|
"required": [
|
|
8935
8948
|
"table",
|
|
8936
8949
|
"created",
|
|
8937
8950
|
"rows",
|
|
8938
|
-
"
|
|
8951
|
+
"stale",
|
|
8952
|
+
"indexing"
|
|
8939
8953
|
],
|
|
8940
8954
|
"title": "getOrCreateTableResponse",
|
|
8941
8955
|
"additionalProperties": false
|
|
@@ -8979,6 +8993,10 @@ export const state = {
|
|
|
8979
8993
|
"type": "string"
|
|
8980
8994
|
},
|
|
8981
8995
|
"description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
|
|
8996
|
+
},
|
|
8997
|
+
"isComputeEnabled": {
|
|
8998
|
+
"type": "boolean",
|
|
8999
|
+
"description": "Indicates if the table is enabled for computation."
|
|
8982
9000
|
}
|
|
8983
9001
|
},
|
|
8984
9002
|
"required": [
|
|
@@ -9101,6 +9119,10 @@ export const state = {
|
|
|
9101
9119
|
"type": "string"
|
|
9102
9120
|
},
|
|
9103
9121
|
"description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
|
|
9122
|
+
},
|
|
9123
|
+
"isComputeEnabled": {
|
|
9124
|
+
"type": "boolean",
|
|
9125
|
+
"description": "Indicates if the table is enabled for computation."
|
|
9104
9126
|
}
|
|
9105
9127
|
},
|
|
9106
9128
|
"title": "updateTableBody",
|
|
@@ -9115,6 +9137,13 @@ export const state = {
|
|
|
9115
9137
|
"properties": {
|
|
9116
9138
|
"table": {
|
|
9117
9139
|
"$ref": "#/components/schemas/Table"
|
|
9140
|
+
},
|
|
9141
|
+
"staleColumns": {
|
|
9142
|
+
"type": "array",
|
|
9143
|
+
"items": {
|
|
9144
|
+
"type": "string"
|
|
9145
|
+
},
|
|
9146
|
+
"description": "List of columns that have become stale following the modification."
|
|
9118
9147
|
}
|
|
9119
9148
|
},
|
|
9120
9149
|
"required": [
|
|
@@ -9370,6 +9399,10 @@ export const state = {
|
|
|
9370
9399
|
},
|
|
9371
9400
|
"minItems": 1,
|
|
9372
9401
|
"maxItems": 1000
|
|
9402
|
+
},
|
|
9403
|
+
"waitComputed": {
|
|
9404
|
+
"type": "boolean",
|
|
9405
|
+
"description": "Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1."
|
|
9373
9406
|
}
|
|
9374
9407
|
},
|
|
9375
9408
|
"required": [
|
|
@@ -9505,6 +9538,10 @@ export const state = {
|
|
|
9505
9538
|
"minItems": 1,
|
|
9506
9539
|
"maxItems": 1000,
|
|
9507
9540
|
"description": "Rows with updated data, identified by ID."
|
|
9541
|
+
},
|
|
9542
|
+
"waitComputed": {
|
|
9543
|
+
"type": "boolean",
|
|
9544
|
+
"description": "Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1."
|
|
9508
9545
|
}
|
|
9509
9546
|
},
|
|
9510
9547
|
"required": [
|
|
@@ -9586,6 +9623,10 @@ export const state = {
|
|
|
9586
9623
|
"minLength": 1,
|
|
9587
9624
|
"maxLength": 30,
|
|
9588
9625
|
"description": "Determines if a row is inserted or updated. Defaults to \"id\"."
|
|
9626
|
+
},
|
|
9627
|
+
"waitComputed": {
|
|
9628
|
+
"type": "boolean",
|
|
9629
|
+
"description": "Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1."
|
|
9589
9630
|
}
|
|
9590
9631
|
},
|
|
9591
9632
|
"required": [
|
|
@@ -9642,7 +9683,7 @@ export const state = {
|
|
|
9642
9683
|
"title": "Botpress API",
|
|
9643
9684
|
"description": "API for Botpress Cloud",
|
|
9644
9685
|
"server": "https://api.botpress.cloud",
|
|
9645
|
-
"version": "0.27.
|
|
9686
|
+
"version": "0.27.15",
|
|
9646
9687
|
"prefix": "v1"
|
|
9647
9688
|
},
|
|
9648
9689
|
"errors": [
|
|
@@ -11797,6 +11838,61 @@ export const state = {
|
|
|
11797
11838
|
"type": "boolean",
|
|
11798
11839
|
"description": "Indicates if the column is vectorized and searchable."
|
|
11799
11840
|
},
|
|
11841
|
+
"hidden": {
|
|
11842
|
+
"type": "boolean",
|
|
11843
|
+
"description": "Indicates if the field is hidden in the UI"
|
|
11844
|
+
},
|
|
11845
|
+
"order": {
|
|
11846
|
+
"type": "number",
|
|
11847
|
+
"description": "Order of the column in the UI"
|
|
11848
|
+
},
|
|
11849
|
+
"width": {
|
|
11850
|
+
"type": "number",
|
|
11851
|
+
"description": "Width of the column in the UI"
|
|
11852
|
+
},
|
|
11853
|
+
"computed": {
|
|
11854
|
+
"type": "object",
|
|
11855
|
+
"properties": {
|
|
11856
|
+
"action": {
|
|
11857
|
+
"type": "string",
|
|
11858
|
+
"enum": [
|
|
11859
|
+
"ai",
|
|
11860
|
+
"code"
|
|
11861
|
+
]
|
|
11862
|
+
},
|
|
11863
|
+
"dependencies": {
|
|
11864
|
+
"default": [],
|
|
11865
|
+
"type": "array",
|
|
11866
|
+
"items": {
|
|
11867
|
+
"type": "string"
|
|
11868
|
+
}
|
|
11869
|
+
},
|
|
11870
|
+
"prompt": {
|
|
11871
|
+
"type": "string",
|
|
11872
|
+
"description": "Prompt when action is \"ai\""
|
|
11873
|
+
},
|
|
11874
|
+
"model": {
|
|
11875
|
+
"default": "gpt-3.5-turbo",
|
|
11876
|
+
"type": "string",
|
|
11877
|
+
"enum": [
|
|
11878
|
+
"gpt-3.5-turbo",
|
|
11879
|
+
"gpt-4-turbo"
|
|
11880
|
+
],
|
|
11881
|
+
"description": "Model to use when action is \"ai\""
|
|
11882
|
+
},
|
|
11883
|
+
"code": {
|
|
11884
|
+
"type": "string",
|
|
11885
|
+
"description": "Code to execute when action is \"code\""
|
|
11886
|
+
},
|
|
11887
|
+
"enabled": {
|
|
11888
|
+
"type": "boolean"
|
|
11889
|
+
}
|
|
11890
|
+
},
|
|
11891
|
+
"required": [
|
|
11892
|
+
"action"
|
|
11893
|
+
],
|
|
11894
|
+
"additionalProperties": false
|
|
11895
|
+
},
|
|
11800
11896
|
"typings": {
|
|
11801
11897
|
"type": "string",
|
|
11802
11898
|
"description": "TypeScript typings for the column. Recommended if the type is \"object\", ex: \"\\{ foo: string; bar: number \\}\""
|
|
@@ -11852,6 +11948,10 @@ export const state = {
|
|
|
11852
11948
|
},
|
|
11853
11949
|
"description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
|
|
11854
11950
|
},
|
|
11951
|
+
"isComputeEnabled": {
|
|
11952
|
+
"type": "boolean",
|
|
11953
|
+
"description": "Indicates if the table is enabled for computation."
|
|
11954
|
+
},
|
|
11855
11955
|
"createdAt": {
|
|
11856
11956
|
"type": "string",
|
|
11857
11957
|
"format": "date-time",
|
|
@@ -11909,6 +12009,49 @@ export const state = {
|
|
|
11909
12009
|
"type": "string",
|
|
11910
12010
|
"description": "TypeScript typings for the column. Recommended if the type is \"object\", ex: \"\\{ foo: string; bar: number \\}\""
|
|
11911
12011
|
},
|
|
12012
|
+
"computed": {
|
|
12013
|
+
"type": "object",
|
|
12014
|
+
"properties": {
|
|
12015
|
+
"action": {
|
|
12016
|
+
"type": "string",
|
|
12017
|
+
"enum": [
|
|
12018
|
+
"ai",
|
|
12019
|
+
"code"
|
|
12020
|
+
]
|
|
12021
|
+
},
|
|
12022
|
+
"dependencies": {
|
|
12023
|
+
"default": [],
|
|
12024
|
+
"type": "array",
|
|
12025
|
+
"items": {
|
|
12026
|
+
"type": "string"
|
|
12027
|
+
}
|
|
12028
|
+
},
|
|
12029
|
+
"prompt": {
|
|
12030
|
+
"type": "string",
|
|
12031
|
+
"description": "Prompt when action is \"ai\""
|
|
12032
|
+
},
|
|
12033
|
+
"model": {
|
|
12034
|
+
"default": "gpt-3.5-turbo",
|
|
12035
|
+
"type": "string",
|
|
12036
|
+
"enum": [
|
|
12037
|
+
"gpt-3.5-turbo",
|
|
12038
|
+
"gpt-4-turbo"
|
|
12039
|
+
],
|
|
12040
|
+
"description": "Model to use when action is \"ai\""
|
|
12041
|
+
},
|
|
12042
|
+
"code": {
|
|
12043
|
+
"type": "string",
|
|
12044
|
+
"description": "Code to execute when action is \"code\""
|
|
12045
|
+
},
|
|
12046
|
+
"enabled": {
|
|
12047
|
+
"type": "boolean"
|
|
12048
|
+
}
|
|
12049
|
+
},
|
|
12050
|
+
"required": [
|
|
12051
|
+
"action"
|
|
12052
|
+
],
|
|
12053
|
+
"additionalProperties": false
|
|
12054
|
+
},
|
|
11912
12055
|
"schema": {
|
|
11913
12056
|
"type": "object",
|
|
11914
12057
|
"additionalProperties": true
|
|
@@ -11940,13 +12083,45 @@ export const state = {
|
|
|
11940
12083
|
"format": "date-time",
|
|
11941
12084
|
"description": "Timestamp of the last row update."
|
|
11942
12085
|
},
|
|
12086
|
+
"computed": {
|
|
12087
|
+
"type": "object",
|
|
12088
|
+
"additionalProperties": {
|
|
12089
|
+
"type": "object",
|
|
12090
|
+
"properties": {
|
|
12091
|
+
"status": {
|
|
12092
|
+
"type": "string"
|
|
12093
|
+
},
|
|
12094
|
+
"error": {
|
|
12095
|
+
"type": "string"
|
|
12096
|
+
},
|
|
12097
|
+
"updatedBy": {
|
|
12098
|
+
"type": "string"
|
|
12099
|
+
},
|
|
12100
|
+
"updatedAt": {
|
|
12101
|
+
"type": "string"
|
|
12102
|
+
}
|
|
12103
|
+
},
|
|
12104
|
+
"required": [
|
|
12105
|
+
"status"
|
|
12106
|
+
],
|
|
12107
|
+
"additionalProperties": false
|
|
12108
|
+
}
|
|
12109
|
+
},
|
|
12110
|
+
"stale": {
|
|
12111
|
+
"type": "array",
|
|
12112
|
+
"items": {
|
|
12113
|
+
"type": "string"
|
|
12114
|
+
},
|
|
12115
|
+
"description": "[Read-only] List of stale values that are waiting to be recomputed."
|
|
12116
|
+
},
|
|
11943
12117
|
"similarity": {
|
|
11944
12118
|
"type": "number",
|
|
11945
12119
|
"description": "Optional numeric value indicating similarity, when using findTableRows."
|
|
11946
12120
|
}
|
|
11947
12121
|
},
|
|
11948
12122
|
"required": [
|
|
11949
|
-
"id"
|
|
12123
|
+
"id",
|
|
12124
|
+
"computed"
|
|
11950
12125
|
],
|
|
11951
12126
|
"additionalProperties": true
|
|
11952
12127
|
}
|