@botpress/api 0.15.6 → 0.15.7

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
@@ -2367,11 +2367,6 @@ export const state = {
2367
2367
  },
2368
2368
  description: "Media files associated with the [Bot](#schema_bot)",
2369
2369
  },
2370
- alwaysAlive: {
2371
- type: "boolean",
2372
- description:
2373
- "Indicates if the [Bot](#schema_bot) should be executed in accelerated mode",
2374
- },
2375
2370
  },
2376
2371
  title: "updateBotBody",
2377
2372
  additionalProperties: false,
@@ -3499,7 +3494,6 @@ export const state = {
3499
3494
  "ai_spend",
3500
3495
  "openai_spend",
3501
3496
  "bing_search_spend",
3502
- "always_alive",
3503
3497
  ],
3504
3498
  required: true,
3505
3499
  },
@@ -3560,7 +3554,6 @@ export const state = {
3560
3554
  "ai_spend",
3561
3555
  "openai_spend",
3562
3556
  "bing_search_spend",
3563
- "always_alive",
3564
3557
  ],
3565
3558
  required: true,
3566
3559
  },
@@ -3598,6 +3591,52 @@ export const state = {
3598
3591
  },
3599
3592
  },
3600
3593
  },
3594
+ getAllWorkspaceQuotaCompletion: {
3595
+ name: "getAllWorkspaceQuotaCompletion",
3596
+ description:
3597
+ "For a user, gets a map of workspace IDs to their highest quota completion rate",
3598
+ section: "workspace",
3599
+ method: "get",
3600
+ path: "/v1/admin/workspaces/usages/quota-completion",
3601
+ disableDefaultParameters: {
3602
+ "x-workspace-id": true,
3603
+ },
3604
+ response: {
3605
+ description: "Success",
3606
+ schema: {
3607
+ type: "object",
3608
+ additionalProperties: {
3609
+ type: "object",
3610
+ properties: {
3611
+ type: {
3612
+ type: "string",
3613
+ enum: [
3614
+ "invocation_timeout",
3615
+ "invocation_calls",
3616
+ "storage_count",
3617
+ "bot_count",
3618
+ "knowledgebase_vector_storage",
3619
+ "workspace_ratelimit",
3620
+ "table_row_count",
3621
+ "workspace_member_count",
3622
+ "integrations_owned_count",
3623
+ "ai_spend",
3624
+ "openai_spend",
3625
+ "bing_search_spend",
3626
+ ],
3627
+ },
3628
+ completion: {
3629
+ type: "number",
3630
+ },
3631
+ },
3632
+ required: ["type", "completion"],
3633
+ additionalProperties: false,
3634
+ },
3635
+ title: "getAllWorkspaceQuotaCompletionResponse",
3636
+ },
3637
+ },
3638
+ parameters: {},
3639
+ },
3601
3640
  getWorkspaceQuota: {
3602
3641
  name: "getWorkspaceQuota",
3603
3642
  description: "Get workspace quota",
@@ -3630,7 +3669,6 @@ export const state = {
3630
3669
  "ai_spend",
3631
3670
  "openai_spend",
3632
3671
  "bing_search_spend",
3633
- "always_alive",
3634
3672
  ],
3635
3673
  required: true,
3636
3674
  },
@@ -3672,7 +3710,6 @@ export const state = {
3672
3710
  "ai_spend",
3673
3711
  "openai_spend",
3674
3712
  "bing_search_spend",
3675
- "always_alive",
3676
3713
  ],
3677
3714
  description: "Usage type that can be used",
3678
3715
  },
@@ -3742,7 +3779,6 @@ export const state = {
3742
3779
  "ai_spend",
3743
3780
  "openai_spend",
3744
3781
  "bing_search_spend",
3745
- "always_alive",
3746
3782
  ],
3747
3783
  description: "Usage type that can be used",
3748
3784
  },
@@ -5435,7 +5471,6 @@ export const state = {
5435
5471
  "ai_spend",
5436
5472
  "openai_spend",
5437
5473
  "bing_search_spend",
5438
- "always_alive",
5439
5474
  ],
5440
5475
  required: true,
5441
5476
  },
@@ -5490,7 +5525,6 @@ export const state = {
5490
5525
  "ai_spend",
5491
5526
  "openai_spend",
5492
5527
  "bing_search_spend",
5493
- "always_alive",
5494
5528
  ],
5495
5529
  required: true,
5496
5530
  },
@@ -5770,7 +5804,7 @@ export const state = {
5770
5804
  title: "Botpress API",
5771
5805
  description: "API for Botpress Cloud",
5772
5806
  server: "https://api.botpress.cloud",
5773
- version: "0.15.6",
5807
+ version: "0.15.7",
5774
5808
  prefix: "v1",
5775
5809
  },
5776
5810
  errors: [
@@ -5982,6 +6016,7 @@ export const state = {
5982
6016
  getWorkspaceResponse: true,
5983
6017
  listWorkspaceUsagesResponse: true,
5984
6018
  breakDownWorkspaceUsageByBotResponse: true,
6019
+ getAllWorkspaceQuotaCompletionResponse: true,
5985
6020
  getWorkspaceQuotaResponse: true,
5986
6021
  listWorkspaceQuotasResponse: true,
5987
6022
  updateWorkspaceResponse: true,
@@ -6384,16 +6419,6 @@ export const state = {
6384
6419
  type: "string",
6385
6420
  description: "Id of the user that created the bot",
6386
6421
  },
6387
- alwaysAlive: {
6388
- type: "boolean",
6389
- description:
6390
- "Indicates if the [Bot](#schema_bot) should be executed in accelerated mode",
6391
- },
6392
- status: {
6393
- type: "string",
6394
- enum: ["active", "deploying"],
6395
- description: "Status of the bot",
6396
- },
6397
6422
  medias: {
6398
6423
  type: "array",
6399
6424
  items: {
@@ -6428,8 +6453,6 @@ export const state = {
6428
6453
  "recurringEvents",
6429
6454
  "name",
6430
6455
  "dev",
6431
- "alwaysAlive",
6432
- "status",
6433
6456
  "medias",
6434
6457
  ],
6435
6458
  additionalProperties: false,
@@ -6976,7 +6999,6 @@ export const state = {
6976
6999
  "ai_spend",
6977
7000
  "openai_spend",
6978
7001
  "bing_search_spend",
6979
- "always_alive",
6980
7002
  ],
6981
7003
  description: "Usage type that can be used",
6982
7004
  },
@@ -7570,6 +7592,7 @@ export const state = {
7570
7592
  "getWorkspace",
7571
7593
  "listWorkspaceUsages",
7572
7594
  "breakDownWorkspaceUsageByBot",
7595
+ "getAllWorkspaceQuotaCompletion",
7573
7596
  "getWorkspaceQuota",
7574
7597
  "listWorkspaceQuotas",
7575
7598
  "updateWorkspace",