@botpress/api 0.15.3 → 0.15.4

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
@@ -3518,6 +3518,75 @@ export const state = {
3518
3518
  },
3519
3519
  },
3520
3520
  },
3521
+ breakDownWorkspaceUsageByBot: {
3522
+ name: "breakDownWorkspaceUsageByBot",
3523
+ description: "Break down workspace usage by bot",
3524
+ section: "workspace",
3525
+ method: "get",
3526
+ path: "/v1/admin/workspaces/{id}/usages/by-bot",
3527
+ disableDefaultParameters: {
3528
+ "x-workspace-id": true,
3529
+ },
3530
+ parameters: {
3531
+ id: {
3532
+ type: "string",
3533
+ description: "Workspace ID",
3534
+ in: "path",
3535
+ },
3536
+ type: {
3537
+ in: "query",
3538
+ description: "Type of usage",
3539
+ type: "string",
3540
+ enum: [
3541
+ "invocation_timeout",
3542
+ "invocation_calls",
3543
+ "storage_count",
3544
+ "bot_count",
3545
+ "knowledgebase_vector_storage",
3546
+ "workspace_ratelimit",
3547
+ "table_row_count",
3548
+ "workspace_member_count",
3549
+ "integrations_owned_count",
3550
+ "ai_spend",
3551
+ "openai_spend",
3552
+ "bing_search_spend",
3553
+ ],
3554
+ required: true,
3555
+ },
3556
+ period: {
3557
+ in: "query",
3558
+ description: "Period to get",
3559
+ type: "string",
3560
+ required: false,
3561
+ },
3562
+ },
3563
+ response: {
3564
+ description: "Success",
3565
+ schema: {
3566
+ type: "object",
3567
+ properties: {
3568
+ data: {
3569
+ type: "array",
3570
+ items: {
3571
+ type: "object",
3572
+ properties: {
3573
+ botId: {
3574
+ type: "string",
3575
+ },
3576
+ value: {
3577
+ type: "number",
3578
+ },
3579
+ },
3580
+ required: ["botId", "value"],
3581
+ },
3582
+ },
3583
+ },
3584
+ required: ["data"],
3585
+ title: "breakDownWorkspaceUsageByBotResponse",
3586
+ additionalProperties: false,
3587
+ },
3588
+ },
3589
+ },
3521
3590
  getWorkspaceQuota: {
3522
3591
  name: "getWorkspaceQuota",
3523
3592
  description: "Get workspace quota",
@@ -5685,7 +5754,7 @@ export const state = {
5685
5754
  title: "Botpress API",
5686
5755
  description: "API for Botpress Cloud",
5687
5756
  server: "https://api.botpress.cloud",
5688
- version: "0.15.3",
5757
+ version: "0.15.4",
5689
5758
  prefix: "v1",
5690
5759
  },
5691
5760
  errors: [
@@ -5896,6 +5965,7 @@ export const state = {
5896
5965
  createWorkspaceResponse: true,
5897
5966
  getWorkspaceResponse: true,
5898
5967
  listWorkspaceUsagesResponse: true,
5968
+ breakDownWorkspaceUsageByBotResponse: true,
5899
5969
  getWorkspaceQuotaResponse: true,
5900
5970
  listWorkspaceQuotasResponse: true,
5901
5971
  updateWorkspaceResponse: true,
@@ -7470,6 +7540,7 @@ export const state = {
7470
7540
  "createWorkspace",
7471
7541
  "getWorkspace",
7472
7542
  "listWorkspaceUsages",
7543
+ "breakDownWorkspaceUsageByBot",
7473
7544
  "getWorkspaceQuota",
7474
7545
  "listWorkspaceQuotas",
7475
7546
  "updateWorkspace",