@botpress/api 0.43.2 → 0.44.0
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 +97 -1
- package/dist/src/gen/state.d.ts +74 -0
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +97 -1
package/src/gen/state.ts
CHANGED
|
@@ -10060,6 +10060,97 @@ export const state = {
|
|
|
10060
10060
|
}
|
|
10061
10061
|
}
|
|
10062
10062
|
},
|
|
10063
|
+
"listUsageActivity": {
|
|
10064
|
+
"name": "listUsageActivity",
|
|
10065
|
+
"path": "/v1/admin/usages/{id}/activity",
|
|
10066
|
+
"method": "get",
|
|
10067
|
+
"description": "List the usage activity for a given usage type and ID. The most recent activity is listed first.",
|
|
10068
|
+
"parameters": {
|
|
10069
|
+
"type": {
|
|
10070
|
+
"in": "query",
|
|
10071
|
+
"description": "Usage type",
|
|
10072
|
+
"type": "string",
|
|
10073
|
+
"enum": [
|
|
10074
|
+
"invocation_timeout",
|
|
10075
|
+
"invocation_calls",
|
|
10076
|
+
"storage_count",
|
|
10077
|
+
"bot_count",
|
|
10078
|
+
"knowledgebase_vector_storage",
|
|
10079
|
+
"workspace_ratelimit",
|
|
10080
|
+
"table_row_count",
|
|
10081
|
+
"workspace_member_count",
|
|
10082
|
+
"integrations_owned_count",
|
|
10083
|
+
"ai_spend",
|
|
10084
|
+
"openai_spend",
|
|
10085
|
+
"bing_search_spend",
|
|
10086
|
+
"always_alive"
|
|
10087
|
+
],
|
|
10088
|
+
"required": true
|
|
10089
|
+
},
|
|
10090
|
+
"id": {
|
|
10091
|
+
"type": "string",
|
|
10092
|
+
"description": "ID of a bot or a workspace, depending on the \"type\" parameter",
|
|
10093
|
+
"in": "path"
|
|
10094
|
+
},
|
|
10095
|
+
"nextToken": {
|
|
10096
|
+
"in": "query",
|
|
10097
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
10098
|
+
"type": "string"
|
|
10099
|
+
}
|
|
10100
|
+
},
|
|
10101
|
+
"response": {
|
|
10102
|
+
"description": "Success",
|
|
10103
|
+
"schema": {
|
|
10104
|
+
"type": "object",
|
|
10105
|
+
"properties": {
|
|
10106
|
+
"data": {
|
|
10107
|
+
"type": "array",
|
|
10108
|
+
"items": {
|
|
10109
|
+
"type": "object",
|
|
10110
|
+
"properties": {
|
|
10111
|
+
"timestamp": {
|
|
10112
|
+
"type": "string"
|
|
10113
|
+
},
|
|
10114
|
+
"value": {
|
|
10115
|
+
"type": "number"
|
|
10116
|
+
},
|
|
10117
|
+
"period": {
|
|
10118
|
+
"type": "string"
|
|
10119
|
+
},
|
|
10120
|
+
"metadata": {
|
|
10121
|
+
"type": "object",
|
|
10122
|
+
"additionalProperties": {
|
|
10123
|
+
"nullable": true
|
|
10124
|
+
}
|
|
10125
|
+
}
|
|
10126
|
+
},
|
|
10127
|
+
"required": [
|
|
10128
|
+
"timestamp",
|
|
10129
|
+
"value",
|
|
10130
|
+
"period",
|
|
10131
|
+
"metadata"
|
|
10132
|
+
]
|
|
10133
|
+
}
|
|
10134
|
+
},
|
|
10135
|
+
"meta": {
|
|
10136
|
+
"type": "object",
|
|
10137
|
+
"properties": {
|
|
10138
|
+
"nextToken": {
|
|
10139
|
+
"type": "string"
|
|
10140
|
+
}
|
|
10141
|
+
},
|
|
10142
|
+
"additionalProperties": false
|
|
10143
|
+
}
|
|
10144
|
+
},
|
|
10145
|
+
"required": [
|
|
10146
|
+
"data",
|
|
10147
|
+
"meta"
|
|
10148
|
+
],
|
|
10149
|
+
"title": "listUsageActivityResponse",
|
|
10150
|
+
"additionalProperties": false
|
|
10151
|
+
}
|
|
10152
|
+
}
|
|
10153
|
+
},
|
|
10063
10154
|
"changeAISpendQuota": {
|
|
10064
10155
|
"name": "changeAISpendQuota",
|
|
10065
10156
|
"path": "/v1/admin/quotas/ai-spend",
|
|
@@ -12000,7 +12091,7 @@ export const state = {
|
|
|
12000
12091
|
"title": "Botpress API",
|
|
12001
12092
|
"description": "API for Botpress Cloud",
|
|
12002
12093
|
"server": "https://api.botpress.cloud",
|
|
12003
|
-
"version": "0.
|
|
12094
|
+
"version": "0.44.0",
|
|
12004
12095
|
"prefix": "v1"
|
|
12005
12096
|
},
|
|
12006
12097
|
"errors": [
|
|
@@ -12304,6 +12395,7 @@ export const state = {
|
|
|
12304
12395
|
"getUsageResponse": true,
|
|
12305
12396
|
"getMultipleUsagesResponse": true,
|
|
12306
12397
|
"listUsageHistoryResponse": true,
|
|
12398
|
+
"listUsageActivityResponse": true,
|
|
12307
12399
|
"changeAISpendQuotaResponse": true,
|
|
12308
12400
|
"listActivitiesResponse": true,
|
|
12309
12401
|
"introspectResponse": true,
|
|
@@ -14743,6 +14835,10 @@ export const state = {
|
|
|
14743
14835
|
"type": "number",
|
|
14744
14836
|
"description": "Width of the column in the UI"
|
|
14745
14837
|
},
|
|
14838
|
+
"schemaId": {
|
|
14839
|
+
"type": "string",
|
|
14840
|
+
"description": "ID of the schema"
|
|
14841
|
+
},
|
|
14746
14842
|
"computed": {
|
|
14747
14843
|
"type": "object",
|
|
14748
14844
|
"properties": {
|