@chatbotkit/cli 1.7.0 → 1.9.0

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