@botpress/sdk 4.20.2 → 4.21.0
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/.turbo/turbo-build.log +5 -5
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +3 -3
- package/dist/message.d.ts +245 -29
- package/package.json +1 -1
package/dist/message.d.ts
CHANGED
|
@@ -10,6 +10,251 @@ export declare const markdown: {
|
|
|
10
10
|
markdown: string;
|
|
11
11
|
}>;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Bloc message that still includes markdown as an item
|
|
15
|
+
*
|
|
16
|
+
* @deprecated use `bloc` instead
|
|
17
|
+
*/
|
|
18
|
+
export declare const markdownBloc: {
|
|
19
|
+
schema: import("@bpinternal/zui").ZodObject<{
|
|
20
|
+
items: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodObject<{
|
|
21
|
+
type: import("@bpinternal/zui").ZodLiteral<"text">;
|
|
22
|
+
payload: import("@bpinternal/zui").ZodObject<{
|
|
23
|
+
text: import("@bpinternal/zui").ZodString;
|
|
24
|
+
}, "strip", {
|
|
25
|
+
text: string;
|
|
26
|
+
}, {
|
|
27
|
+
text: string;
|
|
28
|
+
}>;
|
|
29
|
+
}, "strip", {
|
|
30
|
+
type: "text";
|
|
31
|
+
payload: {
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
type: "text";
|
|
36
|
+
payload: {
|
|
37
|
+
text: string;
|
|
38
|
+
};
|
|
39
|
+
}>, import("@bpinternal/zui").ZodObject<{
|
|
40
|
+
type: import("@bpinternal/zui").ZodLiteral<"image">;
|
|
41
|
+
payload: import("@bpinternal/zui").ZodObject<{
|
|
42
|
+
imageUrl: import("@bpinternal/zui").ZodString;
|
|
43
|
+
}, "strip", {
|
|
44
|
+
imageUrl: string;
|
|
45
|
+
}, {
|
|
46
|
+
imageUrl: string;
|
|
47
|
+
}>;
|
|
48
|
+
}, "strip", {
|
|
49
|
+
type: "image";
|
|
50
|
+
payload: {
|
|
51
|
+
imageUrl: string;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
type: "image";
|
|
55
|
+
payload: {
|
|
56
|
+
imageUrl: string;
|
|
57
|
+
};
|
|
58
|
+
}>, import("@bpinternal/zui").ZodObject<{
|
|
59
|
+
type: import("@bpinternal/zui").ZodLiteral<"audio">;
|
|
60
|
+
payload: import("@bpinternal/zui").ZodObject<{
|
|
61
|
+
audioUrl: import("@bpinternal/zui").ZodString;
|
|
62
|
+
}, "strip", {
|
|
63
|
+
audioUrl: string;
|
|
64
|
+
}, {
|
|
65
|
+
audioUrl: string;
|
|
66
|
+
}>;
|
|
67
|
+
}, "strip", {
|
|
68
|
+
type: "audio";
|
|
69
|
+
payload: {
|
|
70
|
+
audioUrl: string;
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
type: "audio";
|
|
74
|
+
payload: {
|
|
75
|
+
audioUrl: string;
|
|
76
|
+
};
|
|
77
|
+
}>, import("@bpinternal/zui").ZodObject<{
|
|
78
|
+
type: import("@bpinternal/zui").ZodLiteral<"video">;
|
|
79
|
+
payload: import("@bpinternal/zui").ZodObject<{
|
|
80
|
+
videoUrl: import("@bpinternal/zui").ZodString;
|
|
81
|
+
}, "strip", {
|
|
82
|
+
videoUrl: string;
|
|
83
|
+
}, {
|
|
84
|
+
videoUrl: string;
|
|
85
|
+
}>;
|
|
86
|
+
}, "strip", {
|
|
87
|
+
type: "video";
|
|
88
|
+
payload: {
|
|
89
|
+
videoUrl: string;
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
type: "video";
|
|
93
|
+
payload: {
|
|
94
|
+
videoUrl: string;
|
|
95
|
+
};
|
|
96
|
+
}>, import("@bpinternal/zui").ZodObject<{
|
|
97
|
+
type: import("@bpinternal/zui").ZodLiteral<"file">;
|
|
98
|
+
payload: import("@bpinternal/zui").ZodObject<{
|
|
99
|
+
fileUrl: import("@bpinternal/zui").ZodString;
|
|
100
|
+
title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
101
|
+
}, "strip", {
|
|
102
|
+
fileUrl: string;
|
|
103
|
+
title?: string | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
fileUrl: string;
|
|
106
|
+
title?: string | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
}, "strip", {
|
|
109
|
+
type: "file";
|
|
110
|
+
payload: {
|
|
111
|
+
fileUrl: string;
|
|
112
|
+
title?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
}, {
|
|
115
|
+
type: "file";
|
|
116
|
+
payload: {
|
|
117
|
+
fileUrl: string;
|
|
118
|
+
title?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
}>, import("@bpinternal/zui").ZodObject<{
|
|
121
|
+
type: import("@bpinternal/zui").ZodLiteral<"location">;
|
|
122
|
+
payload: import("@bpinternal/zui").ZodObject<{
|
|
123
|
+
latitude: import("@bpinternal/zui").ZodNumber;
|
|
124
|
+
longitude: import("@bpinternal/zui").ZodNumber;
|
|
125
|
+
address: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
126
|
+
title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
127
|
+
}, "strip", {
|
|
128
|
+
latitude: number;
|
|
129
|
+
longitude: number;
|
|
130
|
+
title?: string | undefined;
|
|
131
|
+
address?: string | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
latitude: number;
|
|
134
|
+
longitude: number;
|
|
135
|
+
title?: string | undefined;
|
|
136
|
+
address?: string | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
}, "strip", {
|
|
139
|
+
type: "location";
|
|
140
|
+
payload: {
|
|
141
|
+
latitude: number;
|
|
142
|
+
longitude: number;
|
|
143
|
+
title?: string | undefined;
|
|
144
|
+
address?: string | undefined;
|
|
145
|
+
};
|
|
146
|
+
}, {
|
|
147
|
+
type: "location";
|
|
148
|
+
payload: {
|
|
149
|
+
latitude: number;
|
|
150
|
+
longitude: number;
|
|
151
|
+
title?: string | undefined;
|
|
152
|
+
address?: string | undefined;
|
|
153
|
+
};
|
|
154
|
+
}>, import("@bpinternal/zui").ZodObject<{
|
|
155
|
+
type: import("@bpinternal/zui").ZodLiteral<"markdown">;
|
|
156
|
+
payload: import("@bpinternal/zui").ZodObject<{
|
|
157
|
+
markdown: import("@bpinternal/zui").ZodString;
|
|
158
|
+
}, "strip", {
|
|
159
|
+
markdown: string;
|
|
160
|
+
}, {
|
|
161
|
+
markdown: string;
|
|
162
|
+
}>;
|
|
163
|
+
}, "strip", {
|
|
164
|
+
type: "markdown";
|
|
165
|
+
payload: {
|
|
166
|
+
markdown: string;
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
type: "markdown";
|
|
170
|
+
payload: {
|
|
171
|
+
markdown: string;
|
|
172
|
+
};
|
|
173
|
+
}>]>, "many">;
|
|
174
|
+
}, "strip", {
|
|
175
|
+
items: ({
|
|
176
|
+
type: "text";
|
|
177
|
+
payload: {
|
|
178
|
+
text: string;
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
type: "image";
|
|
182
|
+
payload: {
|
|
183
|
+
imageUrl: string;
|
|
184
|
+
};
|
|
185
|
+
} | {
|
|
186
|
+
type: "audio";
|
|
187
|
+
payload: {
|
|
188
|
+
audioUrl: string;
|
|
189
|
+
};
|
|
190
|
+
} | {
|
|
191
|
+
type: "video";
|
|
192
|
+
payload: {
|
|
193
|
+
videoUrl: string;
|
|
194
|
+
};
|
|
195
|
+
} | {
|
|
196
|
+
type: "file";
|
|
197
|
+
payload: {
|
|
198
|
+
fileUrl: string;
|
|
199
|
+
title?: string | undefined;
|
|
200
|
+
};
|
|
201
|
+
} | {
|
|
202
|
+
type: "location";
|
|
203
|
+
payload: {
|
|
204
|
+
latitude: number;
|
|
205
|
+
longitude: number;
|
|
206
|
+
title?: string | undefined;
|
|
207
|
+
address?: string | undefined;
|
|
208
|
+
};
|
|
209
|
+
} | {
|
|
210
|
+
type: "markdown";
|
|
211
|
+
payload: {
|
|
212
|
+
markdown: string;
|
|
213
|
+
};
|
|
214
|
+
})[];
|
|
215
|
+
}, {
|
|
216
|
+
items: ({
|
|
217
|
+
type: "text";
|
|
218
|
+
payload: {
|
|
219
|
+
text: string;
|
|
220
|
+
};
|
|
221
|
+
} | {
|
|
222
|
+
type: "image";
|
|
223
|
+
payload: {
|
|
224
|
+
imageUrl: string;
|
|
225
|
+
};
|
|
226
|
+
} | {
|
|
227
|
+
type: "audio";
|
|
228
|
+
payload: {
|
|
229
|
+
audioUrl: string;
|
|
230
|
+
};
|
|
231
|
+
} | {
|
|
232
|
+
type: "video";
|
|
233
|
+
payload: {
|
|
234
|
+
videoUrl: string;
|
|
235
|
+
};
|
|
236
|
+
} | {
|
|
237
|
+
type: "file";
|
|
238
|
+
payload: {
|
|
239
|
+
fileUrl: string;
|
|
240
|
+
title?: string | undefined;
|
|
241
|
+
};
|
|
242
|
+
} | {
|
|
243
|
+
type: "location";
|
|
244
|
+
payload: {
|
|
245
|
+
latitude: number;
|
|
246
|
+
longitude: number;
|
|
247
|
+
title?: string | undefined;
|
|
248
|
+
address?: string | undefined;
|
|
249
|
+
};
|
|
250
|
+
} | {
|
|
251
|
+
type: "markdown";
|
|
252
|
+
payload: {
|
|
253
|
+
markdown: string;
|
|
254
|
+
};
|
|
255
|
+
})[];
|
|
256
|
+
}>;
|
|
257
|
+
};
|
|
13
258
|
export declare const defaults: {
|
|
14
259
|
readonly text: {
|
|
15
260
|
readonly schema: import("@bpinternal/zui").ZodObject<{
|
|
@@ -252,25 +497,6 @@ export declare const defaults: {
|
|
|
252
497
|
payload: {
|
|
253
498
|
text: string;
|
|
254
499
|
};
|
|
255
|
-
}>, import("@bpinternal/zui").ZodObject<{
|
|
256
|
-
type: import("@bpinternal/zui").ZodLiteral<"markdown">;
|
|
257
|
-
payload: import("@bpinternal/zui").ZodObject<{
|
|
258
|
-
markdown: import("@bpinternal/zui").ZodString;
|
|
259
|
-
}, "strip", {
|
|
260
|
-
markdown: string;
|
|
261
|
-
}, {
|
|
262
|
-
markdown: string;
|
|
263
|
-
}>;
|
|
264
|
-
}, "strip", {
|
|
265
|
-
type: "markdown";
|
|
266
|
-
payload: {
|
|
267
|
-
markdown: string;
|
|
268
|
-
};
|
|
269
|
-
}, {
|
|
270
|
-
type: "markdown";
|
|
271
|
-
payload: {
|
|
272
|
-
markdown: string;
|
|
273
|
-
};
|
|
274
500
|
}>, import("@bpinternal/zui").ZodObject<{
|
|
275
501
|
type: import("@bpinternal/zui").ZodLiteral<"image">;
|
|
276
502
|
payload: import("@bpinternal/zui").ZodObject<{
|
|
@@ -393,11 +619,6 @@ export declare const defaults: {
|
|
|
393
619
|
payload: {
|
|
394
620
|
text: string;
|
|
395
621
|
};
|
|
396
|
-
} | {
|
|
397
|
-
type: "markdown";
|
|
398
|
-
payload: {
|
|
399
|
-
markdown: string;
|
|
400
|
-
};
|
|
401
622
|
} | {
|
|
402
623
|
type: "image";
|
|
403
624
|
payload: {
|
|
@@ -434,11 +655,6 @@ export declare const defaults: {
|
|
|
434
655
|
payload: {
|
|
435
656
|
text: string;
|
|
436
657
|
};
|
|
437
|
-
} | {
|
|
438
|
-
type: "markdown";
|
|
439
|
-
payload: {
|
|
440
|
-
markdown: string;
|
|
441
|
-
};
|
|
442
658
|
} | {
|
|
443
659
|
type: "image";
|
|
444
660
|
payload: {
|