@botpress/api 0.26.0 → 0.26.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/index.js +210733 -209806
- package/dist/src/gen/state.d.ts +41 -0
- package/dist/src/index.d.ts +6 -2
- package/package.json +2 -2
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +45 -1
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1748,6 +1748,45 @@ export declare const state: {
|
|
|
1748
1748
|
};
|
|
1749
1749
|
};
|
|
1750
1750
|
};
|
|
1751
|
+
trackAnalytics: {
|
|
1752
|
+
name: string;
|
|
1753
|
+
description: string;
|
|
1754
|
+
method: "post";
|
|
1755
|
+
path: string;
|
|
1756
|
+
disableDefaultParameters: {
|
|
1757
|
+
"x-integration-id": boolean;
|
|
1758
|
+
};
|
|
1759
|
+
requestBody: {
|
|
1760
|
+
description: string;
|
|
1761
|
+
schema: {
|
|
1762
|
+
type: "object";
|
|
1763
|
+
properties: {
|
|
1764
|
+
name: {
|
|
1765
|
+
type: "string";
|
|
1766
|
+
minLength: number;
|
|
1767
|
+
maxLength: number;
|
|
1768
|
+
};
|
|
1769
|
+
count: {
|
|
1770
|
+
type: "integer";
|
|
1771
|
+
minimum: number;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
required: string[];
|
|
1775
|
+
title: string;
|
|
1776
|
+
additionalProperties: false;
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
response: {
|
|
1780
|
+
description: string;
|
|
1781
|
+
status: 200;
|
|
1782
|
+
schema: {
|
|
1783
|
+
type: "object";
|
|
1784
|
+
title: string;
|
|
1785
|
+
additionalProperties: false;
|
|
1786
|
+
};
|
|
1787
|
+
};
|
|
1788
|
+
parameters: {};
|
|
1789
|
+
};
|
|
1751
1790
|
runVrl: {
|
|
1752
1791
|
name: string;
|
|
1753
1792
|
description: string;
|
|
@@ -8440,6 +8479,7 @@ export declare const state: {
|
|
|
8440
8479
|
configureIntegrationBody: true;
|
|
8441
8480
|
createTaskBody: true;
|
|
8442
8481
|
updateTaskBody: true;
|
|
8482
|
+
trackAnalyticsBody: true;
|
|
8443
8483
|
runVrlBody: true;
|
|
8444
8484
|
updateAccountBody: true;
|
|
8445
8485
|
createPersonalAccessTokenBody: true;
|
|
@@ -8509,6 +8549,7 @@ export declare const state: {
|
|
|
8509
8549
|
updateTaskResponse: true;
|
|
8510
8550
|
deleteTaskResponse: true;
|
|
8511
8551
|
listTasksResponse: true;
|
|
8552
|
+
trackAnalyticsResponse: true;
|
|
8512
8553
|
runVrlResponse: true;
|
|
8513
8554
|
getAccountResponse: true;
|
|
8514
8555
|
updateAccountResponse: true;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './gen/state';
|
|
2
2
|
export declare const api: {
|
|
3
3
|
getModelRef: (name: "Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "Table" | "Column" | "Row" | "File") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
4
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "task" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
|
|
5
|
-
exportClient:
|
|
4
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-integration-id" | "x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "task" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
|
|
5
|
+
exportClient: {
|
|
6
|
+
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
7
|
+
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
|
8
|
+
};
|
|
6
9
|
exportTypesBySection: (dir?: string | undefined) => Promise<void>;
|
|
7
10
|
exportServer: (dir: string | undefined, useExpressTypes: boolean) => Promise<void>;
|
|
8
11
|
exportOpenapi: (dir?: string | undefined) => void;
|
|
@@ -10,4 +13,5 @@ export declare const api: {
|
|
|
10
13
|
importPath: string;
|
|
11
14
|
}> | undefined) => void;
|
|
12
15
|
exportErrors: (dir?: string | undefined) => void;
|
|
16
|
+
exportHandler: (dir?: string | undefined) => Promise<void>;
|
|
13
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"zod": "^3.22.4"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@bpinternal/opapi": "0.
|
|
26
|
+
"@bpinternal/opapi": "0.10.8"
|
|
27
27
|
}
|
|
28
28
|
}
|