@chatbotkit/cli 1.8.0 → 1.9.1

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