@botpress/runtime 1.8.3 → 1.9.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/dist/define-config.d.ts +19 -19
- package/dist/definition.js +259 -99
- package/dist/definition.js.map +3 -3
- package/dist/internal.js +247 -87
- package/dist/internal.js.map +3 -3
- package/dist/library.js +247 -87
- package/dist/library.js.map +3 -3
- package/dist/primitives/data-sources/source-base.d.ts +49 -49
- package/dist/primitives/data-sources/source-directory.d.ts +23 -23
- package/dist/primitives/data-sources/source-directory.d.ts.map +1 -1
- package/dist/primitives/data-sources/source-table.d.ts +24 -24
- package/dist/primitives/data-sources/source-website.d.ts +31 -31
- package/dist/primitives/index.d.ts +23 -23
- package/dist/primitives/workflow-instance.d.ts +4 -4
- package/dist/primitives/workflow-instance.d.ts.map +1 -1
- package/dist/runtime/actions/computed-columns.d.ts +10 -10
- package/dist/runtime/actions/index.d.ts +10 -10
- package/dist/runtime/chat/components.d.ts +76 -76
- package/dist/runtime/chat/transcript.d.ts +10 -10
- package/dist/runtime/events.d.ts +21 -21
- package/dist/runtime/tracked-state-schema.d.ts +7 -7
- package/dist/runtime/workflows/knowledge-indexing.d.ts +21 -21
- package/dist/runtime.js +247 -87
- package/dist/runtime.js.map +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseAction } from '../../primitives/action';
|
|
2
|
-
export declare const tablesRecomputeRows: BaseAction<import("@
|
|
3
|
-
tableId: import("@
|
|
4
|
-
botId: import("@
|
|
5
|
-
schema: import("@
|
|
6
|
-
requests: import("@
|
|
7
|
-
row: import("@
|
|
8
|
-
columnsToRecompute: import("@
|
|
2
|
+
export declare const tablesRecomputeRows: BaseAction<import("@botpress/sdk").ZodObject<{
|
|
3
|
+
tableId: import("@botpress/sdk").ZodString;
|
|
4
|
+
botId: import("@botpress/sdk").ZodString;
|
|
5
|
+
schema: import("@botpress/sdk").ZodAny;
|
|
6
|
+
requests: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
7
|
+
row: import("@botpress/sdk").ZodRecord<import("@botpress/sdk").ZodString, import("@botpress/sdk").ZodAny>;
|
|
8
|
+
columnsToRecompute: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodString, "many">;
|
|
9
9
|
}, "strip", {
|
|
10
10
|
row: Record<string, any>;
|
|
11
11
|
columnsToRecompute: string[];
|
|
@@ -29,9 +29,9 @@ export declare const tablesRecomputeRows: BaseAction<import("@bpinternal/zui").Z
|
|
|
29
29
|
}[];
|
|
30
30
|
tableId: string;
|
|
31
31
|
schema?: any;
|
|
32
|
-
}>, import("@
|
|
33
|
-
isFinished: import("@
|
|
34
|
-
rows: import("@
|
|
32
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
33
|
+
isFinished: import("@botpress/sdk").ZodBoolean;
|
|
34
|
+
rows: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodAny, "many">;
|
|
35
35
|
}, "strip", {
|
|
36
36
|
rows: any[];
|
|
37
37
|
isFinished: boolean;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* These actions are defined in the runtime and don't need to be created by users
|
|
4
4
|
*/
|
|
5
5
|
export declare const BuiltInActions: {
|
|
6
|
-
tablesRecomputeRows: import("../../primitives/action").BaseAction<import("@
|
|
7
|
-
tableId: import("@
|
|
8
|
-
botId: import("@
|
|
9
|
-
schema: import("@
|
|
10
|
-
requests: import("@
|
|
11
|
-
row: import("@
|
|
12
|
-
columnsToRecompute: import("@
|
|
6
|
+
tablesRecomputeRows: import("../../primitives/action").BaseAction<import("@botpress/sdk").ZodObject<{
|
|
7
|
+
tableId: import("@botpress/sdk").ZodString;
|
|
8
|
+
botId: import("@botpress/sdk").ZodString;
|
|
9
|
+
schema: import("@botpress/sdk").ZodAny;
|
|
10
|
+
requests: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
11
|
+
row: import("@botpress/sdk").ZodRecord<import("@botpress/sdk").ZodString, import("@botpress/sdk").ZodAny>;
|
|
12
|
+
columnsToRecompute: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodString, "many">;
|
|
13
13
|
}, "strip", {
|
|
14
14
|
row: Record<string, any>;
|
|
15
15
|
columnsToRecompute: string[];
|
|
@@ -33,9 +33,9 @@ export declare const BuiltInActions: {
|
|
|
33
33
|
}[];
|
|
34
34
|
tableId: string;
|
|
35
35
|
schema?: any;
|
|
36
|
-
}>, import("@
|
|
37
|
-
isFinished: import("@
|
|
38
|
-
rows: import("@
|
|
36
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
37
|
+
isFinished: import("@botpress/sdk").ZodBoolean;
|
|
38
|
+
rows: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodAny, "many">;
|
|
39
39
|
}, "strip", {
|
|
40
40
|
rows: any[];
|
|
41
41
|
isFinished: boolean;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { Message } from '@botpress/client';
|
|
2
2
|
import { z } from '@botpress/sdk';
|
|
3
3
|
export declare const DefaultMessageTypes: {
|
|
4
|
-
text: import("@
|
|
5
|
-
text: import("@
|
|
4
|
+
text: import("@botpress/sdk").ZodObject<{
|
|
5
|
+
text: import("@botpress/sdk").ZodString;
|
|
6
6
|
}, "strip", {
|
|
7
7
|
text: string;
|
|
8
8
|
}, {
|
|
9
9
|
text: string;
|
|
10
10
|
}>;
|
|
11
|
-
audio: import("@
|
|
12
|
-
audioUrl: import("@
|
|
11
|
+
audio: import("@botpress/sdk").ZodObject<{
|
|
12
|
+
audioUrl: import("@botpress/sdk").ZodString;
|
|
13
13
|
}, "strip", {
|
|
14
14
|
audioUrl: string;
|
|
15
15
|
}, {
|
|
16
16
|
audioUrl: string;
|
|
17
17
|
}>;
|
|
18
|
-
card: import("@
|
|
19
|
-
title: import("@
|
|
20
|
-
subtitle: import("@
|
|
21
|
-
imageUrl: import("@
|
|
22
|
-
actions: import("@
|
|
23
|
-
action: import("@
|
|
24
|
-
label: import("@
|
|
25
|
-
value: import("@
|
|
18
|
+
card: import("@botpress/sdk").ZodObject<{
|
|
19
|
+
title: import("@botpress/sdk").ZodString;
|
|
20
|
+
subtitle: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
21
|
+
imageUrl: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
22
|
+
actions: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
23
|
+
action: import("@botpress/sdk").ZodEnum<["postback", "url", "say"]>;
|
|
24
|
+
label: import("@botpress/sdk").ZodString;
|
|
25
|
+
value: import("@botpress/sdk").ZodString;
|
|
26
26
|
}, "strip", {
|
|
27
27
|
value: string;
|
|
28
28
|
action: "url" | "postback" | "say";
|
|
@@ -51,22 +51,22 @@ export declare const DefaultMessageTypes: {
|
|
|
51
51
|
subtitle?: string | undefined;
|
|
52
52
|
imageUrl?: string | undefined;
|
|
53
53
|
}>;
|
|
54
|
-
image: import("@
|
|
55
|
-
imageUrl: import("@
|
|
54
|
+
image: import("@botpress/sdk").ZodObject<{
|
|
55
|
+
imageUrl: import("@botpress/sdk").ZodString;
|
|
56
56
|
}, "strip", {
|
|
57
57
|
imageUrl: string;
|
|
58
58
|
}, {
|
|
59
59
|
imageUrl: string;
|
|
60
60
|
}>;
|
|
61
|
-
carousel: import("@
|
|
62
|
-
items: import("@
|
|
63
|
-
title: import("@
|
|
64
|
-
subtitle: import("@
|
|
65
|
-
imageUrl: import("@
|
|
66
|
-
actions: import("@
|
|
67
|
-
action: import("@
|
|
68
|
-
label: import("@
|
|
69
|
-
value: import("@
|
|
61
|
+
carousel: import("@botpress/sdk").ZodObject<{
|
|
62
|
+
items: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
63
|
+
title: import("@botpress/sdk").ZodString;
|
|
64
|
+
subtitle: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
65
|
+
imageUrl: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
66
|
+
actions: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
67
|
+
action: import("@botpress/sdk").ZodEnum<["postback", "url", "say"]>;
|
|
68
|
+
label: import("@botpress/sdk").ZodString;
|
|
69
|
+
value: import("@botpress/sdk").ZodString;
|
|
70
70
|
}, "strip", {
|
|
71
71
|
value: string;
|
|
72
72
|
action: "url" | "postback" | "say";
|
|
@@ -118,11 +118,11 @@ export declare const DefaultMessageTypes: {
|
|
|
118
118
|
imageUrl?: string | undefined;
|
|
119
119
|
}[];
|
|
120
120
|
}>;
|
|
121
|
-
choice: import("@
|
|
122
|
-
text: import("@
|
|
123
|
-
options: import("@
|
|
124
|
-
label: import("@
|
|
125
|
-
value: import("@
|
|
121
|
+
choice: import("@botpress/sdk").ZodObject<{
|
|
122
|
+
text: import("@botpress/sdk").ZodString;
|
|
123
|
+
options: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
124
|
+
label: import("@botpress/sdk").ZodString;
|
|
125
|
+
value: import("@botpress/sdk").ZodString;
|
|
126
126
|
}, "strip", {
|
|
127
127
|
value: string;
|
|
128
128
|
label: string;
|
|
@@ -143,11 +143,11 @@ export declare const DefaultMessageTypes: {
|
|
|
143
143
|
}[];
|
|
144
144
|
text: string;
|
|
145
145
|
}>;
|
|
146
|
-
dropdown: import("@
|
|
147
|
-
text: import("@
|
|
148
|
-
options: import("@
|
|
149
|
-
label: import("@
|
|
150
|
-
value: import("@
|
|
146
|
+
dropdown: import("@botpress/sdk").ZodObject<{
|
|
147
|
+
text: import("@botpress/sdk").ZodString;
|
|
148
|
+
options: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
149
|
+
label: import("@botpress/sdk").ZodString;
|
|
150
|
+
value: import("@botpress/sdk").ZodString;
|
|
151
151
|
}, "strip", {
|
|
152
152
|
value: string;
|
|
153
153
|
label: string;
|
|
@@ -168,9 +168,9 @@ export declare const DefaultMessageTypes: {
|
|
|
168
168
|
}[];
|
|
169
169
|
text: string;
|
|
170
170
|
}>;
|
|
171
|
-
file: import("@
|
|
172
|
-
fileUrl: import("@
|
|
173
|
-
title: import("@
|
|
171
|
+
file: import("@botpress/sdk").ZodObject<{
|
|
172
|
+
fileUrl: import("@botpress/sdk").ZodString;
|
|
173
|
+
title: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
174
174
|
}, "strip", {
|
|
175
175
|
fileUrl: string;
|
|
176
176
|
title?: string | undefined;
|
|
@@ -178,11 +178,11 @@ export declare const DefaultMessageTypes: {
|
|
|
178
178
|
fileUrl: string;
|
|
179
179
|
title?: string | undefined;
|
|
180
180
|
}>;
|
|
181
|
-
location: import("@
|
|
182
|
-
latitude: import("@
|
|
183
|
-
longitude: import("@
|
|
184
|
-
address: import("@
|
|
185
|
-
title: import("@
|
|
181
|
+
location: import("@botpress/sdk").ZodObject<{
|
|
182
|
+
latitude: import("@botpress/sdk").ZodNumber;
|
|
183
|
+
longitude: import("@botpress/sdk").ZodNumber;
|
|
184
|
+
address: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
185
|
+
title: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
186
186
|
}, "strip", {
|
|
187
187
|
latitude: number;
|
|
188
188
|
longitude: number;
|
|
@@ -194,18 +194,18 @@ export declare const DefaultMessageTypes: {
|
|
|
194
194
|
title?: string | undefined;
|
|
195
195
|
address?: string | undefined;
|
|
196
196
|
}>;
|
|
197
|
-
video: import("@
|
|
198
|
-
videoUrl: import("@
|
|
197
|
+
video: import("@botpress/sdk").ZodObject<{
|
|
198
|
+
videoUrl: import("@botpress/sdk").ZodString;
|
|
199
199
|
}, "strip", {
|
|
200
200
|
videoUrl: string;
|
|
201
201
|
}, {
|
|
202
202
|
videoUrl: string;
|
|
203
203
|
}>;
|
|
204
|
-
bloc: import("@
|
|
205
|
-
items: import("@
|
|
206
|
-
type: import("@
|
|
207
|
-
payload: import("@
|
|
208
|
-
text: import("@
|
|
204
|
+
bloc: import("@botpress/sdk").ZodObject<{
|
|
205
|
+
items: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodUnion<[import("@botpress/sdk").ZodObject<{
|
|
206
|
+
type: import("@botpress/sdk").ZodLiteral<"text">;
|
|
207
|
+
payload: import("@botpress/sdk").ZodObject<{
|
|
208
|
+
text: import("@botpress/sdk").ZodString;
|
|
209
209
|
}, "strip", {
|
|
210
210
|
text: string;
|
|
211
211
|
}, {
|
|
@@ -221,10 +221,10 @@ export declare const DefaultMessageTypes: {
|
|
|
221
221
|
payload: {
|
|
222
222
|
text: string;
|
|
223
223
|
};
|
|
224
|
-
}>, import("@
|
|
225
|
-
type: import("@
|
|
226
|
-
payload: import("@
|
|
227
|
-
markdown: import("@
|
|
224
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
225
|
+
type: import("@botpress/sdk").ZodLiteral<"markdown">;
|
|
226
|
+
payload: import("@botpress/sdk").ZodObject<{
|
|
227
|
+
markdown: import("@botpress/sdk").ZodString;
|
|
228
228
|
}, "strip", {
|
|
229
229
|
markdown: string;
|
|
230
230
|
}, {
|
|
@@ -240,10 +240,10 @@ export declare const DefaultMessageTypes: {
|
|
|
240
240
|
payload: {
|
|
241
241
|
markdown: string;
|
|
242
242
|
};
|
|
243
|
-
}>, import("@
|
|
244
|
-
type: import("@
|
|
245
|
-
payload: import("@
|
|
246
|
-
imageUrl: import("@
|
|
243
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
244
|
+
type: import("@botpress/sdk").ZodLiteral<"image">;
|
|
245
|
+
payload: import("@botpress/sdk").ZodObject<{
|
|
246
|
+
imageUrl: import("@botpress/sdk").ZodString;
|
|
247
247
|
}, "strip", {
|
|
248
248
|
imageUrl: string;
|
|
249
249
|
}, {
|
|
@@ -259,10 +259,10 @@ export declare const DefaultMessageTypes: {
|
|
|
259
259
|
payload: {
|
|
260
260
|
imageUrl: string;
|
|
261
261
|
};
|
|
262
|
-
}>, import("@
|
|
263
|
-
type: import("@
|
|
264
|
-
payload: import("@
|
|
265
|
-
audioUrl: import("@
|
|
262
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
263
|
+
type: import("@botpress/sdk").ZodLiteral<"audio">;
|
|
264
|
+
payload: import("@botpress/sdk").ZodObject<{
|
|
265
|
+
audioUrl: import("@botpress/sdk").ZodString;
|
|
266
266
|
}, "strip", {
|
|
267
267
|
audioUrl: string;
|
|
268
268
|
}, {
|
|
@@ -278,10 +278,10 @@ export declare const DefaultMessageTypes: {
|
|
|
278
278
|
payload: {
|
|
279
279
|
audioUrl: string;
|
|
280
280
|
};
|
|
281
|
-
}>, import("@
|
|
282
|
-
type: import("@
|
|
283
|
-
payload: import("@
|
|
284
|
-
videoUrl: import("@
|
|
281
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
282
|
+
type: import("@botpress/sdk").ZodLiteral<"video">;
|
|
283
|
+
payload: import("@botpress/sdk").ZodObject<{
|
|
284
|
+
videoUrl: import("@botpress/sdk").ZodString;
|
|
285
285
|
}, "strip", {
|
|
286
286
|
videoUrl: string;
|
|
287
287
|
}, {
|
|
@@ -297,11 +297,11 @@ export declare const DefaultMessageTypes: {
|
|
|
297
297
|
payload: {
|
|
298
298
|
videoUrl: string;
|
|
299
299
|
};
|
|
300
|
-
}>, import("@
|
|
301
|
-
type: import("@
|
|
302
|
-
payload: import("@
|
|
303
|
-
fileUrl: import("@
|
|
304
|
-
title: import("@
|
|
300
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
301
|
+
type: import("@botpress/sdk").ZodLiteral<"file">;
|
|
302
|
+
payload: import("@botpress/sdk").ZodObject<{
|
|
303
|
+
fileUrl: import("@botpress/sdk").ZodString;
|
|
304
|
+
title: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
305
305
|
}, "strip", {
|
|
306
306
|
fileUrl: string;
|
|
307
307
|
title?: string | undefined;
|
|
@@ -321,13 +321,13 @@ export declare const DefaultMessageTypes: {
|
|
|
321
321
|
fileUrl: string;
|
|
322
322
|
title?: string | undefined;
|
|
323
323
|
};
|
|
324
|
-
}>, import("@
|
|
325
|
-
type: import("@
|
|
326
|
-
payload: import("@
|
|
327
|
-
latitude: import("@
|
|
328
|
-
longitude: import("@
|
|
329
|
-
address: import("@
|
|
330
|
-
title: import("@
|
|
324
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
325
|
+
type: import("@botpress/sdk").ZodLiteral<"location">;
|
|
326
|
+
payload: import("@botpress/sdk").ZodObject<{
|
|
327
|
+
latitude: import("@botpress/sdk").ZodNumber;
|
|
328
|
+
longitude: import("@botpress/sdk").ZodNumber;
|
|
329
|
+
address: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
330
|
+
title: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
331
331
|
}, "strip", {
|
|
332
332
|
latitude: number;
|
|
333
333
|
longitude: number;
|
|
@@ -32,15 +32,15 @@ export type TranscriptSummaryMessage = {
|
|
|
32
32
|
attachments?: Array<TranscriptAttachment>;
|
|
33
33
|
};
|
|
34
34
|
export type TranscriptItem = TranscriptAssistantMessage | TranscriptUserMessage | TranscriptEventMessage | TranscriptSummaryMessage;
|
|
35
|
-
export declare const TranscriptSchema: import("@
|
|
36
|
-
id: import("@
|
|
37
|
-
role: import("@
|
|
38
|
-
name: import("@
|
|
39
|
-
createdAt: import("@
|
|
40
|
-
content: import("@
|
|
41
|
-
attachments: import("@
|
|
42
|
-
type: import("@
|
|
43
|
-
url: import("@
|
|
35
|
+
export declare const TranscriptSchema: import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
36
|
+
id: import("@botpress/sdk").ZodString;
|
|
37
|
+
role: import("@botpress/sdk").ZodUnion<[import("@botpress/sdk").ZodLiteral<"assistant">, import("@botpress/sdk").ZodLiteral<"user">, import("@botpress/sdk").ZodLiteral<"event">, import("@botpress/sdk").ZodLiteral<"summary">]>;
|
|
38
|
+
name: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
39
|
+
createdAt: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
40
|
+
content: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
41
|
+
attachments: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
42
|
+
type: import("@botpress/sdk").ZodLiteral<"image">;
|
|
43
|
+
url: import("@botpress/sdk").ZodString;
|
|
44
44
|
}, "strip", {
|
|
45
45
|
url: string;
|
|
46
46
|
type: "image";
|
|
@@ -48,7 +48,7 @@ export declare const TranscriptSchema: import("@bpinternal/zui").ZodArray<import
|
|
|
48
48
|
url: string;
|
|
49
49
|
type: "image";
|
|
50
50
|
}>, "many">>;
|
|
51
|
-
payload: import("@
|
|
51
|
+
payload: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodUnknown>;
|
|
52
52
|
}, "strip", {
|
|
53
53
|
id: string;
|
|
54
54
|
role: "assistant" | "user" | "event" | "summary";
|
package/dist/runtime/events.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export declare const WorkflowCallbackEvent: {
|
|
2
2
|
name: "workflowCallback";
|
|
3
|
-
schema: import("@
|
|
4
|
-
workflow: import("@
|
|
5
|
-
workflowId: import("@
|
|
6
|
-
target: import("@
|
|
7
|
-
conversationId: import("@
|
|
3
|
+
schema: import("@botpress/sdk").ZodObject<{
|
|
4
|
+
workflow: import("@botpress/sdk").ZodString;
|
|
5
|
+
workflowId: import("@botpress/sdk").ZodString;
|
|
6
|
+
target: import("@botpress/sdk").ZodUnion<[import("@botpress/sdk").ZodObject<{
|
|
7
|
+
conversationId: import("@botpress/sdk").ZodString;
|
|
8
8
|
}, "strip", {
|
|
9
9
|
conversationId: string;
|
|
10
10
|
}, {
|
|
11
11
|
conversationId: string;
|
|
12
|
-
}>, import("@
|
|
13
|
-
workflowId: import("@
|
|
12
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
13
|
+
workflowId: import("@botpress/sdk").ZodString;
|
|
14
14
|
}, "strip", {
|
|
15
15
|
workflowId: string;
|
|
16
16
|
}, {
|
|
17
17
|
workflowId: string;
|
|
18
18
|
}>]>;
|
|
19
|
-
status: import("@
|
|
20
|
-
output: import("@
|
|
21
|
-
error: import("@
|
|
19
|
+
status: import("@botpress/sdk").ZodEnum<["completed", "failed", "canceled", "timed_out"]>;
|
|
20
|
+
output: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodAny>;
|
|
21
|
+
error: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
|
|
22
22
|
}, "strip", {
|
|
23
23
|
workflowId: string;
|
|
24
24
|
status: "completed" | "failed" | "canceled" | "timed_out";
|
|
@@ -45,8 +45,8 @@ export declare const WorkflowCallbackEvent: {
|
|
|
45
45
|
};
|
|
46
46
|
export declare const WorkflowScheduleEvent: {
|
|
47
47
|
name: "workflowSchedule";
|
|
48
|
-
schema: import("@
|
|
49
|
-
workflow: import("@
|
|
48
|
+
schema: import("@botpress/sdk").ZodObject<{
|
|
49
|
+
workflow: import("@botpress/sdk").ZodString;
|
|
50
50
|
}, "strip", {
|
|
51
51
|
workflow: string;
|
|
52
52
|
}, {
|
|
@@ -55,21 +55,21 @@ export declare const WorkflowScheduleEvent: {
|
|
|
55
55
|
};
|
|
56
56
|
export declare const WorkflowContinueEvent: {
|
|
57
57
|
name: "workflowContinue";
|
|
58
|
-
schema: import("@
|
|
58
|
+
schema: import("@botpress/sdk").ZodObject<{}, "strip", {}, {}>;
|
|
59
59
|
};
|
|
60
60
|
export declare const SubworkflowFinished: {
|
|
61
61
|
name: "subworkflowFinished";
|
|
62
|
-
schema: import("@
|
|
62
|
+
schema: import("@botpress/sdk").ZodObject<{}, "strip", {}, {}>;
|
|
63
63
|
};
|
|
64
64
|
export declare const WorkflowDataRequestEvent: {
|
|
65
65
|
name: "workflowDataRequest";
|
|
66
|
-
schema: import("@
|
|
67
|
-
workflowId: import("@
|
|
68
|
-
workflowName: import("@
|
|
69
|
-
stepName: import("@
|
|
70
|
-
request: import("@
|
|
71
|
-
message: import("@
|
|
72
|
-
schema: import("@
|
|
66
|
+
schema: import("@botpress/sdk").ZodObject<{
|
|
67
|
+
workflowId: import("@botpress/sdk").ZodString;
|
|
68
|
+
workflowName: import("@botpress/sdk").ZodString;
|
|
69
|
+
stepName: import("@botpress/sdk").ZodString;
|
|
70
|
+
request: import("@botpress/sdk").ZodString;
|
|
71
|
+
message: import("@botpress/sdk").ZodString;
|
|
72
|
+
schema: import("@botpress/sdk").ZodAny;
|
|
73
73
|
}, "strip", {
|
|
74
74
|
workflowId: string;
|
|
75
75
|
message: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const TrackedStateSchema: import("@
|
|
2
|
-
value: import("@
|
|
3
|
-
location: import("@
|
|
4
|
-
type: import("@
|
|
1
|
+
export declare const TrackedStateSchema: import("@botpress/sdk").ZodObject<{
|
|
2
|
+
value: import("@botpress/sdk").ZodAny;
|
|
3
|
+
location: import("@botpress/sdk").ZodDiscriminatedUnion<"type", [import("@botpress/sdk").ZodObject<{
|
|
4
|
+
type: import("@botpress/sdk").ZodLiteral<"state">;
|
|
5
5
|
}, "strip", {
|
|
6
6
|
type: "state";
|
|
7
7
|
}, {
|
|
8
8
|
type: "state";
|
|
9
|
-
}>, import("@
|
|
10
|
-
type: import("@
|
|
11
|
-
key: import("@
|
|
9
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
10
|
+
type: import("@botpress/sdk").ZodLiteral<"file">;
|
|
11
|
+
key: import("@botpress/sdk").ZodString;
|
|
12
12
|
}, "strip", {
|
|
13
13
|
type: "file";
|
|
14
14
|
key: string;
|
|
@@ -3,22 +3,22 @@ import { BaseWorkflow } from '../../primitives/workflow';
|
|
|
3
3
|
* Built-in workflow for orchestrating knowledge base data source synchronization
|
|
4
4
|
* This workflow triggers sync workflows for all data sources in a knowledge base
|
|
5
5
|
*/
|
|
6
|
-
export declare const KnowledgeIndexingWorkflow: BaseWorkflow<"builtin_knowledge_indexing", import("@
|
|
7
|
-
kbName: import("@
|
|
8
|
-
force: import("@
|
|
6
|
+
export declare const KnowledgeIndexingWorkflow: BaseWorkflow<"builtin_knowledge_indexing", import("@botpress/sdk").ZodObject<{
|
|
7
|
+
kbName: import("@botpress/sdk").ZodString;
|
|
8
|
+
force: import("@botpress/sdk").ZodDefault<import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodBoolean>>;
|
|
9
9
|
}, "strip", {
|
|
10
10
|
kbName: string;
|
|
11
11
|
force: boolean;
|
|
12
12
|
}, {
|
|
13
13
|
kbName: string;
|
|
14
14
|
force?: boolean | undefined;
|
|
15
|
-
}>, import("@
|
|
16
|
-
processed: import("@
|
|
17
|
-
added: import("@
|
|
18
|
-
file: import("@
|
|
19
|
-
name: import("@
|
|
20
|
-
hash: import("@
|
|
21
|
-
size: import("@
|
|
15
|
+
}>, import("@botpress/sdk").ZodObject<{
|
|
16
|
+
processed: import("@botpress/sdk").ZodDefault<import("@botpress/sdk").ZodNumber>;
|
|
17
|
+
added: import("@botpress/sdk").ZodDefault<import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
18
|
+
file: import("@botpress/sdk").ZodString;
|
|
19
|
+
name: import("@botpress/sdk").ZodString;
|
|
20
|
+
hash: import("@botpress/sdk").ZodString;
|
|
21
|
+
size: import("@botpress/sdk").ZodNumber;
|
|
22
22
|
}, "strip", {
|
|
23
23
|
name: string;
|
|
24
24
|
size: number;
|
|
@@ -30,11 +30,11 @@ export declare const KnowledgeIndexingWorkflow: BaseWorkflow<"builtin_knowledge_
|
|
|
30
30
|
hash: string;
|
|
31
31
|
file: string;
|
|
32
32
|
}>, "many">>;
|
|
33
|
-
updated: import("@
|
|
34
|
-
file: import("@
|
|
35
|
-
name: import("@
|
|
36
|
-
hash: import("@
|
|
37
|
-
size: import("@
|
|
33
|
+
updated: import("@botpress/sdk").ZodDefault<import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
34
|
+
file: import("@botpress/sdk").ZodString;
|
|
35
|
+
name: import("@botpress/sdk").ZodString;
|
|
36
|
+
hash: import("@botpress/sdk").ZodString;
|
|
37
|
+
size: import("@botpress/sdk").ZodNumber;
|
|
38
38
|
}, "strip", {
|
|
39
39
|
name: string;
|
|
40
40
|
size: number;
|
|
@@ -46,11 +46,11 @@ export declare const KnowledgeIndexingWorkflow: BaseWorkflow<"builtin_knowledge_
|
|
|
46
46
|
hash: string;
|
|
47
47
|
file: string;
|
|
48
48
|
}>, "many">>;
|
|
49
|
-
deleted: import("@
|
|
50
|
-
file: import("@
|
|
51
|
-
name: import("@
|
|
52
|
-
hash: import("@
|
|
53
|
-
size: import("@
|
|
49
|
+
deleted: import("@botpress/sdk").ZodDefault<import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodObject<{
|
|
50
|
+
file: import("@botpress/sdk").ZodString;
|
|
51
|
+
name: import("@botpress/sdk").ZodString;
|
|
52
|
+
hash: import("@botpress/sdk").ZodString;
|
|
53
|
+
size: import("@botpress/sdk").ZodNumber;
|
|
54
54
|
}, "strip", {
|
|
55
55
|
name: string;
|
|
56
56
|
size: number;
|
|
@@ -62,7 +62,7 @@ export declare const KnowledgeIndexingWorkflow: BaseWorkflow<"builtin_knowledge_
|
|
|
62
62
|
hash: string;
|
|
63
63
|
file: string;
|
|
64
64
|
}>, "many">>;
|
|
65
|
-
errors: import("@
|
|
65
|
+
errors: import("@botpress/sdk").ZodDefault<import("@botpress/sdk").ZodArray<import("@botpress/sdk").ZodString, "many">>;
|
|
66
66
|
}, "strip", {
|
|
67
67
|
processed: number;
|
|
68
68
|
added: {
|