@botpress/api 0.15.1 → 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
@@ -3348,6 +3348,10 @@ export const state = {
3348
3348
  type: "string",
3349
3349
  enum: ["free", "premium"],
3350
3350
  },
3351
+ billingVersion: {
3352
+ type: "string",
3353
+ enum: ["v1", "v2"],
3354
+ },
3351
3355
  plan: {
3352
3356
  type: "string",
3353
3357
  enum: ["community", "team", "enterprise"],
@@ -3367,6 +3371,7 @@ export const state = {
3367
3371
  "updatedAt",
3368
3372
  "botCount",
3369
3373
  "accountType",
3374
+ "billingVersion",
3370
3375
  "plan",
3371
3376
  "blocked",
3372
3377
  "spendingLimit",
@@ -3420,6 +3425,10 @@ export const state = {
3420
3425
  type: "string",
3421
3426
  enum: ["free", "premium"],
3422
3427
  },
3428
+ billingVersion: {
3429
+ type: "string",
3430
+ enum: ["v1", "v2"],
3431
+ },
3423
3432
  plan: {
3424
3433
  type: "string",
3425
3434
  enum: ["community", "team", "enterprise"],
@@ -3439,6 +3448,7 @@ export const state = {
3439
3448
  "updatedAt",
3440
3449
  "botCount",
3441
3450
  "accountType",
3451
+ "billingVersion",
3442
3452
  "plan",
3443
3453
  "blocked",
3444
3454
  "spendingLimit",
@@ -3508,6 +3518,75 @@ export const state = {
3508
3518
  },
3509
3519
  },
3510
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
+ },
3511
3590
  getWorkspaceQuota: {
3512
3591
  name: "getWorkspaceQuota",
3513
3592
  description: "Get workspace quota",
@@ -3727,6 +3806,10 @@ export const state = {
3727
3806
  type: "string",
3728
3807
  enum: ["free", "premium"],
3729
3808
  },
3809
+ billingVersion: {
3810
+ type: "string",
3811
+ enum: ["v1", "v2"],
3812
+ },
3730
3813
  plan: {
3731
3814
  type: "string",
3732
3815
  enum: ["community", "team", "enterprise"],
@@ -3746,6 +3829,7 @@ export const state = {
3746
3829
  "updatedAt",
3747
3830
  "botCount",
3748
3831
  "accountType",
3832
+ "billingVersion",
3749
3833
  "plan",
3750
3834
  "blocked",
3751
3835
  "spendingLimit",
@@ -3804,6 +3888,10 @@ export const state = {
3804
3888
  type: "string",
3805
3889
  enum: ["free", "premium"],
3806
3890
  },
3891
+ billingVersion: {
3892
+ type: "string",
3893
+ enum: ["v1", "v2"],
3894
+ },
3807
3895
  plan: {
3808
3896
  type: "string",
3809
3897
  enum: ["community", "team", "enterprise"],
@@ -3823,6 +3911,7 @@ export const state = {
3823
3911
  "updatedAt",
3824
3912
  "botCount",
3825
3913
  "accountType",
3914
+ "billingVersion",
3826
3915
  "plan",
3827
3916
  "blocked",
3828
3917
  "spendingLimit",
@@ -3906,6 +3995,10 @@ export const state = {
3906
3995
  type: "string",
3907
3996
  enum: ["free", "premium"],
3908
3997
  },
3998
+ billingVersion: {
3999
+ type: "string",
4000
+ enum: ["v1", "v2"],
4001
+ },
3909
4002
  plan: {
3910
4003
  type: "string",
3911
4004
  enum: ["community", "team", "enterprise"],
@@ -3925,6 +4018,7 @@ export const state = {
3925
4018
  "updatedAt",
3926
4019
  "botCount",
3927
4020
  "accountType",
4021
+ "billingVersion",
3928
4022
  "plan",
3929
4023
  "blocked",
3930
4024
  "spendingLimit",
@@ -5660,7 +5754,7 @@ export const state = {
5660
5754
  title: "Botpress API",
5661
5755
  description: "API for Botpress Cloud",
5662
5756
  server: "https://api.botpress.cloud",
5663
- version: "0.15.1",
5757
+ version: "0.15.4",
5664
5758
  prefix: "v1",
5665
5759
  },
5666
5760
  errors: [
@@ -5871,6 +5965,7 @@ export const state = {
5871
5965
  createWorkspaceResponse: true,
5872
5966
  getWorkspaceResponse: true,
5873
5967
  listWorkspaceUsagesResponse: true,
5968
+ breakDownWorkspaceUsageByBotResponse: true,
5874
5969
  getWorkspaceQuotaResponse: true,
5875
5970
  listWorkspaceQuotasResponse: true,
5876
5971
  updateWorkspaceResponse: true,
@@ -6732,6 +6827,10 @@ export const state = {
6732
6827
  type: "string",
6733
6828
  enum: ["free", "premium"],
6734
6829
  },
6830
+ billingVersion: {
6831
+ type: "string",
6832
+ enum: ["v1", "v2"],
6833
+ },
6735
6834
  plan: {
6736
6835
  type: "string",
6737
6836
  enum: ["community", "team", "enterprise"],
@@ -6751,6 +6850,7 @@ export const state = {
6751
6850
  "updatedAt",
6752
6851
  "botCount",
6753
6852
  "accountType",
6853
+ "billingVersion",
6754
6854
  "plan",
6755
6855
  "blocked",
6756
6856
  "spendingLimit",
@@ -7440,6 +7540,7 @@ export const state = {
7440
7540
  "createWorkspace",
7441
7541
  "getWorkspace",
7442
7542
  "listWorkspaceUsages",
7543
+ "breakDownWorkspaceUsageByBot",
7443
7544
  "getWorkspaceQuota",
7444
7545
  "listWorkspaceQuotas",
7445
7546
  "updateWorkspace",