@botpress/api 0.14.2 → 0.15.1
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/dist/gen/state.d.ts +57 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +80 -16
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +65 -10
package/src/gen/state.ts
CHANGED
|
@@ -2429,6 +2429,13 @@ export const state = {
|
|
|
2429
2429
|
method: "get",
|
|
2430
2430
|
path: "/v1/admin/bots",
|
|
2431
2431
|
parameters: {
|
|
2432
|
+
dev: {
|
|
2433
|
+
in: "query",
|
|
2434
|
+
description:
|
|
2435
|
+
"If true, only dev bots are returned. Otherwise, only production bots are returned.",
|
|
2436
|
+
type: "boolean",
|
|
2437
|
+
required: false,
|
|
2438
|
+
},
|
|
2432
2439
|
nextToken: {
|
|
2433
2440
|
in: "query",
|
|
2434
2441
|
description:
|
|
@@ -5051,6 +5058,13 @@ export const state = {
|
|
|
5051
5058
|
'Integration version. Either a semver version or tag "latest"',
|
|
5052
5059
|
in: "query",
|
|
5053
5060
|
},
|
|
5061
|
+
dev: {
|
|
5062
|
+
in: "query",
|
|
5063
|
+
description:
|
|
5064
|
+
"If true, only dev integrations are returned. Otherwise, only production integrations are returned.",
|
|
5065
|
+
type: "boolean",
|
|
5066
|
+
required: false,
|
|
5067
|
+
},
|
|
5054
5068
|
},
|
|
5055
5069
|
response: {
|
|
5056
5070
|
description: "Success",
|
|
@@ -5324,7 +5338,8 @@ export const state = {
|
|
|
5324
5338
|
},
|
|
5325
5339
|
id: {
|
|
5326
5340
|
type: "string",
|
|
5327
|
-
description:
|
|
5341
|
+
description:
|
|
5342
|
+
'ID of a bot or a workspace, depending on the "type" parameter',
|
|
5328
5343
|
in: "path",
|
|
5329
5344
|
},
|
|
5330
5345
|
},
|
|
@@ -5371,7 +5386,8 @@ export const state = {
|
|
|
5371
5386
|
},
|
|
5372
5387
|
id: {
|
|
5373
5388
|
type: "string",
|
|
5374
|
-
description:
|
|
5389
|
+
description:
|
|
5390
|
+
'ID of a bot or a workspace, depending on the "type" parameter',
|
|
5375
5391
|
in: "path",
|
|
5376
5392
|
},
|
|
5377
5393
|
},
|
|
@@ -5393,6 +5409,36 @@ export const state = {
|
|
|
5393
5409
|
},
|
|
5394
5410
|
},
|
|
5395
5411
|
},
|
|
5412
|
+
changeAISpendQuota: {
|
|
5413
|
+
name: "changeAISpendQuota",
|
|
5414
|
+
path: "/v1/admin/quotas/ai-spend",
|
|
5415
|
+
description: "Change AI Spend quota",
|
|
5416
|
+
method: "put",
|
|
5417
|
+
section: "quotas",
|
|
5418
|
+
requestBody: {
|
|
5419
|
+
description: "New AI Spend quota",
|
|
5420
|
+
schema: {
|
|
5421
|
+
type: "object",
|
|
5422
|
+
properties: {
|
|
5423
|
+
monthlySpendingLimit: {
|
|
5424
|
+
type: "number",
|
|
5425
|
+
},
|
|
5426
|
+
},
|
|
5427
|
+
required: ["monthlySpendingLimit"],
|
|
5428
|
+
title: "changeAISpendQuotaBody",
|
|
5429
|
+
additionalProperties: false,
|
|
5430
|
+
},
|
|
5431
|
+
},
|
|
5432
|
+
response: {
|
|
5433
|
+
description: "Success",
|
|
5434
|
+
schema: {
|
|
5435
|
+
type: "object",
|
|
5436
|
+
title: "changeAISpendQuotaResponse",
|
|
5437
|
+
additionalProperties: false,
|
|
5438
|
+
},
|
|
5439
|
+
},
|
|
5440
|
+
parameters: {},
|
|
5441
|
+
},
|
|
5396
5442
|
introspect: {
|
|
5397
5443
|
name: "introspect",
|
|
5398
5444
|
description: "Introspect the API",
|
|
@@ -5614,7 +5660,7 @@ export const state = {
|
|
|
5614
5660
|
title: "Botpress API",
|
|
5615
5661
|
description: "API for Botpress Cloud",
|
|
5616
5662
|
server: "https://api.botpress.cloud",
|
|
5617
|
-
version: "0.
|
|
5663
|
+
version: "0.15.1",
|
|
5618
5664
|
prefix: "v1",
|
|
5619
5665
|
},
|
|
5620
5666
|
errors: [
|
|
@@ -5764,6 +5810,7 @@ export const state = {
|
|
|
5764
5810
|
updateWorkspaceMemberBody: true,
|
|
5765
5811
|
createIntegrationBody: true,
|
|
5766
5812
|
updateIntegrationBody: true,
|
|
5813
|
+
changeAISpendQuotaBody: true,
|
|
5767
5814
|
introspectBody: true,
|
|
5768
5815
|
createFileBody: true,
|
|
5769
5816
|
},
|
|
@@ -5844,6 +5891,7 @@ export const state = {
|
|
|
5844
5891
|
deleteIntegrationResponse: true,
|
|
5845
5892
|
getUsageResponse: true,
|
|
5846
5893
|
listUsageHistoryResponse: true,
|
|
5894
|
+
changeAISpendQuotaResponse: true,
|
|
5847
5895
|
introspectResponse: true,
|
|
5848
5896
|
createFileResponse: true,
|
|
5849
5897
|
getFileResponse: true,
|
|
@@ -7330,8 +7378,8 @@ export const state = {
|
|
|
7330
7378
|
schema: "State",
|
|
7331
7379
|
},
|
|
7332
7380
|
{
|
|
7333
|
-
description: "",
|
|
7334
7381
|
title: "Hub",
|
|
7382
|
+
description: "",
|
|
7335
7383
|
name: "hub",
|
|
7336
7384
|
operations: [
|
|
7337
7385
|
"listPublicIntegrations",
|
|
@@ -7346,8 +7394,8 @@ export const state = {
|
|
|
7346
7394
|
operations: ["callAction"],
|
|
7347
7395
|
},
|
|
7348
7396
|
{
|
|
7349
|
-
description: "",
|
|
7350
7397
|
title: "Bot",
|
|
7398
|
+
description: "",
|
|
7351
7399
|
name: "bot",
|
|
7352
7400
|
operations: [
|
|
7353
7401
|
"createBot",
|
|
@@ -7366,8 +7414,8 @@ export const state = {
|
|
|
7366
7414
|
schema: "Bot",
|
|
7367
7415
|
},
|
|
7368
7416
|
{
|
|
7369
|
-
description: "",
|
|
7370
7417
|
title: "Integration",
|
|
7418
|
+
description: "",
|
|
7371
7419
|
name: "integration",
|
|
7372
7420
|
operations: [
|
|
7373
7421
|
"createIntegration",
|
|
@@ -7381,8 +7429,8 @@ export const state = {
|
|
|
7381
7429
|
schema: "Integration",
|
|
7382
7430
|
},
|
|
7383
7431
|
{
|
|
7384
|
-
description: "",
|
|
7385
7432
|
title: "Workspace",
|
|
7433
|
+
description: "",
|
|
7386
7434
|
name: "workspace",
|
|
7387
7435
|
operations: [
|
|
7388
7436
|
"getWorkspaceBillingDetails",
|
|
@@ -7403,8 +7451,8 @@ export const state = {
|
|
|
7403
7451
|
schema: "Workspace",
|
|
7404
7452
|
},
|
|
7405
7453
|
{
|
|
7406
|
-
description: "",
|
|
7407
7454
|
title: "Workspace Member",
|
|
7455
|
+
description: "",
|
|
7408
7456
|
name: "workspaceMember",
|
|
7409
7457
|
operations: [
|
|
7410
7458
|
"listWorkspaceMembers",
|
|
@@ -7415,8 +7463,8 @@ export const state = {
|
|
|
7415
7463
|
schema: "WorkspaceMember",
|
|
7416
7464
|
},
|
|
7417
7465
|
{
|
|
7418
|
-
description: "",
|
|
7419
7466
|
title: "Account",
|
|
7467
|
+
description: "",
|
|
7420
7468
|
name: "account",
|
|
7421
7469
|
operations: [
|
|
7422
7470
|
"getAccount",
|
|
@@ -7427,12 +7475,18 @@ export const state = {
|
|
|
7427
7475
|
schema: "Account",
|
|
7428
7476
|
},
|
|
7429
7477
|
{
|
|
7430
|
-
description: "",
|
|
7431
7478
|
title: "Usage",
|
|
7479
|
+
description: "",
|
|
7432
7480
|
name: "usage",
|
|
7433
7481
|
operations: ["getUsage"],
|
|
7434
7482
|
schema: "Usage",
|
|
7435
7483
|
},
|
|
7484
|
+
{
|
|
7485
|
+
title: "Quotas",
|
|
7486
|
+
description: "",
|
|
7487
|
+
name: "quotas",
|
|
7488
|
+
operations: ["changeAISpendQuota"],
|
|
7489
|
+
},
|
|
7436
7490
|
],
|
|
7437
7491
|
options: {
|
|
7438
7492
|
allowUnions: false,
|
|
@@ -7467,4 +7521,5 @@ export const state = {
|
|
|
7467
7521
|
| "workspaceMember"
|
|
7468
7522
|
| "account"
|
|
7469
7523
|
| "usage"
|
|
7524
|
+
| "quotas"
|
|
7470
7525
|
>;
|