@chatbotkit/cli 1.8.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 +134 -1
@@ -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;
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
+ slug?: string;
21
+ id?: string;
22
+ name?: string;
23
+ description?: string;
24
+ properties?: Record<string, unknown>;
25
+ }, {
26
+ type?: string;
27
+ slug?: string;
28
+ id?: string;
29
+ name?: string;
30
+ description?: string;
31
+ properties?: Record<string, unknown>;
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;
48
+ backstory?: string;
49
+ datasetId?: string;
50
+ skillsetId?: string;
51
+ moderation?: boolean;
52
+ privacy?: boolean;
53
+ }, {
54
+ model?: string;
55
+ backstory?: string;
56
+ datasetId?: string;
57
+ skillsetId?: string;
58
+ moderation?: boolean;
59
+ privacy?: boolean;
60
+ }>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ slug?: string;
63
+ id?: string;
64
+ name?: string;
65
+ description?: string;
66
+ type?: "bot";
67
+ properties?: {
68
+ model?: string;
69
+ backstory?: string;
70
+ datasetId?: string;
71
+ skillsetId?: string;
72
+ moderation?: boolean;
73
+ privacy?: boolean;
74
+ };
75
+ }, {
76
+ slug?: string;
77
+ id?: string;
78
+ name?: string;
79
+ description?: string;
80
+ type?: "bot";
81
+ properties?: {
82
+ model?: string;
83
+ backstory?: string;
84
+ datasetId?: string;
85
+ skillsetId?: string;
86
+ moderation?: boolean;
87
+ privacy?: boolean;
88
+ };
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
+ slug?: string;
99
+ id?: string;
100
+ name?: string;
101
+ description?: string;
102
+ type?: "dataset";
103
+ properties?: {};
104
+ }, {
105
+ slug?: string;
106
+ id?: string;
107
+ name?: string;
108
+ description?: string;
109
+ type?: "dataset";
110
+ properties?: {};
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
+ slug?: string;
121
+ id?: string;
122
+ name?: string;
123
+ description?: string;
124
+ type?: "skillset";
125
+ properties?: {};
126
+ }, {
127
+ slug?: string;
128
+ id?: string;
129
+ name?: string;
130
+ description?: string;
131
+ type?: "skillset";
132
+ properties?: {};
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
+ slug?: string;
143
+ id?: string;
144
+ name?: string;
145
+ description?: string;
146
+ type?: "widgetIntegration";
147
+ properties?: {};
148
+ }, {
149
+ slug?: string;
150
+ id?: string;
151
+ name?: string;
152
+ description?: string;
153
+ type?: "widgetIntegration";
154
+ properties?: {};
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
+ url?: string;
167
+ datasetId?: string;
168
+ }, {
169
+ url?: string;
170
+ datasetId?: string;
171
+ }>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ slug?: string;
174
+ id?: string;
175
+ name?: string;
176
+ description?: string;
177
+ type?: "sitemapIntegration";
178
+ properties?: {
179
+ url?: string;
180
+ datasetId?: string;
181
+ };
182
+ }, {
183
+ slug?: string;
184
+ id?: string;
185
+ name?: string;
186
+ description?: string;
187
+ type?: "sitemapIntegration";
188
+ properties?: {
189
+ url?: string;
190
+ datasetId?: string;
191
+ };
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;
208
+ backstory?: string;
209
+ datasetId?: string;
210
+ skillsetId?: string;
211
+ moderation?: boolean;
212
+ privacy?: boolean;
213
+ }, {
214
+ model?: string;
215
+ backstory?: string;
216
+ datasetId?: string;
217
+ skillsetId?: string;
218
+ moderation?: boolean;
219
+ privacy?: boolean;
220
+ }>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ slug?: string;
223
+ id?: string;
224
+ name?: string;
225
+ description?: string;
226
+ type?: "bot";
227
+ properties?: {
228
+ model?: string;
229
+ backstory?: string;
230
+ datasetId?: string;
231
+ skillsetId?: string;
232
+ moderation?: boolean;
233
+ privacy?: boolean;
234
+ };
235
+ }, {
236
+ slug?: string;
237
+ id?: string;
238
+ name?: string;
239
+ description?: string;
240
+ type?: "bot";
241
+ properties?: {
242
+ model?: string;
243
+ backstory?: string;
244
+ datasetId?: string;
245
+ skillsetId?: string;
246
+ moderation?: boolean;
247
+ privacy?: boolean;
248
+ };
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
+ slug?: string;
258
+ id?: string;
259
+ name?: string;
260
+ description?: string;
261
+ type?: "dataset";
262
+ properties?: {};
263
+ }, {
264
+ slug?: string;
265
+ id?: string;
266
+ name?: string;
267
+ description?: string;
268
+ type?: "dataset";
269
+ properties?: {};
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
+ slug?: string;
279
+ id?: string;
280
+ name?: string;
281
+ description?: string;
282
+ type?: "skillset";
283
+ properties?: {};
284
+ }, {
285
+ slug?: string;
286
+ id?: string;
287
+ name?: string;
288
+ description?: string;
289
+ type?: "skillset";
290
+ properties?: {};
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
+ slug?: string;
300
+ id?: string;
301
+ name?: string;
302
+ description?: string;
303
+ type?: "widgetIntegration";
304
+ properties?: {};
305
+ }, {
306
+ slug?: string;
307
+ id?: string;
308
+ name?: string;
309
+ description?: string;
310
+ type?: "widgetIntegration";
311
+ properties?: {};
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
+ url?: string;
323
+ datasetId?: string;
324
+ }, {
325
+ url?: string;
326
+ datasetId?: string;
327
+ }>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ slug?: string;
330
+ id?: string;
331
+ name?: string;
332
+ description?: string;
333
+ type?: "sitemapIntegration";
334
+ properties?: {
335
+ url?: string;
336
+ datasetId?: string;
337
+ };
338
+ }, {
339
+ slug?: string;
340
+ id?: string;
341
+ name?: string;
342
+ description?: string;
343
+ type?: "sitemapIntegration";
344
+ properties?: {
345
+ url?: string;
346
+ datasetId?: string;
347
+ };
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;
366
+ backstory?: string;
367
+ datasetId?: string;
368
+ skillsetId?: string;
369
+ moderation?: boolean;
370
+ privacy?: boolean;
371
+ }, {
372
+ model?: string;
373
+ backstory?: string;
374
+ datasetId?: string;
375
+ skillsetId?: string;
376
+ moderation?: boolean;
377
+ privacy?: boolean;
378
+ }>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ slug?: string;
381
+ id?: string;
382
+ name?: string;
383
+ description?: string;
384
+ type?: "bot";
385
+ properties?: {
386
+ model?: string;
387
+ backstory?: string;
388
+ datasetId?: string;
389
+ skillsetId?: string;
390
+ moderation?: boolean;
391
+ privacy?: boolean;
392
+ };
393
+ }, {
394
+ slug?: string;
395
+ id?: string;
396
+ name?: string;
397
+ description?: string;
398
+ type?: "bot";
399
+ properties?: {
400
+ model?: string;
401
+ backstory?: string;
402
+ datasetId?: string;
403
+ skillsetId?: string;
404
+ moderation?: boolean;
405
+ privacy?: boolean;
406
+ };
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
+ slug?: string;
416
+ id?: string;
417
+ name?: string;
418
+ description?: string;
419
+ type?: "dataset";
420
+ properties?: {};
421
+ }, {
422
+ slug?: string;
423
+ id?: string;
424
+ name?: string;
425
+ description?: string;
426
+ type?: "dataset";
427
+ properties?: {};
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
+ slug?: string;
437
+ id?: string;
438
+ name?: string;
439
+ description?: string;
440
+ type?: "skillset";
441
+ properties?: {};
442
+ }, {
443
+ slug?: string;
444
+ id?: string;
445
+ name?: string;
446
+ description?: string;
447
+ type?: "skillset";
448
+ properties?: {};
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
+ slug?: string;
458
+ id?: string;
459
+ name?: string;
460
+ description?: string;
461
+ type?: "widgetIntegration";
462
+ properties?: {};
463
+ }, {
464
+ slug?: string;
465
+ id?: string;
466
+ name?: string;
467
+ description?: string;
468
+ type?: "widgetIntegration";
469
+ properties?: {};
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
+ url?: string;
481
+ datasetId?: string;
482
+ }, {
483
+ url?: string;
484
+ datasetId?: string;
485
+ }>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ slug?: string;
488
+ id?: string;
489
+ name?: string;
490
+ description?: string;
491
+ type?: "sitemapIntegration";
492
+ properties?: {
493
+ url?: string;
494
+ datasetId?: string;
495
+ };
496
+ }, {
497
+ slug?: string;
498
+ id?: string;
499
+ name?: string;
500
+ description?: string;
501
+ type?: "sitemapIntegration";
502
+ properties?: {
503
+ url?: string;
504
+ datasetId?: string;
505
+ };
506
+ }>]>, "many">;
507
+ }, "strip", z.ZodTypeAny, {
508
+ version?: 1;
509
+ resources?: ({
510
+ slug?: string;
511
+ id?: string;
512
+ name?: string;
513
+ description?: string;
514
+ type?: "bot";
515
+ properties?: {
516
+ model?: string;
517
+ backstory?: string;
518
+ datasetId?: string;
519
+ skillsetId?: string;
520
+ moderation?: boolean;
521
+ privacy?: boolean;
522
+ };
523
+ } | {
524
+ slug?: string;
525
+ id?: string;
526
+ name?: string;
527
+ description?: string;
528
+ type?: "dataset";
529
+ properties?: {};
530
+ } | {
531
+ slug?: string;
532
+ id?: string;
533
+ name?: string;
534
+ description?: string;
535
+ type?: "skillset";
536
+ properties?: {};
537
+ } | {
538
+ slug?: string;
539
+ id?: string;
540
+ name?: string;
541
+ description?: string;
542
+ type?: "widgetIntegration";
543
+ properties?: {};
544
+ } | {
545
+ slug?: string;
546
+ id?: string;
547
+ name?: string;
548
+ description?: string;
549
+ type?: "sitemapIntegration";
550
+ properties?: {
551
+ url?: string;
552
+ datasetId?: string;
553
+ };
554
+ })[];
555
+ }, {
556
+ version?: 1;
557
+ resources?: ({
558
+ slug?: string;
559
+ id?: string;
560
+ name?: string;
561
+ description?: string;
562
+ type?: "bot";
563
+ properties?: {
564
+ model?: string;
565
+ backstory?: string;
566
+ datasetId?: string;
567
+ skillsetId?: string;
568
+ moderation?: boolean;
569
+ privacy?: boolean;
570
+ };
571
+ } | {
572
+ slug?: string;
573
+ id?: string;
574
+ name?: string;
575
+ description?: string;
576
+ type?: "dataset";
577
+ properties?: {};
578
+ } | {
579
+ slug?: string;
580
+ id?: string;
581
+ name?: string;
582
+ description?: string;
583
+ type?: "skillset";
584
+ properties?: {};
585
+ } | {
586
+ slug?: string;
587
+ id?: string;
588
+ name?: string;
589
+ description?: string;
590
+ type?: "widgetIntegration";
591
+ properties?: {};
592
+ } | {
593
+ slug?: string;
594
+ id?: string;
595
+ name?: string;
596
+ description?: string;
597
+ type?: "sitemapIntegration";
598
+ properties?: {
599
+ url?: string;
600
+ datasetId?: string;
601
+ };
602
+ })[];
603
+ }>;
604
+ export class Resource {
605
+ constructor(config: ResourceConfig);
606
+ config: {
607
+ slug?: string;
608
+ id?: string;
609
+ name?: string;
610
+ description?: string;
611
+ type?: "bot";
612
+ properties?: {
613
+ model?: string;
614
+ backstory?: string;
615
+ datasetId?: string;
616
+ skillsetId?: string;
617
+ moderation?: boolean;
618
+ privacy?: boolean;
619
+ };
620
+ } | {
621
+ slug?: string;
622
+ id?: string;
623
+ name?: string;
624
+ description?: string;
625
+ type?: "dataset";
626
+ properties?: {};
627
+ } | {
628
+ slug?: string;
629
+ id?: string;
630
+ name?: string;
631
+ description?: string;
632
+ type?: "skillset";
633
+ properties?: {};
634
+ } | {
635
+ slug?: string;
636
+ id?: string;
637
+ name?: string;
638
+ description?: string;
639
+ type?: "widgetIntegration";
640
+ properties?: {};
641
+ } | {
642
+ slug?: string;
643
+ id?: string;
644
+ name?: string;
645
+ description?: string;
646
+ type?: "sitemapIntegration";
647
+ properties?: {
648
+ url?: string;
649
+ datasetId?: string;
650
+ };
651
+ };
652
+ get type(): string;
653
+ get slug(): string;
654
+ get id(): string;
655
+ get name(): string;
656
+ get description(): string;
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(): any;
674
+ }
675
+ export class SitemapIntegrationResource extends Resource {
676
+ override get client(): any;
677
+ }
678
+ export class Solution {
679
+ constructor(config: SolutionConfig);
680
+ config: {
681
+ version?: 1;
682
+ resources?: ({
683
+ slug?: string;
684
+ id?: string;
685
+ name?: string;
686
+ description?: string;
687
+ type?: "bot";
688
+ properties?: {
689
+ model?: string;
690
+ backstory?: string;
691
+ datasetId?: string;
692
+ skillsetId?: string;
693
+ moderation?: boolean;
694
+ privacy?: boolean;
695
+ };
696
+ } | {
697
+ slug?: string;
698
+ id?: string;
699
+ name?: string;
700
+ description?: string;
701
+ type?: "dataset";
702
+ properties?: {};
703
+ } | {
704
+ slug?: string;
705
+ id?: string;
706
+ name?: string;
707
+ description?: string;
708
+ type?: "skillset";
709
+ properties?: {};
710
+ } | {
711
+ slug?: string;
712
+ id?: string;
713
+ name?: string;
714
+ description?: string;
715
+ type?: "widgetIntegration";
716
+ properties?: {};
717
+ } | {
718
+ slug?: string;
719
+ id?: string;
720
+ name?: string;
721
+ description?: string;
722
+ type?: "sitemapIntegration";
723
+ properties?: {
724
+ url?: string;
725
+ datasetId?: string;
726
+ };
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;
734
+ };
735
+ get datasets(): DatasetResource[];
736
+ get dataset(): {
737
+ [key: string]: DatasetResource;
738
+ };
739
+ get skillsets(): SkillsetResource[];
740
+ get skillset(): {
741
+ [key: string]: SkillsetResource;
742
+ };
743
+ get widgetIntegrations(): WidgetIntegrationResource[];
744
+ get widgetIntegration(): {
745
+ [key: string]: WidgetIntegrationResource;
746
+ };
747
+ get sitemapIntegrations(): SitemapIntegrationResource[];
748
+ get sitemapIntegration(): {
749
+ [key: string]: SitemapIntegrationResource;
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
+ slug?: string;
762
+ id?: string;
763
+ name?: string;
764
+ description?: string;
765
+ type?: "bot";
766
+ properties?: {
767
+ model?: string;
768
+ backstory?: string;
769
+ datasetId?: string;
770
+ skillsetId?: string;
771
+ moderation?: boolean;
772
+ privacy?: boolean;
773
+ };
774
+ } | {
775
+ slug?: string;
776
+ id?: string;
777
+ name?: string;
778
+ description?: string;
779
+ type?: "dataset";
780
+ properties?: {};
781
+ } | {
782
+ slug?: string;
783
+ id?: string;
784
+ name?: string;
785
+ description?: string;
786
+ type?: "skillset";
787
+ properties?: {};
788
+ } | {
789
+ slug?: string;
790
+ id?: string;
791
+ name?: string;
792
+ description?: string;
793
+ type?: "widgetIntegration";
794
+ properties?: {};
795
+ } | {
796
+ slug?: string;
797
+ id?: string;
798
+ name?: string;
799
+ description?: string;
800
+ type?: "sitemapIntegration";
801
+ properties?: {
802
+ url?: string;
803
+ datasetId?: string;
804
+ };
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';