@botpress/sdk 4.8.2 → 4.8.3

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
@@ -4,7 +4,7 @@
4
4
  export declare const markdown: {
5
5
  schema: import("@bpinternal/zui").ZodObject<{
6
6
  markdown: import("@bpinternal/zui").ZodString;
7
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
7
+ }, "strip", {
8
8
  markdown: string;
9
9
  }, {
10
10
  markdown: string;
@@ -14,7 +14,7 @@ export declare const defaults: {
14
14
  readonly text: {
15
15
  readonly schema: import("@bpinternal/zui").ZodObject<{
16
16
  text: import("@bpinternal/zui").ZodString;
17
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
17
+ }, "strip", {
18
18
  text: string;
19
19
  }, {
20
20
  text: string;
@@ -23,7 +23,7 @@ export declare const defaults: {
23
23
  readonly image: {
24
24
  readonly schema: import("@bpinternal/zui").ZodObject<{
25
25
  imageUrl: import("@bpinternal/zui").ZodString;
26
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
26
+ }, "strip", {
27
27
  imageUrl: string;
28
28
  }, {
29
29
  imageUrl: string;
@@ -32,7 +32,7 @@ export declare const defaults: {
32
32
  readonly audio: {
33
33
  readonly schema: import("@bpinternal/zui").ZodObject<{
34
34
  audioUrl: import("@bpinternal/zui").ZodString;
35
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
35
+ }, "strip", {
36
36
  audioUrl: string;
37
37
  }, {
38
38
  audioUrl: string;
@@ -41,7 +41,7 @@ export declare const defaults: {
41
41
  readonly video: {
42
42
  readonly schema: import("@bpinternal/zui").ZodObject<{
43
43
  videoUrl: import("@bpinternal/zui").ZodString;
44
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
44
+ }, "strip", {
45
45
  videoUrl: string;
46
46
  }, {
47
47
  videoUrl: string;
@@ -51,7 +51,7 @@ export declare const defaults: {
51
51
  readonly schema: import("@bpinternal/zui").ZodObject<{
52
52
  fileUrl: import("@bpinternal/zui").ZodString;
53
53
  title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
54
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
54
+ }, "strip", {
55
55
  fileUrl: string;
56
56
  title?: string | undefined;
57
57
  }, {
@@ -65,7 +65,7 @@ export declare const defaults: {
65
65
  longitude: import("@bpinternal/zui").ZodNumber;
66
66
  address: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
67
67
  title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
68
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
68
+ }, "strip", {
69
69
  latitude: number;
70
70
  longitude: number;
71
71
  title?: string | undefined;
@@ -87,7 +87,7 @@ export declare const defaults: {
87
87
  action: import("@bpinternal/zui").ZodEnum<["postback", "url", "say"]>;
88
88
  label: import("@bpinternal/zui").ZodString;
89
89
  value: import("@bpinternal/zui").ZodString;
90
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
90
+ }, "strip", {
91
91
  value: string;
92
92
  action: "url" | "postback" | "say";
93
93
  label: string;
@@ -96,7 +96,7 @@ export declare const defaults: {
96
96
  action: "url" | "postback" | "say";
97
97
  label: string;
98
98
  }>, "many">;
99
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
99
+ }, "strip", {
100
100
  actions: {
101
101
  value: string;
102
102
  action: "url" | "postback" | "say";
@@ -115,7 +115,7 @@ export declare const defaults: {
115
115
  subtitle?: string | undefined;
116
116
  imageUrl?: string | undefined;
117
117
  }>, "many">;
118
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
118
+ }, "strip", {
119
119
  items: {
120
120
  actions: {
121
121
  value: string;
@@ -148,7 +148,7 @@ export declare const defaults: {
148
148
  action: import("@bpinternal/zui").ZodEnum<["postback", "url", "say"]>;
149
149
  label: import("@bpinternal/zui").ZodString;
150
150
  value: import("@bpinternal/zui").ZodString;
151
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
151
+ }, "strip", {
152
152
  value: string;
153
153
  action: "url" | "postback" | "say";
154
154
  label: string;
@@ -157,7 +157,7 @@ export declare const defaults: {
157
157
  action: "url" | "postback" | "say";
158
158
  label: string;
159
159
  }>, "many">;
160
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
160
+ }, "strip", {
161
161
  actions: {
162
162
  value: string;
163
163
  action: "url" | "postback" | "say";
@@ -183,14 +183,14 @@ export declare const defaults: {
183
183
  options: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
184
184
  label: import("@bpinternal/zui").ZodString;
185
185
  value: import("@bpinternal/zui").ZodString;
186
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
186
+ }, "strip", {
187
187
  value: string;
188
188
  label: string;
189
189
  }, {
190
190
  value: string;
191
191
  label: string;
192
192
  }>, "many">;
193
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
193
+ }, "strip", {
194
194
  options: {
195
195
  value: string;
196
196
  label: string;
@@ -210,14 +210,14 @@ export declare const defaults: {
210
210
  options: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
211
211
  label: import("@bpinternal/zui").ZodString;
212
212
  value: import("@bpinternal/zui").ZodString;
213
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
213
+ }, "strip", {
214
214
  value: string;
215
215
  label: string;
216
216
  }, {
217
217
  value: string;
218
218
  label: string;
219
219
  }>, "many">;
220
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
220
+ }, "strip", {
221
221
  options: {
222
222
  value: string;
223
223
  label: string;
@@ -237,12 +237,12 @@ export declare const defaults: {
237
237
  type: import("@bpinternal/zui").ZodLiteral<"text">;
238
238
  payload: import("@bpinternal/zui").ZodObject<{
239
239
  text: import("@bpinternal/zui").ZodString;
240
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
240
+ }, "strip", {
241
241
  text: string;
242
242
  }, {
243
243
  text: string;
244
244
  }>;
245
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
245
+ }, "strip", {
246
246
  payload: {
247
247
  text: string;
248
248
  };
@@ -256,12 +256,12 @@ export declare const defaults: {
256
256
  type: import("@bpinternal/zui").ZodLiteral<"markdown">;
257
257
  payload: import("@bpinternal/zui").ZodObject<{
258
258
  markdown: import("@bpinternal/zui").ZodString;
259
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
259
+ }, "strip", {
260
260
  markdown: string;
261
261
  }, {
262
262
  markdown: string;
263
263
  }>;
264
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
264
+ }, "strip", {
265
265
  payload: {
266
266
  markdown: string;
267
267
  };
@@ -275,12 +275,12 @@ export declare const defaults: {
275
275
  type: import("@bpinternal/zui").ZodLiteral<"image">;
276
276
  payload: import("@bpinternal/zui").ZodObject<{
277
277
  imageUrl: import("@bpinternal/zui").ZodString;
278
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
278
+ }, "strip", {
279
279
  imageUrl: string;
280
280
  }, {
281
281
  imageUrl: string;
282
282
  }>;
283
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
283
+ }, "strip", {
284
284
  payload: {
285
285
  imageUrl: string;
286
286
  };
@@ -294,12 +294,12 @@ export declare const defaults: {
294
294
  type: import("@bpinternal/zui").ZodLiteral<"audio">;
295
295
  payload: import("@bpinternal/zui").ZodObject<{
296
296
  audioUrl: import("@bpinternal/zui").ZodString;
297
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
297
+ }, "strip", {
298
298
  audioUrl: string;
299
299
  }, {
300
300
  audioUrl: string;
301
301
  }>;
302
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
302
+ }, "strip", {
303
303
  payload: {
304
304
  audioUrl: string;
305
305
  };
@@ -313,12 +313,12 @@ export declare const defaults: {
313
313
  type: import("@bpinternal/zui").ZodLiteral<"video">;
314
314
  payload: import("@bpinternal/zui").ZodObject<{
315
315
  videoUrl: import("@bpinternal/zui").ZodString;
316
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
316
+ }, "strip", {
317
317
  videoUrl: string;
318
318
  }, {
319
319
  videoUrl: string;
320
320
  }>;
321
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
321
+ }, "strip", {
322
322
  payload: {
323
323
  videoUrl: string;
324
324
  };
@@ -333,14 +333,14 @@ export declare const defaults: {
333
333
  payload: import("@bpinternal/zui").ZodObject<{
334
334
  fileUrl: import("@bpinternal/zui").ZodString;
335
335
  title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
336
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
336
+ }, "strip", {
337
337
  fileUrl: string;
338
338
  title?: string | undefined;
339
339
  }, {
340
340
  fileUrl: string;
341
341
  title?: string | undefined;
342
342
  }>;
343
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
343
+ }, "strip", {
344
344
  payload: {
345
345
  fileUrl: string;
346
346
  title?: string | undefined;
@@ -359,7 +359,7 @@ export declare const defaults: {
359
359
  longitude: import("@bpinternal/zui").ZodNumber;
360
360
  address: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
361
361
  title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
362
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
362
+ }, "strip", {
363
363
  latitude: number;
364
364
  longitude: number;
365
365
  title?: string | undefined;
@@ -370,7 +370,7 @@ export declare const defaults: {
370
370
  title?: string | undefined;
371
371
  address?: string | undefined;
372
372
  }>;
373
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
373
+ }, "strip", {
374
374
  payload: {
375
375
  latitude: number;
376
376
  longitude: number;
@@ -387,7 +387,7 @@ export declare const defaults: {
387
387
  };
388
388
  type: "location";
389
389
  }>]>, "many">;
390
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
390
+ }, "strip", {
391
391
  items: ({
392
392
  payload: {
393
393
  text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/sdk",
3
- "version": "4.8.2",
3
+ "version": "4.8.3",
4
4
  "description": "Botpress SDK",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "tsup": "^8.0.2"
26
26
  },
27
27
  "peerDependencies": {
28
- "@bpinternal/zui": "^0.13.5",
28
+ "@bpinternal/zui": "^1.0.0",
29
29
  "esbuild": "^0.16.12"
30
30
  },
31
31
  "peerDependenciesMeta": {