@botpress/api 0.14.0 → 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/dist/gen/state.d.ts +45 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +69 -17
- package/package.json +1 -1
- 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
|
@@ -3471,6 +3471,8 @@ export const state = {
|
|
|
3471
3471
|
"workspace_member_count",
|
|
3472
3472
|
"integrations_owned_count",
|
|
3473
3473
|
"ai_spend",
|
|
3474
|
+
"openai_spend",
|
|
3475
|
+
"bing_search_spend",
|
|
3474
3476
|
],
|
|
3475
3477
|
required: true,
|
|
3476
3478
|
},
|
|
@@ -3529,6 +3531,8 @@ export const state = {
|
|
|
3529
3531
|
"workspace_member_count",
|
|
3530
3532
|
"integrations_owned_count",
|
|
3531
3533
|
"ai_spend",
|
|
3534
|
+
"openai_spend",
|
|
3535
|
+
"bing_search_spend",
|
|
3532
3536
|
],
|
|
3533
3537
|
required: true,
|
|
3534
3538
|
},
|
|
@@ -3568,6 +3572,8 @@ export const state = {
|
|
|
3568
3572
|
"workspace_member_count",
|
|
3569
3573
|
"integrations_owned_count",
|
|
3570
3574
|
"ai_spend",
|
|
3575
|
+
"openai_spend",
|
|
3576
|
+
"bing_search_spend",
|
|
3571
3577
|
],
|
|
3572
3578
|
description: "Usage type that can be used",
|
|
3573
3579
|
},
|
|
@@ -3635,6 +3641,8 @@ export const state = {
|
|
|
3635
3641
|
"workspace_member_count",
|
|
3636
3642
|
"integrations_owned_count",
|
|
3637
3643
|
"ai_spend",
|
|
3644
|
+
"openai_spend",
|
|
3645
|
+
"bing_search_spend",
|
|
3638
3646
|
],
|
|
3639
3647
|
description: "Usage type that can be used",
|
|
3640
3648
|
},
|
|
@@ -5303,6 +5311,8 @@ export const state = {
|
|
|
5303
5311
|
"workspace_member_count",
|
|
5304
5312
|
"integrations_owned_count",
|
|
5305
5313
|
"ai_spend",
|
|
5314
|
+
"openai_spend",
|
|
5315
|
+
"bing_search_spend",
|
|
5306
5316
|
],
|
|
5307
5317
|
required: true,
|
|
5308
5318
|
},
|
|
@@ -5314,7 +5324,8 @@ export const state = {
|
|
|
5314
5324
|
},
|
|
5315
5325
|
id: {
|
|
5316
5326
|
type: "string",
|
|
5317
|
-
description:
|
|
5327
|
+
description:
|
|
5328
|
+
'ID of a bot or a workspace, depending on the "type" parameter',
|
|
5318
5329
|
in: "path",
|
|
5319
5330
|
},
|
|
5320
5331
|
},
|
|
@@ -5354,12 +5365,15 @@ export const state = {
|
|
|
5354
5365
|
"workspace_member_count",
|
|
5355
5366
|
"integrations_owned_count",
|
|
5356
5367
|
"ai_spend",
|
|
5368
|
+
"openai_spend",
|
|
5369
|
+
"bing_search_spend",
|
|
5357
5370
|
],
|
|
5358
5371
|
required: true,
|
|
5359
5372
|
},
|
|
5360
5373
|
id: {
|
|
5361
5374
|
type: "string",
|
|
5362
|
-
description:
|
|
5375
|
+
description:
|
|
5376
|
+
'ID of a bot or a workspace, depending on the "type" parameter',
|
|
5363
5377
|
in: "path",
|
|
5364
5378
|
},
|
|
5365
5379
|
},
|
|
@@ -5381,6 +5395,36 @@ export const state = {
|
|
|
5381
5395
|
},
|
|
5382
5396
|
},
|
|
5383
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
|
+
},
|
|
5384
5428
|
introspect: {
|
|
5385
5429
|
name: "introspect",
|
|
5386
5430
|
description: "Introspect the API",
|
|
@@ -5602,7 +5646,7 @@ export const state = {
|
|
|
5602
5646
|
title: "Botpress API",
|
|
5603
5647
|
description: "API for Botpress Cloud",
|
|
5604
5648
|
server: "https://api.botpress.cloud",
|
|
5605
|
-
version: "0.
|
|
5649
|
+
version: "0.15.0",
|
|
5606
5650
|
prefix: "v1",
|
|
5607
5651
|
},
|
|
5608
5652
|
errors: [
|
|
@@ -5752,6 +5796,7 @@ export const state = {
|
|
|
5752
5796
|
updateWorkspaceMemberBody: true,
|
|
5753
5797
|
createIntegrationBody: true,
|
|
5754
5798
|
updateIntegrationBody: true,
|
|
5799
|
+
changeAISpendQuotaBody: true,
|
|
5755
5800
|
introspectBody: true,
|
|
5756
5801
|
createFileBody: true,
|
|
5757
5802
|
},
|
|
@@ -5832,6 +5877,7 @@ export const state = {
|
|
|
5832
5877
|
deleteIntegrationResponse: true,
|
|
5833
5878
|
getUsageResponse: true,
|
|
5834
5879
|
listUsageHistoryResponse: true,
|
|
5880
|
+
changeAISpendQuotaResponse: true,
|
|
5835
5881
|
introspectResponse: true,
|
|
5836
5882
|
createFileResponse: true,
|
|
5837
5883
|
getFileResponse: true,
|
|
@@ -6786,6 +6832,8 @@ export const state = {
|
|
|
6786
6832
|
"workspace_member_count",
|
|
6787
6833
|
"integrations_owned_count",
|
|
6788
6834
|
"ai_spend",
|
|
6835
|
+
"openai_spend",
|
|
6836
|
+
"bing_search_spend",
|
|
6789
6837
|
],
|
|
6790
6838
|
description: "Usage type that can be used",
|
|
6791
6839
|
},
|
|
@@ -7316,8 +7364,8 @@ export const state = {
|
|
|
7316
7364
|
schema: "State",
|
|
7317
7365
|
},
|
|
7318
7366
|
{
|
|
7319
|
-
description: "",
|
|
7320
7367
|
title: "Hub",
|
|
7368
|
+
description: "",
|
|
7321
7369
|
name: "hub",
|
|
7322
7370
|
operations: [
|
|
7323
7371
|
"listPublicIntegrations",
|
|
@@ -7332,8 +7380,8 @@ export const state = {
|
|
|
7332
7380
|
operations: ["callAction"],
|
|
7333
7381
|
},
|
|
7334
7382
|
{
|
|
7335
|
-
description: "",
|
|
7336
7383
|
title: "Bot",
|
|
7384
|
+
description: "",
|
|
7337
7385
|
name: "bot",
|
|
7338
7386
|
operations: [
|
|
7339
7387
|
"createBot",
|
|
@@ -7352,8 +7400,8 @@ export const state = {
|
|
|
7352
7400
|
schema: "Bot",
|
|
7353
7401
|
},
|
|
7354
7402
|
{
|
|
7355
|
-
description: "",
|
|
7356
7403
|
title: "Integration",
|
|
7404
|
+
description: "",
|
|
7357
7405
|
name: "integration",
|
|
7358
7406
|
operations: [
|
|
7359
7407
|
"createIntegration",
|
|
@@ -7367,8 +7415,8 @@ export const state = {
|
|
|
7367
7415
|
schema: "Integration",
|
|
7368
7416
|
},
|
|
7369
7417
|
{
|
|
7370
|
-
description: "",
|
|
7371
7418
|
title: "Workspace",
|
|
7419
|
+
description: "",
|
|
7372
7420
|
name: "workspace",
|
|
7373
7421
|
operations: [
|
|
7374
7422
|
"getWorkspaceBillingDetails",
|
|
@@ -7389,8 +7437,8 @@ export const state = {
|
|
|
7389
7437
|
schema: "Workspace",
|
|
7390
7438
|
},
|
|
7391
7439
|
{
|
|
7392
|
-
description: "",
|
|
7393
7440
|
title: "Workspace Member",
|
|
7441
|
+
description: "",
|
|
7394
7442
|
name: "workspaceMember",
|
|
7395
7443
|
operations: [
|
|
7396
7444
|
"listWorkspaceMembers",
|
|
@@ -7401,8 +7449,8 @@ export const state = {
|
|
|
7401
7449
|
schema: "WorkspaceMember",
|
|
7402
7450
|
},
|
|
7403
7451
|
{
|
|
7404
|
-
description: "",
|
|
7405
7452
|
title: "Account",
|
|
7453
|
+
description: "",
|
|
7406
7454
|
name: "account",
|
|
7407
7455
|
operations: [
|
|
7408
7456
|
"getAccount",
|
|
@@ -7413,12 +7461,18 @@ export const state = {
|
|
|
7413
7461
|
schema: "Account",
|
|
7414
7462
|
},
|
|
7415
7463
|
{
|
|
7416
|
-
description: "",
|
|
7417
7464
|
title: "Usage",
|
|
7465
|
+
description: "",
|
|
7418
7466
|
name: "usage",
|
|
7419
7467
|
operations: ["getUsage"],
|
|
7420
7468
|
schema: "Usage",
|
|
7421
7469
|
},
|
|
7470
|
+
{
|
|
7471
|
+
title: "Quotas",
|
|
7472
|
+
description: "",
|
|
7473
|
+
name: "quotas",
|
|
7474
|
+
operations: ["changeAISpendQuota"],
|
|
7475
|
+
},
|
|
7422
7476
|
],
|
|
7423
7477
|
options: {
|
|
7424
7478
|
allowUnions: false,
|
|
@@ -7453,4 +7507,5 @@ export const state = {
|
|
|
7453
7507
|
| "workspaceMember"
|
|
7454
7508
|
| "account"
|
|
7455
7509
|
| "usage"
|
|
7510
|
+
| "quotas"
|
|
7456
7511
|
>;
|