@botpress/api 0.15.7 → 0.15.8
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 +55 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +259 -166
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +89 -34
- package/src/index.ts +1 -0
package/src/gen/state.ts
CHANGED
|
@@ -1,7 +1,40 @@
|
|
|
1
1
|
// This file was generated by the Opapi Generator
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/* prettier-ignore */
|
|
4
|
-
import
|
|
4
|
+
import * as opapi from "@bpinternal/opapi";
|
|
5
|
+
export type State = opapi.State<
|
|
6
|
+
| "Bot"
|
|
7
|
+
| "Integration"
|
|
8
|
+
| "Workspace"
|
|
9
|
+
| "WorkspaceMember"
|
|
10
|
+
| "Account"
|
|
11
|
+
| "Usage"
|
|
12
|
+
| "Issue"
|
|
13
|
+
| "IssueEvent"
|
|
14
|
+
| "User"
|
|
15
|
+
| "Conversation"
|
|
16
|
+
| "Event"
|
|
17
|
+
| "Message"
|
|
18
|
+
| "State"
|
|
19
|
+
| "File",
|
|
20
|
+
never,
|
|
21
|
+
| "user"
|
|
22
|
+
| "conversation"
|
|
23
|
+
| "event"
|
|
24
|
+
| "message"
|
|
25
|
+
| "file"
|
|
26
|
+
| "state"
|
|
27
|
+
| "hub"
|
|
28
|
+
| "action"
|
|
29
|
+
| "bot"
|
|
30
|
+
| "integration"
|
|
31
|
+
| "workspace"
|
|
32
|
+
| "workspaceMember"
|
|
33
|
+
| "account"
|
|
34
|
+
| "usage"
|
|
35
|
+
| "quotas"
|
|
36
|
+
| "helper"
|
|
37
|
+
>;
|
|
5
38
|
export const state = {
|
|
6
39
|
operations: {
|
|
7
40
|
createConversation: {
|
|
@@ -1496,6 +1529,51 @@ export const state = {
|
|
|
1496
1529
|
},
|
|
1497
1530
|
parameters: {},
|
|
1498
1531
|
},
|
|
1532
|
+
runVrl: {
|
|
1533
|
+
name: "runVrl",
|
|
1534
|
+
description: "Run a VRL script",
|
|
1535
|
+
method: "post",
|
|
1536
|
+
path: "/v1/admin/helper/vrl",
|
|
1537
|
+
section: "helper",
|
|
1538
|
+
requestBody: {
|
|
1539
|
+
description: "VRL script",
|
|
1540
|
+
schema: {
|
|
1541
|
+
type: "object",
|
|
1542
|
+
properties: {
|
|
1543
|
+
data: {
|
|
1544
|
+
type: "object",
|
|
1545
|
+
additionalProperties: true,
|
|
1546
|
+
},
|
|
1547
|
+
script: {
|
|
1548
|
+
type: "string",
|
|
1549
|
+
},
|
|
1550
|
+
},
|
|
1551
|
+
required: ["data", "script"],
|
|
1552
|
+
title: "runVrlBody",
|
|
1553
|
+
additionalProperties: false,
|
|
1554
|
+
},
|
|
1555
|
+
},
|
|
1556
|
+
response: {
|
|
1557
|
+
description: "Success",
|
|
1558
|
+
schema: {
|
|
1559
|
+
type: "object",
|
|
1560
|
+
properties: {
|
|
1561
|
+
data: {
|
|
1562
|
+
type: "object",
|
|
1563
|
+
additionalProperties: true,
|
|
1564
|
+
},
|
|
1565
|
+
result: {
|
|
1566
|
+
type: "object",
|
|
1567
|
+
additionalProperties: true,
|
|
1568
|
+
},
|
|
1569
|
+
},
|
|
1570
|
+
required: ["data", "result"],
|
|
1571
|
+
title: "runVrlResponse",
|
|
1572
|
+
additionalProperties: false,
|
|
1573
|
+
},
|
|
1574
|
+
},
|
|
1575
|
+
parameters: {},
|
|
1576
|
+
},
|
|
1499
1577
|
getAccount: {
|
|
1500
1578
|
name: "getAccount",
|
|
1501
1579
|
description:
|
|
@@ -5804,7 +5882,7 @@ export const state = {
|
|
|
5804
5882
|
title: "Botpress API",
|
|
5805
5883
|
description: "API for Botpress Cloud",
|
|
5806
5884
|
server: "https://api.botpress.cloud",
|
|
5807
|
-
version: "0.15.
|
|
5885
|
+
version: "0.15.8",
|
|
5808
5886
|
prefix: "v1",
|
|
5809
5887
|
},
|
|
5810
5888
|
errors: [
|
|
@@ -5941,6 +6019,7 @@ export const state = {
|
|
|
5941
6019
|
patchStateBody: true,
|
|
5942
6020
|
callActionBody: true,
|
|
5943
6021
|
configureIntegrationBody: true,
|
|
6022
|
+
runVrlBody: true,
|
|
5944
6023
|
createPersonalAccessTokenBody: true,
|
|
5945
6024
|
createBotBody: true,
|
|
5946
6025
|
updateBotBody: true,
|
|
@@ -5989,6 +6068,7 @@ export const state = {
|
|
|
5989
6068
|
patchStateResponse: true,
|
|
5990
6069
|
callActionResponse: true,
|
|
5991
6070
|
configureIntegrationResponse: true,
|
|
6071
|
+
runVrlResponse: true,
|
|
5992
6072
|
getAccountResponse: true,
|
|
5993
6073
|
listPersonalAccessTokensResponse: true,
|
|
5994
6074
|
createPersonalAccessTokenResponse: true,
|
|
@@ -7640,39 +7720,14 @@ export const state = {
|
|
|
7640
7720
|
name: "quotas",
|
|
7641
7721
|
operations: ["changeAISpendQuota"],
|
|
7642
7722
|
},
|
|
7723
|
+
{
|
|
7724
|
+
title: "Helper",
|
|
7725
|
+
description: "",
|
|
7726
|
+
name: "helper",
|
|
7727
|
+
operations: ["runVrl"],
|
|
7728
|
+
},
|
|
7643
7729
|
],
|
|
7644
7730
|
options: {
|
|
7645
7731
|
allowUnions: false,
|
|
7646
7732
|
},
|
|
7647
|
-
} satisfies State
|
|
7648
|
-
| "Bot"
|
|
7649
|
-
| "Integration"
|
|
7650
|
-
| "Workspace"
|
|
7651
|
-
| "WorkspaceMember"
|
|
7652
|
-
| "Account"
|
|
7653
|
-
| "Usage"
|
|
7654
|
-
| "Issue"
|
|
7655
|
-
| "IssueEvent"
|
|
7656
|
-
| "User"
|
|
7657
|
-
| "Conversation"
|
|
7658
|
-
| "Event"
|
|
7659
|
-
| "Message"
|
|
7660
|
-
| "State"
|
|
7661
|
-
| "File",
|
|
7662
|
-
never,
|
|
7663
|
-
| "user"
|
|
7664
|
-
| "conversation"
|
|
7665
|
-
| "event"
|
|
7666
|
-
| "message"
|
|
7667
|
-
| "file"
|
|
7668
|
-
| "state"
|
|
7669
|
-
| "hub"
|
|
7670
|
-
| "action"
|
|
7671
|
-
| "bot"
|
|
7672
|
-
| "integration"
|
|
7673
|
-
| "workspace"
|
|
7674
|
-
| "workspaceMember"
|
|
7675
|
-
| "account"
|
|
7676
|
-
| "usage"
|
|
7677
|
-
| "quotas"
|
|
7678
|
-
>;
|
|
7733
|
+
} satisfies State;
|
package/src/index.ts
CHANGED