@chatbotkit/cli 1.9.0 → 1.9.2
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/command/solution/index.cjs +1 -0
- package/dist/cjs/input.cjs +14 -1
- package/dist/cjs/input.d.ts +1 -0
- package/dist/cjs/solution/index.cjs +44 -7
- package/dist/cjs/solution/index.d.ts +25 -18
- package/dist/esm/command/solution/index.js +1 -0
- package/dist/esm/input.d.ts +1 -0
- package/dist/esm/input.js +12 -0
- package/dist/esm/solution/index.d.ts +83 -76
- package/dist/esm/solution/index.js +42 -6
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -5,34 +5,35 @@ export function getSolutionFileNameAndPath(name: string): {
|
|
|
5
5
|
fileName: string;
|
|
6
6
|
filePath: string;
|
|
7
7
|
};
|
|
8
|
+
export function replaceEnvVars(value: any): any;
|
|
8
9
|
export function getArrayBackedObject<T>(array: T[]): {
|
|
9
10
|
[key: string]: T | undefined;
|
|
10
11
|
};
|
|
11
12
|
export const BasicResourceConfigSchema: z.ZodObject<{
|
|
12
13
|
type: z.ZodString;
|
|
13
14
|
slug: z.ZodOptional<z.ZodString>;
|
|
14
|
-
id: z.ZodString
|
|
15
|
+
id: z.ZodOptional<z.ZodString>;
|
|
15
16
|
name: z.ZodString;
|
|
16
17
|
description: z.ZodOptional<z.ZodString>;
|
|
17
18
|
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
type: string;
|
|
20
|
-
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
properties: Record<string, unknown>;
|
|
23
23
|
slug?: string | undefined;
|
|
24
|
+
id?: string | undefined;
|
|
24
25
|
description?: string | undefined;
|
|
25
26
|
}, {
|
|
26
27
|
type: string;
|
|
27
|
-
id: string;
|
|
28
28
|
name: string;
|
|
29
29
|
properties: Record<string, unknown>;
|
|
30
30
|
slug?: string | undefined;
|
|
31
|
+
id?: string | undefined;
|
|
31
32
|
description?: string | undefined;
|
|
32
33
|
}>;
|
|
33
34
|
export const BotResourceConfigSchema: z.ZodObject<{
|
|
34
35
|
slug: z.ZodOptional<z.ZodString>;
|
|
35
|
-
id: z.ZodString
|
|
36
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36
37
|
name: z.ZodString;
|
|
37
38
|
description: z.ZodOptional<z.ZodString>;
|
|
38
39
|
type: z.ZodLiteral<"bot">;
|
|
@@ -60,7 +61,6 @@ export const BotResourceConfigSchema: z.ZodObject<{
|
|
|
60
61
|
}>;
|
|
61
62
|
}, "strip", z.ZodTypeAny, {
|
|
62
63
|
type: "bot";
|
|
63
|
-
id: string;
|
|
64
64
|
name: string;
|
|
65
65
|
properties: {
|
|
66
66
|
model?: string | undefined;
|
|
@@ -71,10 +71,10 @@ export const BotResourceConfigSchema: z.ZodObject<{
|
|
|
71
71
|
privacy?: boolean | undefined;
|
|
72
72
|
};
|
|
73
73
|
slug?: string | undefined;
|
|
74
|
+
id?: string | undefined;
|
|
74
75
|
description?: string | undefined;
|
|
75
76
|
}, {
|
|
76
77
|
type: "bot";
|
|
77
|
-
id: string;
|
|
78
78
|
name: string;
|
|
79
79
|
properties: {
|
|
80
80
|
model?: string | undefined;
|
|
@@ -85,77 +85,78 @@ export const BotResourceConfigSchema: z.ZodObject<{
|
|
|
85
85
|
privacy?: boolean | undefined;
|
|
86
86
|
};
|
|
87
87
|
slug?: string | undefined;
|
|
88
|
+
id?: string | undefined;
|
|
88
89
|
description?: string | undefined;
|
|
89
90
|
}>;
|
|
90
91
|
export const DatasetResourceConfigSchema: z.ZodObject<{
|
|
91
92
|
slug: z.ZodOptional<z.ZodString>;
|
|
92
|
-
id: z.ZodString
|
|
93
|
+
id: z.ZodOptional<z.ZodString>;
|
|
93
94
|
name: z.ZodString;
|
|
94
95
|
description: z.ZodOptional<z.ZodString>;
|
|
95
96
|
type: z.ZodLiteral<"dataset">;
|
|
96
97
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
97
98
|
}, "strip", z.ZodTypeAny, {
|
|
98
99
|
type: "dataset";
|
|
99
|
-
id: string;
|
|
100
100
|
name: string;
|
|
101
101
|
properties: {};
|
|
102
102
|
slug?: string | undefined;
|
|
103
|
+
id?: string | undefined;
|
|
103
104
|
description?: string | undefined;
|
|
104
105
|
}, {
|
|
105
106
|
type: "dataset";
|
|
106
|
-
id: string;
|
|
107
107
|
name: string;
|
|
108
108
|
properties: {};
|
|
109
109
|
slug?: string | undefined;
|
|
110
|
+
id?: string | undefined;
|
|
110
111
|
description?: string | undefined;
|
|
111
112
|
}>;
|
|
112
113
|
export const SkillsetResourceConfigSchema: z.ZodObject<{
|
|
113
114
|
slug: z.ZodOptional<z.ZodString>;
|
|
114
|
-
id: z.ZodString
|
|
115
|
+
id: z.ZodOptional<z.ZodString>;
|
|
115
116
|
name: z.ZodString;
|
|
116
117
|
description: z.ZodOptional<z.ZodString>;
|
|
117
118
|
type: z.ZodLiteral<"skillset">;
|
|
118
119
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
119
120
|
}, "strip", z.ZodTypeAny, {
|
|
120
121
|
type: "skillset";
|
|
121
|
-
id: string;
|
|
122
122
|
name: string;
|
|
123
123
|
properties: {};
|
|
124
124
|
slug?: string | undefined;
|
|
125
|
+
id?: string | undefined;
|
|
125
126
|
description?: string | undefined;
|
|
126
127
|
}, {
|
|
127
128
|
type: "skillset";
|
|
128
|
-
id: string;
|
|
129
129
|
name: string;
|
|
130
130
|
properties: {};
|
|
131
131
|
slug?: string | undefined;
|
|
132
|
+
id?: string | undefined;
|
|
132
133
|
description?: string | undefined;
|
|
133
134
|
}>;
|
|
134
135
|
export const WidgetIntegrationResourceConfigSchema: z.ZodObject<{
|
|
135
136
|
slug: z.ZodOptional<z.ZodString>;
|
|
136
|
-
id: z.ZodString
|
|
137
|
+
id: z.ZodOptional<z.ZodString>;
|
|
137
138
|
name: z.ZodString;
|
|
138
139
|
description: z.ZodOptional<z.ZodString>;
|
|
139
140
|
type: z.ZodLiteral<"widgetIntegration">;
|
|
140
141
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
141
142
|
}, "strip", z.ZodTypeAny, {
|
|
142
143
|
type: "widgetIntegration";
|
|
143
|
-
id: string;
|
|
144
144
|
name: string;
|
|
145
145
|
properties: {};
|
|
146
146
|
slug?: string | undefined;
|
|
147
|
+
id?: string | undefined;
|
|
147
148
|
description?: string | undefined;
|
|
148
149
|
}, {
|
|
149
150
|
type: "widgetIntegration";
|
|
150
|
-
id: string;
|
|
151
151
|
name: string;
|
|
152
152
|
properties: {};
|
|
153
153
|
slug?: string | undefined;
|
|
154
|
+
id?: string | undefined;
|
|
154
155
|
description?: string | undefined;
|
|
155
156
|
}>;
|
|
156
157
|
export const SitemapIntegrationResourceConfigSchema: z.ZodObject<{
|
|
157
158
|
slug: z.ZodOptional<z.ZodString>;
|
|
158
|
-
id: z.ZodString
|
|
159
|
+
id: z.ZodOptional<z.ZodString>;
|
|
159
160
|
name: z.ZodString;
|
|
160
161
|
description: z.ZodOptional<z.ZodString>;
|
|
161
162
|
type: z.ZodLiteral<"sitemapIntegration">;
|
|
@@ -171,28 +172,28 @@ export const SitemapIntegrationResourceConfigSchema: z.ZodObject<{
|
|
|
171
172
|
}>;
|
|
172
173
|
}, "strip", z.ZodTypeAny, {
|
|
173
174
|
type: "sitemapIntegration";
|
|
174
|
-
id: string;
|
|
175
175
|
name: string;
|
|
176
176
|
properties: {
|
|
177
177
|
datasetId: string;
|
|
178
178
|
url: string;
|
|
179
179
|
};
|
|
180
180
|
slug?: string | undefined;
|
|
181
|
+
id?: string | undefined;
|
|
181
182
|
description?: string | undefined;
|
|
182
183
|
}, {
|
|
183
184
|
type: "sitemapIntegration";
|
|
184
|
-
id: string;
|
|
185
185
|
name: string;
|
|
186
186
|
properties: {
|
|
187
187
|
datasetId: string;
|
|
188
188
|
url: string;
|
|
189
189
|
};
|
|
190
190
|
slug?: string | undefined;
|
|
191
|
+
id?: string | undefined;
|
|
191
192
|
description?: string | undefined;
|
|
192
193
|
}>;
|
|
193
194
|
export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
|
|
194
195
|
slug: z.ZodOptional<z.ZodString>;
|
|
195
|
-
id: z.ZodString
|
|
196
|
+
id: z.ZodOptional<z.ZodString>;
|
|
196
197
|
name: z.ZodString;
|
|
197
198
|
description: z.ZodOptional<z.ZodString>;
|
|
198
199
|
type: z.ZodLiteral<"bot">;
|
|
@@ -220,7 +221,6 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
220
221
|
}>;
|
|
221
222
|
}, "strip", z.ZodTypeAny, {
|
|
222
223
|
type: "bot";
|
|
223
|
-
id: string;
|
|
224
224
|
name: string;
|
|
225
225
|
properties: {
|
|
226
226
|
model?: string | undefined;
|
|
@@ -231,10 +231,10 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
231
231
|
privacy?: boolean | undefined;
|
|
232
232
|
};
|
|
233
233
|
slug?: string | undefined;
|
|
234
|
+
id?: string | undefined;
|
|
234
235
|
description?: string | undefined;
|
|
235
236
|
}, {
|
|
236
237
|
type: "bot";
|
|
237
|
-
id: string;
|
|
238
238
|
name: string;
|
|
239
239
|
properties: {
|
|
240
240
|
model?: string | undefined;
|
|
@@ -245,73 +245,74 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
245
245
|
privacy?: boolean | undefined;
|
|
246
246
|
};
|
|
247
247
|
slug?: string | undefined;
|
|
248
|
+
id?: string | undefined;
|
|
248
249
|
description?: string | undefined;
|
|
249
250
|
}>, z.ZodObject<{
|
|
250
251
|
slug: z.ZodOptional<z.ZodString>;
|
|
251
|
-
id: z.ZodString
|
|
252
|
+
id: z.ZodOptional<z.ZodString>;
|
|
252
253
|
name: z.ZodString;
|
|
253
254
|
description: z.ZodOptional<z.ZodString>;
|
|
254
255
|
type: z.ZodLiteral<"dataset">;
|
|
255
256
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
256
257
|
}, "strip", z.ZodTypeAny, {
|
|
257
258
|
type: "dataset";
|
|
258
|
-
id: string;
|
|
259
259
|
name: string;
|
|
260
260
|
properties: {};
|
|
261
261
|
slug?: string | undefined;
|
|
262
|
+
id?: string | undefined;
|
|
262
263
|
description?: string | undefined;
|
|
263
264
|
}, {
|
|
264
265
|
type: "dataset";
|
|
265
|
-
id: string;
|
|
266
266
|
name: string;
|
|
267
267
|
properties: {};
|
|
268
268
|
slug?: string | undefined;
|
|
269
|
+
id?: string | undefined;
|
|
269
270
|
description?: string | undefined;
|
|
270
271
|
}>, z.ZodObject<{
|
|
271
272
|
slug: z.ZodOptional<z.ZodString>;
|
|
272
|
-
id: z.ZodString
|
|
273
|
+
id: z.ZodOptional<z.ZodString>;
|
|
273
274
|
name: z.ZodString;
|
|
274
275
|
description: z.ZodOptional<z.ZodString>;
|
|
275
276
|
type: z.ZodLiteral<"skillset">;
|
|
276
277
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
277
278
|
}, "strip", z.ZodTypeAny, {
|
|
278
279
|
type: "skillset";
|
|
279
|
-
id: string;
|
|
280
280
|
name: string;
|
|
281
281
|
properties: {};
|
|
282
282
|
slug?: string | undefined;
|
|
283
|
+
id?: string | undefined;
|
|
283
284
|
description?: string | undefined;
|
|
284
285
|
}, {
|
|
285
286
|
type: "skillset";
|
|
286
|
-
id: string;
|
|
287
287
|
name: string;
|
|
288
288
|
properties: {};
|
|
289
289
|
slug?: string | undefined;
|
|
290
|
+
id?: string | undefined;
|
|
290
291
|
description?: string | undefined;
|
|
291
292
|
}>, z.ZodObject<{
|
|
292
293
|
slug: z.ZodOptional<z.ZodString>;
|
|
293
|
-
id: z.ZodString
|
|
294
|
+
id: z.ZodOptional<z.ZodString>;
|
|
294
295
|
name: z.ZodString;
|
|
295
296
|
description: z.ZodOptional<z.ZodString>;
|
|
296
297
|
type: z.ZodLiteral<"widgetIntegration">;
|
|
297
298
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
298
299
|
}, "strip", z.ZodTypeAny, {
|
|
299
300
|
type: "widgetIntegration";
|
|
300
|
-
id: string;
|
|
301
301
|
name: string;
|
|
302
302
|
properties: {};
|
|
303
303
|
slug?: string | undefined;
|
|
304
|
+
id?: string | undefined;
|
|
304
305
|
description?: string | undefined;
|
|
305
306
|
}, {
|
|
306
307
|
type: "widgetIntegration";
|
|
307
|
-
id: string;
|
|
308
308
|
name: string;
|
|
309
309
|
properties: {};
|
|
310
310
|
slug?: string | undefined;
|
|
311
|
+
id?: string | undefined;
|
|
311
312
|
description?: string | undefined;
|
|
312
313
|
}>, z.ZodObject<{
|
|
313
314
|
slug: z.ZodOptional<z.ZodString>;
|
|
314
|
-
id: z.ZodString
|
|
315
|
+
id: z.ZodOptional<z.ZodString>;
|
|
315
316
|
name: z.ZodString;
|
|
316
317
|
description: z.ZodOptional<z.ZodString>;
|
|
317
318
|
type: z.ZodLiteral<"sitemapIntegration">;
|
|
@@ -327,30 +328,30 @@ export const ResourceConfigSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
327
328
|
}>;
|
|
328
329
|
}, "strip", z.ZodTypeAny, {
|
|
329
330
|
type: "sitemapIntegration";
|
|
330
|
-
id: string;
|
|
331
331
|
name: string;
|
|
332
332
|
properties: {
|
|
333
333
|
datasetId: string;
|
|
334
334
|
url: string;
|
|
335
335
|
};
|
|
336
336
|
slug?: string | undefined;
|
|
337
|
+
id?: string | undefined;
|
|
337
338
|
description?: string | undefined;
|
|
338
339
|
}, {
|
|
339
340
|
type: "sitemapIntegration";
|
|
340
|
-
id: string;
|
|
341
341
|
name: string;
|
|
342
342
|
properties: {
|
|
343
343
|
datasetId: string;
|
|
344
344
|
url: string;
|
|
345
345
|
};
|
|
346
346
|
slug?: string | undefined;
|
|
347
|
+
id?: string | undefined;
|
|
347
348
|
description?: string | undefined;
|
|
348
349
|
}>]>;
|
|
349
350
|
export const SolutionConfigSchema: z.ZodObject<{
|
|
350
351
|
version: z.ZodLiteral<1>;
|
|
351
352
|
resources: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
352
353
|
slug: z.ZodOptional<z.ZodString>;
|
|
353
|
-
id: z.ZodString
|
|
354
|
+
id: z.ZodOptional<z.ZodString>;
|
|
354
355
|
name: z.ZodString;
|
|
355
356
|
description: z.ZodOptional<z.ZodString>;
|
|
356
357
|
type: z.ZodLiteral<"bot">;
|
|
@@ -378,7 +379,6 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
378
379
|
}>;
|
|
379
380
|
}, "strip", z.ZodTypeAny, {
|
|
380
381
|
type: "bot";
|
|
381
|
-
id: string;
|
|
382
382
|
name: string;
|
|
383
383
|
properties: {
|
|
384
384
|
model?: string | undefined;
|
|
@@ -389,10 +389,10 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
389
389
|
privacy?: boolean | undefined;
|
|
390
390
|
};
|
|
391
391
|
slug?: string | undefined;
|
|
392
|
+
id?: string | undefined;
|
|
392
393
|
description?: string | undefined;
|
|
393
394
|
}, {
|
|
394
395
|
type: "bot";
|
|
395
|
-
id: string;
|
|
396
396
|
name: string;
|
|
397
397
|
properties: {
|
|
398
398
|
model?: string | undefined;
|
|
@@ -403,73 +403,74 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
403
403
|
privacy?: boolean | undefined;
|
|
404
404
|
};
|
|
405
405
|
slug?: string | undefined;
|
|
406
|
+
id?: string | undefined;
|
|
406
407
|
description?: string | undefined;
|
|
407
408
|
}>, z.ZodObject<{
|
|
408
409
|
slug: z.ZodOptional<z.ZodString>;
|
|
409
|
-
id: z.ZodString
|
|
410
|
+
id: z.ZodOptional<z.ZodString>;
|
|
410
411
|
name: z.ZodString;
|
|
411
412
|
description: z.ZodOptional<z.ZodString>;
|
|
412
413
|
type: z.ZodLiteral<"dataset">;
|
|
413
414
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
414
415
|
}, "strip", z.ZodTypeAny, {
|
|
415
416
|
type: "dataset";
|
|
416
|
-
id: string;
|
|
417
417
|
name: string;
|
|
418
418
|
properties: {};
|
|
419
419
|
slug?: string | undefined;
|
|
420
|
+
id?: string | undefined;
|
|
420
421
|
description?: string | undefined;
|
|
421
422
|
}, {
|
|
422
423
|
type: "dataset";
|
|
423
|
-
id: string;
|
|
424
424
|
name: string;
|
|
425
425
|
properties: {};
|
|
426
426
|
slug?: string | undefined;
|
|
427
|
+
id?: string | undefined;
|
|
427
428
|
description?: string | undefined;
|
|
428
429
|
}>, z.ZodObject<{
|
|
429
430
|
slug: z.ZodOptional<z.ZodString>;
|
|
430
|
-
id: z.ZodString
|
|
431
|
+
id: z.ZodOptional<z.ZodString>;
|
|
431
432
|
name: z.ZodString;
|
|
432
433
|
description: z.ZodOptional<z.ZodString>;
|
|
433
434
|
type: z.ZodLiteral<"skillset">;
|
|
434
435
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
435
436
|
}, "strip", z.ZodTypeAny, {
|
|
436
437
|
type: "skillset";
|
|
437
|
-
id: string;
|
|
438
438
|
name: string;
|
|
439
439
|
properties: {};
|
|
440
440
|
slug?: string | undefined;
|
|
441
|
+
id?: string | undefined;
|
|
441
442
|
description?: string | undefined;
|
|
442
443
|
}, {
|
|
443
444
|
type: "skillset";
|
|
444
|
-
id: string;
|
|
445
445
|
name: string;
|
|
446
446
|
properties: {};
|
|
447
447
|
slug?: string | undefined;
|
|
448
|
+
id?: string | undefined;
|
|
448
449
|
description?: string | undefined;
|
|
449
450
|
}>, z.ZodObject<{
|
|
450
451
|
slug: z.ZodOptional<z.ZodString>;
|
|
451
|
-
id: z.ZodString
|
|
452
|
+
id: z.ZodOptional<z.ZodString>;
|
|
452
453
|
name: z.ZodString;
|
|
453
454
|
description: z.ZodOptional<z.ZodString>;
|
|
454
455
|
type: z.ZodLiteral<"widgetIntegration">;
|
|
455
456
|
properties: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
456
457
|
}, "strip", z.ZodTypeAny, {
|
|
457
458
|
type: "widgetIntegration";
|
|
458
|
-
id: string;
|
|
459
459
|
name: string;
|
|
460
460
|
properties: {};
|
|
461
461
|
slug?: string | undefined;
|
|
462
|
+
id?: string | undefined;
|
|
462
463
|
description?: string | undefined;
|
|
463
464
|
}, {
|
|
464
465
|
type: "widgetIntegration";
|
|
465
|
-
id: string;
|
|
466
466
|
name: string;
|
|
467
467
|
properties: {};
|
|
468
468
|
slug?: string | undefined;
|
|
469
|
+
id?: string | undefined;
|
|
469
470
|
description?: string | undefined;
|
|
470
471
|
}>, z.ZodObject<{
|
|
471
472
|
slug: z.ZodOptional<z.ZodString>;
|
|
472
|
-
id: z.ZodString
|
|
473
|
+
id: z.ZodOptional<z.ZodString>;
|
|
473
474
|
name: z.ZodString;
|
|
474
475
|
description: z.ZodOptional<z.ZodString>;
|
|
475
476
|
type: z.ZodLiteral<"sitemapIntegration">;
|
|
@@ -485,30 +486,29 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
485
486
|
}>;
|
|
486
487
|
}, "strip", z.ZodTypeAny, {
|
|
487
488
|
type: "sitemapIntegration";
|
|
488
|
-
id: string;
|
|
489
489
|
name: string;
|
|
490
490
|
properties: {
|
|
491
491
|
datasetId: string;
|
|
492
492
|
url: string;
|
|
493
493
|
};
|
|
494
494
|
slug?: string | undefined;
|
|
495
|
+
id?: string | undefined;
|
|
495
496
|
description?: string | undefined;
|
|
496
497
|
}, {
|
|
497
498
|
type: "sitemapIntegration";
|
|
498
|
-
id: string;
|
|
499
499
|
name: string;
|
|
500
500
|
properties: {
|
|
501
501
|
datasetId: string;
|
|
502
502
|
url: string;
|
|
503
503
|
};
|
|
504
504
|
slug?: string | undefined;
|
|
505
|
+
id?: string | undefined;
|
|
505
506
|
description?: string | undefined;
|
|
506
507
|
}>]>, "many">;
|
|
507
508
|
}, "strip", z.ZodTypeAny, {
|
|
508
509
|
version: 1;
|
|
509
510
|
resources: ({
|
|
510
511
|
type: "bot";
|
|
511
|
-
id: string;
|
|
512
512
|
name: string;
|
|
513
513
|
properties: {
|
|
514
514
|
model?: string | undefined;
|
|
@@ -519,44 +519,44 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
519
519
|
privacy?: boolean | undefined;
|
|
520
520
|
};
|
|
521
521
|
slug?: string | undefined;
|
|
522
|
+
id?: string | undefined;
|
|
522
523
|
description?: string | undefined;
|
|
523
524
|
} | {
|
|
524
525
|
type: "dataset";
|
|
525
|
-
id: string;
|
|
526
526
|
name: string;
|
|
527
527
|
properties: {};
|
|
528
528
|
slug?: string | undefined;
|
|
529
|
+
id?: string | undefined;
|
|
529
530
|
description?: string | undefined;
|
|
530
531
|
} | {
|
|
531
532
|
type: "skillset";
|
|
532
|
-
id: string;
|
|
533
533
|
name: string;
|
|
534
534
|
properties: {};
|
|
535
535
|
slug?: string | undefined;
|
|
536
|
+
id?: string | undefined;
|
|
536
537
|
description?: string | undefined;
|
|
537
538
|
} | {
|
|
538
539
|
type: "widgetIntegration";
|
|
539
|
-
id: string;
|
|
540
540
|
name: string;
|
|
541
541
|
properties: {};
|
|
542
542
|
slug?: string | undefined;
|
|
543
|
+
id?: string | undefined;
|
|
543
544
|
description?: string | undefined;
|
|
544
545
|
} | {
|
|
545
546
|
type: "sitemapIntegration";
|
|
546
|
-
id: string;
|
|
547
547
|
name: string;
|
|
548
548
|
properties: {
|
|
549
549
|
datasetId: string;
|
|
550
550
|
url: string;
|
|
551
551
|
};
|
|
552
552
|
slug?: string | undefined;
|
|
553
|
+
id?: string | undefined;
|
|
553
554
|
description?: string | undefined;
|
|
554
555
|
})[];
|
|
555
556
|
}, {
|
|
556
557
|
version: 1;
|
|
557
558
|
resources: ({
|
|
558
559
|
type: "bot";
|
|
559
|
-
id: string;
|
|
560
560
|
name: string;
|
|
561
561
|
properties: {
|
|
562
562
|
model?: string | undefined;
|
|
@@ -567,37 +567,38 @@ export const SolutionConfigSchema: z.ZodObject<{
|
|
|
567
567
|
privacy?: boolean | undefined;
|
|
568
568
|
};
|
|
569
569
|
slug?: string | undefined;
|
|
570
|
+
id?: string | undefined;
|
|
570
571
|
description?: string | undefined;
|
|
571
572
|
} | {
|
|
572
573
|
type: "dataset";
|
|
573
|
-
id: string;
|
|
574
574
|
name: string;
|
|
575
575
|
properties: {};
|
|
576
576
|
slug?: string | undefined;
|
|
577
|
+
id?: string | undefined;
|
|
577
578
|
description?: string | undefined;
|
|
578
579
|
} | {
|
|
579
580
|
type: "skillset";
|
|
580
|
-
id: string;
|
|
581
581
|
name: string;
|
|
582
582
|
properties: {};
|
|
583
583
|
slug?: string | undefined;
|
|
584
|
+
id?: string | undefined;
|
|
584
585
|
description?: string | undefined;
|
|
585
586
|
} | {
|
|
586
587
|
type: "widgetIntegration";
|
|
587
|
-
id: string;
|
|
588
588
|
name: string;
|
|
589
589
|
properties: {};
|
|
590
590
|
slug?: string | undefined;
|
|
591
|
+
id?: string | undefined;
|
|
591
592
|
description?: string | undefined;
|
|
592
593
|
} | {
|
|
593
594
|
type: "sitemapIntegration";
|
|
594
|
-
id: string;
|
|
595
595
|
name: string;
|
|
596
596
|
properties: {
|
|
597
597
|
datasetId: string;
|
|
598
598
|
url: string;
|
|
599
599
|
};
|
|
600
600
|
slug?: string | undefined;
|
|
601
|
+
id?: string | undefined;
|
|
601
602
|
description?: string | undefined;
|
|
602
603
|
})[];
|
|
603
604
|
}>;
|
|
@@ -605,7 +606,6 @@ export class Resource {
|
|
|
605
606
|
constructor(config: ResourceConfig);
|
|
606
607
|
config: {
|
|
607
608
|
type: "bot";
|
|
608
|
-
id: string;
|
|
609
609
|
name: string;
|
|
610
610
|
properties: {
|
|
611
611
|
model?: string | undefined;
|
|
@@ -616,47 +616,53 @@ export class Resource {
|
|
|
616
616
|
privacy?: boolean | undefined;
|
|
617
617
|
};
|
|
618
618
|
slug?: string | undefined;
|
|
619
|
+
id?: string | undefined;
|
|
619
620
|
description?: string | undefined;
|
|
620
621
|
} | {
|
|
621
622
|
type: "dataset";
|
|
622
|
-
id: string;
|
|
623
623
|
name: string;
|
|
624
624
|
properties: {};
|
|
625
625
|
slug?: string | undefined;
|
|
626
|
+
id?: string | undefined;
|
|
626
627
|
description?: string | undefined;
|
|
627
628
|
} | {
|
|
628
629
|
type: "skillset";
|
|
629
|
-
id: string;
|
|
630
630
|
name: string;
|
|
631
631
|
properties: {};
|
|
632
632
|
slug?: string | undefined;
|
|
633
|
+
id?: string | undefined;
|
|
633
634
|
description?: string | undefined;
|
|
634
635
|
} | {
|
|
635
636
|
type: "widgetIntegration";
|
|
636
|
-
id: string;
|
|
637
637
|
name: string;
|
|
638
638
|
properties: {};
|
|
639
639
|
slug?: string | undefined;
|
|
640
|
+
id?: string | undefined;
|
|
640
641
|
description?: string | undefined;
|
|
641
642
|
} | {
|
|
642
643
|
type: "sitemapIntegration";
|
|
643
|
-
id: string;
|
|
644
644
|
name: string;
|
|
645
645
|
properties: {
|
|
646
646
|
datasetId: string;
|
|
647
647
|
url: string;
|
|
648
648
|
};
|
|
649
649
|
slug?: string | undefined;
|
|
650
|
+
id?: string | undefined;
|
|
650
651
|
description?: string | undefined;
|
|
651
652
|
};
|
|
652
653
|
get type(): string;
|
|
653
654
|
get slug(): string;
|
|
654
|
-
get id(): string;
|
|
655
|
+
get id(): string | undefined;
|
|
655
656
|
get name(): string;
|
|
656
657
|
get description(): string | undefined;
|
|
657
658
|
get baseClient(): ChatBotKit;
|
|
658
659
|
get client(): {
|
|
659
|
-
|
|
660
|
+
create: (properties: Record<string, any>) => Promise<{
|
|
661
|
+
id: string;
|
|
662
|
+
}>;
|
|
663
|
+
update: (id: string, properties: Record<string, any>) => Promise<{
|
|
664
|
+
id: string;
|
|
665
|
+
}>;
|
|
660
666
|
};
|
|
661
667
|
sync(): Promise<void>;
|
|
662
668
|
}
|
|
@@ -673,7 +679,7 @@ export class WidgetIntegrationResource extends Resource {
|
|
|
673
679
|
override get client(): import("@chatbotkit/sdk/integration/widget").WidgetIntegrationClient;
|
|
674
680
|
}
|
|
675
681
|
export class SitemapIntegrationResource extends Resource {
|
|
676
|
-
|
|
682
|
+
get client(): import("@chatbotkit/sdk/integration/sitemap").SitemapIntegrationClient;
|
|
677
683
|
}
|
|
678
684
|
export class Solution {
|
|
679
685
|
constructor(config: SolutionConfig);
|
|
@@ -681,7 +687,6 @@ export class Solution {
|
|
|
681
687
|
version: 1;
|
|
682
688
|
resources: ({
|
|
683
689
|
type: "bot";
|
|
684
|
-
id: string;
|
|
685
690
|
name: string;
|
|
686
691
|
properties: {
|
|
687
692
|
model?: string | undefined;
|
|
@@ -692,37 +697,38 @@ export class Solution {
|
|
|
692
697
|
privacy?: boolean | undefined;
|
|
693
698
|
};
|
|
694
699
|
slug?: string | undefined;
|
|
700
|
+
id?: string | undefined;
|
|
695
701
|
description?: string | undefined;
|
|
696
702
|
} | {
|
|
697
703
|
type: "dataset";
|
|
698
|
-
id: string;
|
|
699
704
|
name: string;
|
|
700
705
|
properties: {};
|
|
701
706
|
slug?: string | undefined;
|
|
707
|
+
id?: string | undefined;
|
|
702
708
|
description?: string | undefined;
|
|
703
709
|
} | {
|
|
704
710
|
type: "skillset";
|
|
705
|
-
id: string;
|
|
706
711
|
name: string;
|
|
707
712
|
properties: {};
|
|
708
713
|
slug?: string | undefined;
|
|
714
|
+
id?: string | undefined;
|
|
709
715
|
description?: string | undefined;
|
|
710
716
|
} | {
|
|
711
717
|
type: "widgetIntegration";
|
|
712
|
-
id: string;
|
|
713
718
|
name: string;
|
|
714
719
|
properties: {};
|
|
715
720
|
slug?: string | undefined;
|
|
721
|
+
id?: string | undefined;
|
|
716
722
|
description?: string | undefined;
|
|
717
723
|
} | {
|
|
718
724
|
type: "sitemapIntegration";
|
|
719
|
-
id: string;
|
|
720
725
|
name: string;
|
|
721
726
|
properties: {
|
|
722
727
|
datasetId: string;
|
|
723
728
|
url: string;
|
|
724
729
|
};
|
|
725
730
|
slug?: string | undefined;
|
|
731
|
+
id?: string | undefined;
|
|
726
732
|
description?: string | undefined;
|
|
727
733
|
})[];
|
|
728
734
|
};
|
|
@@ -759,7 +765,6 @@ export namespace Solution {
|
|
|
759
765
|
version: 1;
|
|
760
766
|
resources: ({
|
|
761
767
|
type: "bot";
|
|
762
|
-
id: string;
|
|
763
768
|
name: string;
|
|
764
769
|
properties: {
|
|
765
770
|
model?: string | undefined;
|
|
@@ -770,40 +775,42 @@ export namespace Solution {
|
|
|
770
775
|
privacy?: boolean | undefined;
|
|
771
776
|
};
|
|
772
777
|
slug?: string | undefined;
|
|
778
|
+
id?: string | undefined;
|
|
773
779
|
description?: string | undefined;
|
|
774
780
|
} | {
|
|
775
781
|
type: "dataset";
|
|
776
|
-
id: string;
|
|
777
782
|
name: string;
|
|
778
783
|
properties: {};
|
|
779
784
|
slug?: string | undefined;
|
|
785
|
+
id?: string | undefined;
|
|
780
786
|
description?: string | undefined;
|
|
781
787
|
} | {
|
|
782
788
|
type: "skillset";
|
|
783
|
-
id: string;
|
|
784
789
|
name: string;
|
|
785
790
|
properties: {};
|
|
786
791
|
slug?: string | undefined;
|
|
792
|
+
id?: string | undefined;
|
|
787
793
|
description?: string | undefined;
|
|
788
794
|
} | {
|
|
789
795
|
type: "widgetIntegration";
|
|
790
|
-
id: string;
|
|
791
796
|
name: string;
|
|
792
797
|
properties: {};
|
|
793
798
|
slug?: string | undefined;
|
|
799
|
+
id?: string | undefined;
|
|
794
800
|
description?: string | undefined;
|
|
795
801
|
} | {
|
|
796
802
|
type: "sitemapIntegration";
|
|
797
|
-
id: string;
|
|
798
803
|
name: string;
|
|
799
804
|
properties: {
|
|
800
805
|
datasetId: string;
|
|
801
806
|
url: string;
|
|
802
807
|
};
|
|
803
808
|
slug?: string | undefined;
|
|
809
|
+
id?: string | undefined;
|
|
804
810
|
description?: string | undefined;
|
|
805
811
|
})[];
|
|
806
812
|
}): Promise<Solution>;
|
|
813
|
+
export function save(name: string, solution: Solution): Promise<void>;
|
|
807
814
|
}
|
|
808
815
|
export class ArrayBackedObject<T> {
|
|
809
816
|
constructor(array: T[]);
|