@botpress/sdk 0.0.6 → 0.0.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/message.d.ts CHANGED
@@ -48,10 +48,13 @@ export declare const defaults: {
48
48
  readonly file: {
49
49
  readonly schema: z.ZodObject<{
50
50
  fileUrl: z.ZodString;
51
+ title: z.ZodOptional<z.ZodString>;
51
52
  }, "strip", z.ZodTypeAny, {
52
53
  fileUrl: string;
54
+ title?: string | undefined;
53
55
  }, {
54
56
  fileUrl: string;
57
+ title?: string | undefined;
55
58
  }>;
56
59
  };
57
60
  readonly location: {
@@ -86,45 +89,45 @@ export declare const defaults: {
86
89
  label: string;
87
90
  }>, "many">;
88
91
  }, "strip", z.ZodTypeAny, {
89
- imageUrl?: string | undefined;
90
- subtitle?: string | undefined;
91
92
  actions: {
92
93
  value: string;
93
94
  action: "url" | "postback" | "say";
94
95
  label: string;
95
96
  }[];
96
97
  title: string;
97
- }, {
98
- imageUrl?: string | undefined;
99
98
  subtitle?: string | undefined;
99
+ imageUrl?: string | undefined;
100
+ }, {
100
101
  actions: {
101
102
  value: string;
102
103
  action: "url" | "postback" | "say";
103
104
  label: string;
104
105
  }[];
105
106
  title: string;
107
+ subtitle?: string | undefined;
108
+ imageUrl?: string | undefined;
106
109
  }>, "many">;
107
110
  }, "strip", z.ZodTypeAny, {
108
111
  items: {
109
- imageUrl?: string | undefined;
110
- subtitle?: string | undefined;
111
112
  actions: {
112
113
  value: string;
113
114
  action: "url" | "postback" | "say";
114
115
  label: string;
115
116
  }[];
116
117
  title: string;
118
+ subtitle?: string | undefined;
119
+ imageUrl?: string | undefined;
117
120
  }[];
118
121
  }, {
119
122
  items: {
120
- imageUrl?: string | undefined;
121
- subtitle?: string | undefined;
122
123
  actions: {
123
124
  value: string;
124
125
  action: "url" | "postback" | "say";
125
126
  label: string;
126
127
  }[];
127
128
  title: string;
129
+ subtitle?: string | undefined;
130
+ imageUrl?: string | undefined;
128
131
  }[];
129
132
  }>;
130
133
  };
@@ -147,23 +150,23 @@ export declare const defaults: {
147
150
  label: string;
148
151
  }>, "many">;
149
152
  }, "strip", z.ZodTypeAny, {
150
- imageUrl?: string | undefined;
151
- subtitle?: string | undefined;
152
153
  actions: {
153
154
  value: string;
154
155
  action: "url" | "postback" | "say";
155
156
  label: string;
156
157
  }[];
157
158
  title: string;
158
- }, {
159
- imageUrl?: string | undefined;
160
159
  subtitle?: string | undefined;
160
+ imageUrl?: string | undefined;
161
+ }, {
161
162
  actions: {
162
163
  value: string;
163
164
  action: "url" | "postback" | "say";
164
165
  label: string;
165
166
  }[];
166
167
  title: string;
168
+ subtitle?: string | undefined;
169
+ imageUrl?: string | undefined;
167
170
  }>;
168
171
  };
169
172
  readonly dropdown: {
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@botpress/sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Botpress SDK",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build:type": "tsc --emitDeclarationOnly --declaration --target es2019 --module commonjs --moduleResolution node --lib es2019",
9
- "build:index": "esbuild --bundle --platform=node --minify --sourcemap --outfile=dist/index.js src/index.ts",
9
+ "build:index": "ts-node -T build.ts",
10
10
  "build": "pnpm build:type && pnpm build:index"
11
11
  },
12
12
  "keywords": [],
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@botpress/client": "0.0.6",
16
+ "@botpress/client": "0.0.7",
17
17
  "axios": "0.27.2",
18
18
  "radash": "^9.5.0",
19
19
  "zod": "^3.20.6",
@@ -21,8 +21,9 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^18.11.17",
24
- "type-fest": "^3.4.0",
25
24
  "esbuild": "^0.16.10",
25
+ "ts-node": "^10.9.1",
26
+ "type-fest": "^3.4.0",
26
27
  "typescript": "^4.9.4"
27
28
  }
28
29
  }