@botpress/api 0.61.0 → 0.63.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/src/gen/state.ts CHANGED
@@ -1725,11 +1725,22 @@ export const state = {
1725
1725
  "type": "string",
1726
1726
  "maxLength": 200,
1727
1727
  "description": "Unique identifier of the integration that was installed on the bot"
1728
+ },
1729
+ "scheduleRegisterCall": {
1730
+ "type": "string",
1731
+ "enum": [
1732
+ "hourly",
1733
+ "daily",
1734
+ "weekly",
1735
+ "bi-weekly",
1736
+ "monthly",
1737
+ "bi-monthly",
1738
+ "quarterly",
1739
+ "yearly"
1740
+ ],
1741
+ "description": "Recurring schedule on which `register()` will be called on the integration"
1728
1742
  }
1729
1743
  },
1730
- "required": [
1731
- "identifier"
1732
- ],
1733
1744
  "title": "configureIntegrationBody",
1734
1745
  "additionalProperties": false
1735
1746
  }
@@ -11159,6 +11170,16 @@ export const state = {
11159
11170
  "description": "ID of a bot or a workspace, depending on the \"type\" parameter",
11160
11171
  "in": "path"
11161
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
+ },
11162
11183
  "nextToken": {
11163
11184
  "in": "query",
11164
11185
  "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
@@ -11218,6 +11239,97 @@ export const state = {
11218
11239
  }
11219
11240
  }
11220
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
+ },
11221
11333
  "changeAISpendQuota": {
11222
11334
  "name": "changeAISpendQuota",
11223
11335
  "path": "/v1/admin/quotas/ai-spend",
@@ -13623,7 +13735,7 @@ export const state = {
13623
13735
  "title": "Botpress API",
13624
13736
  "description": "API for Botpress Cloud",
13625
13737
  "server": "https://api.botpress.cloud",
13626
- "version": "0.61.0",
13738
+ "version": "0.63.0",
13627
13739
  "prefix": "v1"
13628
13740
  },
13629
13741
  "errors": [
@@ -13936,6 +14048,7 @@ export const state = {
13936
14048
  "getMultipleUsagesResponse": true,
13937
14049
  "listUsageHistoryResponse": true,
13938
14050
  "listUsageActivityResponse": true,
14051
+ "listUsageActivityDailyResponse": true,
13939
14052
  "changeAISpendQuotaResponse": true,
13940
14053
  "listActivitiesResponse": true,
13941
14054
  "introspectResponse": true,
@@ -17391,7 +17504,8 @@ export const state = {
17391
17504
  "name": "usage",
17392
17505
  "operations": [
17393
17506
  "getUsage",
17394
- "getMultipleUsages"
17507
+ "getMultipleUsages",
17508
+ "listUsageActivityDaily"
17395
17509
  ],
17396
17510
  "schema": "Usage"
17397
17511
  },