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