@botpress/api 0.15.3 → 0.15.5

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
@@ -34,6 +34,7 @@ export const state = {
34
34
  maxLength: 200,
35
35
  description:
36
36
  "[DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.",
37
+ deprecated: true,
37
38
  },
38
39
  },
39
40
  required: ["channel", "tags"],
@@ -181,6 +182,7 @@ export const state = {
181
182
  maxLength: 200,
182
183
  description:
183
184
  "[DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.",
185
+ deprecated: true,
184
186
  },
185
187
  },
186
188
  required: ["channel", "tags"],
@@ -981,6 +983,7 @@ export const state = {
981
983
  maxLength: 200,
982
984
  description:
983
985
  "[DEPRECATED] To create a user from within a bot, call an action of the integration instead.",
986
+ deprecated: true,
984
987
  },
985
988
  name: {
986
989
  type: "string",
@@ -1132,6 +1135,7 @@ export const state = {
1132
1135
  maxLength: 200,
1133
1136
  description:
1134
1137
  "[DEPRECATED] To create a user from within a bot, call an action of the integration instead.",
1138
+ deprecated: true,
1135
1139
  },
1136
1140
  name: {
1137
1141
  type: "string",
@@ -3518,6 +3522,75 @@ export const state = {
3518
3522
  },
3519
3523
  },
3520
3524
  },
3525
+ breakDownWorkspaceUsageByBot: {
3526
+ name: "breakDownWorkspaceUsageByBot",
3527
+ description: "Break down workspace usage by bot",
3528
+ section: "workspace",
3529
+ method: "get",
3530
+ path: "/v1/admin/workspaces/{id}/usages/by-bot",
3531
+ disableDefaultParameters: {
3532
+ "x-workspace-id": true,
3533
+ },
3534
+ parameters: {
3535
+ id: {
3536
+ type: "string",
3537
+ description: "Workspace ID",
3538
+ in: "path",
3539
+ },
3540
+ type: {
3541
+ in: "query",
3542
+ description: "Type of usage",
3543
+ type: "string",
3544
+ enum: [
3545
+ "invocation_timeout",
3546
+ "invocation_calls",
3547
+ "storage_count",
3548
+ "bot_count",
3549
+ "knowledgebase_vector_storage",
3550
+ "workspace_ratelimit",
3551
+ "table_row_count",
3552
+ "workspace_member_count",
3553
+ "integrations_owned_count",
3554
+ "ai_spend",
3555
+ "openai_spend",
3556
+ "bing_search_spend",
3557
+ ],
3558
+ required: true,
3559
+ },
3560
+ period: {
3561
+ in: "query",
3562
+ description: "Period to get",
3563
+ type: "string",
3564
+ required: false,
3565
+ },
3566
+ },
3567
+ response: {
3568
+ description: "Success",
3569
+ schema: {
3570
+ type: "object",
3571
+ properties: {
3572
+ data: {
3573
+ type: "array",
3574
+ items: {
3575
+ type: "object",
3576
+ properties: {
3577
+ botId: {
3578
+ type: "string",
3579
+ },
3580
+ value: {
3581
+ type: "number",
3582
+ },
3583
+ },
3584
+ required: ["botId", "value"],
3585
+ },
3586
+ },
3587
+ },
3588
+ required: ["data"],
3589
+ title: "breakDownWorkspaceUsageByBotResponse",
3590
+ additionalProperties: false,
3591
+ },
3592
+ },
3593
+ },
3521
3594
  getWorkspaceQuota: {
3522
3595
  name: "getWorkspaceQuota",
3523
3596
  description: "Get workspace quota",
@@ -5685,7 +5758,7 @@ export const state = {
5685
5758
  title: "Botpress API",
5686
5759
  description: "API for Botpress Cloud",
5687
5760
  server: "https://api.botpress.cloud",
5688
- version: "0.15.3",
5761
+ version: "0.15.5",
5689
5762
  prefix: "v1",
5690
5763
  },
5691
5764
  errors: [
@@ -5896,6 +5969,7 @@ export const state = {
5896
5969
  createWorkspaceResponse: true,
5897
5970
  getWorkspaceResponse: true,
5898
5971
  listWorkspaceUsagesResponse: true,
5972
+ breakDownWorkspaceUsageByBotResponse: true,
5899
5973
  getWorkspaceQuotaResponse: true,
5900
5974
  listWorkspaceQuotasResponse: true,
5901
5975
  updateWorkspaceResponse: true,
@@ -7470,6 +7544,7 @@ export const state = {
7470
7544
  "createWorkspace",
7471
7545
  "getWorkspace",
7472
7546
  "listWorkspaceUsages",
7547
+ "breakDownWorkspaceUsageByBot",
7473
7548
  "getWorkspaceQuota",
7474
7549
  "listWorkspaceQuotas",
7475
7550
  "updateWorkspace",