@botpress/api 0.26.0 → 0.26.2

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.
@@ -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;
@@ -4058,6 +4097,12 @@ export declare const state: {
4058
4097
  type: "number";
4059
4098
  };
4060
4099
  };
4100
+ customEvents: {
4101
+ type: "object";
4102
+ additionalProperties: {
4103
+ type: "number";
4104
+ };
4105
+ };
4061
4106
  };
4062
4107
  required: string[];
4063
4108
  };
@@ -8440,6 +8485,7 @@ export declare const state: {
8440
8485
  configureIntegrationBody: true;
8441
8486
  createTaskBody: true;
8442
8487
  updateTaskBody: true;
8488
+ trackAnalyticsBody: true;
8443
8489
  runVrlBody: true;
8444
8490
  updateAccountBody: true;
8445
8491
  createPersonalAccessTokenBody: true;
@@ -8509,6 +8555,7 @@ export declare const state: {
8509
8555
  updateTaskResponse: true;
8510
8556
  deleteTaskResponse: true;
8511
8557
  listTasksResponse: true;
8558
+ trackAnalyticsResponse: true;
8512
8559
  runVrlResponse: true;
8513
8560
  getAccountResponse: true;
8514
8561
  updateAccountResponse: true;
@@ -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: (dir: string | undefined, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined) => Promise<void>;
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.0",
3
+ "version": "0.26.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -16,13 +16,13 @@
16
16
  "@botpress/bridge": "workspace:*",
17
17
  "@botpress/cloud-manager": "workspace:*",
18
18
  "@botpress/common": "workspace:*",
19
- "@botpress/files": "workspace:*",
19
+ "@botpress/files-api": "workspace:*",
20
20
  "@bpinternal/es-node": "0.0.3",
21
21
  "@bpinternal/tables-api": "workspace:*",
22
22
  "esbuild": "^0.16.10",
23
23
  "zod": "^3.22.4"
24
24
  },
25
25
  "dependencies": {
26
- "@bpinternal/opapi": "0.9.0"
26
+ "@bpinternal/opapi": "0.10.8"
27
27
  }
28
28
  }