@botpress/api 0.25.1 → 0.26.1
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 +205507 -204720
- package/dist/src/gen/state.d.ts +42 -111
- package/dist/src/index.d.ts +6 -2
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +48 -144
package/src/gen/state.ts
CHANGED
|
@@ -1902,6 +1902,48 @@ export const state = {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
1904
1904
|
},
|
|
1905
|
+
"trackAnalytics": {
|
|
1906
|
+
"name": "trackAnalytics",
|
|
1907
|
+
"description": "Add an event to the analytics",
|
|
1908
|
+
"method": "post",
|
|
1909
|
+
"path": "/v1/chat/analytics",
|
|
1910
|
+
"disableDefaultParameters": {
|
|
1911
|
+
"x-integration-id": true
|
|
1912
|
+
},
|
|
1913
|
+
"requestBody": {
|
|
1914
|
+
"description": "Add an event to the analytics",
|
|
1915
|
+
"schema": {
|
|
1916
|
+
"type": "object",
|
|
1917
|
+
"properties": {
|
|
1918
|
+
"name": {
|
|
1919
|
+
"type": "string",
|
|
1920
|
+
"minLength": 1,
|
|
1921
|
+
"maxLength": 200
|
|
1922
|
+
},
|
|
1923
|
+
"count": {
|
|
1924
|
+
"type": "integer",
|
|
1925
|
+
"minimum": 1
|
|
1926
|
+
}
|
|
1927
|
+
},
|
|
1928
|
+
"required": [
|
|
1929
|
+
"name",
|
|
1930
|
+
"count"
|
|
1931
|
+
],
|
|
1932
|
+
"title": "trackAnalyticsBody",
|
|
1933
|
+
"additionalProperties": false
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1936
|
+
"response": {
|
|
1937
|
+
"description": "Success",
|
|
1938
|
+
"status": 200,
|
|
1939
|
+
"schema": {
|
|
1940
|
+
"type": "object",
|
|
1941
|
+
"title": "trackAnalyticsResponse",
|
|
1942
|
+
"additionalProperties": false
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
"parameters": {}
|
|
1946
|
+
},
|
|
1905
1947
|
"runVrl": {
|
|
1906
1948
|
"name": "runVrl",
|
|
1907
1949
|
"description": "Run a VRL script",
|
|
@@ -6085,142 +6127,6 @@ export const state = {
|
|
|
6085
6127
|
}
|
|
6086
6128
|
}
|
|
6087
6129
|
},
|
|
6088
|
-
"changeWorkspacePlan": {
|
|
6089
|
-
"name": "changeWorkspacePlan",
|
|
6090
|
-
"description": "Change workspace billing plan",
|
|
6091
|
-
"section": "workspace",
|
|
6092
|
-
"method": "put",
|
|
6093
|
-
"path": "/v1/admin/workspaces/{id}/change-plan",
|
|
6094
|
-
"disableDefaultParameters": {
|
|
6095
|
-
"x-workspace-id": true
|
|
6096
|
-
},
|
|
6097
|
-
"parameters": {
|
|
6098
|
-
"id": {
|
|
6099
|
-
"type": "string",
|
|
6100
|
-
"description": "Workspace ID",
|
|
6101
|
-
"in": "path"
|
|
6102
|
-
}
|
|
6103
|
-
},
|
|
6104
|
-
"requestBody": {
|
|
6105
|
-
"description": "Billing plan to change the workspace to",
|
|
6106
|
-
"schema": {
|
|
6107
|
-
"type": "object",
|
|
6108
|
-
"properties": {
|
|
6109
|
-
"plan": {
|
|
6110
|
-
"type": "string",
|
|
6111
|
-
"enum": [
|
|
6112
|
-
"free",
|
|
6113
|
-
"premium"
|
|
6114
|
-
]
|
|
6115
|
-
}
|
|
6116
|
-
},
|
|
6117
|
-
"required": [
|
|
6118
|
-
"plan"
|
|
6119
|
-
],
|
|
6120
|
-
"title": "changeWorkspacePlanBody",
|
|
6121
|
-
"additionalProperties": false
|
|
6122
|
-
}
|
|
6123
|
-
},
|
|
6124
|
-
"response": {
|
|
6125
|
-
"description": "Success",
|
|
6126
|
-
"schema": {
|
|
6127
|
-
"type": "object",
|
|
6128
|
-
"properties": {
|
|
6129
|
-
"id": {
|
|
6130
|
-
"type": "string"
|
|
6131
|
-
},
|
|
6132
|
-
"name": {
|
|
6133
|
-
"type": "string"
|
|
6134
|
-
},
|
|
6135
|
-
"ownerId": {
|
|
6136
|
-
"type": "string"
|
|
6137
|
-
},
|
|
6138
|
-
"createdAt": {
|
|
6139
|
-
"type": "string"
|
|
6140
|
-
},
|
|
6141
|
-
"updatedAt": {
|
|
6142
|
-
"type": "string"
|
|
6143
|
-
},
|
|
6144
|
-
"botCount": {
|
|
6145
|
-
"type": "number"
|
|
6146
|
-
},
|
|
6147
|
-
"accountType": {
|
|
6148
|
-
"type": "string",
|
|
6149
|
-
"enum": [
|
|
6150
|
-
"free",
|
|
6151
|
-
"premium"
|
|
6152
|
-
]
|
|
6153
|
-
},
|
|
6154
|
-
"billingVersion": {
|
|
6155
|
-
"type": "string",
|
|
6156
|
-
"enum": [
|
|
6157
|
-
"v1",
|
|
6158
|
-
"v2"
|
|
6159
|
-
]
|
|
6160
|
-
},
|
|
6161
|
-
"plan": {
|
|
6162
|
-
"type": "string",
|
|
6163
|
-
"enum": [
|
|
6164
|
-
"community",
|
|
6165
|
-
"team",
|
|
6166
|
-
"enterprise"
|
|
6167
|
-
]
|
|
6168
|
-
},
|
|
6169
|
-
"blocked": {
|
|
6170
|
-
"type": "boolean"
|
|
6171
|
-
},
|
|
6172
|
-
"spendingLimit": {
|
|
6173
|
-
"type": "number"
|
|
6174
|
-
},
|
|
6175
|
-
"about": {
|
|
6176
|
-
"default": "",
|
|
6177
|
-
"type": "string"
|
|
6178
|
-
},
|
|
6179
|
-
"profilePicture": {
|
|
6180
|
-
"default": "",
|
|
6181
|
-
"type": "string"
|
|
6182
|
-
},
|
|
6183
|
-
"contactEmail": {
|
|
6184
|
-
"default": "",
|
|
6185
|
-
"type": "string"
|
|
6186
|
-
},
|
|
6187
|
-
"website": {
|
|
6188
|
-
"default": "",
|
|
6189
|
-
"type": "string"
|
|
6190
|
-
},
|
|
6191
|
-
"socialAccounts": {
|
|
6192
|
-
"default": [],
|
|
6193
|
-
"type": "array",
|
|
6194
|
-
"items": {
|
|
6195
|
-
"type": "string"
|
|
6196
|
-
}
|
|
6197
|
-
},
|
|
6198
|
-
"isPublic": {
|
|
6199
|
-
"type": "boolean"
|
|
6200
|
-
},
|
|
6201
|
-
"handle": {
|
|
6202
|
-
"default": "",
|
|
6203
|
-
"type": "string"
|
|
6204
|
-
}
|
|
6205
|
-
},
|
|
6206
|
-
"required": [
|
|
6207
|
-
"id",
|
|
6208
|
-
"name",
|
|
6209
|
-
"ownerId",
|
|
6210
|
-
"createdAt",
|
|
6211
|
-
"updatedAt",
|
|
6212
|
-
"botCount",
|
|
6213
|
-
"accountType",
|
|
6214
|
-
"billingVersion",
|
|
6215
|
-
"plan",
|
|
6216
|
-
"blocked",
|
|
6217
|
-
"spendingLimit"
|
|
6218
|
-
],
|
|
6219
|
-
"title": "changeWorkspacePlanResponse",
|
|
6220
|
-
"additionalProperties": false
|
|
6221
|
-
}
|
|
6222
|
-
}
|
|
6223
|
-
},
|
|
6224
6130
|
"deleteWorkspace": {
|
|
6225
6131
|
"name": "deleteWorkspace",
|
|
6226
6132
|
"description": "Delete workspace",
|
|
@@ -6318,14 +6224,12 @@ export const state = {
|
|
|
6318
6224
|
"DELETE_BOT",
|
|
6319
6225
|
"DEPLOY_BOT",
|
|
6320
6226
|
"TRANSFER_BOT",
|
|
6321
|
-
"DOWNGRADE_WORKSPACE_PLAN",
|
|
6322
6227
|
"DOWNLOAD_BOT_ARCHIVE",
|
|
6323
6228
|
"UPDATE_BOT",
|
|
6324
6229
|
"UPDATE_BOT_CHANNEL",
|
|
6325
6230
|
"UPDATE_BOT_CONFIG",
|
|
6326
6231
|
"UPDATE_PAYMENT_METHOD",
|
|
6327
6232
|
"UPDATE_WORKSPACE",
|
|
6328
|
-
"UPGRADE_WORKSPACE_PLAN",
|
|
6329
6233
|
"SET_SPENDING_LIMIT",
|
|
6330
6234
|
"SET_AI_SPENDING_LIMIT"
|
|
6331
6235
|
]
|
|
@@ -8610,9 +8514,10 @@ export const state = {
|
|
|
8610
8514
|
"type": "object",
|
|
8611
8515
|
"additionalProperties": {
|
|
8612
8516
|
"type": "string",
|
|
8613
|
-
"maxLength": 1000
|
|
8517
|
+
"maxLength": 1000,
|
|
8518
|
+
"nullable": true
|
|
8614
8519
|
},
|
|
8615
|
-
"description": "The tags to update as an object of key/value pairs.
|
|
8520
|
+
"description": "The file tags to update as an object of key/value pairs with string (text) values. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`."
|
|
8616
8521
|
}
|
|
8617
8522
|
},
|
|
8618
8523
|
"required": [
|
|
@@ -9609,7 +9514,7 @@ export const state = {
|
|
|
9609
9514
|
"title": "Botpress API",
|
|
9610
9515
|
"description": "API for Botpress Cloud",
|
|
9611
9516
|
"server": "https://api.botpress.cloud",
|
|
9612
|
-
"version": "0.
|
|
9517
|
+
"version": "0.26.1",
|
|
9613
9518
|
"prefix": "v1"
|
|
9614
9519
|
},
|
|
9615
9520
|
"errors": [
|
|
@@ -9750,6 +9655,7 @@ export const state = {
|
|
|
9750
9655
|
"configureIntegrationBody": true,
|
|
9751
9656
|
"createTaskBody": true,
|
|
9752
9657
|
"updateTaskBody": true,
|
|
9658
|
+
"trackAnalyticsBody": true,
|
|
9753
9659
|
"runVrlBody": true,
|
|
9754
9660
|
"updateAccountBody": true,
|
|
9755
9661
|
"createPersonalAccessTokenBody": true,
|
|
@@ -9762,7 +9668,6 @@ export const state = {
|
|
|
9762
9668
|
"createWorkspaceBody": true,
|
|
9763
9669
|
"updateWorkspaceBody": true,
|
|
9764
9670
|
"checkHandleAvailabilityBody": true,
|
|
9765
|
-
"changeWorkspacePlanBody": true,
|
|
9766
9671
|
"createWorkspaceMemberBody": true,
|
|
9767
9672
|
"updateWorkspaceMemberBody": true,
|
|
9768
9673
|
"createIntegrationApiKeyBody": true,
|
|
@@ -9820,6 +9725,7 @@ export const state = {
|
|
|
9820
9725
|
"updateTaskResponse": true,
|
|
9821
9726
|
"deleteTaskResponse": true,
|
|
9822
9727
|
"listTasksResponse": true,
|
|
9728
|
+
"trackAnalyticsResponse": true,
|
|
9823
9729
|
"runVrlResponse": true,
|
|
9824
9730
|
"getAccountResponse": true,
|
|
9825
9731
|
"updateAccountResponse": true,
|
|
@@ -9858,7 +9764,6 @@ export const state = {
|
|
|
9858
9764
|
"updateWorkspaceResponse": true,
|
|
9859
9765
|
"checkHandleAvailabilityResponse": true,
|
|
9860
9766
|
"listWorkspacesResponse": true,
|
|
9861
|
-
"changeWorkspacePlanResponse": true,
|
|
9862
9767
|
"deleteWorkspaceResponse": true,
|
|
9863
9768
|
"getAuditRecordsResponse": true,
|
|
9864
9769
|
"listWorkspaceMembersResponse": true,
|
|
@@ -12182,7 +12087,6 @@ export const state = {
|
|
|
12182
12087
|
"updateWorkspace",
|
|
12183
12088
|
"checkHandleAvailability",
|
|
12184
12089
|
"listWorkspaces",
|
|
12185
|
-
"changeWorkspacePlan",
|
|
12186
12090
|
"deleteWorkspace",
|
|
12187
12091
|
"getAuditRecords"
|
|
12188
12092
|
],
|