@botpress/api 0.27.12 → 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/dist/index.js +238 -66
- package/dist/src/gen/state.d.ts +185 -2
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +223 -8
package/src/gen/state.ts
CHANGED
|
@@ -6353,6 +6353,54 @@ export const state = {
|
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
6355
|
},
|
|
6356
|
+
"getWorkspaceMember": {
|
|
6357
|
+
"name": "getWorkspaceMember",
|
|
6358
|
+
"description": "Get details of the account authenticating with this endpoint.",
|
|
6359
|
+
"section": "workspaceMember",
|
|
6360
|
+
"method": "get",
|
|
6361
|
+
"path": "/v1/admin/workspace-members/me",
|
|
6362
|
+
"response": {
|
|
6363
|
+
"description": "Success",
|
|
6364
|
+
"schema": {
|
|
6365
|
+
"type": "object",
|
|
6366
|
+
"properties": {
|
|
6367
|
+
"id": {
|
|
6368
|
+
"type": "string"
|
|
6369
|
+
},
|
|
6370
|
+
"userId": {
|
|
6371
|
+
"type": "string",
|
|
6372
|
+
"format": "uuid"
|
|
6373
|
+
},
|
|
6374
|
+
"email": {
|
|
6375
|
+
"type": "string"
|
|
6376
|
+
},
|
|
6377
|
+
"createdAt": {
|
|
6378
|
+
"type": "string"
|
|
6379
|
+
},
|
|
6380
|
+
"role": {
|
|
6381
|
+
"type": "string",
|
|
6382
|
+
"enum": [
|
|
6383
|
+
"viewer",
|
|
6384
|
+
"billing",
|
|
6385
|
+
"developer",
|
|
6386
|
+
"manager",
|
|
6387
|
+
"administrator",
|
|
6388
|
+
"owner"
|
|
6389
|
+
]
|
|
6390
|
+
}
|
|
6391
|
+
},
|
|
6392
|
+
"required": [
|
|
6393
|
+
"id",
|
|
6394
|
+
"email",
|
|
6395
|
+
"createdAt",
|
|
6396
|
+
"role"
|
|
6397
|
+
],
|
|
6398
|
+
"title": "getWorkspaceMemberResponse",
|
|
6399
|
+
"additionalProperties": false
|
|
6400
|
+
}
|
|
6401
|
+
},
|
|
6402
|
+
"parameters": {}
|
|
6403
|
+
},
|
|
6356
6404
|
"deleteWorkspaceMember": {
|
|
6357
6405
|
"name": "deleteWorkspaceMember",
|
|
6358
6406
|
"description": "Remove a member of a workspace",
|
|
@@ -8798,15 +8846,15 @@ export const state = {
|
|
|
8798
8846
|
"type": "number",
|
|
8799
8847
|
"description": "The total number of rows present in the table."
|
|
8800
8848
|
},
|
|
8801
|
-
"
|
|
8849
|
+
"staleCount": {
|
|
8802
8850
|
"type": "number",
|
|
8803
|
-
"description": "The number of rows
|
|
8851
|
+
"description": "The number of stale rows that are waiting to be processed"
|
|
8804
8852
|
}
|
|
8805
8853
|
},
|
|
8806
8854
|
"required": [
|
|
8807
8855
|
"table",
|
|
8808
8856
|
"rows",
|
|
8809
|
-
"
|
|
8857
|
+
"staleCount"
|
|
8810
8858
|
],
|
|
8811
8859
|
"title": "getTableResponse",
|
|
8812
8860
|
"additionalProperties": false
|
|
@@ -8852,6 +8900,10 @@ export const state = {
|
|
|
8852
8900
|
"type": "string"
|
|
8853
8901
|
},
|
|
8854
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."
|
|
8855
8907
|
}
|
|
8856
8908
|
},
|
|
8857
8909
|
"required": [
|
|
@@ -8878,16 +8930,16 @@ export const state = {
|
|
|
8878
8930
|
"type": "number",
|
|
8879
8931
|
"description": "The total number of rows present in the table."
|
|
8880
8932
|
},
|
|
8881
|
-
"
|
|
8933
|
+
"staleCount": {
|
|
8882
8934
|
"type": "number",
|
|
8883
|
-
"description": "The number of rows
|
|
8935
|
+
"description": "The number of stale rows that are waiting to be processed"
|
|
8884
8936
|
}
|
|
8885
8937
|
},
|
|
8886
8938
|
"required": [
|
|
8887
8939
|
"table",
|
|
8888
8940
|
"created",
|
|
8889
8941
|
"rows",
|
|
8890
|
-
"
|
|
8942
|
+
"staleCount"
|
|
8891
8943
|
],
|
|
8892
8944
|
"title": "getOrCreateTableResponse",
|
|
8893
8945
|
"additionalProperties": false
|
|
@@ -8931,6 +8983,10 @@ export const state = {
|
|
|
8931
8983
|
"type": "string"
|
|
8932
8984
|
},
|
|
8933
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."
|
|
8934
8990
|
}
|
|
8935
8991
|
},
|
|
8936
8992
|
"required": [
|
|
@@ -9053,6 +9109,10 @@ export const state = {
|
|
|
9053
9109
|
"type": "string"
|
|
9054
9110
|
},
|
|
9055
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."
|
|
9056
9116
|
}
|
|
9057
9117
|
},
|
|
9058
9118
|
"title": "updateTableBody",
|
|
@@ -9067,6 +9127,13 @@ export const state = {
|
|
|
9067
9127
|
"properties": {
|
|
9068
9128
|
"table": {
|
|
9069
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."
|
|
9070
9137
|
}
|
|
9071
9138
|
},
|
|
9072
9139
|
"required": [
|
|
@@ -9322,6 +9389,10 @@ export const state = {
|
|
|
9322
9389
|
},
|
|
9323
9390
|
"minItems": 1,
|
|
9324
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."
|
|
9325
9396
|
}
|
|
9326
9397
|
},
|
|
9327
9398
|
"required": [
|
|
@@ -9457,6 +9528,10 @@ export const state = {
|
|
|
9457
9528
|
"minItems": 1,
|
|
9458
9529
|
"maxItems": 1000,
|
|
9459
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."
|
|
9460
9535
|
}
|
|
9461
9536
|
},
|
|
9462
9537
|
"required": [
|
|
@@ -9538,6 +9613,10 @@ export const state = {
|
|
|
9538
9613
|
"minLength": 1,
|
|
9539
9614
|
"maxLength": 30,
|
|
9540
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."
|
|
9541
9620
|
}
|
|
9542
9621
|
},
|
|
9543
9622
|
"required": [
|
|
@@ -9594,7 +9673,7 @@ export const state = {
|
|
|
9594
9673
|
"title": "Botpress API",
|
|
9595
9674
|
"description": "API for Botpress Cloud",
|
|
9596
9675
|
"server": "https://api.botpress.cloud",
|
|
9597
|
-
"version": "0.27.
|
|
9676
|
+
"version": "0.27.14",
|
|
9598
9677
|
"prefix": "v1"
|
|
9599
9678
|
},
|
|
9600
9679
|
"errors": [
|
|
@@ -9847,6 +9926,7 @@ export const state = {
|
|
|
9847
9926
|
"deleteWorkspaceResponse": true,
|
|
9848
9927
|
"getAuditRecordsResponse": true,
|
|
9849
9928
|
"listWorkspaceMembersResponse": true,
|
|
9929
|
+
"getWorkspaceMemberResponse": true,
|
|
9850
9930
|
"deleteWorkspaceMemberResponse": true,
|
|
9851
9931
|
"createWorkspaceMemberResponse": true,
|
|
9852
9932
|
"updateWorkspaceMemberResponse": true,
|
|
@@ -11748,6 +11828,61 @@ export const state = {
|
|
|
11748
11828
|
"type": "boolean",
|
|
11749
11829
|
"description": "Indicates if the column is vectorized and searchable."
|
|
11750
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
|
+
},
|
|
11751
11886
|
"typings": {
|
|
11752
11887
|
"type": "string",
|
|
11753
11888
|
"description": "TypeScript typings for the column. Recommended if the type is \"object\", ex: \"\\{ foo: string; bar: number \\}\""
|
|
@@ -11803,6 +11938,10 @@ export const state = {
|
|
|
11803
11938
|
},
|
|
11804
11939
|
"description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
|
|
11805
11940
|
},
|
|
11941
|
+
"isComputeEnabled": {
|
|
11942
|
+
"type": "boolean",
|
|
11943
|
+
"description": "Indicates if the table is enabled for computation."
|
|
11944
|
+
},
|
|
11806
11945
|
"createdAt": {
|
|
11807
11946
|
"type": "string",
|
|
11808
11947
|
"format": "date-time",
|
|
@@ -11860,6 +11999,49 @@ export const state = {
|
|
|
11860
11999
|
"type": "string",
|
|
11861
12000
|
"description": "TypeScript typings for the column. Recommended if the type is \"object\", ex: \"\\{ foo: string; bar: number \\}\""
|
|
11862
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
|
+
},
|
|
11863
12045
|
"schema": {
|
|
11864
12046
|
"type": "object",
|
|
11865
12047
|
"additionalProperties": true
|
|
@@ -11891,13 +12073,45 @@ export const state = {
|
|
|
11891
12073
|
"format": "date-time",
|
|
11892
12074
|
"description": "Timestamp of the last row update."
|
|
11893
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
|
+
},
|
|
11894
12107
|
"similarity": {
|
|
11895
12108
|
"type": "number",
|
|
11896
12109
|
"description": "Optional numeric value indicating similarity, when using findTableRows."
|
|
11897
12110
|
}
|
|
11898
12111
|
},
|
|
11899
12112
|
"required": [
|
|
11900
|
-
"id"
|
|
12113
|
+
"id",
|
|
12114
|
+
"computed"
|
|
11901
12115
|
],
|
|
11902
12116
|
"additionalProperties": true
|
|
11903
12117
|
}
|
|
@@ -12176,6 +12390,7 @@ export const state = {
|
|
|
12176
12390
|
"name": "workspaceMember",
|
|
12177
12391
|
"operations": [
|
|
12178
12392
|
"listWorkspaceMembers",
|
|
12393
|
+
"getWorkspaceMember",
|
|
12179
12394
|
"deleteWorkspaceMember",
|
|
12180
12395
|
"createWorkspaceMember",
|
|
12181
12396
|
"updateWorkspaceMember"
|