@chatbotkit/cli 1.23.0 → 1.25.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.
@@ -10,665 +10,413 @@ export function getArrayBackedObject<T>(array: T[]): {
10
10
  [key: string]: T | undefined;
11
11
  };
12
12
  export const BasicResourceConfigSchema: z.ZodObject<{
13
- type: z.ZodString;
14
13
  slug: z.ZodOptional<z.ZodString>;
15
14
  id: z.ZodOptional<z.ZodString>;
16
- name: z.ZodString;
17
- description: z.ZodOptional<z.ZodString>;
18
- properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19
15
  }, "strip", z.ZodTypeAny, {
20
- type?: string;
21
16
  slug?: string;
22
17
  id?: string;
23
- name?: string;
24
- description?: string;
25
- properties?: Record<string, unknown>;
26
18
  }, {
27
- type?: string;
28
19
  slug?: string;
29
20
  id?: string;
30
- name?: string;
31
- description?: string;
32
- properties?: Record<string, unknown>;
33
21
  }>;
34
- export const BotResourceConfigSchema: z.ZodObject<{
35
- slug: z.ZodOptional<z.ZodString>;
36
- id: z.ZodOptional<z.ZodString>;
37
- name: z.ZodString;
38
- description: z.ZodOptional<z.ZodString>;
39
- } & {
40
- type: z.ZodLiteral<"bot">;
41
- properties: z.ZodObject<{
42
- model: z.ZodOptional<z.ZodString>;
43
- backstory: z.ZodOptional<z.ZodString>;
44
- datasetId: z.ZodOptional<z.ZodString>;
45
- skillsetId: z.ZodOptional<z.ZodString>;
46
- moderation: z.ZodOptional<z.ZodBoolean>;
47
- privacy: z.ZodOptional<z.ZodBoolean>;
48
- }, "strip", z.ZodTypeAny, {
49
- model?: string;
50
- backstory?: string;
51
- datasetId?: string;
52
- skillsetId?: string;
53
- moderation?: boolean;
54
- privacy?: boolean;
55
- }, {
56
- model?: string;
57
- backstory?: string;
58
- datasetId?: string;
59
- skillsetId?: string;
60
- moderation?: boolean;
61
- privacy?: boolean;
62
- }>;
63
- }, "strip", z.ZodTypeAny, {
64
- type?: "bot";
65
- slug?: string;
66
- id?: string;
67
- name?: string;
68
- description?: string;
69
- properties?: {
70
- model?: string;
71
- backstory?: string;
72
- datasetId?: string;
73
- skillsetId?: string;
74
- moderation?: boolean;
75
- privacy?: boolean;
76
- };
77
- }, {
78
- type?: "bot";
79
- slug?: string;
80
- id?: string;
81
- name?: string;
82
- description?: string;
83
- properties?: {
84
- model?: string;
85
- backstory?: string;
86
- datasetId?: string;
87
- skillsetId?: string;
88
- moderation?: boolean;
89
- privacy?: boolean;
90
- };
91
- }>;
92
- export const DatasetResourceConfigSchema: z.ZodObject<{
93
- slug: z.ZodOptional<z.ZodString>;
94
- id: z.ZodOptional<z.ZodString>;
95
- name: z.ZodString;
96
- description: z.ZodOptional<z.ZodString>;
97
- } & {
98
- type: z.ZodLiteral<"dataset">;
99
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
100
- }, "strip", z.ZodTypeAny, {
101
- type?: "dataset";
102
- slug?: string;
103
- id?: string;
104
- name?: string;
105
- description?: string;
106
- properties?: {};
107
- }, {
108
- type?: "dataset";
109
- slug?: string;
110
- id?: string;
111
- name?: string;
112
- description?: string;
113
- properties?: {};
114
- }>;
115
- export const SkillsetResourceConfigSchema: z.ZodObject<{
116
- slug: z.ZodOptional<z.ZodString>;
117
- id: z.ZodOptional<z.ZodString>;
118
- name: z.ZodString;
119
- description: z.ZodOptional<z.ZodString>;
120
- } & {
121
- type: z.ZodLiteral<"skillset">;
122
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
123
- }, "strip", z.ZodTypeAny, {
124
- type?: "skillset";
125
- slug?: string;
126
- id?: string;
127
- name?: string;
128
- description?: string;
129
- properties?: {};
130
- }, {
131
- type?: "skillset";
132
- slug?: string;
133
- id?: string;
134
- name?: string;
135
- description?: string;
136
- properties?: {};
137
- }>;
138
- export const WidgetIntegrationResourceConfigSchema: z.ZodObject<{
139
- slug: z.ZodOptional<z.ZodString>;
140
- id: z.ZodOptional<z.ZodString>;
141
- name: z.ZodString;
142
- description: z.ZodOptional<z.ZodString>;
143
- } & {
144
- type: z.ZodLiteral<"widgetIntegration">;
145
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
146
- }, "strip", z.ZodTypeAny, {
147
- type?: "widgetIntegration";
148
- slug?: string;
149
- id?: string;
150
- name?: string;
151
- description?: string;
152
- properties?: {};
153
- }, {
154
- type?: "widgetIntegration";
155
- slug?: string;
156
- id?: string;
157
- name?: string;
158
- description?: string;
159
- properties?: {};
160
- }>;
161
- export const SitemapIntegrationResourceConfigSchema: z.ZodObject<{
162
- slug: z.ZodOptional<z.ZodString>;
163
- id: z.ZodOptional<z.ZodString>;
164
- name: z.ZodString;
165
- description: z.ZodOptional<z.ZodString>;
166
- } & {
167
- type: z.ZodLiteral<"sitemapIntegration">;
168
- properties: z.ZodObject<{
169
- url: z.ZodString;
170
- datasetId: z.ZodString;
171
- }, "strip", z.ZodTypeAny, {
172
- datasetId?: string;
173
- url?: string;
174
- }, {
175
- datasetId?: string;
176
- url?: string;
177
- }>;
178
- }, "strip", z.ZodTypeAny, {
179
- type?: "sitemapIntegration";
180
- slug?: string;
181
- id?: string;
182
- name?: string;
183
- description?: string;
184
- properties?: {
185
- datasetId?: string;
186
- url?: string;
187
- };
188
- }, {
189
- type?: "sitemapIntegration";
190
- slug?: string;
191
- id?: string;
192
- name?: string;
193
- description?: string;
194
- properties?: {
195
- datasetId?: string;
196
- url?: string;
197
- };
198
- }>;
199
- export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
200
- slug: z.ZodOptional<z.ZodString>;
201
- id: z.ZodOptional<z.ZodString>;
202
- name: z.ZodString;
203
- description: z.ZodOptional<z.ZodString>;
204
- } & {
205
- type: z.ZodLiteral<"bot">;
206
- properties: z.ZodObject<{
207
- model: z.ZodOptional<z.ZodString>;
208
- backstory: z.ZodOptional<z.ZodString>;
209
- datasetId: z.ZodOptional<z.ZodString>;
210
- skillsetId: z.ZodOptional<z.ZodString>;
211
- moderation: z.ZodOptional<z.ZodBoolean>;
212
- privacy: z.ZodOptional<z.ZodBoolean>;
213
- }, "strip", z.ZodTypeAny, {
214
- model?: string;
215
- backstory?: string;
216
- datasetId?: string;
217
- skillsetId?: string;
218
- moderation?: boolean;
219
- privacy?: boolean;
220
- }, {
221
- model?: string;
222
- backstory?: string;
223
- datasetId?: string;
224
- skillsetId?: string;
225
- moderation?: boolean;
226
- privacy?: boolean;
227
- }>;
228
- }, "strip", z.ZodTypeAny, {
229
- type?: "bot";
230
- slug?: string;
231
- id?: string;
232
- name?: string;
233
- description?: string;
234
- properties?: {
235
- model?: string;
236
- backstory?: string;
237
- datasetId?: string;
238
- skillsetId?: string;
239
- moderation?: boolean;
240
- privacy?: boolean;
241
- };
242
- }, {
243
- type?: "bot";
244
- slug?: string;
245
- id?: string;
246
- name?: string;
247
- description?: string;
248
- properties?: {
249
- model?: string;
250
- backstory?: string;
251
- datasetId?: string;
252
- skillsetId?: string;
253
- moderation?: boolean;
254
- privacy?: boolean;
255
- };
256
- }>, z.ZodObject<{
257
- slug: z.ZodOptional<z.ZodString>;
258
- id: z.ZodOptional<z.ZodString>;
259
- name: z.ZodString;
260
- description: z.ZodOptional<z.ZodString>;
261
- } & {
262
- type: z.ZodLiteral<"dataset">;
263
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
264
- }, "strip", z.ZodTypeAny, {
265
- type?: "dataset";
266
- slug?: string;
267
- id?: string;
268
- name?: string;
269
- description?: string;
270
- properties?: {};
271
- }, {
272
- type?: "dataset";
273
- slug?: string;
274
- id?: string;
275
- name?: string;
276
- description?: string;
277
- properties?: {};
278
- }>, z.ZodObject<{
279
- slug: z.ZodOptional<z.ZodString>;
280
- id: z.ZodOptional<z.ZodString>;
281
- name: z.ZodString;
282
- description: z.ZodOptional<z.ZodString>;
283
- } & {
284
- type: z.ZodLiteral<"skillset">;
285
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
286
- }, "strip", z.ZodTypeAny, {
287
- type?: "skillset";
288
- slug?: string;
289
- id?: string;
290
- name?: string;
291
- description?: string;
292
- properties?: {};
293
- }, {
294
- type?: "skillset";
295
- slug?: string;
296
- id?: string;
297
- name?: string;
298
- description?: string;
299
- properties?: {};
300
- }>, z.ZodObject<{
301
- slug: z.ZodOptional<z.ZodString>;
302
- id: z.ZodOptional<z.ZodString>;
303
- name: z.ZodString;
304
- description: z.ZodOptional<z.ZodString>;
305
- } & {
306
- type: z.ZodLiteral<"widgetIntegration">;
307
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
308
- }, "strip", z.ZodTypeAny, {
309
- type?: "widgetIntegration";
310
- slug?: string;
311
- id?: string;
312
- name?: string;
313
- description?: string;
314
- properties?: {};
315
- }, {
316
- type?: "widgetIntegration";
317
- slug?: string;
318
- id?: string;
319
- name?: string;
320
- description?: string;
321
- properties?: {};
322
- }>, z.ZodObject<{
323
- slug: z.ZodOptional<z.ZodString>;
324
- id: z.ZodOptional<z.ZodString>;
325
- name: z.ZodString;
326
- description: z.ZodOptional<z.ZodString>;
327
- } & {
328
- type: z.ZodLiteral<"sitemapIntegration">;
329
- properties: z.ZodObject<{
330
- url: z.ZodString;
331
- datasetId: z.ZodString;
332
- }, "strip", z.ZodTypeAny, {
333
- datasetId?: string;
334
- url?: string;
335
- }, {
336
- datasetId?: string;
337
- url?: string;
338
- }>;
339
- }, "strip", z.ZodTypeAny, {
340
- type?: "sitemapIntegration";
341
- slug?: string;
342
- id?: string;
343
- name?: string;
344
- description?: string;
345
- properties?: {
346
- datasetId?: string;
347
- url?: string;
348
- };
349
- }, {
350
- type?: "sitemapIntegration";
351
- slug?: string;
352
- id?: string;
353
- name?: string;
354
- description?: string;
355
- properties?: {
356
- datasetId?: string;
357
- url?: string;
358
- };
359
- }>]>;
22
+ export const BlueprintResourceConfigSchema: ResourceConfigSchemaFor<"blueprint", any>;
23
+ export const BotResourceConfigSchema: ResourceConfigSchemaFor<"bot", any>;
24
+ export const DatasetResourceConfigSchema: ResourceConfigSchemaFor<"dataset", any>;
25
+ export const FileResourceConfigSchema: ResourceConfigSchemaFor<"file", any>;
26
+ export const SecretResourceConfigSchema: ResourceConfigSchemaFor<"secret", any>;
27
+ export const SkillsetResourceConfigSchema: ResourceConfigSchemaFor<"skillset", any>;
28
+ export const WidgetIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"widgetIntegration", any>;
29
+ export const SitemapIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"sitemapIntegration", any>;
30
+ export const SlackIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"slackIntegration", any>;
31
+ export const DiscordIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"discordIntegration", any>;
32
+ export const TelegramIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"telegramIntegration", any>;
33
+ export const WhatsAppIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"whatsappIntegration", any>;
34
+ export const MessengerIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"messengerIntegration", any>;
35
+ export const NotionIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"notionIntegration", any>;
36
+ export const EmailIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"emailIntegration", any>;
37
+ export const TriggerIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"triggerIntegration", any>;
38
+ export const SupportIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"supportIntegration", any>;
39
+ export const ExtractIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"extractIntegration", any>;
40
+ export const McpServerIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"mcpserverIntegration", any>;
41
+ export const TwilioIntegrationResourceConfigSchema: ResourceConfigSchemaFor<"twilioIntegration", any>;
42
+ export const ResourceConfigSchema: z.ZodUnion<[ResourceConfigSchemaFor<"blueprint", any>, ResourceConfigSchemaFor<"bot", any>, ResourceConfigSchemaFor<"dataset", any>, ResourceConfigSchemaFor<"file", any>, ResourceConfigSchemaFor<"secret", any>, ResourceConfigSchemaFor<"skillset", any>, ResourceConfigSchemaFor<"widgetIntegration", any>, ResourceConfigSchemaFor<"sitemapIntegration", any>, ResourceConfigSchemaFor<"slackIntegration", any>, ResourceConfigSchemaFor<"discordIntegration", any>, ResourceConfigSchemaFor<"telegramIntegration", any>, ResourceConfigSchemaFor<"whatsappIntegration", any>, ResourceConfigSchemaFor<"messengerIntegration", any>, ResourceConfigSchemaFor<"notionIntegration", any>, ResourceConfigSchemaFor<"emailIntegration", any>, ResourceConfigSchemaFor<"triggerIntegration", any>, ResourceConfigSchemaFor<"supportIntegration", any>, ResourceConfigSchemaFor<"extractIntegration", any>, ResourceConfigSchemaFor<"mcpserverIntegration", any>, ResourceConfigSchemaFor<"twilioIntegration", any>]>;
360
43
  export const SolutionConfigSchema: z.ZodObject<{
361
44
  version: z.ZodLiteral<1>;
362
- resources: z.ZodArray<z.ZodUnion<[z.ZodObject<{
363
- slug: z.ZodOptional<z.ZodString>;
364
- id: z.ZodOptional<z.ZodString>;
365
- name: z.ZodString;
366
- description: z.ZodOptional<z.ZodString>;
367
- } & {
368
- type: z.ZodLiteral<"bot">;
369
- properties: z.ZodObject<{
370
- model: z.ZodOptional<z.ZodString>;
371
- backstory: z.ZodOptional<z.ZodString>;
372
- datasetId: z.ZodOptional<z.ZodString>;
373
- skillsetId: z.ZodOptional<z.ZodString>;
374
- moderation: z.ZodOptional<z.ZodBoolean>;
375
- privacy: z.ZodOptional<z.ZodBoolean>;
376
- }, "strip", z.ZodTypeAny, {
377
- model?: string;
378
- backstory?: string;
379
- datasetId?: string;
380
- skillsetId?: string;
381
- moderation?: boolean;
382
- privacy?: boolean;
383
- }, {
384
- model?: string;
385
- backstory?: string;
386
- datasetId?: string;
387
- skillsetId?: string;
388
- moderation?: boolean;
389
- privacy?: boolean;
390
- }>;
391
- }, "strip", z.ZodTypeAny, {
392
- type?: "bot";
393
- slug?: string;
394
- id?: string;
395
- name?: string;
396
- description?: string;
397
- properties?: {
398
- model?: string;
399
- backstory?: string;
400
- datasetId?: string;
401
- skillsetId?: string;
402
- moderation?: boolean;
403
- privacy?: boolean;
404
- };
405
- }, {
406
- type?: "bot";
407
- slug?: string;
408
- id?: string;
409
- name?: string;
410
- description?: string;
411
- properties?: {
412
- model?: string;
413
- backstory?: string;
414
- datasetId?: string;
415
- skillsetId?: string;
416
- moderation?: boolean;
417
- privacy?: boolean;
418
- };
419
- }>, z.ZodObject<{
420
- slug: z.ZodOptional<z.ZodString>;
421
- id: z.ZodOptional<z.ZodString>;
422
- name: z.ZodString;
423
- description: z.ZodOptional<z.ZodString>;
424
- } & {
425
- type: z.ZodLiteral<"dataset">;
426
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
427
- }, "strip", z.ZodTypeAny, {
428
- type?: "dataset";
429
- slug?: string;
430
- id?: string;
431
- name?: string;
432
- description?: string;
433
- properties?: {};
434
- }, {
435
- type?: "dataset";
436
- slug?: string;
437
- id?: string;
438
- name?: string;
439
- description?: string;
440
- properties?: {};
441
- }>, z.ZodObject<{
442
- slug: z.ZodOptional<z.ZodString>;
443
- id: z.ZodOptional<z.ZodString>;
444
- name: z.ZodString;
445
- description: z.ZodOptional<z.ZodString>;
446
- } & {
447
- type: z.ZodLiteral<"skillset">;
448
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
449
- }, "strip", z.ZodTypeAny, {
450
- type?: "skillset";
451
- slug?: string;
452
- id?: string;
453
- name?: string;
454
- description?: string;
455
- properties?: {};
456
- }, {
457
- type?: "skillset";
458
- slug?: string;
459
- id?: string;
460
- name?: string;
461
- description?: string;
462
- properties?: {};
463
- }>, z.ZodObject<{
464
- slug: z.ZodOptional<z.ZodString>;
465
- id: z.ZodOptional<z.ZodString>;
466
- name: z.ZodString;
467
- description: z.ZodOptional<z.ZodString>;
468
- } & {
469
- type: z.ZodLiteral<"widgetIntegration">;
470
- properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
471
- }, "strip", z.ZodTypeAny, {
472
- type?: "widgetIntegration";
473
- slug?: string;
474
- id?: string;
475
- name?: string;
476
- description?: string;
477
- properties?: {};
478
- }, {
479
- type?: "widgetIntegration";
480
- slug?: string;
481
- id?: string;
482
- name?: string;
483
- description?: string;
484
- properties?: {};
485
- }>, z.ZodObject<{
486
- slug: z.ZodOptional<z.ZodString>;
487
- id: z.ZodOptional<z.ZodString>;
488
- name: z.ZodString;
489
- description: z.ZodOptional<z.ZodString>;
490
- } & {
491
- type: z.ZodLiteral<"sitemapIntegration">;
492
- properties: z.ZodObject<{
493
- url: z.ZodString;
494
- datasetId: z.ZodString;
495
- }, "strip", z.ZodTypeAny, {
496
- datasetId?: string;
497
- url?: string;
498
- }, {
499
- datasetId?: string;
500
- url?: string;
501
- }>;
502
- }, "strip", z.ZodTypeAny, {
503
- type?: "sitemapIntegration";
504
- slug?: string;
505
- id?: string;
506
- name?: string;
507
- description?: string;
508
- properties?: {
509
- datasetId?: string;
510
- url?: string;
511
- };
512
- }, {
513
- type?: "sitemapIntegration";
514
- slug?: string;
515
- id?: string;
516
- name?: string;
517
- description?: string;
518
- properties?: {
519
- datasetId?: string;
520
- url?: string;
521
- };
522
- }>]>, "many">;
45
+ resources: z.ZodArray<z.ZodUnion<[ResourceConfigSchemaFor<"blueprint", any>, ResourceConfigSchemaFor<"bot", any>, ResourceConfigSchemaFor<"dataset", any>, ResourceConfigSchemaFor<"file", any>, ResourceConfigSchemaFor<"secret", any>, ResourceConfigSchemaFor<"skillset", any>, ResourceConfigSchemaFor<"widgetIntegration", any>, ResourceConfigSchemaFor<"sitemapIntegration", any>, ResourceConfigSchemaFor<"slackIntegration", any>, ResourceConfigSchemaFor<"discordIntegration", any>, ResourceConfigSchemaFor<"telegramIntegration", any>, ResourceConfigSchemaFor<"whatsappIntegration", any>, ResourceConfigSchemaFor<"messengerIntegration", any>, ResourceConfigSchemaFor<"notionIntegration", any>, ResourceConfigSchemaFor<"emailIntegration", any>, ResourceConfigSchemaFor<"triggerIntegration", any>, ResourceConfigSchemaFor<"supportIntegration", any>, ResourceConfigSchemaFor<"extractIntegration", any>, ResourceConfigSchemaFor<"mcpserverIntegration", any>, ResourceConfigSchemaFor<"twilioIntegration", any>]>, "many">;
523
46
  }, "strip", z.ZodTypeAny, {
524
47
  version?: 1;
525
48
  resources?: ({
526
- type?: "bot";
527
- slug?: string;
528
- id?: string;
529
- name?: string;
530
- description?: string;
531
- properties?: {
532
- model?: string;
533
- backstory?: string;
534
- datasetId?: string;
535
- skillsetId?: string;
536
- moderation?: boolean;
537
- privacy?: boolean;
538
- };
539
- } | {
540
- type?: "dataset";
541
- slug?: string;
542
- id?: string;
543
- name?: string;
544
- description?: string;
545
- properties?: {};
546
- } | {
547
- type?: "skillset";
548
- slug?: string;
549
- id?: string;
550
- name?: string;
551
- description?: string;
552
- properties?: {};
553
- } | {
554
- type?: "widgetIntegration";
555
- slug?: string;
556
- id?: string;
557
- name?: string;
558
- description?: string;
559
- properties?: {};
560
- } | {
561
- type?: "sitemapIntegration";
562
- slug?: string;
563
- id?: string;
564
- name?: string;
565
- description?: string;
566
- properties?: {
567
- datasetId?: string;
568
- url?: string;
569
- };
49
+ [x: string]: any;
50
+ slug?: unknown;
51
+ id?: unknown;
52
+ type?: unknown;
53
+ properties?: unknown;
54
+ } | {
55
+ [x: string]: any;
56
+ slug?: unknown;
57
+ id?: unknown;
58
+ type?: unknown;
59
+ properties?: unknown;
60
+ } | {
61
+ [x: string]: any;
62
+ slug?: unknown;
63
+ id?: unknown;
64
+ type?: unknown;
65
+ properties?: unknown;
66
+ } | {
67
+ [x: string]: any;
68
+ slug?: unknown;
69
+ id?: unknown;
70
+ type?: unknown;
71
+ properties?: unknown;
72
+ } | {
73
+ [x: string]: any;
74
+ slug?: unknown;
75
+ id?: unknown;
76
+ type?: unknown;
77
+ properties?: unknown;
78
+ } | {
79
+ [x: string]: any;
80
+ slug?: unknown;
81
+ id?: unknown;
82
+ type?: unknown;
83
+ properties?: unknown;
84
+ } | {
85
+ [x: string]: any;
86
+ slug?: unknown;
87
+ id?: unknown;
88
+ type?: unknown;
89
+ properties?: unknown;
90
+ } | {
91
+ [x: string]: any;
92
+ slug?: unknown;
93
+ id?: unknown;
94
+ type?: unknown;
95
+ properties?: unknown;
96
+ } | {
97
+ [x: string]: any;
98
+ slug?: unknown;
99
+ id?: unknown;
100
+ type?: unknown;
101
+ properties?: unknown;
102
+ } | {
103
+ [x: string]: any;
104
+ slug?: unknown;
105
+ id?: unknown;
106
+ type?: unknown;
107
+ properties?: unknown;
108
+ } | {
109
+ [x: string]: any;
110
+ slug?: unknown;
111
+ id?: unknown;
112
+ type?: unknown;
113
+ properties?: unknown;
114
+ } | {
115
+ [x: string]: any;
116
+ slug?: unknown;
117
+ id?: unknown;
118
+ type?: unknown;
119
+ properties?: unknown;
120
+ } | {
121
+ [x: string]: any;
122
+ slug?: unknown;
123
+ id?: unknown;
124
+ type?: unknown;
125
+ properties?: unknown;
126
+ } | {
127
+ [x: string]: any;
128
+ slug?: unknown;
129
+ id?: unknown;
130
+ type?: unknown;
131
+ properties?: unknown;
132
+ } | {
133
+ [x: string]: any;
134
+ slug?: unknown;
135
+ id?: unknown;
136
+ type?: unknown;
137
+ properties?: unknown;
138
+ } | {
139
+ [x: string]: any;
140
+ slug?: unknown;
141
+ id?: unknown;
142
+ type?: unknown;
143
+ properties?: unknown;
144
+ } | {
145
+ [x: string]: any;
146
+ slug?: unknown;
147
+ id?: unknown;
148
+ type?: unknown;
149
+ properties?: unknown;
150
+ } | {
151
+ [x: string]: any;
152
+ slug?: unknown;
153
+ id?: unknown;
154
+ type?: unknown;
155
+ properties?: unknown;
156
+ } | {
157
+ [x: string]: any;
158
+ slug?: unknown;
159
+ id?: unknown;
160
+ type?: unknown;
161
+ properties?: unknown;
162
+ } | {
163
+ [x: string]: any;
164
+ slug?: unknown;
165
+ id?: unknown;
166
+ type?: unknown;
167
+ properties?: unknown;
570
168
  })[];
571
169
  }, {
572
170
  version?: 1;
573
171
  resources?: ({
574
- type?: "bot";
575
- slug?: string;
576
- id?: string;
577
- name?: string;
578
- description?: string;
579
- properties?: {
580
- model?: string;
581
- backstory?: string;
582
- datasetId?: string;
583
- skillsetId?: string;
584
- moderation?: boolean;
585
- privacy?: boolean;
586
- };
587
- } | {
588
- type?: "dataset";
589
- slug?: string;
590
- id?: string;
591
- name?: string;
592
- description?: string;
593
- properties?: {};
594
- } | {
595
- type?: "skillset";
596
- slug?: string;
597
- id?: string;
598
- name?: string;
599
- description?: string;
600
- properties?: {};
601
- } | {
602
- type?: "widgetIntegration";
603
- slug?: string;
604
- id?: string;
605
- name?: string;
606
- description?: string;
607
- properties?: {};
608
- } | {
609
- type?: "sitemapIntegration";
610
- slug?: string;
611
- id?: string;
612
- name?: string;
613
- description?: string;
614
- properties?: {
615
- datasetId?: string;
616
- url?: string;
617
- };
172
+ [x: string]: any;
173
+ slug?: unknown;
174
+ id?: unknown;
175
+ type?: unknown;
176
+ properties?: unknown;
177
+ } | {
178
+ [x: string]: any;
179
+ slug?: unknown;
180
+ id?: unknown;
181
+ type?: unknown;
182
+ properties?: unknown;
183
+ } | {
184
+ [x: string]: any;
185
+ slug?: unknown;
186
+ id?: unknown;
187
+ type?: unknown;
188
+ properties?: unknown;
189
+ } | {
190
+ [x: string]: any;
191
+ slug?: unknown;
192
+ id?: unknown;
193
+ type?: unknown;
194
+ properties?: unknown;
195
+ } | {
196
+ [x: string]: any;
197
+ slug?: unknown;
198
+ id?: unknown;
199
+ type?: unknown;
200
+ properties?: unknown;
201
+ } | {
202
+ [x: string]: any;
203
+ slug?: unknown;
204
+ id?: unknown;
205
+ type?: unknown;
206
+ properties?: unknown;
207
+ } | {
208
+ [x: string]: any;
209
+ slug?: unknown;
210
+ id?: unknown;
211
+ type?: unknown;
212
+ properties?: unknown;
213
+ } | {
214
+ [x: string]: any;
215
+ slug?: unknown;
216
+ id?: unknown;
217
+ type?: unknown;
218
+ properties?: unknown;
219
+ } | {
220
+ [x: string]: any;
221
+ slug?: unknown;
222
+ id?: unknown;
223
+ type?: unknown;
224
+ properties?: unknown;
225
+ } | {
226
+ [x: string]: any;
227
+ slug?: unknown;
228
+ id?: unknown;
229
+ type?: unknown;
230
+ properties?: unknown;
231
+ } | {
232
+ [x: string]: any;
233
+ slug?: unknown;
234
+ id?: unknown;
235
+ type?: unknown;
236
+ properties?: unknown;
237
+ } | {
238
+ [x: string]: any;
239
+ slug?: unknown;
240
+ id?: unknown;
241
+ type?: unknown;
242
+ properties?: unknown;
243
+ } | {
244
+ [x: string]: any;
245
+ slug?: unknown;
246
+ id?: unknown;
247
+ type?: unknown;
248
+ properties?: unknown;
249
+ } | {
250
+ [x: string]: any;
251
+ slug?: unknown;
252
+ id?: unknown;
253
+ type?: unknown;
254
+ properties?: unknown;
255
+ } | {
256
+ [x: string]: any;
257
+ slug?: unknown;
258
+ id?: unknown;
259
+ type?: unknown;
260
+ properties?: unknown;
261
+ } | {
262
+ [x: string]: any;
263
+ slug?: unknown;
264
+ id?: unknown;
265
+ type?: unknown;
266
+ properties?: unknown;
267
+ } | {
268
+ [x: string]: any;
269
+ slug?: unknown;
270
+ id?: unknown;
271
+ type?: unknown;
272
+ properties?: unknown;
273
+ } | {
274
+ [x: string]: any;
275
+ slug?: unknown;
276
+ id?: unknown;
277
+ type?: unknown;
278
+ properties?: unknown;
279
+ } | {
280
+ [x: string]: any;
281
+ slug?: unknown;
282
+ id?: unknown;
283
+ type?: unknown;
284
+ properties?: unknown;
285
+ } | {
286
+ [x: string]: any;
287
+ slug?: unknown;
288
+ id?: unknown;
289
+ type?: unknown;
290
+ properties?: unknown;
618
291
  })[];
619
292
  }>;
620
293
  export class Resource {
621
294
  constructor(config: ResourceConfig);
622
295
  config: {
623
- type?: "bot";
624
- slug?: string;
625
- id?: string;
626
- name?: string;
627
- description?: string;
628
- properties?: {
629
- model?: string;
630
- backstory?: string;
631
- datasetId?: string;
632
- skillsetId?: string;
633
- moderation?: boolean;
634
- privacy?: boolean;
635
- };
636
- } | {
637
- type?: "dataset";
638
- slug?: string;
639
- id?: string;
640
- name?: string;
641
- description?: string;
642
- properties?: {};
643
- } | {
644
- type?: "skillset";
645
- slug?: string;
646
- id?: string;
647
- name?: string;
648
- description?: string;
649
- properties?: {};
650
- } | {
651
- type?: "widgetIntegration";
652
- slug?: string;
653
- id?: string;
654
- name?: string;
655
- description?: string;
656
- properties?: {};
657
- } | {
658
- type?: "sitemapIntegration";
659
- slug?: string;
660
- id?: string;
661
- name?: string;
662
- description?: string;
663
- properties?: {
664
- datasetId?: string;
665
- url?: string;
666
- };
296
+ [x: string]: any;
297
+ slug?: unknown;
298
+ id?: unknown;
299
+ type?: unknown;
300
+ properties?: unknown;
301
+ } | {
302
+ [x: string]: any;
303
+ slug?: unknown;
304
+ id?: unknown;
305
+ type?: unknown;
306
+ properties?: unknown;
307
+ } | {
308
+ [x: string]: any;
309
+ slug?: unknown;
310
+ id?: unknown;
311
+ type?: unknown;
312
+ properties?: unknown;
313
+ } | {
314
+ [x: string]: any;
315
+ slug?: unknown;
316
+ id?: unknown;
317
+ type?: unknown;
318
+ properties?: unknown;
319
+ } | {
320
+ [x: string]: any;
321
+ slug?: unknown;
322
+ id?: unknown;
323
+ type?: unknown;
324
+ properties?: unknown;
325
+ } | {
326
+ [x: string]: any;
327
+ slug?: unknown;
328
+ id?: unknown;
329
+ type?: unknown;
330
+ properties?: unknown;
331
+ } | {
332
+ [x: string]: any;
333
+ slug?: unknown;
334
+ id?: unknown;
335
+ type?: unknown;
336
+ properties?: unknown;
337
+ } | {
338
+ [x: string]: any;
339
+ slug?: unknown;
340
+ id?: unknown;
341
+ type?: unknown;
342
+ properties?: unknown;
343
+ } | {
344
+ [x: string]: any;
345
+ slug?: unknown;
346
+ id?: unknown;
347
+ type?: unknown;
348
+ properties?: unknown;
349
+ } | {
350
+ [x: string]: any;
351
+ slug?: unknown;
352
+ id?: unknown;
353
+ type?: unknown;
354
+ properties?: unknown;
355
+ } | {
356
+ [x: string]: any;
357
+ slug?: unknown;
358
+ id?: unknown;
359
+ type?: unknown;
360
+ properties?: unknown;
361
+ } | {
362
+ [x: string]: any;
363
+ slug?: unknown;
364
+ id?: unknown;
365
+ type?: unknown;
366
+ properties?: unknown;
367
+ } | {
368
+ [x: string]: any;
369
+ slug?: unknown;
370
+ id?: unknown;
371
+ type?: unknown;
372
+ properties?: unknown;
373
+ } | {
374
+ [x: string]: any;
375
+ slug?: unknown;
376
+ id?: unknown;
377
+ type?: unknown;
378
+ properties?: unknown;
379
+ } | {
380
+ [x: string]: any;
381
+ slug?: unknown;
382
+ id?: unknown;
383
+ type?: unknown;
384
+ properties?: unknown;
385
+ } | {
386
+ [x: string]: any;
387
+ slug?: unknown;
388
+ id?: unknown;
389
+ type?: unknown;
390
+ properties?: unknown;
391
+ } | {
392
+ [x: string]: any;
393
+ slug?: unknown;
394
+ id?: unknown;
395
+ type?: unknown;
396
+ properties?: unknown;
397
+ } | {
398
+ [x: string]: any;
399
+ slug?: unknown;
400
+ id?: unknown;
401
+ type?: unknown;
402
+ properties?: unknown;
403
+ } | {
404
+ [x: string]: any;
405
+ slug?: unknown;
406
+ id?: unknown;
407
+ type?: unknown;
408
+ properties?: unknown;
409
+ } | {
410
+ [x: string]: any;
411
+ slug?: unknown;
412
+ id?: unknown;
413
+ type?: unknown;
414
+ properties?: unknown;
667
415
  };
668
416
  get type(): string;
669
417
  get slug(): string;
670
418
  get id(): string | undefined;
671
- get name(): string;
419
+ get name(): string | undefined;
672
420
  get description(): string | undefined;
673
421
  get baseClient(): import("@chatbotkit/sdk").ChatBotKit;
674
422
  get client(): {
@@ -679,13 +427,25 @@ export class Resource {
679
427
  id: string;
680
428
  }>;
681
429
  };
430
+ get createProperties(): Record<string, any>;
431
+ get updateProperties(): Record<string, any>;
682
432
  sync(): Promise<void>;
683
433
  }
434
+ export class BlueprintResource extends Resource {
435
+ override get client(): import("@chatbotkit/sdk").BlueprintClient;
436
+ }
684
437
  export class BotResource extends Resource {
685
438
  override get client(): import("@chatbotkit/sdk").BotClient;
686
439
  }
687
440
  export class DatasetResource extends Resource {
688
441
  override get client(): import("@chatbotkit/sdk").DatasetClient;
442
+ override get updateProperties(): any;
443
+ }
444
+ export class FileResource extends Resource {
445
+ override get client(): import("@chatbotkit/sdk").FileClient;
446
+ }
447
+ export class SecretResource extends Resource {
448
+ override get client(): import("@chatbotkit/sdk").SecretClient;
689
449
  }
690
450
  export class SkillsetResource extends Resource {
691
451
  override get client(): import("@chatbotkit/sdk").SkillsetClient;
@@ -696,59 +456,174 @@ export class WidgetIntegrationResource extends Resource {
696
456
  export class SitemapIntegrationResource extends Resource {
697
457
  get client(): any;
698
458
  }
459
+ export class SlackIntegrationResource extends Resource {
460
+ override get client(): any;
461
+ }
462
+ export class DiscordIntegrationResource extends Resource {
463
+ override get client(): any;
464
+ }
465
+ export class TelegramIntegrationResource extends Resource {
466
+ override get client(): any;
467
+ }
468
+ export class WhatsAppIntegrationResource extends Resource {
469
+ override get client(): any;
470
+ }
471
+ export class MessengerIntegrationResource extends Resource {
472
+ override get client(): any;
473
+ }
474
+ export class NotionIntegrationResource extends Resource {
475
+ override get client(): any;
476
+ }
477
+ export class EmailIntegrationResource extends Resource {
478
+ override get client(): any;
479
+ }
480
+ export class TriggerIntegrationResource extends Resource {
481
+ override get client(): any;
482
+ }
483
+ export class SupportIntegrationResource extends Resource {
484
+ override get client(): any;
485
+ }
486
+ export class ExtractIntegrationResource extends Resource {
487
+ override get client(): any;
488
+ }
489
+ export class McpServerIntegrationResource extends Resource {
490
+ override get client(): any;
491
+ }
492
+ export class TwilioIntegrationResource extends Resource {
493
+ override get client(): any;
494
+ }
699
495
  export class Solution {
700
496
  constructor(config: SolutionConfig);
701
497
  config: {
702
498
  version?: 1;
703
499
  resources?: ({
704
- type?: "bot";
705
- slug?: string;
706
- id?: string;
707
- name?: string;
708
- description?: string;
709
- properties?: {
710
- model?: string;
711
- backstory?: string;
712
- datasetId?: string;
713
- skillsetId?: string;
714
- moderation?: boolean;
715
- privacy?: boolean;
716
- };
500
+ [x: string]: any;
501
+ slug?: unknown;
502
+ id?: unknown;
503
+ type?: unknown;
504
+ properties?: unknown;
505
+ } | {
506
+ [x: string]: any;
507
+ slug?: unknown;
508
+ id?: unknown;
509
+ type?: unknown;
510
+ properties?: unknown;
511
+ } | {
512
+ [x: string]: any;
513
+ slug?: unknown;
514
+ id?: unknown;
515
+ type?: unknown;
516
+ properties?: unknown;
517
+ } | {
518
+ [x: string]: any;
519
+ slug?: unknown;
520
+ id?: unknown;
521
+ type?: unknown;
522
+ properties?: unknown;
523
+ } | {
524
+ [x: string]: any;
525
+ slug?: unknown;
526
+ id?: unknown;
527
+ type?: unknown;
528
+ properties?: unknown;
529
+ } | {
530
+ [x: string]: any;
531
+ slug?: unknown;
532
+ id?: unknown;
533
+ type?: unknown;
534
+ properties?: unknown;
535
+ } | {
536
+ [x: string]: any;
537
+ slug?: unknown;
538
+ id?: unknown;
539
+ type?: unknown;
540
+ properties?: unknown;
541
+ } | {
542
+ [x: string]: any;
543
+ slug?: unknown;
544
+ id?: unknown;
545
+ type?: unknown;
546
+ properties?: unknown;
547
+ } | {
548
+ [x: string]: any;
549
+ slug?: unknown;
550
+ id?: unknown;
551
+ type?: unknown;
552
+ properties?: unknown;
717
553
  } | {
718
- type?: "dataset";
719
- slug?: string;
720
- id?: string;
721
- name?: string;
722
- description?: string;
723
- properties?: {};
554
+ [x: string]: any;
555
+ slug?: unknown;
556
+ id?: unknown;
557
+ type?: unknown;
558
+ properties?: unknown;
724
559
  } | {
725
- type?: "skillset";
726
- slug?: string;
727
- id?: string;
728
- name?: string;
729
- description?: string;
730
- properties?: {};
560
+ [x: string]: any;
561
+ slug?: unknown;
562
+ id?: unknown;
563
+ type?: unknown;
564
+ properties?: unknown;
731
565
  } | {
732
- type?: "widgetIntegration";
733
- slug?: string;
734
- id?: string;
735
- name?: string;
736
- description?: string;
737
- properties?: {};
566
+ [x: string]: any;
567
+ slug?: unknown;
568
+ id?: unknown;
569
+ type?: unknown;
570
+ properties?: unknown;
738
571
  } | {
739
- type?: "sitemapIntegration";
740
- slug?: string;
741
- id?: string;
742
- name?: string;
743
- description?: string;
744
- properties?: {
745
- datasetId?: string;
746
- url?: string;
747
- };
572
+ [x: string]: any;
573
+ slug?: unknown;
574
+ id?: unknown;
575
+ type?: unknown;
576
+ properties?: unknown;
577
+ } | {
578
+ [x: string]: any;
579
+ slug?: unknown;
580
+ id?: unknown;
581
+ type?: unknown;
582
+ properties?: unknown;
583
+ } | {
584
+ [x: string]: any;
585
+ slug?: unknown;
586
+ id?: unknown;
587
+ type?: unknown;
588
+ properties?: unknown;
589
+ } | {
590
+ [x: string]: any;
591
+ slug?: unknown;
592
+ id?: unknown;
593
+ type?: unknown;
594
+ properties?: unknown;
595
+ } | {
596
+ [x: string]: any;
597
+ slug?: unknown;
598
+ id?: unknown;
599
+ type?: unknown;
600
+ properties?: unknown;
601
+ } | {
602
+ [x: string]: any;
603
+ slug?: unknown;
604
+ id?: unknown;
605
+ type?: unknown;
606
+ properties?: unknown;
607
+ } | {
608
+ [x: string]: any;
609
+ slug?: unknown;
610
+ id?: unknown;
611
+ type?: unknown;
612
+ properties?: unknown;
613
+ } | {
614
+ [x: string]: any;
615
+ slug?: unknown;
616
+ id?: unknown;
617
+ type?: unknown;
618
+ properties?: unknown;
748
619
  })[];
749
620
  };
750
621
  get baseClient(): import("@chatbotkit/sdk").ChatBotKit;
751
- get resources(): (BotResource | DatasetResource | SkillsetResource | WidgetIntegrationResource | SitemapIntegrationResource)[];
622
+ get resources(): (BlueprintResource | BotResource | DatasetResource | FileResource | SecretResource | SkillsetResource | WidgetIntegrationResource | SitemapIntegrationResource | SlackIntegrationResource | DiscordIntegrationResource | TelegramIntegrationResource | WhatsAppIntegrationResource | MessengerIntegrationResource | NotionIntegrationResource | EmailIntegrationResource | TriggerIntegrationResource | SupportIntegrationResource | ExtractIntegrationResource | McpServerIntegrationResource | TwilioIntegrationResource)[];
623
+ get blueprints(): BlueprintResource[];
624
+ get blueprint(): {
625
+ [key: string]: BlueprintResource | undefined;
626
+ };
752
627
  get bots(): BotResource[];
753
628
  get bot(): {
754
629
  [key: string]: BotResource | undefined;
@@ -757,6 +632,14 @@ export class Solution {
757
632
  get dataset(): {
758
633
  [key: string]: DatasetResource | undefined;
759
634
  };
635
+ get files(): FileResource[];
636
+ get file(): {
637
+ [key: string]: FileResource | undefined;
638
+ };
639
+ get secrets(): SecretResource[];
640
+ get secret(): {
641
+ [key: string]: SecretResource | undefined;
642
+ };
760
643
  get skillsets(): SkillsetResource[];
761
644
  get skillset(): {
762
645
  [key: string]: SkillsetResource | undefined;
@@ -769,6 +652,54 @@ export class Solution {
769
652
  get sitemapIntegration(): {
770
653
  [key: string]: SitemapIntegrationResource | undefined;
771
654
  };
655
+ get slackIntegrations(): SlackIntegrationResource[];
656
+ get slackIntegration(): {
657
+ [key: string]: SlackIntegrationResource | undefined;
658
+ };
659
+ get discordIntegrations(): DiscordIntegrationResource[];
660
+ get discordIntegration(): {
661
+ [key: string]: DiscordIntegrationResource | undefined;
662
+ };
663
+ get telegramIntegrations(): TelegramIntegrationResource[];
664
+ get telegramIntegration(): {
665
+ [key: string]: TelegramIntegrationResource | undefined;
666
+ };
667
+ get whatsappIntegrations(): WhatsAppIntegrationResource[];
668
+ get whatsappIntegration(): {
669
+ [key: string]: WhatsAppIntegrationResource | undefined;
670
+ };
671
+ get messengerIntegrations(): MessengerIntegrationResource[];
672
+ get messengerIntegration(): {
673
+ [key: string]: MessengerIntegrationResource | undefined;
674
+ };
675
+ get notionIntegrations(): NotionIntegrationResource[];
676
+ get notionIntegration(): {
677
+ [key: string]: NotionIntegrationResource | undefined;
678
+ };
679
+ get emailIntegrations(): EmailIntegrationResource[];
680
+ get emailIntegration(): {
681
+ [key: string]: EmailIntegrationResource | undefined;
682
+ };
683
+ get triggerIntegrations(): TriggerIntegrationResource[];
684
+ get triggerIntegration(): {
685
+ [key: string]: TriggerIntegrationResource | undefined;
686
+ };
687
+ get supportIntegrations(): SupportIntegrationResource[];
688
+ get supportIntegration(): {
689
+ [key: string]: SupportIntegrationResource | undefined;
690
+ };
691
+ get extractIntegrations(): ExtractIntegrationResource[];
692
+ get extractIntegration(): {
693
+ [key: string]: ExtractIntegrationResource | undefined;
694
+ };
695
+ get mcpserverIntegrations(): McpServerIntegrationResource[];
696
+ get mcpserverIntegration(): {
697
+ [key: string]: McpServerIntegrationResource | undefined;
698
+ };
699
+ get twilioIntegrations(): TwilioIntegrationResource[];
700
+ get twilioIntegration(): {
701
+ [key: string]: TwilioIntegrationResource | undefined;
702
+ };
772
703
  sync(): Promise<void>;
773
704
  }
774
705
  export namespace Solution {
@@ -783,6 +714,15 @@ export class ArrayBackedObject<T> {
783
714
  constructor(array: T[]);
784
715
  array: T[];
785
716
  }
717
+ export type ZodSchemaFor<T> = { [K in keyof T]-?: undefined extends T[K] ? z.ZodOptional<z.ZodType<Exclude<T[K], undefined>>> : z.ZodType<T[K]>; };
718
+ export type BasicResourceConfigSchemaFields = {
719
+ slug: z.ZodOptional<z.ZodString>;
720
+ id: z.ZodOptional<z.ZodString>;
721
+ };
722
+ export type ResourceConfigSchemaFor<T, U> = z.ZodObject<BasicResourceConfigSchemaFields & {
723
+ type: z.ZodLiteral<T>;
724
+ properties: z.ZodObject<ZodSchemaFor<U>>;
725
+ }>;
786
726
  export type SolutionConfig = z.infer<typeof SolutionConfigSchema>;
787
727
  export type ResourceConfig = z.infer<typeof ResourceConfigSchema>;
788
728
  import { z } from 'zod';