@botpress/api 0.29.6 → 0.30.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 +58 -7
- package/dist/src/gen/state.d.ts +48 -0
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +58 -7
package/src/gen/state.ts
CHANGED
|
@@ -5669,7 +5669,7 @@ export const state = {
|
|
|
5669
5669
|
},
|
|
5670
5670
|
"type": {
|
|
5671
5671
|
"in": "query",
|
|
5672
|
-
"description": "
|
|
5672
|
+
"description": "Usage type",
|
|
5673
5673
|
"type": "string",
|
|
5674
5674
|
"enum": [
|
|
5675
5675
|
"invocation_timeout",
|
|
@@ -5732,7 +5732,7 @@ export const state = {
|
|
|
5732
5732
|
},
|
|
5733
5733
|
"type": {
|
|
5734
5734
|
"in": "query",
|
|
5735
|
-
"description": "
|
|
5735
|
+
"description": "Usage type",
|
|
5736
5736
|
"type": "string",
|
|
5737
5737
|
"enum": [
|
|
5738
5738
|
"invocation_timeout",
|
|
@@ -5856,7 +5856,7 @@ export const state = {
|
|
|
5856
5856
|
},
|
|
5857
5857
|
"type": {
|
|
5858
5858
|
"in": "query",
|
|
5859
|
-
"description": "
|
|
5859
|
+
"description": "Usage type",
|
|
5860
5860
|
"type": "string",
|
|
5861
5861
|
"enum": [
|
|
5862
5862
|
"invocation_timeout",
|
|
@@ -8180,7 +8180,7 @@ export const state = {
|
|
|
8180
8180
|
"parameters": {
|
|
8181
8181
|
"type": {
|
|
8182
8182
|
"in": "query",
|
|
8183
|
-
"description": "
|
|
8183
|
+
"description": "Usage type",
|
|
8184
8184
|
"type": "string",
|
|
8185
8185
|
"enum": [
|
|
8186
8186
|
"invocation_timeout",
|
|
@@ -8228,6 +8228,55 @@ export const state = {
|
|
|
8228
8228
|
}
|
|
8229
8229
|
}
|
|
8230
8230
|
},
|
|
8231
|
+
"getMultipleUsages": {
|
|
8232
|
+
"name": "getMultipleUsages",
|
|
8233
|
+
"path": "/v1/admin/usages/multiple",
|
|
8234
|
+
"description": "Get multiple usages",
|
|
8235
|
+
"method": "get",
|
|
8236
|
+
"section": "usage",
|
|
8237
|
+
"disableDefaultParameters": {
|
|
8238
|
+
"x-workspace-id": true
|
|
8239
|
+
},
|
|
8240
|
+
"parameters": {
|
|
8241
|
+
"types": {
|
|
8242
|
+
"in": "query",
|
|
8243
|
+
"description": "Usage types to retrieve. All types have to belong to the same type of entity (e.g. workspace or bot).",
|
|
8244
|
+
"type": "string[]",
|
|
8245
|
+
"required": true
|
|
8246
|
+
},
|
|
8247
|
+
"ids": {
|
|
8248
|
+
"in": "query",
|
|
8249
|
+
"type": "string[]",
|
|
8250
|
+
"description": "IDs of either workspaces or bots to retrieve usages for.",
|
|
8251
|
+
"required": true
|
|
8252
|
+
},
|
|
8253
|
+
"period": {
|
|
8254
|
+
"in": "query",
|
|
8255
|
+
"description": "Period to get",
|
|
8256
|
+
"type": "string",
|
|
8257
|
+
"required": false
|
|
8258
|
+
}
|
|
8259
|
+
},
|
|
8260
|
+
"response": {
|
|
8261
|
+
"description": "Success",
|
|
8262
|
+
"schema": {
|
|
8263
|
+
"type": "object",
|
|
8264
|
+
"properties": {
|
|
8265
|
+
"usages": {
|
|
8266
|
+
"type": "array",
|
|
8267
|
+
"items": {
|
|
8268
|
+
"$ref": "#/components/schemas/Usage"
|
|
8269
|
+
}
|
|
8270
|
+
}
|
|
8271
|
+
},
|
|
8272
|
+
"required": [
|
|
8273
|
+
"usages"
|
|
8274
|
+
],
|
|
8275
|
+
"title": "getMultipleUsagesResponse",
|
|
8276
|
+
"additionalProperties": false
|
|
8277
|
+
}
|
|
8278
|
+
}
|
|
8279
|
+
},
|
|
8231
8280
|
"listUsageHistory": {
|
|
8232
8281
|
"name": "listUsageHistory",
|
|
8233
8282
|
"path": "/v1/admin/usages/{id}/history",
|
|
@@ -8236,7 +8285,7 @@ export const state = {
|
|
|
8236
8285
|
"parameters": {
|
|
8237
8286
|
"type": {
|
|
8238
8287
|
"in": "query",
|
|
8239
|
-
"description": "
|
|
8288
|
+
"description": "Usage type",
|
|
8240
8289
|
"type": "string",
|
|
8241
8290
|
"enum": [
|
|
8242
8291
|
"invocation_timeout",
|
|
@@ -10033,7 +10082,7 @@ export const state = {
|
|
|
10033
10082
|
"title": "Botpress API",
|
|
10034
10083
|
"description": "API for Botpress Cloud",
|
|
10035
10084
|
"server": "https://api.botpress.cloud",
|
|
10036
|
-
"version": "0.
|
|
10085
|
+
"version": "0.30.0",
|
|
10037
10086
|
"prefix": "v1"
|
|
10038
10087
|
},
|
|
10039
10088
|
"errors": [
|
|
@@ -10302,6 +10351,7 @@ export const state = {
|
|
|
10302
10351
|
"getIntegrationByNameResponse": true,
|
|
10303
10352
|
"deleteIntegrationResponse": true,
|
|
10304
10353
|
"getUsageResponse": true,
|
|
10354
|
+
"getMultipleUsagesResponse": true,
|
|
10305
10355
|
"listUsageHistoryResponse": true,
|
|
10306
10356
|
"changeAISpendQuotaResponse": true,
|
|
10307
10357
|
"listActivitiesResponse": true,
|
|
@@ -12855,7 +12905,8 @@ export const state = {
|
|
|
12855
12905
|
"description": "",
|
|
12856
12906
|
"name": "usage",
|
|
12857
12907
|
"operations": [
|
|
12858
|
-
"getUsage"
|
|
12908
|
+
"getUsage",
|
|
12909
|
+
"getMultipleUsages"
|
|
12859
12910
|
],
|
|
12860
12911
|
"schema": "Usage"
|
|
12861
12912
|
},
|