@botpress/api 0.62.0 → 0.63.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/src/gen/state.ts CHANGED
@@ -11170,6 +11170,16 @@ export const state = {
11170
11170
  "description": "ID of a bot or a workspace, depending on the \"type\" parameter",
11171
11171
  "in": "path"
11172
11172
  },
11173
+ "timestampFrom": {
11174
+ "in": "query",
11175
+ "description": "Timestamp from (inclusive)",
11176
+ "type": "string"
11177
+ },
11178
+ "timestampUntil": {
11179
+ "in": "query",
11180
+ "description": "Timestamp until (exclusive)",
11181
+ "type": "string"
11182
+ },
11173
11183
  "nextToken": {
11174
11184
  "in": "query",
11175
11185
  "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
@@ -11229,6 +11239,97 @@ export const state = {
11229
11239
  }
11230
11240
  }
11231
11241
  },
11242
+ "listUsageActivityDaily": {
11243
+ "name": "listUsageActivityDaily",
11244
+ "description": "List the aggregate daily usage activity (aggregate) for a given usage type and ID. The most recent activity is listed first.",
11245
+ "method": "get",
11246
+ "path": "/v1/admin/usages/{id}/daily-activity",
11247
+ "section": "usage",
11248
+ "parameters": {
11249
+ "type": {
11250
+ "in": "query",
11251
+ "description": "Usage type",
11252
+ "type": "string",
11253
+ "enum": [
11254
+ "invocation_timeout",
11255
+ "invocation_calls",
11256
+ "storage_count",
11257
+ "bot_count",
11258
+ "knowledgebase_vector_storage",
11259
+ "workspace_ratelimit",
11260
+ "table_row_count",
11261
+ "workspace_member_count",
11262
+ "integrations_owned_count",
11263
+ "ai_spend",
11264
+ "openai_spend",
11265
+ "bing_search_spend",
11266
+ "always_alive"
11267
+ ],
11268
+ "required": true
11269
+ },
11270
+ "id": {
11271
+ "type": "string",
11272
+ "description": "ID of a bot or a workspace, depending on the \"type\" parameter",
11273
+ "in": "path"
11274
+ },
11275
+ "dateFrom": {
11276
+ "in": "query",
11277
+ "description": "Date from (inclusive)",
11278
+ "type": "string"
11279
+ },
11280
+ "dateUntil": {
11281
+ "in": "query",
11282
+ "description": "Date until (exclusive)",
11283
+ "type": "string"
11284
+ },
11285
+ "nextToken": {
11286
+ "in": "query",
11287
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
11288
+ "type": "string"
11289
+ }
11290
+ },
11291
+ "response": {
11292
+ "description": "Returns the daily usage activity.",
11293
+ "schema": {
11294
+ "type": "object",
11295
+ "properties": {
11296
+ "data": {
11297
+ "type": "array",
11298
+ "items": {
11299
+ "type": "object",
11300
+ "properties": {
11301
+ "date": {
11302
+ "type": "string"
11303
+ },
11304
+ "value": {
11305
+ "type": "number"
11306
+ }
11307
+ },
11308
+ "required": [
11309
+ "date",
11310
+ "value"
11311
+ ]
11312
+ }
11313
+ },
11314
+ "meta": {
11315
+ "type": "object",
11316
+ "properties": {
11317
+ "nextToken": {
11318
+ "type": "string"
11319
+ }
11320
+ },
11321
+ "additionalProperties": false
11322
+ }
11323
+ },
11324
+ "required": [
11325
+ "data",
11326
+ "meta"
11327
+ ],
11328
+ "title": "listUsageActivityDailyResponse",
11329
+ "additionalProperties": false
11330
+ }
11331
+ }
11332
+ },
11232
11333
  "changeAISpendQuota": {
11233
11334
  "name": "changeAISpendQuota",
11234
11335
  "path": "/v1/admin/quotas/ai-spend",
@@ -13634,7 +13735,7 @@ export const state = {
13634
13735
  "title": "Botpress API",
13635
13736
  "description": "API for Botpress Cloud",
13636
13737
  "server": "https://api.botpress.cloud",
13637
- "version": "0.62.0",
13738
+ "version": "0.63.1",
13638
13739
  "prefix": "v1"
13639
13740
  },
13640
13741
  "errors": [
@@ -13947,6 +14048,7 @@ export const state = {
13947
14048
  "getMultipleUsagesResponse": true,
13948
14049
  "listUsageHistoryResponse": true,
13949
14050
  "listUsageActivityResponse": true,
14051
+ "listUsageActivityDailyResponse": true,
13950
14052
  "changeAISpendQuotaResponse": true,
13951
14053
  "listActivitiesResponse": true,
13952
14054
  "introspectResponse": true,
@@ -17402,7 +17504,8 @@ export const state = {
17402
17504
  "name": "usage",
17403
17505
  "operations": [
17404
17506
  "getUsage",
17405
- "getMultipleUsages"
17507
+ "getMultipleUsages",
17508
+ "listUsageActivityDaily"
17406
17509
  ],
17407
17510
  "schema": "Usage"
17408
17511
  },