@botpress/api 0.27.13 → 0.27.14

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
@@ -8846,15 +8846,15 @@ export const state = {
8846
8846
  "type": "number",
8847
8847
  "description": "The total number of rows present in the table."
8848
8848
  },
8849
- "indexingCount": {
8849
+ "staleCount": {
8850
8850
  "type": "number",
8851
- "description": "The number of rows pending indexing, relevant for search functionalities."
8851
+ "description": "The number of stale rows that are waiting to be processed"
8852
8852
  }
8853
8853
  },
8854
8854
  "required": [
8855
8855
  "table",
8856
8856
  "rows",
8857
- "indexingCount"
8857
+ "staleCount"
8858
8858
  ],
8859
8859
  "title": "getTableResponse",
8860
8860
  "additionalProperties": false
@@ -8900,6 +8900,10 @@ export const state = {
8900
8900
  "type": "string"
8901
8901
  },
8902
8902
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
8903
+ },
8904
+ "isComputeEnabled": {
8905
+ "type": "boolean",
8906
+ "description": "Indicates if the table is enabled for computation."
8903
8907
  }
8904
8908
  },
8905
8909
  "required": [
@@ -8926,16 +8930,16 @@ export const state = {
8926
8930
  "type": "number",
8927
8931
  "description": "The total number of rows present in the table."
8928
8932
  },
8929
- "indexingCount": {
8933
+ "staleCount": {
8930
8934
  "type": "number",
8931
- "description": "The number of rows pending indexing, relevant for search functionalities."
8935
+ "description": "The number of stale rows that are waiting to be processed"
8932
8936
  }
8933
8937
  },
8934
8938
  "required": [
8935
8939
  "table",
8936
8940
  "created",
8937
8941
  "rows",
8938
- "indexingCount"
8942
+ "staleCount"
8939
8943
  ],
8940
8944
  "title": "getOrCreateTableResponse",
8941
8945
  "additionalProperties": false
@@ -8979,6 +8983,10 @@ export const state = {
8979
8983
  "type": "string"
8980
8984
  },
8981
8985
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
8986
+ },
8987
+ "isComputeEnabled": {
8988
+ "type": "boolean",
8989
+ "description": "Indicates if the table is enabled for computation."
8982
8990
  }
8983
8991
  },
8984
8992
  "required": [
@@ -9101,6 +9109,10 @@ export const state = {
9101
9109
  "type": "string"
9102
9110
  },
9103
9111
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
9112
+ },
9113
+ "isComputeEnabled": {
9114
+ "type": "boolean",
9115
+ "description": "Indicates if the table is enabled for computation."
9104
9116
  }
9105
9117
  },
9106
9118
  "title": "updateTableBody",
@@ -9115,6 +9127,13 @@ export const state = {
9115
9127
  "properties": {
9116
9128
  "table": {
9117
9129
  "$ref": "#/components/schemas/Table"
9130
+ },
9131
+ "staleColumns": {
9132
+ "type": "array",
9133
+ "items": {
9134
+ "type": "string"
9135
+ },
9136
+ "description": "List of columns that have become stale following the modification."
9118
9137
  }
9119
9138
  },
9120
9139
  "required": [
@@ -9370,6 +9389,10 @@ export const state = {
9370
9389
  },
9371
9390
  "minItems": 1,
9372
9391
  "maxItems": 1000
9392
+ },
9393
+ "waitComputed": {
9394
+ "type": "boolean",
9395
+ "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
9396
  }
9374
9397
  },
9375
9398
  "required": [
@@ -9505,6 +9528,10 @@ export const state = {
9505
9528
  "minItems": 1,
9506
9529
  "maxItems": 1000,
9507
9530
  "description": "Rows with updated data, identified by ID."
9531
+ },
9532
+ "waitComputed": {
9533
+ "type": "boolean",
9534
+ "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
9535
  }
9509
9536
  },
9510
9537
  "required": [
@@ -9586,6 +9613,10 @@ export const state = {
9586
9613
  "minLength": 1,
9587
9614
  "maxLength": 30,
9588
9615
  "description": "Determines if a row is inserted or updated. Defaults to \"id\"."
9616
+ },
9617
+ "waitComputed": {
9618
+ "type": "boolean",
9619
+ "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
9620
  }
9590
9621
  },
9591
9622
  "required": [
@@ -9642,7 +9673,7 @@ export const state = {
9642
9673
  "title": "Botpress API",
9643
9674
  "description": "API for Botpress Cloud",
9644
9675
  "server": "https://api.botpress.cloud",
9645
- "version": "0.27.13",
9676
+ "version": "0.27.14",
9646
9677
  "prefix": "v1"
9647
9678
  },
9648
9679
  "errors": [
@@ -11797,6 +11828,61 @@ export const state = {
11797
11828
  "type": "boolean",
11798
11829
  "description": "Indicates if the column is vectorized and searchable."
11799
11830
  },
11831
+ "hidden": {
11832
+ "type": "boolean",
11833
+ "description": "Indicates if the field is hidden in the UI"
11834
+ },
11835
+ "order": {
11836
+ "type": "number",
11837
+ "description": "Order of the column in the UI"
11838
+ },
11839
+ "width": {
11840
+ "type": "number",
11841
+ "description": "Width of the column in the UI"
11842
+ },
11843
+ "computed": {
11844
+ "type": "object",
11845
+ "properties": {
11846
+ "action": {
11847
+ "type": "string",
11848
+ "enum": [
11849
+ "ai",
11850
+ "code"
11851
+ ]
11852
+ },
11853
+ "dependencies": {
11854
+ "default": [],
11855
+ "type": "array",
11856
+ "items": {
11857
+ "type": "string"
11858
+ }
11859
+ },
11860
+ "prompt": {
11861
+ "type": "string",
11862
+ "description": "Prompt when action is \"ai\""
11863
+ },
11864
+ "model": {
11865
+ "default": "gpt-3.5-turbo",
11866
+ "type": "string",
11867
+ "enum": [
11868
+ "gpt-3.5-turbo",
11869
+ "gpt-4-turbo"
11870
+ ],
11871
+ "description": "Model to use when action is \"ai\""
11872
+ },
11873
+ "code": {
11874
+ "type": "string",
11875
+ "description": "Code to execute when action is \"code\""
11876
+ },
11877
+ "enabled": {
11878
+ "type": "boolean"
11879
+ }
11880
+ },
11881
+ "required": [
11882
+ "action"
11883
+ ],
11884
+ "additionalProperties": false
11885
+ },
11800
11886
  "typings": {
11801
11887
  "type": "string",
11802
11888
  "description": "TypeScript typings for the column. Recommended if the type is \"object\", ex: \"\\{ foo: string; bar: number \\}\""
@@ -11852,6 +11938,10 @@ export const state = {
11852
11938
  },
11853
11939
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
11854
11940
  },
11941
+ "isComputeEnabled": {
11942
+ "type": "boolean",
11943
+ "description": "Indicates if the table is enabled for computation."
11944
+ },
11855
11945
  "createdAt": {
11856
11946
  "type": "string",
11857
11947
  "format": "date-time",
@@ -11909,6 +11999,49 @@ export const state = {
11909
11999
  "type": "string",
11910
12000
  "description": "TypeScript typings for the column. Recommended if the type is \"object\", ex: \"\\{ foo: string; bar: number \\}\""
11911
12001
  },
12002
+ "computed": {
12003
+ "type": "object",
12004
+ "properties": {
12005
+ "action": {
12006
+ "type": "string",
12007
+ "enum": [
12008
+ "ai",
12009
+ "code"
12010
+ ]
12011
+ },
12012
+ "dependencies": {
12013
+ "default": [],
12014
+ "type": "array",
12015
+ "items": {
12016
+ "type": "string"
12017
+ }
12018
+ },
12019
+ "prompt": {
12020
+ "type": "string",
12021
+ "description": "Prompt when action is \"ai\""
12022
+ },
12023
+ "model": {
12024
+ "default": "gpt-3.5-turbo",
12025
+ "type": "string",
12026
+ "enum": [
12027
+ "gpt-3.5-turbo",
12028
+ "gpt-4-turbo"
12029
+ ],
12030
+ "description": "Model to use when action is \"ai\""
12031
+ },
12032
+ "code": {
12033
+ "type": "string",
12034
+ "description": "Code to execute when action is \"code\""
12035
+ },
12036
+ "enabled": {
12037
+ "type": "boolean"
12038
+ }
12039
+ },
12040
+ "required": [
12041
+ "action"
12042
+ ],
12043
+ "additionalProperties": false
12044
+ },
11912
12045
  "schema": {
11913
12046
  "type": "object",
11914
12047
  "additionalProperties": true
@@ -11940,13 +12073,45 @@ export const state = {
11940
12073
  "format": "date-time",
11941
12074
  "description": "Timestamp of the last row update."
11942
12075
  },
12076
+ "computed": {
12077
+ "type": "object",
12078
+ "additionalProperties": {
12079
+ "type": "object",
12080
+ "properties": {
12081
+ "status": {
12082
+ "type": "string"
12083
+ },
12084
+ "error": {
12085
+ "type": "string"
12086
+ },
12087
+ "updatedBy": {
12088
+ "type": "string"
12089
+ },
12090
+ "updatedAt": {
12091
+ "type": "string"
12092
+ }
12093
+ },
12094
+ "required": [
12095
+ "status"
12096
+ ],
12097
+ "additionalProperties": false
12098
+ }
12099
+ },
12100
+ "stale": {
12101
+ "type": "array",
12102
+ "items": {
12103
+ "type": "string"
12104
+ },
12105
+ "description": "[Read-only] List of stale values that are waiting to be recomputed."
12106
+ },
11943
12107
  "similarity": {
11944
12108
  "type": "number",
11945
12109
  "description": "Optional numeric value indicating similarity, when using findTableRows."
11946
12110
  }
11947
12111
  },
11948
12112
  "required": [
11949
- "id"
12113
+ "id",
12114
+ "computed"
11950
12115
  ],
11951
12116
  "additionalProperties": true
11952
12117
  }