@botpress/sdk 5.3.4 → 5.4.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/message.d.ts CHANGED
@@ -40,58 +40,73 @@ export declare const markdownBloc: {
40
40
  type: import("@bpinternal/zui").ZodLiteral<"image">;
41
41
  payload: import("@bpinternal/zui").ZodObject<{
42
42
  imageUrl: import("@bpinternal/zui").ZodString;
43
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
43
44
  }, "strip", {
44
45
  imageUrl: string;
46
+ title?: string | undefined;
45
47
  }, {
46
48
  imageUrl: string;
49
+ title?: string | undefined;
47
50
  }>;
48
51
  }, "strip", {
49
52
  type: "image";
50
53
  payload: {
51
54
  imageUrl: string;
55
+ title?: string | undefined;
52
56
  };
53
57
  }, {
54
58
  type: "image";
55
59
  payload: {
56
60
  imageUrl: string;
61
+ title?: string | undefined;
57
62
  };
58
63
  }>, import("@bpinternal/zui").ZodObject<{
59
64
  type: import("@bpinternal/zui").ZodLiteral<"audio">;
60
65
  payload: import("@bpinternal/zui").ZodObject<{
61
66
  audioUrl: import("@bpinternal/zui").ZodString;
67
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
62
68
  }, "strip", {
63
69
  audioUrl: string;
70
+ title?: string | undefined;
64
71
  }, {
65
72
  audioUrl: string;
73
+ title?: string | undefined;
66
74
  }>;
67
75
  }, "strip", {
68
76
  type: "audio";
69
77
  payload: {
70
78
  audioUrl: string;
79
+ title?: string | undefined;
71
80
  };
72
81
  }, {
73
82
  type: "audio";
74
83
  payload: {
75
84
  audioUrl: string;
85
+ title?: string | undefined;
76
86
  };
77
87
  }>, import("@bpinternal/zui").ZodObject<{
78
88
  type: import("@bpinternal/zui").ZodLiteral<"video">;
79
89
  payload: import("@bpinternal/zui").ZodObject<{
80
90
  videoUrl: import("@bpinternal/zui").ZodString;
91
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
81
92
  }, "strip", {
82
93
  videoUrl: string;
94
+ title?: string | undefined;
83
95
  }, {
84
96
  videoUrl: string;
97
+ title?: string | undefined;
85
98
  }>;
86
99
  }, "strip", {
87
100
  type: "video";
88
101
  payload: {
89
102
  videoUrl: string;
103
+ title?: string | undefined;
90
104
  };
91
105
  }, {
92
106
  type: "video";
93
107
  payload: {
94
108
  videoUrl: string;
109
+ title?: string | undefined;
95
110
  };
96
111
  }>, import("@bpinternal/zui").ZodObject<{
97
112
  type: import("@bpinternal/zui").ZodLiteral<"file">;
@@ -181,16 +196,19 @@ export declare const markdownBloc: {
181
196
  type: "image";
182
197
  payload: {
183
198
  imageUrl: string;
199
+ title?: string | undefined;
184
200
  };
185
201
  } | {
186
202
  type: "audio";
187
203
  payload: {
188
204
  audioUrl: string;
205
+ title?: string | undefined;
189
206
  };
190
207
  } | {
191
208
  type: "video";
192
209
  payload: {
193
210
  videoUrl: string;
211
+ title?: string | undefined;
194
212
  };
195
213
  } | {
196
214
  type: "file";
@@ -222,16 +240,19 @@ export declare const markdownBloc: {
222
240
  type: "image";
223
241
  payload: {
224
242
  imageUrl: string;
243
+ title?: string | undefined;
225
244
  };
226
245
  } | {
227
246
  type: "audio";
228
247
  payload: {
229
248
  audioUrl: string;
249
+ title?: string | undefined;
230
250
  };
231
251
  } | {
232
252
  type: "video";
233
253
  payload: {
234
254
  videoUrl: string;
255
+ title?: string | undefined;
235
256
  };
236
257
  } | {
237
258
  type: "file";
@@ -268,28 +289,37 @@ export declare const defaults: {
268
289
  readonly image: {
269
290
  readonly schema: import("@bpinternal/zui").ZodObject<{
270
291
  imageUrl: import("@bpinternal/zui").ZodString;
292
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
271
293
  }, "strip", {
272
294
  imageUrl: string;
295
+ title?: string | undefined;
273
296
  }, {
274
297
  imageUrl: string;
298
+ title?: string | undefined;
275
299
  }>;
276
300
  };
277
301
  readonly audio: {
278
302
  readonly schema: import("@bpinternal/zui").ZodObject<{
279
303
  audioUrl: import("@bpinternal/zui").ZodString;
304
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
280
305
  }, "strip", {
281
306
  audioUrl: string;
307
+ title?: string | undefined;
282
308
  }, {
283
309
  audioUrl: string;
310
+ title?: string | undefined;
284
311
  }>;
285
312
  };
286
313
  readonly video: {
287
314
  readonly schema: import("@bpinternal/zui").ZodObject<{
288
315
  videoUrl: import("@bpinternal/zui").ZodString;
316
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
289
317
  }, "strip", {
290
318
  videoUrl: string;
319
+ title?: string | undefined;
291
320
  }, {
292
321
  videoUrl: string;
322
+ title?: string | undefined;
293
323
  }>;
294
324
  };
295
325
  readonly file: {
@@ -501,58 +531,73 @@ export declare const defaults: {
501
531
  type: import("@bpinternal/zui").ZodLiteral<"image">;
502
532
  payload: import("@bpinternal/zui").ZodObject<{
503
533
  imageUrl: import("@bpinternal/zui").ZodString;
534
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
504
535
  }, "strip", {
505
536
  imageUrl: string;
537
+ title?: string | undefined;
506
538
  }, {
507
539
  imageUrl: string;
540
+ title?: string | undefined;
508
541
  }>;
509
542
  }, "strip", {
510
543
  type: "image";
511
544
  payload: {
512
545
  imageUrl: string;
546
+ title?: string | undefined;
513
547
  };
514
548
  }, {
515
549
  type: "image";
516
550
  payload: {
517
551
  imageUrl: string;
552
+ title?: string | undefined;
518
553
  };
519
554
  }>, import("@bpinternal/zui").ZodObject<{
520
555
  type: import("@bpinternal/zui").ZodLiteral<"audio">;
521
556
  payload: import("@bpinternal/zui").ZodObject<{
522
557
  audioUrl: import("@bpinternal/zui").ZodString;
558
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
523
559
  }, "strip", {
524
560
  audioUrl: string;
561
+ title?: string | undefined;
525
562
  }, {
526
563
  audioUrl: string;
564
+ title?: string | undefined;
527
565
  }>;
528
566
  }, "strip", {
529
567
  type: "audio";
530
568
  payload: {
531
569
  audioUrl: string;
570
+ title?: string | undefined;
532
571
  };
533
572
  }, {
534
573
  type: "audio";
535
574
  payload: {
536
575
  audioUrl: string;
576
+ title?: string | undefined;
537
577
  };
538
578
  }>, import("@bpinternal/zui").ZodObject<{
539
579
  type: import("@bpinternal/zui").ZodLiteral<"video">;
540
580
  payload: import("@bpinternal/zui").ZodObject<{
541
581
  videoUrl: import("@bpinternal/zui").ZodString;
582
+ title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
542
583
  }, "strip", {
543
584
  videoUrl: string;
585
+ title?: string | undefined;
544
586
  }, {
545
587
  videoUrl: string;
588
+ title?: string | undefined;
546
589
  }>;
547
590
  }, "strip", {
548
591
  type: "video";
549
592
  payload: {
550
593
  videoUrl: string;
594
+ title?: string | undefined;
551
595
  };
552
596
  }, {
553
597
  type: "video";
554
598
  payload: {
555
599
  videoUrl: string;
600
+ title?: string | undefined;
556
601
  };
557
602
  }>, import("@bpinternal/zui").ZodObject<{
558
603
  type: import("@bpinternal/zui").ZodLiteral<"file">;
@@ -623,16 +668,19 @@ export declare const defaults: {
623
668
  type: "image";
624
669
  payload: {
625
670
  imageUrl: string;
671
+ title?: string | undefined;
626
672
  };
627
673
  } | {
628
674
  type: "audio";
629
675
  payload: {
630
676
  audioUrl: string;
677
+ title?: string | undefined;
631
678
  };
632
679
  } | {
633
680
  type: "video";
634
681
  payload: {
635
682
  videoUrl: string;
683
+ title?: string | undefined;
636
684
  };
637
685
  } | {
638
686
  type: "file";
@@ -659,16 +707,19 @@ export declare const defaults: {
659
707
  type: "image";
660
708
  payload: {
661
709
  imageUrl: string;
710
+ title?: string | undefined;
662
711
  };
663
712
  } | {
664
713
  type: "audio";
665
714
  payload: {
666
715
  audioUrl: string;
716
+ title?: string | undefined;
667
717
  };
668
718
  } | {
669
719
  type: "video";
670
720
  payload: {
671
721
  videoUrl: string;
722
+ title?: string | undefined;
672
723
  };
673
724
  } | {
674
725
  type: "file";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/sdk",
3
- "version": "5.3.4",
3
+ "version": "5.4.1",
4
4
  "description": "Botpress SDK",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "tsup": "^8.0.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@bpinternal/zui": "^1.3.2",
34
+ "@bpinternal/zui": "^1.3.3",
35
35
  "esbuild": "^0.16.12"
36
36
  },
37
37
  "peerDependenciesMeta": {