@botpress/sdk 4.8.1 → 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/.turbo/turbo-build.log +4 -4
- package/dist/index.cjs +30 -74
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +48 -59
- package/dist/index.mjs.map +4 -4
- package/dist/integration/client/index.d.ts +1 -0
- package/dist/integration/client/types.d.ts +2 -0
- package/dist/message.d.ts +31 -31
- package/package.json +3 -3
|
@@ -44,4 +44,5 @@ export declare class IntegrationSpecificClient<TIntegration extends common.BaseI
|
|
|
44
44
|
listFiles: types.ListFiles<TIntegration>;
|
|
45
45
|
getFile: types.GetFile<TIntegration>;
|
|
46
46
|
updateFileMetadata: types.UpdateFileMetadata<TIntegration>;
|
|
47
|
+
trackAnalytics: types.TrackAnalytics<TIntegration>;
|
|
47
48
|
}
|
|
@@ -130,6 +130,7 @@ export type DeleteFile<_TIntegration extends common.BaseIntegration> = client.Cl
|
|
|
130
130
|
export type ListFiles<_TIntegration extends common.BaseIntegration> = client.Client['listFiles'];
|
|
131
131
|
export type GetFile<_TIntegration extends common.BaseIntegration> = client.Client['getFile'];
|
|
132
132
|
export type UpdateFileMetadata<_TIntegration extends common.BaseIntegration> = client.Client['updateFileMetadata'];
|
|
133
|
+
export type TrackAnalytics<_TIntegration extends common.BaseIntegration> = client.Client['trackAnalytics'];
|
|
133
134
|
export type ClientOperations<TIntegration extends common.BaseIntegration> = {
|
|
134
135
|
createConversation: CreateConversation<TIntegration>;
|
|
135
136
|
getConversation: GetConversation<TIntegration>;
|
|
@@ -167,6 +168,7 @@ export type ClientOperations<TIntegration extends common.BaseIntegration> = {
|
|
|
167
168
|
listFiles: ListFiles<TIntegration>;
|
|
168
169
|
getFile: GetFile<TIntegration>;
|
|
169
170
|
updateFileMetadata: UpdateFileMetadata<TIntegration>;
|
|
171
|
+
trackAnalytics: TrackAnalytics<TIntegration>;
|
|
170
172
|
};
|
|
171
173
|
export type ClientInputs<TIntegration extends common.BaseIntegration> = {
|
|
172
174
|
[K in keyof ClientOperations<TIntegration>]: Arg<ClientOperations<TIntegration>[K]>;
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
240
|
+
}, "strip", {
|
|
241
241
|
text: string;
|
|
242
242
|
}, {
|
|
243
243
|
text: string;
|
|
244
244
|
}>;
|
|
245
|
-
}, "strip",
|
|
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",
|
|
259
|
+
}, "strip", {
|
|
260
260
|
markdown: string;
|
|
261
261
|
}, {
|
|
262
262
|
markdown: string;
|
|
263
263
|
}>;
|
|
264
|
-
}, "strip",
|
|
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",
|
|
278
|
+
}, "strip", {
|
|
279
279
|
imageUrl: string;
|
|
280
280
|
}, {
|
|
281
281
|
imageUrl: string;
|
|
282
282
|
}>;
|
|
283
|
-
}, "strip",
|
|
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",
|
|
297
|
+
}, "strip", {
|
|
298
298
|
audioUrl: string;
|
|
299
299
|
}, {
|
|
300
300
|
audioUrl: string;
|
|
301
301
|
}>;
|
|
302
|
-
}, "strip",
|
|
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",
|
|
316
|
+
}, "strip", {
|
|
317
317
|
videoUrl: string;
|
|
318
318
|
}, {
|
|
319
319
|
videoUrl: string;
|
|
320
320
|
}>;
|
|
321
|
-
}, "strip",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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.
|
|
3
|
+
"version": "4.8.3",
|
|
4
4
|
"description": "Botpress SDK",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@botpress/client": "1.15.
|
|
19
|
+
"@botpress/client": "1.15.1",
|
|
20
20
|
"browser-or-node": "^2.1.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"tsup": "^8.0.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@bpinternal/zui": "^0.
|
|
28
|
+
"@bpinternal/zui": "^1.0.0",
|
|
29
29
|
"esbuild": "^0.16.12"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|