@botpress/api 0.14.2 → 0.15.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
@@ -5324,7 +5324,8 @@ export const state = {
5324
5324
  },
5325
5325
  id: {
5326
5326
  type: "string",
5327
- description: "id of a bot or a workspace depending on the usage type",
5327
+ description:
5328
+ 'ID of a bot or a workspace, depending on the "type" parameter',
5328
5329
  in: "path",
5329
5330
  },
5330
5331
  },
@@ -5371,7 +5372,8 @@ export const state = {
5371
5372
  },
5372
5373
  id: {
5373
5374
  type: "string",
5374
- description: "id of a bot or a workspace depending on the usage type",
5375
+ description:
5376
+ 'ID of a bot or a workspace, depending on the "type" parameter',
5375
5377
  in: "path",
5376
5378
  },
5377
5379
  },
@@ -5393,6 +5395,36 @@ export const state = {
5393
5395
  },
5394
5396
  },
5395
5397
  },
5398
+ changeAISpendQuota: {
5399
+ name: "changeAISpendQuota",
5400
+ path: "/v1/admin/quotas/ai-spend",
5401
+ description: "Change AI Spend quota",
5402
+ method: "put",
5403
+ section: "quotas",
5404
+ requestBody: {
5405
+ description: "New AI Spend quota",
5406
+ schema: {
5407
+ type: "object",
5408
+ properties: {
5409
+ monthlySpendingLimit: {
5410
+ type: "number",
5411
+ },
5412
+ },
5413
+ required: ["monthlySpendingLimit"],
5414
+ title: "changeAISpendQuotaBody",
5415
+ additionalProperties: false,
5416
+ },
5417
+ },
5418
+ response: {
5419
+ description: "Success",
5420
+ schema: {
5421
+ type: "object",
5422
+ title: "changeAISpendQuotaResponse",
5423
+ additionalProperties: false,
5424
+ },
5425
+ },
5426
+ parameters: {},
5427
+ },
5396
5428
  introspect: {
5397
5429
  name: "introspect",
5398
5430
  description: "Introspect the API",
@@ -5614,7 +5646,7 @@ export const state = {
5614
5646
  title: "Botpress API",
5615
5647
  description: "API for Botpress Cloud",
5616
5648
  server: "https://api.botpress.cloud",
5617
- version: "0.14.2",
5649
+ version: "0.15.0",
5618
5650
  prefix: "v1",
5619
5651
  },
5620
5652
  errors: [
@@ -5764,6 +5796,7 @@ export const state = {
5764
5796
  updateWorkspaceMemberBody: true,
5765
5797
  createIntegrationBody: true,
5766
5798
  updateIntegrationBody: true,
5799
+ changeAISpendQuotaBody: true,
5767
5800
  introspectBody: true,
5768
5801
  createFileBody: true,
5769
5802
  },
@@ -5844,6 +5877,7 @@ export const state = {
5844
5877
  deleteIntegrationResponse: true,
5845
5878
  getUsageResponse: true,
5846
5879
  listUsageHistoryResponse: true,
5880
+ changeAISpendQuotaResponse: true,
5847
5881
  introspectResponse: true,
5848
5882
  createFileResponse: true,
5849
5883
  getFileResponse: true,
@@ -7330,8 +7364,8 @@ export const state = {
7330
7364
  schema: "State",
7331
7365
  },
7332
7366
  {
7333
- description: "",
7334
7367
  title: "Hub",
7368
+ description: "",
7335
7369
  name: "hub",
7336
7370
  operations: [
7337
7371
  "listPublicIntegrations",
@@ -7346,8 +7380,8 @@ export const state = {
7346
7380
  operations: ["callAction"],
7347
7381
  },
7348
7382
  {
7349
- description: "",
7350
7383
  title: "Bot",
7384
+ description: "",
7351
7385
  name: "bot",
7352
7386
  operations: [
7353
7387
  "createBot",
@@ -7366,8 +7400,8 @@ export const state = {
7366
7400
  schema: "Bot",
7367
7401
  },
7368
7402
  {
7369
- description: "",
7370
7403
  title: "Integration",
7404
+ description: "",
7371
7405
  name: "integration",
7372
7406
  operations: [
7373
7407
  "createIntegration",
@@ -7381,8 +7415,8 @@ export const state = {
7381
7415
  schema: "Integration",
7382
7416
  },
7383
7417
  {
7384
- description: "",
7385
7418
  title: "Workspace",
7419
+ description: "",
7386
7420
  name: "workspace",
7387
7421
  operations: [
7388
7422
  "getWorkspaceBillingDetails",
@@ -7403,8 +7437,8 @@ export const state = {
7403
7437
  schema: "Workspace",
7404
7438
  },
7405
7439
  {
7406
- description: "",
7407
7440
  title: "Workspace Member",
7441
+ description: "",
7408
7442
  name: "workspaceMember",
7409
7443
  operations: [
7410
7444
  "listWorkspaceMembers",
@@ -7415,8 +7449,8 @@ export const state = {
7415
7449
  schema: "WorkspaceMember",
7416
7450
  },
7417
7451
  {
7418
- description: "",
7419
7452
  title: "Account",
7453
+ description: "",
7420
7454
  name: "account",
7421
7455
  operations: [
7422
7456
  "getAccount",
@@ -7427,12 +7461,18 @@ export const state = {
7427
7461
  schema: "Account",
7428
7462
  },
7429
7463
  {
7430
- description: "",
7431
7464
  title: "Usage",
7465
+ description: "",
7432
7466
  name: "usage",
7433
7467
  operations: ["getUsage"],
7434
7468
  schema: "Usage",
7435
7469
  },
7470
+ {
7471
+ title: "Quotas",
7472
+ description: "",
7473
+ name: "quotas",
7474
+ operations: ["changeAISpendQuota"],
7475
+ },
7436
7476
  ],
7437
7477
  options: {
7438
7478
  allowUnions: false,
@@ -7467,4 +7507,5 @@ export const state = {
7467
7507
  | "workspaceMember"
7468
7508
  | "account"
7469
7509
  | "usage"
7510
+ | "quotas"
7470
7511
  >;