@chatbotkit/cli 1.18.3 → 1.20.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.
@@ -1 +1 @@
1
- export default function cbk(argv?: string[] | undefined): Promise<void>;
1
+ export default function cbk(argv?: string[]): Promise<void>;
@@ -1,7 +1,7 @@
1
1
  export function print(input: any): void;
2
2
  export function printError(error: any): void;
3
3
  export namespace config {
4
- let output: 'yaml' | 'json' | 'jsonl';
4
+ let output: "yaml" | "json" | "jsonl";
5
5
  }
6
6
  export class CommandError extends Error {
7
7
  }
@@ -36,6 +36,7 @@ export const BotResourceConfigSchema: z.ZodObject<{
36
36
  id: z.ZodOptional<z.ZodString>;
37
37
  name: z.ZodString;
38
38
  description: z.ZodOptional<z.ZodString>;
39
+ } & {
39
40
  type: z.ZodLiteral<"bot">;
40
41
  properties: z.ZodObject<{
41
42
  model: z.ZodOptional<z.ZodString>;
@@ -49,15 +50,15 @@ export const BotResourceConfigSchema: z.ZodObject<{
49
50
  backstory?: string | undefined;
50
51
  datasetId?: string | undefined;
51
52
  skillsetId?: string | undefined;
52
- moderation?: boolean | undefined;
53
53
  privacy?: boolean | undefined;
54
+ moderation?: boolean | undefined;
54
55
  }, {
55
56
  model?: string | undefined;
56
57
  backstory?: string | undefined;
57
58
  datasetId?: string | undefined;
58
59
  skillsetId?: string | undefined;
59
- moderation?: boolean | undefined;
60
60
  privacy?: boolean | undefined;
61
+ moderation?: boolean | undefined;
61
62
  }>;
62
63
  }, "strip", z.ZodTypeAny, {
63
64
  type: "bot";
@@ -67,8 +68,8 @@ export const BotResourceConfigSchema: z.ZodObject<{
67
68
  backstory?: string | undefined;
68
69
  datasetId?: string | undefined;
69
70
  skillsetId?: string | undefined;
70
- moderation?: boolean | undefined;
71
71
  privacy?: boolean | undefined;
72
+ moderation?: boolean | undefined;
72
73
  };
73
74
  slug?: string | undefined;
74
75
  id?: string | undefined;
@@ -81,8 +82,8 @@ export const BotResourceConfigSchema: z.ZodObject<{
81
82
  backstory?: string | undefined;
82
83
  datasetId?: string | undefined;
83
84
  skillsetId?: string | undefined;
84
- moderation?: boolean | undefined;
85
85
  privacy?: boolean | undefined;
86
+ moderation?: boolean | undefined;
86
87
  };
87
88
  slug?: string | undefined;
88
89
  id?: string | undefined;
@@ -93,6 +94,7 @@ export const DatasetResourceConfigSchema: z.ZodObject<{
93
94
  id: z.ZodOptional<z.ZodString>;
94
95
  name: z.ZodString;
95
96
  description: z.ZodOptional<z.ZodString>;
97
+ } & {
96
98
  type: z.ZodLiteral<"dataset">;
97
99
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
98
100
  }, "strip", z.ZodTypeAny, {
@@ -115,6 +117,7 @@ export const SkillsetResourceConfigSchema: z.ZodObject<{
115
117
  id: z.ZodOptional<z.ZodString>;
116
118
  name: z.ZodString;
117
119
  description: z.ZodOptional<z.ZodString>;
120
+ } & {
118
121
  type: z.ZodLiteral<"skillset">;
119
122
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
120
123
  }, "strip", z.ZodTypeAny, {
@@ -137,6 +140,7 @@ export const WidgetIntegrationResourceConfigSchema: z.ZodObject<{
137
140
  id: z.ZodOptional<z.ZodString>;
138
141
  name: z.ZodString;
139
142
  description: z.ZodOptional<z.ZodString>;
143
+ } & {
140
144
  type: z.ZodLiteral<"widgetIntegration">;
141
145
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
142
146
  }, "strip", z.ZodTypeAny, {
@@ -159,6 +163,7 @@ export const SitemapIntegrationResourceConfigSchema: z.ZodObject<{
159
163
  id: z.ZodOptional<z.ZodString>;
160
164
  name: z.ZodString;
161
165
  description: z.ZodOptional<z.ZodString>;
166
+ } & {
162
167
  type: z.ZodLiteral<"sitemapIntegration">;
163
168
  properties: z.ZodObject<{
164
169
  url: z.ZodString;
@@ -196,6 +201,7 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
196
201
  id: z.ZodOptional<z.ZodString>;
197
202
  name: z.ZodString;
198
203
  description: z.ZodOptional<z.ZodString>;
204
+ } & {
199
205
  type: z.ZodLiteral<"bot">;
200
206
  properties: z.ZodObject<{
201
207
  model: z.ZodOptional<z.ZodString>;
@@ -209,15 +215,15 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
209
215
  backstory?: string | undefined;
210
216
  datasetId?: string | undefined;
211
217
  skillsetId?: string | undefined;
212
- moderation?: boolean | undefined;
213
218
  privacy?: boolean | undefined;
219
+ moderation?: boolean | undefined;
214
220
  }, {
215
221
  model?: string | undefined;
216
222
  backstory?: string | undefined;
217
223
  datasetId?: string | undefined;
218
224
  skillsetId?: string | undefined;
219
- moderation?: boolean | undefined;
220
225
  privacy?: boolean | undefined;
226
+ moderation?: boolean | undefined;
221
227
  }>;
222
228
  }, "strip", z.ZodTypeAny, {
223
229
  type: "bot";
@@ -227,8 +233,8 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
227
233
  backstory?: string | undefined;
228
234
  datasetId?: string | undefined;
229
235
  skillsetId?: string | undefined;
230
- moderation?: boolean | undefined;
231
236
  privacy?: boolean | undefined;
237
+ moderation?: boolean | undefined;
232
238
  };
233
239
  slug?: string | undefined;
234
240
  id?: string | undefined;
@@ -241,8 +247,8 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
241
247
  backstory?: string | undefined;
242
248
  datasetId?: string | undefined;
243
249
  skillsetId?: string | undefined;
244
- moderation?: boolean | undefined;
245
250
  privacy?: boolean | undefined;
251
+ moderation?: boolean | undefined;
246
252
  };
247
253
  slug?: string | undefined;
248
254
  id?: string | undefined;
@@ -252,6 +258,7 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
252
258
  id: z.ZodOptional<z.ZodString>;
253
259
  name: z.ZodString;
254
260
  description: z.ZodOptional<z.ZodString>;
261
+ } & {
255
262
  type: z.ZodLiteral<"dataset">;
256
263
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
257
264
  }, "strip", z.ZodTypeAny, {
@@ -273,6 +280,7 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
273
280
  id: z.ZodOptional<z.ZodString>;
274
281
  name: z.ZodString;
275
282
  description: z.ZodOptional<z.ZodString>;
283
+ } & {
276
284
  type: z.ZodLiteral<"skillset">;
277
285
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
278
286
  }, "strip", z.ZodTypeAny, {
@@ -294,6 +302,7 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
294
302
  id: z.ZodOptional<z.ZodString>;
295
303
  name: z.ZodString;
296
304
  description: z.ZodOptional<z.ZodString>;
305
+ } & {
297
306
  type: z.ZodLiteral<"widgetIntegration">;
298
307
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
299
308
  }, "strip", z.ZodTypeAny, {
@@ -315,6 +324,7 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
315
324
  id: z.ZodOptional<z.ZodString>;
316
325
  name: z.ZodString;
317
326
  description: z.ZodOptional<z.ZodString>;
327
+ } & {
318
328
  type: z.ZodLiteral<"sitemapIntegration">;
319
329
  properties: z.ZodObject<{
320
330
  url: z.ZodString;
@@ -354,6 +364,7 @@ export const SolutionConfigSchema: z.ZodObject<{
354
364
  id: z.ZodOptional<z.ZodString>;
355
365
  name: z.ZodString;
356
366
  description: z.ZodOptional<z.ZodString>;
367
+ } & {
357
368
  type: z.ZodLiteral<"bot">;
358
369
  properties: z.ZodObject<{
359
370
  model: z.ZodOptional<z.ZodString>;
@@ -367,15 +378,15 @@ export const SolutionConfigSchema: z.ZodObject<{
367
378
  backstory?: string | undefined;
368
379
  datasetId?: string | undefined;
369
380
  skillsetId?: string | undefined;
370
- moderation?: boolean | undefined;
371
381
  privacy?: boolean | undefined;
382
+ moderation?: boolean | undefined;
372
383
  }, {
373
384
  model?: string | undefined;
374
385
  backstory?: string | undefined;
375
386
  datasetId?: string | undefined;
376
387
  skillsetId?: string | undefined;
377
- moderation?: boolean | undefined;
378
388
  privacy?: boolean | undefined;
389
+ moderation?: boolean | undefined;
379
390
  }>;
380
391
  }, "strip", z.ZodTypeAny, {
381
392
  type: "bot";
@@ -385,8 +396,8 @@ export const SolutionConfigSchema: z.ZodObject<{
385
396
  backstory?: string | undefined;
386
397
  datasetId?: string | undefined;
387
398
  skillsetId?: string | undefined;
388
- moderation?: boolean | undefined;
389
399
  privacy?: boolean | undefined;
400
+ moderation?: boolean | undefined;
390
401
  };
391
402
  slug?: string | undefined;
392
403
  id?: string | undefined;
@@ -399,8 +410,8 @@ export const SolutionConfigSchema: z.ZodObject<{
399
410
  backstory?: string | undefined;
400
411
  datasetId?: string | undefined;
401
412
  skillsetId?: string | undefined;
402
- moderation?: boolean | undefined;
403
413
  privacy?: boolean | undefined;
414
+ moderation?: boolean | undefined;
404
415
  };
405
416
  slug?: string | undefined;
406
417
  id?: string | undefined;
@@ -410,6 +421,7 @@ export const SolutionConfigSchema: z.ZodObject<{
410
421
  id: z.ZodOptional<z.ZodString>;
411
422
  name: z.ZodString;
412
423
  description: z.ZodOptional<z.ZodString>;
424
+ } & {
413
425
  type: z.ZodLiteral<"dataset">;
414
426
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
415
427
  }, "strip", z.ZodTypeAny, {
@@ -431,6 +443,7 @@ export const SolutionConfigSchema: z.ZodObject<{
431
443
  id: z.ZodOptional<z.ZodString>;
432
444
  name: z.ZodString;
433
445
  description: z.ZodOptional<z.ZodString>;
446
+ } & {
434
447
  type: z.ZodLiteral<"skillset">;
435
448
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
436
449
  }, "strip", z.ZodTypeAny, {
@@ -452,6 +465,7 @@ export const SolutionConfigSchema: z.ZodObject<{
452
465
  id: z.ZodOptional<z.ZodString>;
453
466
  name: z.ZodString;
454
467
  description: z.ZodOptional<z.ZodString>;
468
+ } & {
455
469
  type: z.ZodLiteral<"widgetIntegration">;
456
470
  properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
457
471
  }, "strip", z.ZodTypeAny, {
@@ -473,6 +487,7 @@ export const SolutionConfigSchema: z.ZodObject<{
473
487
  id: z.ZodOptional<z.ZodString>;
474
488
  name: z.ZodString;
475
489
  description: z.ZodOptional<z.ZodString>;
490
+ } & {
476
491
  type: z.ZodLiteral<"sitemapIntegration">;
477
492
  properties: z.ZodObject<{
478
493
  url: z.ZodString;
@@ -515,8 +530,8 @@ export const SolutionConfigSchema: z.ZodObject<{
515
530
  backstory?: string | undefined;
516
531
  datasetId?: string | undefined;
517
532
  skillsetId?: string | undefined;
518
- moderation?: boolean | undefined;
519
533
  privacy?: boolean | undefined;
534
+ moderation?: boolean | undefined;
520
535
  };
521
536
  slug?: string | undefined;
522
537
  id?: string | undefined;
@@ -563,8 +578,8 @@ export const SolutionConfigSchema: z.ZodObject<{
563
578
  backstory?: string | undefined;
564
579
  datasetId?: string | undefined;
565
580
  skillsetId?: string | undefined;
566
- moderation?: boolean | undefined;
567
581
  privacy?: boolean | undefined;
582
+ moderation?: boolean | undefined;
568
583
  };
569
584
  slug?: string | undefined;
570
585
  id?: string | undefined;
@@ -612,8 +627,8 @@ export class Resource {
612
627
  backstory?: string | undefined;
613
628
  datasetId?: string | undefined;
614
629
  skillsetId?: string | undefined;
615
- moderation?: boolean | undefined;
616
630
  privacy?: boolean | undefined;
631
+ moderation?: boolean | undefined;
617
632
  };
618
633
  slug?: string | undefined;
619
634
  id?: string | undefined;
@@ -655,7 +670,7 @@ export class Resource {
655
670
  get id(): string | undefined;
656
671
  get name(): string;
657
672
  get description(): string | undefined;
658
- get baseClient(): ChatBotKit;
673
+ get baseClient(): import("@chatbotkit/sdk").ChatBotKit;
659
674
  get client(): {
660
675
  create: (properties: Record<string, any>) => Promise<{
661
676
  id: string;
@@ -693,8 +708,8 @@ export class Solution {
693
708
  backstory?: string | undefined;
694
709
  datasetId?: string | undefined;
695
710
  skillsetId?: string | undefined;
696
- moderation?: boolean | undefined;
697
711
  privacy?: boolean | undefined;
712
+ moderation?: boolean | undefined;
698
713
  };
699
714
  slug?: string | undefined;
700
715
  id?: string | undefined;
@@ -732,7 +747,7 @@ export class Solution {
732
747
  description?: string | undefined;
733
748
  })[];
734
749
  };
735
- get baseClient(): ChatBotKit;
750
+ get baseClient(): import("@chatbotkit/sdk").ChatBotKit;
736
751
  get resources(): (BotResource | DatasetResource | SkillsetResource | WidgetIntegrationResource | SitemapIntegrationResource)[];
737
752
  get bots(): BotResource[];
738
753
  get bot(): {
@@ -761,55 +776,7 @@ export namespace Solution {
761
776
  export function create(name: string): Promise<void>;
762
777
  function _delete(name: string): Promise<void>;
763
778
  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>;
779
+ export function load(config: string | SolutionConfig): Promise<Solution>;
813
780
  export function save(name: string, solution: Solution): Promise<void>;
814
781
  }
815
782
  export class ArrayBackedObject<T> {
@@ -819,4 +786,3 @@ export class ArrayBackedObject<T> {
819
786
  export type SolutionConfig = z.infer<typeof SolutionConfigSchema>;
820
787
  export type ResourceConfig = z.infer<typeof ResourceConfigSchema>;
821
788
  import { z } from 'zod';
822
- import ChatBotKit from '@chatbotkit/sdk';