@botpress/webchat 2.1.3 → 2.1.5
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/.turbo/turbo-build.log +9 -9
- package/dist/adapters/messaging-to-target.d.ts +12 -12
- package/dist/adapters/webchat-to-target.d.ts +6 -6
- package/dist/components/Block.d.ts +1 -1
- package/dist/gen/client/models.d.ts +19 -3
- package/dist/gen/client/operations/createEvent.d.ts +6 -6
- package/dist/gen/client/operations/createMessage.d.ts +32 -0
- package/dist/gen/client/operations/getEvent.d.ts +3 -3
- package/dist/gen/client/operations/getMessage.d.ts +16 -0
- package/dist/gen/client/operations/listConversationMessages.d.ts +16 -0
- package/dist/gen/signals/custom.j.d.ts +3 -24
- package/dist/gen/signals/custom.t.d.ts +0 -5
- package/dist/gen/signals/custom.z.d.ts +1 -1
- package/dist/gen/signals/index.d.ts +27 -592
- package/dist/gen/signals/messageCreated.j.d.ts +3 -501
- package/dist/gen/signals/messageCreated.t.d.ts +34 -5
- package/dist/gen/signals/messageCreated.z.d.ts +18 -18
- package/dist/gen/signals/webchatConfig.j.d.ts +3 -24
- package/dist/gen/signals/webchatConfig.t.d.ts +0 -5
- package/dist/gen/signals/webchatConfig.z.d.ts +1 -1
- package/dist/gen/signals/webchatVisibility.j.d.ts +3 -24
- package/dist/gen/signals/webchatVisibility.t.d.ts +0 -5
- package/dist/gen/signals/webchatVisibility.z.d.ts +1 -1
- package/dist/{index-d2d96fc2.js → index-ba8c56be.js} +31978 -31717
- package/dist/{index-2c165908.js → index-e890d9a1.js} +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +19 -18
- package/dist/index.umd.cjs +182 -182
- package/dist/schemas/init.d.ts +14 -14
- package/dist/schemas/theme.d.ts +8 -8
- package/dist/stores/webchatStore.d.ts +5 -0
- package/dist/types/block-type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -36,8 +36,8 @@ declare const _default: z.ZodObject<{
|
|
|
36
36
|
type: z.ZodLiteral<"card">;
|
|
37
37
|
className: z.ZodOptional<z.ZodString>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
title: string;
|
|
40
39
|
type: "card";
|
|
40
|
+
title: string;
|
|
41
41
|
actions: {
|
|
42
42
|
value: string;
|
|
43
43
|
action: "url" | "postback" | "say";
|
|
@@ -47,8 +47,8 @@ declare const _default: z.ZodObject<{
|
|
|
47
47
|
imageUrl?: string | undefined;
|
|
48
48
|
className?: string | undefined;
|
|
49
49
|
}, {
|
|
50
|
-
title: string;
|
|
51
50
|
type: "card";
|
|
51
|
+
title: string;
|
|
52
52
|
actions: {
|
|
53
53
|
value: string;
|
|
54
54
|
action: "url" | "postback" | "say";
|
|
@@ -143,20 +143,20 @@ declare const _default: z.ZodObject<{
|
|
|
143
143
|
type: z.ZodLiteral<"choice">;
|
|
144
144
|
disableFreeText: z.ZodOptional<z.ZodBoolean>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
type: "choice";
|
|
146
147
|
options: {
|
|
147
148
|
value: string;
|
|
148
149
|
label: string;
|
|
149
150
|
}[];
|
|
150
|
-
type: "choice";
|
|
151
151
|
text: string;
|
|
152
152
|
className?: string | undefined;
|
|
153
153
|
disableFreeText?: boolean | undefined;
|
|
154
154
|
}, {
|
|
155
|
+
type: "choice";
|
|
155
156
|
options: {
|
|
156
157
|
value: string;
|
|
157
158
|
label: string;
|
|
158
159
|
}[];
|
|
159
|
-
type: "choice";
|
|
160
160
|
text: string;
|
|
161
161
|
className?: string | undefined;
|
|
162
162
|
disableFreeText?: boolean | undefined;
|
|
@@ -175,19 +175,19 @@ declare const _default: z.ZodObject<{
|
|
|
175
175
|
className: z.ZodOptional<z.ZodString>;
|
|
176
176
|
type: z.ZodLiteral<"dropdown">;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
type: "dropdown";
|
|
178
179
|
options: {
|
|
179
180
|
value: string;
|
|
180
181
|
label: string;
|
|
181
182
|
}[];
|
|
182
|
-
type: "dropdown";
|
|
183
183
|
text: string;
|
|
184
184
|
className?: string | undefined;
|
|
185
185
|
}, {
|
|
186
|
+
type: "dropdown";
|
|
186
187
|
options: {
|
|
187
188
|
value: string;
|
|
188
189
|
label: string;
|
|
189
190
|
}[];
|
|
190
|
-
type: "dropdown";
|
|
191
191
|
text: string;
|
|
192
192
|
className?: string | undefined;
|
|
193
193
|
}>, z.ZodObject<{
|
|
@@ -283,8 +283,8 @@ declare const _default: z.ZodObject<{
|
|
|
283
283
|
audioUrl: string;
|
|
284
284
|
className?: string | undefined;
|
|
285
285
|
} | {
|
|
286
|
-
title: string;
|
|
287
286
|
type: "card";
|
|
287
|
+
title: string;
|
|
288
288
|
actions: {
|
|
289
289
|
value: string;
|
|
290
290
|
action: "url" | "postback" | "say";
|
|
@@ -308,20 +308,20 @@ declare const _default: z.ZodObject<{
|
|
|
308
308
|
}[];
|
|
309
309
|
className?: string | undefined;
|
|
310
310
|
} | {
|
|
311
|
+
type: "choice";
|
|
311
312
|
options: {
|
|
312
313
|
value: string;
|
|
313
314
|
label: string;
|
|
314
315
|
}[];
|
|
315
|
-
type: "choice";
|
|
316
316
|
text: string;
|
|
317
317
|
className?: string | undefined;
|
|
318
318
|
disableFreeText?: boolean | undefined;
|
|
319
319
|
} | {
|
|
320
|
+
type: "dropdown";
|
|
320
321
|
options: {
|
|
321
322
|
value: string;
|
|
322
323
|
label: string;
|
|
323
324
|
}[];
|
|
324
|
-
type: "dropdown";
|
|
325
325
|
text: string;
|
|
326
326
|
className?: string | undefined;
|
|
327
327
|
} | {
|
|
@@ -363,8 +363,8 @@ declare const _default: z.ZodObject<{
|
|
|
363
363
|
audioUrl: string;
|
|
364
364
|
className?: string | undefined;
|
|
365
365
|
} | {
|
|
366
|
-
title: string;
|
|
367
366
|
type: "card";
|
|
367
|
+
title: string;
|
|
368
368
|
actions: {
|
|
369
369
|
value: string;
|
|
370
370
|
action: "url" | "postback" | "say";
|
|
@@ -388,20 +388,20 @@ declare const _default: z.ZodObject<{
|
|
|
388
388
|
}[];
|
|
389
389
|
className?: string | undefined;
|
|
390
390
|
} | {
|
|
391
|
+
type: "choice";
|
|
391
392
|
options: {
|
|
392
393
|
value: string;
|
|
393
394
|
label: string;
|
|
394
395
|
}[];
|
|
395
|
-
type: "choice";
|
|
396
396
|
text: string;
|
|
397
397
|
className?: string | undefined;
|
|
398
398
|
disableFreeText?: boolean | undefined;
|
|
399
399
|
} | {
|
|
400
|
+
type: "dropdown";
|
|
400
401
|
options: {
|
|
401
402
|
value: string;
|
|
402
403
|
label: string;
|
|
403
404
|
}[];
|
|
404
|
-
type: "dropdown";
|
|
405
405
|
text: string;
|
|
406
406
|
className?: string | undefined;
|
|
407
407
|
} | {
|
|
@@ -446,8 +446,8 @@ declare const _default: z.ZodObject<{
|
|
|
446
446
|
audioUrl: string;
|
|
447
447
|
className?: string | undefined;
|
|
448
448
|
} | {
|
|
449
|
-
title: string;
|
|
450
449
|
type: "card";
|
|
450
|
+
title: string;
|
|
451
451
|
actions: {
|
|
452
452
|
value: string;
|
|
453
453
|
action: "url" | "postback" | "say";
|
|
@@ -471,20 +471,20 @@ declare const _default: z.ZodObject<{
|
|
|
471
471
|
}[];
|
|
472
472
|
className?: string | undefined;
|
|
473
473
|
} | {
|
|
474
|
+
type: "choice";
|
|
474
475
|
options: {
|
|
475
476
|
value: string;
|
|
476
477
|
label: string;
|
|
477
478
|
}[];
|
|
478
|
-
type: "choice";
|
|
479
479
|
text: string;
|
|
480
480
|
className?: string | undefined;
|
|
481
481
|
disableFreeText?: boolean | undefined;
|
|
482
482
|
} | {
|
|
483
|
+
type: "dropdown";
|
|
483
484
|
options: {
|
|
484
485
|
value: string;
|
|
485
486
|
label: string;
|
|
486
487
|
}[];
|
|
487
|
-
type: "dropdown";
|
|
488
488
|
text: string;
|
|
489
489
|
className?: string | undefined;
|
|
490
490
|
} | {
|
|
@@ -529,8 +529,8 @@ declare const _default: z.ZodObject<{
|
|
|
529
529
|
audioUrl: string;
|
|
530
530
|
className?: string | undefined;
|
|
531
531
|
} | {
|
|
532
|
-
title: string;
|
|
533
532
|
type: "card";
|
|
533
|
+
title: string;
|
|
534
534
|
actions: {
|
|
535
535
|
value: string;
|
|
536
536
|
action: "url" | "postback" | "say";
|
|
@@ -554,20 +554,20 @@ declare const _default: z.ZodObject<{
|
|
|
554
554
|
}[];
|
|
555
555
|
className?: string | undefined;
|
|
556
556
|
} | {
|
|
557
|
+
type: "choice";
|
|
557
558
|
options: {
|
|
558
559
|
value: string;
|
|
559
560
|
label: string;
|
|
560
561
|
}[];
|
|
561
|
-
type: "choice";
|
|
562
562
|
text: string;
|
|
563
563
|
className?: string | undefined;
|
|
564
564
|
disableFreeText?: boolean | undefined;
|
|
565
565
|
} | {
|
|
566
|
+
type: "dropdown";
|
|
566
567
|
options: {
|
|
567
568
|
value: string;
|
|
568
569
|
label: string;
|
|
569
570
|
}[];
|
|
570
|
-
type: "dropdown";
|
|
571
571
|
text: string;
|
|
572
572
|
className?: string | undefined;
|
|
573
573
|
} | {
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: {
|
|
5
|
-
type: string;
|
|
6
|
-
const: string;
|
|
7
|
-
};
|
|
8
|
-
data: {
|
|
9
|
-
type: string;
|
|
10
|
-
properties: {
|
|
11
|
-
config: {
|
|
12
|
-
type: string;
|
|
13
|
-
additionalProperties: {};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
required: string[];
|
|
17
|
-
additionalProperties: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
required: string[];
|
|
21
|
-
additionalProperties: boolean;
|
|
22
|
-
$schema: string;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
declare const schema: JSONSchema7;
|
|
3
|
+
export default schema;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
-
*/
|
|
6
1
|
export interface WebchatConfig {
|
|
7
2
|
type: "webchat_config";
|
|
8
3
|
data: {
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
declare const _default: z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"webchat_config">;
|
|
4
4
|
data: z.ZodObject<{
|
|
5
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny
|
|
5
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodAny, z.ZodNull]>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
config: Record<string, any>;
|
|
8
8
|
}, {
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: {
|
|
5
|
-
type: string;
|
|
6
|
-
const: string;
|
|
7
|
-
};
|
|
8
|
-
data: {
|
|
9
|
-
type: string;
|
|
10
|
-
properties: {
|
|
11
|
-
visibility: {
|
|
12
|
-
type: string;
|
|
13
|
-
enum: string[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
required: string[];
|
|
17
|
-
additionalProperties: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
required: string[];
|
|
21
|
-
additionalProperties: boolean;
|
|
22
|
-
$schema: string;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
declare const schema: JSONSchema7;
|
|
3
|
+
export default schema;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
-
*/
|
|
6
1
|
export interface WebchatVisibility {
|
|
7
2
|
type: "webchat_visibility";
|
|
8
3
|
data: {
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
declare const _default: z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"webchat_visibility">;
|
|
4
4
|
data: z.ZodObject<{
|
|
5
|
-
visibility: z.
|
|
5
|
+
visibility: z.ZodUnion<[z.ZodLiteral<"show">, z.ZodLiteral<"hide">, z.ZodLiteral<"toggle">]>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
visibility: "show" | "hide" | "toggle";
|
|
8
8
|
}, {
|