@chatbotkit/cli 1.27.3 → 1.29.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/README.md +14 -0
- package/dist/cjs/command/agent/index.cjs +1 -2
- package/dist/cjs/command/chat/index.cjs +1 -2
- package/dist/cjs/solution/index.cjs +7 -0
- package/dist/esm/command/agent/index.js +1 -2
- package/dist/esm/command/chat/index.js +1 -2
- package/dist/esm/solution/index.d.ts +48 -0
- package/dist/esm/solution/index.js +7 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,6 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
A powerful command-line interface for ChatBotKit that provides both API management commands and an autonomous AI agent mode for interactive development tasks.
|
|
11
11
|
|
|
12
|
+
## Why ChatBotKit?
|
|
13
|
+
|
|
14
|
+
**Build lighter, future-proof AI agents.** When you build with ChatBotKit, the heavy lifting happens on our servers—not in your application. This architectural advantage delivers:
|
|
15
|
+
|
|
16
|
+
- 🪶 **Lightweight Agents**: Your agents stay lean because complex AI processing, model orchestration, and tool execution happen server-side. Less code in your app means faster load times and simpler maintenance.
|
|
17
|
+
|
|
18
|
+
- 🛡️ **Robust & Streamlined**: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.
|
|
19
|
+
|
|
20
|
+
- 🔄 **Backward & Forward Compatible**: As AI technology evolves—new models, new capabilities, new paradigms—your agents automatically benefit. No code changes required on your end.
|
|
21
|
+
|
|
22
|
+
- 🔮 **Future-Proof**: Agents you build today will remain capable tomorrow. When we add support for new AI models or capabilities, your existing agents gain those powers without any updates to your codebase.
|
|
23
|
+
|
|
24
|
+
This means you can focus on building great user experiences while ChatBotKit handles the complexity of the ever-changing AI landscape.
|
|
25
|
+
|
|
12
26
|
## Installation
|
|
13
27
|
|
|
14
28
|
Install globally via npm:
|
|
@@ -109,8 +109,7 @@ exports.command = new commander_1.Command()
|
|
|
109
109
|
let hasOutput = false;
|
|
110
110
|
for await (const { type, data } of (0, agent_1.execute)({
|
|
111
111
|
client,
|
|
112
|
-
botId: options.bot,
|
|
113
|
-
model: options.model,
|
|
112
|
+
...(options.bot ? { botId: options.bot } : { model: options.model }),
|
|
114
113
|
messages: [{ type: 'user', text: prompt }],
|
|
115
114
|
tools,
|
|
116
115
|
maxIterations: options.maxIterations,
|
|
@@ -45,8 +45,7 @@ exports.command = new commander_1.Command()
|
|
|
45
45
|
let firstToken = true;
|
|
46
46
|
for await (const { type, data } of (0, agent_1.complete)({
|
|
47
47
|
client,
|
|
48
|
-
botId: options.bot,
|
|
49
|
-
model: options.model,
|
|
48
|
+
...(options.bot ? { botId: options.bot } : { model: options.model }),
|
|
50
49
|
messages,
|
|
51
50
|
tools,
|
|
52
51
|
})) {
|
|
@@ -215,6 +215,7 @@ exports.SlackIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema
|
|
|
215
215
|
ratings: zod_1.z.boolean().optional(),
|
|
216
216
|
visibleMessages: zod_1.z.number().optional(),
|
|
217
217
|
autoRespond: zod_1.z.string().optional(),
|
|
218
|
+
allowFrom: zod_1.z.string().optional(),
|
|
218
219
|
}),
|
|
219
220
|
});
|
|
220
221
|
exports.DiscordIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema.extend({
|
|
@@ -234,6 +235,7 @@ exports.DiscordIntegrationResourceConfigSchema = exports.BasicResourceConfigSche
|
|
|
234
235
|
sessionDuration: zod_1.z.number().optional(),
|
|
235
236
|
attachments: zod_1.z.boolean().optional(),
|
|
236
237
|
stream: zod_1.z.boolean().optional(),
|
|
238
|
+
allowFrom: zod_1.z.string().optional(),
|
|
237
239
|
}),
|
|
238
240
|
});
|
|
239
241
|
exports.TelegramIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema.extend({
|
|
@@ -248,6 +250,7 @@ exports.TelegramIntegrationResourceConfigSchema = exports.BasicResourceConfigSch
|
|
|
248
250
|
contactCollection: zod_1.z.boolean().optional(),
|
|
249
251
|
sessionDuration: zod_1.z.number().optional(),
|
|
250
252
|
attachments: zod_1.z.boolean().optional(),
|
|
253
|
+
allowFrom: zod_1.z.string().optional(),
|
|
251
254
|
}),
|
|
252
255
|
});
|
|
253
256
|
exports.WhatsAppIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema.extend({
|
|
@@ -263,6 +266,7 @@ exports.WhatsAppIntegrationResourceConfigSchema = exports.BasicResourceConfigSch
|
|
|
263
266
|
contactCollection: zod_1.z.boolean().optional(),
|
|
264
267
|
sessionDuration: zod_1.z.number().optional(),
|
|
265
268
|
attachments: zod_1.z.boolean().optional(),
|
|
269
|
+
allowFrom: zod_1.z.string().optional(),
|
|
266
270
|
}),
|
|
267
271
|
});
|
|
268
272
|
exports.MessengerIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema.extend({
|
|
@@ -303,6 +307,7 @@ exports.EmailIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema
|
|
|
303
307
|
contactCollection: zod_1.z.boolean().optional(),
|
|
304
308
|
sessionDuration: zod_1.z.number().optional(),
|
|
305
309
|
attachments: zod_1.z.boolean().optional(),
|
|
310
|
+
allowFrom: zod_1.z.string().optional(),
|
|
306
311
|
}),
|
|
307
312
|
});
|
|
308
313
|
exports.TriggerIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema.extend({
|
|
@@ -326,6 +331,8 @@ exports.TriggerIntegrationResourceConfigSchema = exports.BasicResourceConfigSche
|
|
|
326
331
|
])
|
|
327
332
|
.optional(),
|
|
328
333
|
sessionDuration: zod_1.z.number().optional(),
|
|
334
|
+
maxIterations: zod_1.z.number().optional(),
|
|
335
|
+
maxTime: zod_1.z.number().optional(),
|
|
329
336
|
}),
|
|
330
337
|
});
|
|
331
338
|
exports.SupportIntegrationResourceConfigSchema = exports.BasicResourceConfigSchema.extend({
|
|
@@ -106,8 +106,7 @@ export const command = new Command()
|
|
|
106
106
|
let hasOutput = false;
|
|
107
107
|
for await (const { type, data } of execute({
|
|
108
108
|
client,
|
|
109
|
-
botId: options.bot,
|
|
110
|
-
model: options.model,
|
|
109
|
+
...(options.bot ? { botId: options.bot } : { model: options.model }),
|
|
111
110
|
messages: [{ type: 'user', text: prompt }],
|
|
112
111
|
tools,
|
|
113
112
|
maxIterations: options.maxIterations,
|
|
@@ -41,8 +41,7 @@ export const command = new Command()
|
|
|
41
41
|
let firstToken = true;
|
|
42
42
|
for await (const { type, data } of complete({
|
|
43
43
|
client,
|
|
44
|
-
botId: options.bot,
|
|
45
|
-
model: options.model,
|
|
44
|
+
...(options.bot ? { botId: options.bot } : { model: options.model }),
|
|
46
45
|
messages,
|
|
47
46
|
tools,
|
|
48
47
|
})) {
|
|
@@ -165,6 +165,7 @@ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprin
|
|
|
165
165
|
ratings?: boolean;
|
|
166
166
|
visibleMessages?: number;
|
|
167
167
|
autoRespond?: string;
|
|
168
|
+
allowFrom?: string;
|
|
168
169
|
}>, ResourceConfigSchemaFor<"discordIntegration", {
|
|
169
170
|
name?: string;
|
|
170
171
|
description?: string;
|
|
@@ -179,6 +180,7 @@ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprin
|
|
|
179
180
|
handle?: string;
|
|
180
181
|
contactCollection?: boolean;
|
|
181
182
|
sessionDuration?: number;
|
|
183
|
+
allowFrom?: string;
|
|
182
184
|
}>, ResourceConfigSchemaFor<"telegramIntegration", {
|
|
183
185
|
name?: string;
|
|
184
186
|
description?: string;
|
|
@@ -191,6 +193,7 @@ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprin
|
|
|
191
193
|
contactCollection?: boolean;
|
|
192
194
|
sessionDuration?: number;
|
|
193
195
|
attachments?: boolean;
|
|
196
|
+
allowFrom?: string;
|
|
194
197
|
}>, ResourceConfigSchemaFor<"whatsappIntegration", {
|
|
195
198
|
name?: string;
|
|
196
199
|
description?: string;
|
|
@@ -204,6 +207,7 @@ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprin
|
|
|
204
207
|
contactCollection?: boolean;
|
|
205
208
|
sessionDuration?: number;
|
|
206
209
|
attachments?: boolean;
|
|
210
|
+
allowFrom?: string;
|
|
207
211
|
}>, ResourceConfigSchemaFor<"messengerIntegration", {
|
|
208
212
|
name?: string;
|
|
209
213
|
description?: string;
|
|
@@ -213,6 +217,7 @@ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprin
|
|
|
213
217
|
blueprintId?: string;
|
|
214
218
|
botId?: string;
|
|
215
219
|
accessToken?: string;
|
|
220
|
+
contactCollection?: boolean;
|
|
216
221
|
sessionDuration?: number;
|
|
217
222
|
attachments?: boolean;
|
|
218
223
|
}>, ResourceConfigSchemaFor<"notionIntegration", {
|
|
@@ -237,6 +242,7 @@ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprin
|
|
|
237
242
|
contactCollection?: boolean;
|
|
238
243
|
sessionDuration?: number;
|
|
239
244
|
attachments?: boolean;
|
|
245
|
+
allowFrom?: string;
|
|
240
246
|
}>, ResourceConfigSchemaFor<"triggerIntegration", {
|
|
241
247
|
name?: string;
|
|
242
248
|
description?: string;
|
|
@@ -248,6 +254,8 @@ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprin
|
|
|
248
254
|
authenticate?: boolean;
|
|
249
255
|
triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
|
|
250
256
|
sessionDuration?: number;
|
|
257
|
+
maxIterations?: number;
|
|
258
|
+
maxTime?: number;
|
|
251
259
|
}>, ResourceConfigSchemaFor<"supportIntegration", {
|
|
252
260
|
name?: string;
|
|
253
261
|
description?: string;
|
|
@@ -417,6 +425,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
417
425
|
ratings?: boolean;
|
|
418
426
|
visibleMessages?: number;
|
|
419
427
|
autoRespond?: string;
|
|
428
|
+
allowFrom?: string;
|
|
420
429
|
}>, ResourceConfigSchemaFor<"discordIntegration", {
|
|
421
430
|
name?: string;
|
|
422
431
|
description?: string;
|
|
@@ -431,6 +440,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
431
440
|
handle?: string;
|
|
432
441
|
contactCollection?: boolean;
|
|
433
442
|
sessionDuration?: number;
|
|
443
|
+
allowFrom?: string;
|
|
434
444
|
}>, ResourceConfigSchemaFor<"telegramIntegration", {
|
|
435
445
|
name?: string;
|
|
436
446
|
description?: string;
|
|
@@ -443,6 +453,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
443
453
|
contactCollection?: boolean;
|
|
444
454
|
sessionDuration?: number;
|
|
445
455
|
attachments?: boolean;
|
|
456
|
+
allowFrom?: string;
|
|
446
457
|
}>, ResourceConfigSchemaFor<"whatsappIntegration", {
|
|
447
458
|
name?: string;
|
|
448
459
|
description?: string;
|
|
@@ -456,6 +467,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
456
467
|
contactCollection?: boolean;
|
|
457
468
|
sessionDuration?: number;
|
|
458
469
|
attachments?: boolean;
|
|
470
|
+
allowFrom?: string;
|
|
459
471
|
}>, ResourceConfigSchemaFor<"messengerIntegration", {
|
|
460
472
|
name?: string;
|
|
461
473
|
description?: string;
|
|
@@ -465,6 +477,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
465
477
|
blueprintId?: string;
|
|
466
478
|
botId?: string;
|
|
467
479
|
accessToken?: string;
|
|
480
|
+
contactCollection?: boolean;
|
|
468
481
|
sessionDuration?: number;
|
|
469
482
|
attachments?: boolean;
|
|
470
483
|
}>, ResourceConfigSchemaFor<"notionIntegration", {
|
|
@@ -489,6 +502,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
489
502
|
contactCollection?: boolean;
|
|
490
503
|
sessionDuration?: number;
|
|
491
504
|
attachments?: boolean;
|
|
505
|
+
allowFrom?: string;
|
|
492
506
|
}>, ResourceConfigSchemaFor<"triggerIntegration", {
|
|
493
507
|
name?: string;
|
|
494
508
|
description?: string;
|
|
@@ -500,6 +514,8 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
500
514
|
authenticate?: boolean;
|
|
501
515
|
triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
|
|
502
516
|
sessionDuration?: number;
|
|
517
|
+
maxIterations?: number;
|
|
518
|
+
maxTime?: number;
|
|
503
519
|
}>, ResourceConfigSchemaFor<"supportIntegration", {
|
|
504
520
|
name?: string;
|
|
505
521
|
description?: string;
|
|
@@ -726,6 +742,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
726
742
|
ratings?: boolean | undefined;
|
|
727
743
|
visibleMessages?: number | undefined;
|
|
728
744
|
autoRespond?: string | undefined;
|
|
745
|
+
allowFrom?: string | undefined;
|
|
729
746
|
};
|
|
730
747
|
slug?: string | undefined;
|
|
731
748
|
id?: string | undefined;
|
|
@@ -742,6 +759,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
742
759
|
sessionDuration?: number | undefined;
|
|
743
760
|
contactCollection?: boolean | undefined;
|
|
744
761
|
botToken?: string | undefined;
|
|
762
|
+
allowFrom?: string | undefined;
|
|
745
763
|
appId?: string | undefined;
|
|
746
764
|
publicKey?: string | undefined;
|
|
747
765
|
handle?: string | undefined;
|
|
@@ -762,6 +780,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
762
780
|
sessionDuration?: number | undefined;
|
|
763
781
|
contactCollection?: boolean | undefined;
|
|
764
782
|
botToken?: string | undefined;
|
|
783
|
+
allowFrom?: string | undefined;
|
|
765
784
|
};
|
|
766
785
|
slug?: string | undefined;
|
|
767
786
|
id?: string | undefined;
|
|
@@ -778,6 +797,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
778
797
|
blueprintId?: string | undefined;
|
|
779
798
|
sessionDuration?: number | undefined;
|
|
780
799
|
contactCollection?: boolean | undefined;
|
|
800
|
+
allowFrom?: string | undefined;
|
|
781
801
|
phoneNumberId?: string | undefined;
|
|
782
802
|
accessToken?: string | undefined;
|
|
783
803
|
};
|
|
@@ -795,6 +815,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
795
815
|
} | undefined;
|
|
796
816
|
blueprintId?: string | undefined;
|
|
797
817
|
sessionDuration?: number | undefined;
|
|
818
|
+
contactCollection?: boolean | undefined;
|
|
798
819
|
accessToken?: string | undefined;
|
|
799
820
|
};
|
|
800
821
|
slug?: string | undefined;
|
|
@@ -828,6 +849,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
828
849
|
blueprintId?: string | undefined;
|
|
829
850
|
sessionDuration?: number | undefined;
|
|
830
851
|
contactCollection?: boolean | undefined;
|
|
852
|
+
allowFrom?: string | undefined;
|
|
831
853
|
};
|
|
832
854
|
slug?: string | undefined;
|
|
833
855
|
id?: string | undefined;
|
|
@@ -836,6 +858,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
836
858
|
properties: {
|
|
837
859
|
name?: string | undefined;
|
|
838
860
|
botId?: string | undefined;
|
|
861
|
+
maxIterations?: number | undefined;
|
|
839
862
|
description?: string | undefined;
|
|
840
863
|
meta?: {
|
|
841
864
|
[key: string]: unknown;
|
|
@@ -844,6 +867,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
844
867
|
sessionDuration?: number | undefined;
|
|
845
868
|
authenticate?: boolean | undefined;
|
|
846
869
|
triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly" | undefined;
|
|
870
|
+
maxTime?: number | undefined;
|
|
847
871
|
};
|
|
848
872
|
slug?: string | undefined;
|
|
849
873
|
id?: string | undefined;
|
|
@@ -1093,6 +1117,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1093
1117
|
ratings?: boolean | undefined;
|
|
1094
1118
|
visibleMessages?: number | undefined;
|
|
1095
1119
|
autoRespond?: string | undefined;
|
|
1120
|
+
allowFrom?: string | undefined;
|
|
1096
1121
|
};
|
|
1097
1122
|
slug?: string | undefined;
|
|
1098
1123
|
id?: string | undefined;
|
|
@@ -1109,6 +1134,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1109
1134
|
sessionDuration?: number | undefined;
|
|
1110
1135
|
contactCollection?: boolean | undefined;
|
|
1111
1136
|
botToken?: string | undefined;
|
|
1137
|
+
allowFrom?: string | undefined;
|
|
1112
1138
|
appId?: string | undefined;
|
|
1113
1139
|
publicKey?: string | undefined;
|
|
1114
1140
|
handle?: string | undefined;
|
|
@@ -1129,6 +1155,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1129
1155
|
sessionDuration?: number | undefined;
|
|
1130
1156
|
contactCollection?: boolean | undefined;
|
|
1131
1157
|
botToken?: string | undefined;
|
|
1158
|
+
allowFrom?: string | undefined;
|
|
1132
1159
|
};
|
|
1133
1160
|
slug?: string | undefined;
|
|
1134
1161
|
id?: string | undefined;
|
|
@@ -1145,6 +1172,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1145
1172
|
blueprintId?: string | undefined;
|
|
1146
1173
|
sessionDuration?: number | undefined;
|
|
1147
1174
|
contactCollection?: boolean | undefined;
|
|
1175
|
+
allowFrom?: string | undefined;
|
|
1148
1176
|
phoneNumberId?: string | undefined;
|
|
1149
1177
|
accessToken?: string | undefined;
|
|
1150
1178
|
};
|
|
@@ -1162,6 +1190,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1162
1190
|
} | undefined;
|
|
1163
1191
|
blueprintId?: string | undefined;
|
|
1164
1192
|
sessionDuration?: number | undefined;
|
|
1193
|
+
contactCollection?: boolean | undefined;
|
|
1165
1194
|
accessToken?: string | undefined;
|
|
1166
1195
|
};
|
|
1167
1196
|
slug?: string | undefined;
|
|
@@ -1195,6 +1224,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1195
1224
|
blueprintId?: string | undefined;
|
|
1196
1225
|
sessionDuration?: number | undefined;
|
|
1197
1226
|
contactCollection?: boolean | undefined;
|
|
1227
|
+
allowFrom?: string | undefined;
|
|
1198
1228
|
};
|
|
1199
1229
|
slug?: string | undefined;
|
|
1200
1230
|
id?: string | undefined;
|
|
@@ -1203,6 +1233,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1203
1233
|
properties: {
|
|
1204
1234
|
name?: string | undefined;
|
|
1205
1235
|
botId?: string | undefined;
|
|
1236
|
+
maxIterations?: number | undefined;
|
|
1206
1237
|
description?: string | undefined;
|
|
1207
1238
|
meta?: {
|
|
1208
1239
|
[key: string]: unknown;
|
|
@@ -1211,6 +1242,7 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
1211
1242
|
sessionDuration?: number | undefined;
|
|
1212
1243
|
authenticate?: boolean | undefined;
|
|
1213
1244
|
triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly" | undefined;
|
|
1245
|
+
maxTime?: number | undefined;
|
|
1214
1246
|
};
|
|
1215
1247
|
slug?: string | undefined;
|
|
1216
1248
|
id?: string | undefined;
|
|
@@ -1461,6 +1493,7 @@ export class Resource {
|
|
|
1461
1493
|
ratings?: boolean | undefined;
|
|
1462
1494
|
visibleMessages?: number | undefined;
|
|
1463
1495
|
autoRespond?: string | undefined;
|
|
1496
|
+
allowFrom?: string | undefined;
|
|
1464
1497
|
};
|
|
1465
1498
|
slug?: string | undefined;
|
|
1466
1499
|
id?: string | undefined;
|
|
@@ -1477,6 +1510,7 @@ export class Resource {
|
|
|
1477
1510
|
sessionDuration?: number | undefined;
|
|
1478
1511
|
contactCollection?: boolean | undefined;
|
|
1479
1512
|
botToken?: string | undefined;
|
|
1513
|
+
allowFrom?: string | undefined;
|
|
1480
1514
|
appId?: string | undefined;
|
|
1481
1515
|
publicKey?: string | undefined;
|
|
1482
1516
|
handle?: string | undefined;
|
|
@@ -1497,6 +1531,7 @@ export class Resource {
|
|
|
1497
1531
|
sessionDuration?: number | undefined;
|
|
1498
1532
|
contactCollection?: boolean | undefined;
|
|
1499
1533
|
botToken?: string | undefined;
|
|
1534
|
+
allowFrom?: string | undefined;
|
|
1500
1535
|
};
|
|
1501
1536
|
slug?: string | undefined;
|
|
1502
1537
|
id?: string | undefined;
|
|
@@ -1513,6 +1548,7 @@ export class Resource {
|
|
|
1513
1548
|
blueprintId?: string | undefined;
|
|
1514
1549
|
sessionDuration?: number | undefined;
|
|
1515
1550
|
contactCollection?: boolean | undefined;
|
|
1551
|
+
allowFrom?: string | undefined;
|
|
1516
1552
|
phoneNumberId?: string | undefined;
|
|
1517
1553
|
accessToken?: string | undefined;
|
|
1518
1554
|
};
|
|
@@ -1530,6 +1566,7 @@ export class Resource {
|
|
|
1530
1566
|
} | undefined;
|
|
1531
1567
|
blueprintId?: string | undefined;
|
|
1532
1568
|
sessionDuration?: number | undefined;
|
|
1569
|
+
contactCollection?: boolean | undefined;
|
|
1533
1570
|
accessToken?: string | undefined;
|
|
1534
1571
|
};
|
|
1535
1572
|
slug?: string | undefined;
|
|
@@ -1563,6 +1600,7 @@ export class Resource {
|
|
|
1563
1600
|
blueprintId?: string | undefined;
|
|
1564
1601
|
sessionDuration?: number | undefined;
|
|
1565
1602
|
contactCollection?: boolean | undefined;
|
|
1603
|
+
allowFrom?: string | undefined;
|
|
1566
1604
|
};
|
|
1567
1605
|
slug?: string | undefined;
|
|
1568
1606
|
id?: string | undefined;
|
|
@@ -1571,6 +1609,7 @@ export class Resource {
|
|
|
1571
1609
|
properties: {
|
|
1572
1610
|
name?: string | undefined;
|
|
1573
1611
|
botId?: string | undefined;
|
|
1612
|
+
maxIterations?: number | undefined;
|
|
1574
1613
|
description?: string | undefined;
|
|
1575
1614
|
meta?: {
|
|
1576
1615
|
[key: string]: unknown;
|
|
@@ -1579,6 +1618,7 @@ export class Resource {
|
|
|
1579
1618
|
sessionDuration?: number | undefined;
|
|
1580
1619
|
authenticate?: boolean | undefined;
|
|
1581
1620
|
triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly" | undefined;
|
|
1621
|
+
maxTime?: number | undefined;
|
|
1582
1622
|
};
|
|
1583
1623
|
slug?: string | undefined;
|
|
1584
1624
|
id?: string | undefined;
|
|
@@ -1909,6 +1949,7 @@ export class Solution {
|
|
|
1909
1949
|
ratings?: boolean | undefined;
|
|
1910
1950
|
visibleMessages?: number | undefined;
|
|
1911
1951
|
autoRespond?: string | undefined;
|
|
1952
|
+
allowFrom?: string | undefined;
|
|
1912
1953
|
};
|
|
1913
1954
|
slug?: string | undefined;
|
|
1914
1955
|
id?: string | undefined;
|
|
@@ -1925,6 +1966,7 @@ export class Solution {
|
|
|
1925
1966
|
sessionDuration?: number | undefined;
|
|
1926
1967
|
contactCollection?: boolean | undefined;
|
|
1927
1968
|
botToken?: string | undefined;
|
|
1969
|
+
allowFrom?: string | undefined;
|
|
1928
1970
|
appId?: string | undefined;
|
|
1929
1971
|
publicKey?: string | undefined;
|
|
1930
1972
|
handle?: string | undefined;
|
|
@@ -1945,6 +1987,7 @@ export class Solution {
|
|
|
1945
1987
|
sessionDuration?: number | undefined;
|
|
1946
1988
|
contactCollection?: boolean | undefined;
|
|
1947
1989
|
botToken?: string | undefined;
|
|
1990
|
+
allowFrom?: string | undefined;
|
|
1948
1991
|
};
|
|
1949
1992
|
slug?: string | undefined;
|
|
1950
1993
|
id?: string | undefined;
|
|
@@ -1961,6 +2004,7 @@ export class Solution {
|
|
|
1961
2004
|
blueprintId?: string | undefined;
|
|
1962
2005
|
sessionDuration?: number | undefined;
|
|
1963
2006
|
contactCollection?: boolean | undefined;
|
|
2007
|
+
allowFrom?: string | undefined;
|
|
1964
2008
|
phoneNumberId?: string | undefined;
|
|
1965
2009
|
accessToken?: string | undefined;
|
|
1966
2010
|
};
|
|
@@ -1978,6 +2022,7 @@ export class Solution {
|
|
|
1978
2022
|
} | undefined;
|
|
1979
2023
|
blueprintId?: string | undefined;
|
|
1980
2024
|
sessionDuration?: number | undefined;
|
|
2025
|
+
contactCollection?: boolean | undefined;
|
|
1981
2026
|
accessToken?: string | undefined;
|
|
1982
2027
|
};
|
|
1983
2028
|
slug?: string | undefined;
|
|
@@ -2011,6 +2056,7 @@ export class Solution {
|
|
|
2011
2056
|
blueprintId?: string | undefined;
|
|
2012
2057
|
sessionDuration?: number | undefined;
|
|
2013
2058
|
contactCollection?: boolean | undefined;
|
|
2059
|
+
allowFrom?: string | undefined;
|
|
2014
2060
|
};
|
|
2015
2061
|
slug?: string | undefined;
|
|
2016
2062
|
id?: string | undefined;
|
|
@@ -2019,6 +2065,7 @@ export class Solution {
|
|
|
2019
2065
|
properties: {
|
|
2020
2066
|
name?: string | undefined;
|
|
2021
2067
|
botId?: string | undefined;
|
|
2068
|
+
maxIterations?: number | undefined;
|
|
2022
2069
|
description?: string | undefined;
|
|
2023
2070
|
meta?: {
|
|
2024
2071
|
[key: string]: unknown;
|
|
@@ -2027,6 +2074,7 @@ export class Solution {
|
|
|
2027
2074
|
sessionDuration?: number | undefined;
|
|
2028
2075
|
authenticate?: boolean | undefined;
|
|
2029
2076
|
triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly" | undefined;
|
|
2077
|
+
maxTime?: number | undefined;
|
|
2030
2078
|
};
|
|
2031
2079
|
slug?: string | undefined;
|
|
2032
2080
|
id?: string | undefined;
|
|
@@ -205,6 +205,7 @@ export const SlackIntegrationResourceConfigSchema = BasicResourceConfigSchema.ex
|
|
|
205
205
|
ratings: z.boolean().optional(),
|
|
206
206
|
visibleMessages: z.number().optional(),
|
|
207
207
|
autoRespond: z.string().optional(),
|
|
208
|
+
allowFrom: z.string().optional(),
|
|
208
209
|
}),
|
|
209
210
|
});
|
|
210
211
|
export const DiscordIntegrationResourceConfigSchema = BasicResourceConfigSchema.extend({
|
|
@@ -224,6 +225,7 @@ export const DiscordIntegrationResourceConfigSchema = BasicResourceConfigSchema.
|
|
|
224
225
|
sessionDuration: z.number().optional(),
|
|
225
226
|
attachments: z.boolean().optional(),
|
|
226
227
|
stream: z.boolean().optional(),
|
|
228
|
+
allowFrom: z.string().optional(),
|
|
227
229
|
}),
|
|
228
230
|
});
|
|
229
231
|
export const TelegramIntegrationResourceConfigSchema = BasicResourceConfigSchema.extend({
|
|
@@ -238,6 +240,7 @@ export const TelegramIntegrationResourceConfigSchema = BasicResourceConfigSchema
|
|
|
238
240
|
contactCollection: z.boolean().optional(),
|
|
239
241
|
sessionDuration: z.number().optional(),
|
|
240
242
|
attachments: z.boolean().optional(),
|
|
243
|
+
allowFrom: z.string().optional(),
|
|
241
244
|
}),
|
|
242
245
|
});
|
|
243
246
|
export const WhatsAppIntegrationResourceConfigSchema = BasicResourceConfigSchema.extend({
|
|
@@ -253,6 +256,7 @@ export const WhatsAppIntegrationResourceConfigSchema = BasicResourceConfigSchema
|
|
|
253
256
|
contactCollection: z.boolean().optional(),
|
|
254
257
|
sessionDuration: z.number().optional(),
|
|
255
258
|
attachments: z.boolean().optional(),
|
|
259
|
+
allowFrom: z.string().optional(),
|
|
256
260
|
}),
|
|
257
261
|
});
|
|
258
262
|
export const MessengerIntegrationResourceConfigSchema = BasicResourceConfigSchema.extend({
|
|
@@ -293,6 +297,7 @@ export const EmailIntegrationResourceConfigSchema = BasicResourceConfigSchema.ex
|
|
|
293
297
|
contactCollection: z.boolean().optional(),
|
|
294
298
|
sessionDuration: z.number().optional(),
|
|
295
299
|
attachments: z.boolean().optional(),
|
|
300
|
+
allowFrom: z.string().optional(),
|
|
296
301
|
}),
|
|
297
302
|
});
|
|
298
303
|
export const TriggerIntegrationResourceConfigSchema = BasicResourceConfigSchema.extend({
|
|
@@ -316,6 +321,8 @@ export const TriggerIntegrationResourceConfigSchema = BasicResourceConfigSchema.
|
|
|
316
321
|
])
|
|
317
322
|
.optional(),
|
|
318
323
|
sessionDuration: z.number().optional(),
|
|
324
|
+
maxIterations: z.number().optional(),
|
|
325
|
+
maxTime: z.number().optional(),
|
|
319
326
|
}),
|
|
320
327
|
});
|
|
321
328
|
export const SupportIntegrationResourceConfigSchema = BasicResourceConfigSchema.extend({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbotkit/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "ChatBotKit command line tools",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"engines": {
|
|
@@ -1404,8 +1404,8 @@
|
|
|
1404
1404
|
"js-yaml": "^4.1.0",
|
|
1405
1405
|
"tslib": "^2.6.2",
|
|
1406
1406
|
"zod": "^3.25.76",
|
|
1407
|
-
"@chatbotkit/agent": "1.
|
|
1408
|
-
"@chatbotkit/sdk": "1.
|
|
1407
|
+
"@chatbotkit/agent": "1.29.0",
|
|
1408
|
+
"@chatbotkit/sdk": "1.29.0"
|
|
1409
1409
|
},
|
|
1410
1410
|
"devDependencies": {
|
|
1411
1411
|
"@types/js-yaml": "^4.0.9",
|