@botpress/api 0.18.2 → 0.18.4
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 +434 -177
- package/dist/src/gen/state.d.ts +148 -0
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +164 -2
package/src/gen/state.ts
CHANGED
|
@@ -1969,6 +1969,12 @@ export const state = {
|
|
|
1969
1969
|
"email": {
|
|
1970
1970
|
"type": "string"
|
|
1971
1971
|
},
|
|
1972
|
+
"displayName": {
|
|
1973
|
+
"type": "string"
|
|
1974
|
+
},
|
|
1975
|
+
"profilePicture": {
|
|
1976
|
+
"type": "string"
|
|
1977
|
+
},
|
|
1972
1978
|
"createdAt": {
|
|
1973
1979
|
"type": "string",
|
|
1974
1980
|
"format": "date-time",
|
|
@@ -1992,6 +1998,74 @@ export const state = {
|
|
|
1992
1998
|
},
|
|
1993
1999
|
"parameters": {}
|
|
1994
2000
|
},
|
|
2001
|
+
"updateAccount": {
|
|
2002
|
+
"name": "updateAccount",
|
|
2003
|
+
"description": "Update details of the account associated with authenticated user",
|
|
2004
|
+
"method": "put",
|
|
2005
|
+
"path": "/v1/admin/account/me",
|
|
2006
|
+
"section": "account",
|
|
2007
|
+
"disableDefaultParameters": {
|
|
2008
|
+
"x-workspace-id": true
|
|
2009
|
+
},
|
|
2010
|
+
"requestBody": {
|
|
2011
|
+
"description": "Account Data",
|
|
2012
|
+
"schema": {
|
|
2013
|
+
"type": "object",
|
|
2014
|
+
"properties": {
|
|
2015
|
+
"displayName": {
|
|
2016
|
+
"type": "string"
|
|
2017
|
+
},
|
|
2018
|
+
"profilePicture": {
|
|
2019
|
+
"type": "string"
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
"title": "updateAccountBody",
|
|
2023
|
+
"additionalProperties": false
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2026
|
+
"response": {
|
|
2027
|
+
"description": "Success",
|
|
2028
|
+
"schema": {
|
|
2029
|
+
"type": "object",
|
|
2030
|
+
"properties": {
|
|
2031
|
+
"account": {
|
|
2032
|
+
"type": "object",
|
|
2033
|
+
"properties": {
|
|
2034
|
+
"id": {
|
|
2035
|
+
"type": "string"
|
|
2036
|
+
},
|
|
2037
|
+
"email": {
|
|
2038
|
+
"type": "string"
|
|
2039
|
+
},
|
|
2040
|
+
"displayName": {
|
|
2041
|
+
"type": "string"
|
|
2042
|
+
},
|
|
2043
|
+
"profilePicture": {
|
|
2044
|
+
"type": "string"
|
|
2045
|
+
},
|
|
2046
|
+
"createdAt": {
|
|
2047
|
+
"type": "string",
|
|
2048
|
+
"format": "date-time",
|
|
2049
|
+
"description": "Creation date of the [Account](#schema_account) in ISO 8601 format"
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
"required": [
|
|
2053
|
+
"id",
|
|
2054
|
+
"email",
|
|
2055
|
+
"createdAt"
|
|
2056
|
+
],
|
|
2057
|
+
"additionalProperties": false
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
"required": [
|
|
2061
|
+
"account"
|
|
2062
|
+
],
|
|
2063
|
+
"title": "updateAccountResponse",
|
|
2064
|
+
"additionalProperties": false
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
"parameters": {}
|
|
2068
|
+
},
|
|
1995
2069
|
"listPersonalAccessTokens": {
|
|
1996
2070
|
"name": "listPersonalAccessTokens",
|
|
1997
2071
|
"description": "List PATs (Personal Access Tokens) of account.",
|
|
@@ -4097,6 +4171,78 @@ export const state = {
|
|
|
4097
4171
|
},
|
|
4098
4172
|
"parameters": {}
|
|
4099
4173
|
},
|
|
4174
|
+
"getPublicWorkspace": {
|
|
4175
|
+
"name": "getPublicWorkspace",
|
|
4176
|
+
"description": "Get workspace public details",
|
|
4177
|
+
"section": "workspace",
|
|
4178
|
+
"method": "get",
|
|
4179
|
+
"path": "/v1/admin/workspaces/{id}/public",
|
|
4180
|
+
"disableDefaultParameters": {
|
|
4181
|
+
"x-workspace-id": true
|
|
4182
|
+
},
|
|
4183
|
+
"parameters": {
|
|
4184
|
+
"id": {
|
|
4185
|
+
"type": "string",
|
|
4186
|
+
"description": "Workspace ID",
|
|
4187
|
+
"in": "path"
|
|
4188
|
+
}
|
|
4189
|
+
},
|
|
4190
|
+
"response": {
|
|
4191
|
+
"description": "Success",
|
|
4192
|
+
"schema": {
|
|
4193
|
+
"type": "object",
|
|
4194
|
+
"properties": {
|
|
4195
|
+
"id": {
|
|
4196
|
+
"type": "string"
|
|
4197
|
+
},
|
|
4198
|
+
"name": {
|
|
4199
|
+
"type": "string"
|
|
4200
|
+
},
|
|
4201
|
+
"createdAt": {
|
|
4202
|
+
"type": "string"
|
|
4203
|
+
},
|
|
4204
|
+
"updatedAt": {
|
|
4205
|
+
"type": "string"
|
|
4206
|
+
},
|
|
4207
|
+
"about": {
|
|
4208
|
+
"default": "",
|
|
4209
|
+
"type": "string"
|
|
4210
|
+
},
|
|
4211
|
+
"profilePicture": {
|
|
4212
|
+
"default": "",
|
|
4213
|
+
"type": "string"
|
|
4214
|
+
},
|
|
4215
|
+
"contactEmail": {
|
|
4216
|
+
"default": "",
|
|
4217
|
+
"type": "string"
|
|
4218
|
+
},
|
|
4219
|
+
"website": {
|
|
4220
|
+
"default": "",
|
|
4221
|
+
"type": "string"
|
|
4222
|
+
},
|
|
4223
|
+
"socialAccounts": {
|
|
4224
|
+
"default": [],
|
|
4225
|
+
"type": "array",
|
|
4226
|
+
"items": {
|
|
4227
|
+
"type": "string"
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4230
|
+
"handle": {
|
|
4231
|
+
"default": "",
|
|
4232
|
+
"type": "string"
|
|
4233
|
+
}
|
|
4234
|
+
},
|
|
4235
|
+
"required": [
|
|
4236
|
+
"id",
|
|
4237
|
+
"name",
|
|
4238
|
+
"createdAt",
|
|
4239
|
+
"updatedAt"
|
|
4240
|
+
],
|
|
4241
|
+
"title": "getPublicWorkspaceResponse",
|
|
4242
|
+
"additionalProperties": false
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
},
|
|
4100
4246
|
"getWorkspace": {
|
|
4101
4247
|
"name": "getWorkspace",
|
|
4102
4248
|
"description": "Get workspace details",
|
|
@@ -5146,6 +5292,10 @@ export const state = {
|
|
|
5146
5292
|
"type": "string",
|
|
5147
5293
|
"nullable": true
|
|
5148
5294
|
},
|
|
5295
|
+
"value": {
|
|
5296
|
+
"type": "string",
|
|
5297
|
+
"nullable": true
|
|
5298
|
+
},
|
|
5149
5299
|
"action": {
|
|
5150
5300
|
"type": "string",
|
|
5151
5301
|
"enum": [
|
|
@@ -5167,7 +5317,8 @@ export const state = {
|
|
|
5167
5317
|
"UPDATE_PAYMENT_METHOD",
|
|
5168
5318
|
"UPDATE_WORKSPACE",
|
|
5169
5319
|
"UPGRADE_WORKSPACE_PLAN",
|
|
5170
|
-
"SET_SPENDING_LIMIT"
|
|
5320
|
+
"SET_SPENDING_LIMIT",
|
|
5321
|
+
"SET_AI_SPENDING_LIMIT"
|
|
5171
5322
|
]
|
|
5172
5323
|
}
|
|
5173
5324
|
},
|
|
@@ -7701,7 +7852,7 @@ export const state = {
|
|
|
7701
7852
|
"title": "Botpress API",
|
|
7702
7853
|
"description": "API for Botpress Cloud",
|
|
7703
7854
|
"server": "https://api.botpress.cloud",
|
|
7704
|
-
"version": "0.18.
|
|
7855
|
+
"version": "0.18.4",
|
|
7705
7856
|
"prefix": "v1"
|
|
7706
7857
|
},
|
|
7707
7858
|
"errors": [
|
|
@@ -7838,6 +7989,7 @@ export const state = {
|
|
|
7838
7989
|
"createTaskBody": true,
|
|
7839
7990
|
"updateTaskBody": true,
|
|
7840
7991
|
"runVrlBody": true,
|
|
7992
|
+
"updateAccountBody": true,
|
|
7841
7993
|
"createPersonalAccessTokenBody": true,
|
|
7842
7994
|
"setAccountPreferenceBody": true,
|
|
7843
7995
|
"createBotBody": true,
|
|
@@ -7904,6 +8056,7 @@ export const state = {
|
|
|
7904
8056
|
"listTasksResponse": true,
|
|
7905
8057
|
"runVrlResponse": true,
|
|
7906
8058
|
"getAccountResponse": true,
|
|
8059
|
+
"updateAccountResponse": true,
|
|
7907
8060
|
"listPersonalAccessTokensResponse": true,
|
|
7908
8061
|
"createPersonalAccessTokenResponse": true,
|
|
7909
8062
|
"deletePersonalAccessTokenResponse": true,
|
|
@@ -7929,6 +8082,7 @@ export const state = {
|
|
|
7929
8082
|
"listWorkspaceInvoicesResponse": true,
|
|
7930
8083
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
7931
8084
|
"createWorkspaceResponse": true,
|
|
8085
|
+
"getPublicWorkspaceResponse": true,
|
|
7932
8086
|
"getWorkspaceResponse": true,
|
|
7933
8087
|
"listWorkspaceUsagesResponse": true,
|
|
7934
8088
|
"breakDownWorkspaceUsageByBotResponse": true,
|
|
@@ -9042,6 +9196,12 @@ export const state = {
|
|
|
9042
9196
|
"email": {
|
|
9043
9197
|
"type": "string"
|
|
9044
9198
|
},
|
|
9199
|
+
"displayName": {
|
|
9200
|
+
"type": "string"
|
|
9201
|
+
},
|
|
9202
|
+
"profilePicture": {
|
|
9203
|
+
"type": "string"
|
|
9204
|
+
},
|
|
9045
9205
|
"createdAt": {
|
|
9046
9206
|
"type": "string",
|
|
9047
9207
|
"format": "date-time",
|
|
@@ -10128,6 +10288,7 @@ export const state = {
|
|
|
10128
10288
|
"listWorkspaceInvoices",
|
|
10129
10289
|
"chargeWorkspaceUnpaidInvoices",
|
|
10130
10290
|
"createWorkspace",
|
|
10291
|
+
"getPublicWorkspace",
|
|
10131
10292
|
"getWorkspace",
|
|
10132
10293
|
"listWorkspaceUsages",
|
|
10133
10294
|
"breakDownWorkspaceUsageByBot",
|
|
@@ -10161,6 +10322,7 @@ export const state = {
|
|
|
10161
10322
|
"name": "account",
|
|
10162
10323
|
"operations": [
|
|
10163
10324
|
"getAccount",
|
|
10325
|
+
"updateAccount",
|
|
10164
10326
|
"listPersonalAccessTokens",
|
|
10165
10327
|
"createPersonalAccessToken",
|
|
10166
10328
|
"deletePersonalAccessToken",
|