@botpress/api 0.18.2 → 0.18.3
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 +428 -176
- package/dist/src/gen/state.d.ts +144 -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 +158 -1
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",
|
|
@@ -7701,7 +7847,7 @@ export const state = {
|
|
|
7701
7847
|
"title": "Botpress API",
|
|
7702
7848
|
"description": "API for Botpress Cloud",
|
|
7703
7849
|
"server": "https://api.botpress.cloud",
|
|
7704
|
-
"version": "0.18.
|
|
7850
|
+
"version": "0.18.3",
|
|
7705
7851
|
"prefix": "v1"
|
|
7706
7852
|
},
|
|
7707
7853
|
"errors": [
|
|
@@ -7838,6 +7984,7 @@ export const state = {
|
|
|
7838
7984
|
"createTaskBody": true,
|
|
7839
7985
|
"updateTaskBody": true,
|
|
7840
7986
|
"runVrlBody": true,
|
|
7987
|
+
"updateAccountBody": true,
|
|
7841
7988
|
"createPersonalAccessTokenBody": true,
|
|
7842
7989
|
"setAccountPreferenceBody": true,
|
|
7843
7990
|
"createBotBody": true,
|
|
@@ -7904,6 +8051,7 @@ export const state = {
|
|
|
7904
8051
|
"listTasksResponse": true,
|
|
7905
8052
|
"runVrlResponse": true,
|
|
7906
8053
|
"getAccountResponse": true,
|
|
8054
|
+
"updateAccountResponse": true,
|
|
7907
8055
|
"listPersonalAccessTokensResponse": true,
|
|
7908
8056
|
"createPersonalAccessTokenResponse": true,
|
|
7909
8057
|
"deletePersonalAccessTokenResponse": true,
|
|
@@ -7929,6 +8077,7 @@ export const state = {
|
|
|
7929
8077
|
"listWorkspaceInvoicesResponse": true,
|
|
7930
8078
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
7931
8079
|
"createWorkspaceResponse": true,
|
|
8080
|
+
"getPublicWorkspaceResponse": true,
|
|
7932
8081
|
"getWorkspaceResponse": true,
|
|
7933
8082
|
"listWorkspaceUsagesResponse": true,
|
|
7934
8083
|
"breakDownWorkspaceUsageByBotResponse": true,
|
|
@@ -9042,6 +9191,12 @@ export const state = {
|
|
|
9042
9191
|
"email": {
|
|
9043
9192
|
"type": "string"
|
|
9044
9193
|
},
|
|
9194
|
+
"displayName": {
|
|
9195
|
+
"type": "string"
|
|
9196
|
+
},
|
|
9197
|
+
"profilePicture": {
|
|
9198
|
+
"type": "string"
|
|
9199
|
+
},
|
|
9045
9200
|
"createdAt": {
|
|
9046
9201
|
"type": "string",
|
|
9047
9202
|
"format": "date-time",
|
|
@@ -10128,6 +10283,7 @@ export const state = {
|
|
|
10128
10283
|
"listWorkspaceInvoices",
|
|
10129
10284
|
"chargeWorkspaceUnpaidInvoices",
|
|
10130
10285
|
"createWorkspace",
|
|
10286
|
+
"getPublicWorkspace",
|
|
10131
10287
|
"getWorkspace",
|
|
10132
10288
|
"listWorkspaceUsages",
|
|
10133
10289
|
"breakDownWorkspaceUsageByBot",
|
|
@@ -10161,6 +10317,7 @@ export const state = {
|
|
|
10161
10317
|
"name": "account",
|
|
10162
10318
|
"operations": [
|
|
10163
10319
|
"getAccount",
|
|
10320
|
+
"updateAccount",
|
|
10164
10321
|
"listPersonalAccessTokens",
|
|
10165
10322
|
"createPersonalAccessToken",
|
|
10166
10323
|
"deletePersonalAccessToken",
|