@voiceflow/dtos-interact 1.15.1 → 1.17.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/build/cjs/widget-settings/widget-settings.constant.d.ts +80 -2
- package/build/cjs/widget-settings/widget-settings.constant.d.ts.map +1 -1
- package/build/cjs/widget-settings/widget-settings.constant.js +15 -0
- package/build/cjs/widget-settings/widget-settings.constant.js.map +1 -1
- package/build/cjs/widget-settings/widget-settings.dto.d.ts +199 -0
- package/build/cjs/widget-settings/widget-settings.dto.d.ts.map +1 -1
- package/build/cjs/widget-settings/widget-settings.dto.js +20 -1
- package/build/cjs/widget-settings/widget-settings.dto.js.map +1 -1
- package/build/esm/widget-settings/widget-settings.constant.d.ts +80 -2
- package/build/esm/widget-settings/widget-settings.constant.d.ts.map +1 -1
- package/build/esm/widget-settings/widget-settings.constant.js +15 -0
- package/build/esm/widget-settings/widget-settings.constant.js.map +1 -1
- package/build/esm/widget-settings/widget-settings.dto.d.ts +199 -0
- package/build/esm/widget-settings/widget-settings.dto.d.ts.map +1 -1
- package/build/esm/widget-settings/widget-settings.dto.js +19 -0
- package/build/esm/widget-settings/widget-settings.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { WidgetSettings } from './widget-settings.dto';
|
|
2
1
|
export declare const WIDGET_SETTINGS_DEFAULT_MAIN_COLOR = "#397DFF";
|
|
3
2
|
export declare const WIDGET_SETTINGS_DEFAULT_PALETTE: {
|
|
4
3
|
50: string;
|
|
@@ -12,5 +11,84 @@ export declare const WIDGET_SETTINGS_DEFAULT_PALETTE: {
|
|
|
12
11
|
800: string;
|
|
13
12
|
900: string;
|
|
14
13
|
};
|
|
15
|
-
export declare const WIDGET_SETTINGS_DEFAULT_SETTINGS:
|
|
14
|
+
export declare const WIDGET_SETTINGS_DEFAULT_SETTINGS: {
|
|
15
|
+
type: "chat";
|
|
16
|
+
chat: {
|
|
17
|
+
voiceInput: true;
|
|
18
|
+
voiceOutput: true;
|
|
19
|
+
renderMode: "widget";
|
|
20
|
+
headerImage: {
|
|
21
|
+
enabled: true;
|
|
22
|
+
};
|
|
23
|
+
agentImage: {
|
|
24
|
+
enabled: true;
|
|
25
|
+
};
|
|
26
|
+
banner: {
|
|
27
|
+
enabled: true;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
placeholderText: string;
|
|
32
|
+
aiDisclaimer: {
|
|
33
|
+
enabled: true;
|
|
34
|
+
text: string;
|
|
35
|
+
};
|
|
36
|
+
disclaimer: {
|
|
37
|
+
enabled: false;
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
primaryButtonText: string;
|
|
41
|
+
secondaryButtonText: string;
|
|
42
|
+
secondaryButtonURL: string;
|
|
43
|
+
};
|
|
44
|
+
handoffToAgentImageURL: string;
|
|
45
|
+
};
|
|
46
|
+
voice: {
|
|
47
|
+
renderMode: "full";
|
|
48
|
+
content: {
|
|
49
|
+
callToActionText: string;
|
|
50
|
+
startButtonText: string;
|
|
51
|
+
listeningText: string;
|
|
52
|
+
talkingText: string;
|
|
53
|
+
endButtonText: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
common: {
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
launcher: {
|
|
59
|
+
text: string;
|
|
60
|
+
type: "both";
|
|
61
|
+
};
|
|
62
|
+
poweredBy: true;
|
|
63
|
+
footerLink: {
|
|
64
|
+
enabled: true;
|
|
65
|
+
};
|
|
66
|
+
position: "right";
|
|
67
|
+
sideSpacing: string;
|
|
68
|
+
bottomSpacing: string;
|
|
69
|
+
primaryColor: {
|
|
70
|
+
color: string;
|
|
71
|
+
palette: {
|
|
72
|
+
50: string;
|
|
73
|
+
100: string;
|
|
74
|
+
200: string;
|
|
75
|
+
300: string;
|
|
76
|
+
400: string;
|
|
77
|
+
500: string;
|
|
78
|
+
600: string;
|
|
79
|
+
700: string;
|
|
80
|
+
800: string;
|
|
81
|
+
900: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
persistence: string;
|
|
85
|
+
};
|
|
86
|
+
security: {
|
|
87
|
+
approvedDomains: {
|
|
88
|
+
enabled: false;
|
|
89
|
+
domains: string;
|
|
90
|
+
};
|
|
91
|
+
disableTranscript: false;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
16
94
|
//# sourceMappingURL=widget-settings.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.constant.d.ts","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widget-settings.constant.d.ts","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC,YAAY,CAAC;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;CAW3C,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEnB,CAAC"}
|
|
@@ -37,6 +37,14 @@ exports.WIDGET_SETTINGS_DEFAULT_SETTINGS = {
|
|
|
37
37
|
enabled: true,
|
|
38
38
|
text: 'Generated by AI, double-check for accuracy.',
|
|
39
39
|
},
|
|
40
|
+
disclaimer: {
|
|
41
|
+
enabled: false,
|
|
42
|
+
title: 'Privacy notice',
|
|
43
|
+
description: 'Before we can proceed with your conversation, we kindly ask you to review and accept our privacy policy, outlining how we handle and protect your personal information throughout our services.',
|
|
44
|
+
primaryButtonText: 'Submit',
|
|
45
|
+
secondaryButtonText: 'Privacy policy',
|
|
46
|
+
secondaryButtonURL: '',
|
|
47
|
+
},
|
|
40
48
|
handoffToAgentImageURL: '',
|
|
41
49
|
},
|
|
42
50
|
voice: {
|
|
@@ -68,5 +76,12 @@ exports.WIDGET_SETTINGS_DEFAULT_SETTINGS = {
|
|
|
68
76
|
},
|
|
69
77
|
persistence: widget_settings_enum_1.WidgetSettingsChatPersistence.LOCAL_STORAGE,
|
|
70
78
|
},
|
|
79
|
+
security: {
|
|
80
|
+
approvedDomains: {
|
|
81
|
+
enabled: false,
|
|
82
|
+
domains: '',
|
|
83
|
+
},
|
|
84
|
+
disableTranscript: false,
|
|
85
|
+
},
|
|
71
86
|
};
|
|
72
87
|
//# sourceMappingURL=widget-settings.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.constant.js","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":";;;AACA,iEAOgC;AAEnB,QAAA,kCAAkC,GAAG,SAAS,CAAC;AAE/C,QAAA,+BAA+B,GAAG;IAC7C,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,0CAAkC;IACvC,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEW,QAAA,gCAAgC,
|
|
1
|
+
{"version":3,"file":"widget-settings.constant.js","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":";;;AACA,iEAOgC;AAEnB,QAAA,kCAAkC,GAAG,SAAS,CAAC;AAE/C,QAAA,+BAA+B,GAAG;IAC7C,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,0CAAkC;IACvC,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEW,QAAA,gCAAgC,GAAG;IAC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DAA6B,CAAC,aAAa;KACzD;IACD,QAAQ,EAAE;QACR,eAAe,EAAE;YACf,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,EAAE;SACZ;QACD,iBAAiB,EAAE,KAAK;KACzB;CACuB,CAAC"}
|
|
@@ -150,6 +150,29 @@ export declare const WidgetSettingsChatSettingsAIDisclaimerDTO: z.ZodObject<{
|
|
|
150
150
|
enabled: boolean;
|
|
151
151
|
}>;
|
|
152
152
|
export type WidgetSettingsChatSettingsAIDisclaimer = z.infer<typeof WidgetSettingsChatSettingsAIDisclaimerDTO>;
|
|
153
|
+
export declare const WidgetSettingsChatDisclaimerDTO: z.ZodObject<{
|
|
154
|
+
enabled: z.ZodBoolean;
|
|
155
|
+
title: z.ZodString;
|
|
156
|
+
description: z.ZodString;
|
|
157
|
+
primaryButtonText: z.ZodString;
|
|
158
|
+
secondaryButtonText: z.ZodString;
|
|
159
|
+
secondaryButtonURL: z.ZodString;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
title: string;
|
|
162
|
+
description: string;
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
primaryButtonText: string;
|
|
165
|
+
secondaryButtonText: string;
|
|
166
|
+
secondaryButtonURL: string;
|
|
167
|
+
}, {
|
|
168
|
+
title: string;
|
|
169
|
+
description: string;
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
primaryButtonText: string;
|
|
172
|
+
secondaryButtonText: string;
|
|
173
|
+
secondaryButtonURL: string;
|
|
174
|
+
}>;
|
|
175
|
+
export type WidgetSettingsChatDisclaimer = z.infer<typeof WidgetSettingsChatDisclaimerDTO>;
|
|
153
176
|
export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
154
177
|
voiceInput: z.ZodBoolean;
|
|
155
178
|
voiceOutput: z.ZodBoolean;
|
|
@@ -195,6 +218,28 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
195
218
|
imageURL?: string | null | undefined;
|
|
196
219
|
}>;
|
|
197
220
|
placeholderText: z.ZodString;
|
|
221
|
+
disclaimer: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
enabled: z.ZodBoolean;
|
|
223
|
+
title: z.ZodString;
|
|
224
|
+
description: z.ZodString;
|
|
225
|
+
primaryButtonText: z.ZodString;
|
|
226
|
+
secondaryButtonText: z.ZodString;
|
|
227
|
+
secondaryButtonURL: z.ZodString;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
title: string;
|
|
230
|
+
description: string;
|
|
231
|
+
enabled: boolean;
|
|
232
|
+
primaryButtonText: string;
|
|
233
|
+
secondaryButtonText: string;
|
|
234
|
+
secondaryButtonURL: string;
|
|
235
|
+
}, {
|
|
236
|
+
title: string;
|
|
237
|
+
description: string;
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
primaryButtonText: string;
|
|
240
|
+
secondaryButtonText: string;
|
|
241
|
+
secondaryButtonURL: string;
|
|
242
|
+
}>>;
|
|
198
243
|
aiDisclaimer: z.ZodObject<{
|
|
199
244
|
text: z.ZodString;
|
|
200
245
|
enabled: z.ZodBoolean;
|
|
@@ -206,6 +251,7 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
206
251
|
enabled: boolean;
|
|
207
252
|
}>;
|
|
208
253
|
handoffToAgentImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
streamingDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
209
255
|
}, "strip", z.ZodTypeAny, {
|
|
210
256
|
voiceInput: boolean;
|
|
211
257
|
voiceOutput: boolean;
|
|
@@ -229,7 +275,16 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
229
275
|
text: string;
|
|
230
276
|
enabled: boolean;
|
|
231
277
|
};
|
|
278
|
+
disclaimer?: {
|
|
279
|
+
title: string;
|
|
280
|
+
description: string;
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
primaryButtonText: string;
|
|
283
|
+
secondaryButtonText: string;
|
|
284
|
+
secondaryButtonURL: string;
|
|
285
|
+
} | undefined;
|
|
232
286
|
handoffToAgentImageURL?: string | null | undefined;
|
|
287
|
+
streamingDisabled?: boolean | undefined;
|
|
233
288
|
}, {
|
|
234
289
|
voiceInput: boolean;
|
|
235
290
|
voiceOutput: boolean;
|
|
@@ -253,7 +308,16 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
253
308
|
text: string;
|
|
254
309
|
enabled: boolean;
|
|
255
310
|
};
|
|
311
|
+
disclaimer?: {
|
|
312
|
+
title: string;
|
|
313
|
+
description: string;
|
|
314
|
+
enabled: boolean;
|
|
315
|
+
primaryButtonText: string;
|
|
316
|
+
secondaryButtonText: string;
|
|
317
|
+
secondaryButtonURL: string;
|
|
318
|
+
} | undefined;
|
|
256
319
|
handoffToAgentImageURL?: string | null | undefined;
|
|
320
|
+
streamingDisabled?: boolean | undefined;
|
|
257
321
|
}>;
|
|
258
322
|
export type WidgetSettingsChatSettings = z.infer<typeof WidgetSettingsChatSettingsDTO>;
|
|
259
323
|
export declare const WidgetSettingsVoiceSettingsContentDTO: z.ZodObject<{
|
|
@@ -536,6 +600,43 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
|
|
|
536
600
|
persistence: string;
|
|
537
601
|
}>;
|
|
538
602
|
export type WidgetSettingsCommonSettings = z.infer<typeof WidgetSettingsCommonSettingsDTO>;
|
|
603
|
+
export declare const WidgetSettingsSecuritySettingsApprovedDomainsDTO: z.ZodObject<{
|
|
604
|
+
enabled: z.ZodBoolean;
|
|
605
|
+
domains: z.ZodString;
|
|
606
|
+
}, "strip", z.ZodTypeAny, {
|
|
607
|
+
enabled: boolean;
|
|
608
|
+
domains: string;
|
|
609
|
+
}, {
|
|
610
|
+
enabled: boolean;
|
|
611
|
+
domains: string;
|
|
612
|
+
}>;
|
|
613
|
+
export type WidgetSettingsSecuritySettingsApprovedDomains = z.infer<typeof WidgetSettingsSecuritySettingsApprovedDomainsDTO>;
|
|
614
|
+
export declare const WidgetSettingsSecuritySettingsDTO: z.ZodObject<{
|
|
615
|
+
approvedDomains: z.ZodObject<{
|
|
616
|
+
enabled: z.ZodBoolean;
|
|
617
|
+
domains: z.ZodString;
|
|
618
|
+
}, "strip", z.ZodTypeAny, {
|
|
619
|
+
enabled: boolean;
|
|
620
|
+
domains: string;
|
|
621
|
+
}, {
|
|
622
|
+
enabled: boolean;
|
|
623
|
+
domains: string;
|
|
624
|
+
}>;
|
|
625
|
+
disableTranscript: z.ZodBoolean;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
approvedDomains: {
|
|
628
|
+
enabled: boolean;
|
|
629
|
+
domains: string;
|
|
630
|
+
};
|
|
631
|
+
disableTranscript: boolean;
|
|
632
|
+
}, {
|
|
633
|
+
approvedDomains: {
|
|
634
|
+
enabled: boolean;
|
|
635
|
+
domains: string;
|
|
636
|
+
};
|
|
637
|
+
disableTranscript: boolean;
|
|
638
|
+
}>;
|
|
639
|
+
export type WidgetSettingsSecuritySettings = z.infer<typeof WidgetSettingsSecuritySettingsDTO>;
|
|
539
640
|
export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
540
641
|
type: z.ZodNativeEnum<{
|
|
541
642
|
readonly CHAT: "chat";
|
|
@@ -586,6 +687,28 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
586
687
|
imageURL?: string | null | undefined;
|
|
587
688
|
}>;
|
|
588
689
|
placeholderText: z.ZodString;
|
|
690
|
+
disclaimer: z.ZodOptional<z.ZodObject<{
|
|
691
|
+
enabled: z.ZodBoolean;
|
|
692
|
+
title: z.ZodString;
|
|
693
|
+
description: z.ZodString;
|
|
694
|
+
primaryButtonText: z.ZodString;
|
|
695
|
+
secondaryButtonText: z.ZodString;
|
|
696
|
+
secondaryButtonURL: z.ZodString;
|
|
697
|
+
}, "strip", z.ZodTypeAny, {
|
|
698
|
+
title: string;
|
|
699
|
+
description: string;
|
|
700
|
+
enabled: boolean;
|
|
701
|
+
primaryButtonText: string;
|
|
702
|
+
secondaryButtonText: string;
|
|
703
|
+
secondaryButtonURL: string;
|
|
704
|
+
}, {
|
|
705
|
+
title: string;
|
|
706
|
+
description: string;
|
|
707
|
+
enabled: boolean;
|
|
708
|
+
primaryButtonText: string;
|
|
709
|
+
secondaryButtonText: string;
|
|
710
|
+
secondaryButtonURL: string;
|
|
711
|
+
}>>;
|
|
589
712
|
aiDisclaimer: z.ZodObject<{
|
|
590
713
|
text: z.ZodString;
|
|
591
714
|
enabled: z.ZodBoolean;
|
|
@@ -597,6 +720,7 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
597
720
|
enabled: boolean;
|
|
598
721
|
}>;
|
|
599
722
|
handoffToAgentImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
|
+
streamingDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
600
724
|
}, "strip", z.ZodTypeAny, {
|
|
601
725
|
voiceInput: boolean;
|
|
602
726
|
voiceOutput: boolean;
|
|
@@ -620,7 +744,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
620
744
|
text: string;
|
|
621
745
|
enabled: boolean;
|
|
622
746
|
};
|
|
747
|
+
disclaimer?: {
|
|
748
|
+
title: string;
|
|
749
|
+
description: string;
|
|
750
|
+
enabled: boolean;
|
|
751
|
+
primaryButtonText: string;
|
|
752
|
+
secondaryButtonText: string;
|
|
753
|
+
secondaryButtonURL: string;
|
|
754
|
+
} | undefined;
|
|
623
755
|
handoffToAgentImageURL?: string | null | undefined;
|
|
756
|
+
streamingDisabled?: boolean | undefined;
|
|
624
757
|
}, {
|
|
625
758
|
voiceInput: boolean;
|
|
626
759
|
voiceOutput: boolean;
|
|
@@ -644,7 +777,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
644
777
|
text: string;
|
|
645
778
|
enabled: boolean;
|
|
646
779
|
};
|
|
780
|
+
disclaimer?: {
|
|
781
|
+
title: string;
|
|
782
|
+
description: string;
|
|
783
|
+
enabled: boolean;
|
|
784
|
+
primaryButtonText: string;
|
|
785
|
+
secondaryButtonText: string;
|
|
786
|
+
secondaryButtonURL: string;
|
|
787
|
+
} | undefined;
|
|
647
788
|
handoffToAgentImageURL?: string | null | undefined;
|
|
789
|
+
streamingDisabled?: boolean | undefined;
|
|
648
790
|
}>;
|
|
649
791
|
voice: z.ZodObject<{
|
|
650
792
|
renderMode: z.ZodNativeEnum<{
|
|
@@ -869,6 +1011,31 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
869
1011
|
};
|
|
870
1012
|
persistence: string;
|
|
871
1013
|
}>;
|
|
1014
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
1015
|
+
approvedDomains: z.ZodObject<{
|
|
1016
|
+
enabled: z.ZodBoolean;
|
|
1017
|
+
domains: z.ZodString;
|
|
1018
|
+
}, "strip", z.ZodTypeAny, {
|
|
1019
|
+
enabled: boolean;
|
|
1020
|
+
domains: string;
|
|
1021
|
+
}, {
|
|
1022
|
+
enabled: boolean;
|
|
1023
|
+
domains: string;
|
|
1024
|
+
}>;
|
|
1025
|
+
disableTranscript: z.ZodBoolean;
|
|
1026
|
+
}, "strip", z.ZodTypeAny, {
|
|
1027
|
+
approvedDomains: {
|
|
1028
|
+
enabled: boolean;
|
|
1029
|
+
domains: string;
|
|
1030
|
+
};
|
|
1031
|
+
disableTranscript: boolean;
|
|
1032
|
+
}, {
|
|
1033
|
+
approvedDomains: {
|
|
1034
|
+
enabled: boolean;
|
|
1035
|
+
domains: string;
|
|
1036
|
+
};
|
|
1037
|
+
disableTranscript: boolean;
|
|
1038
|
+
}>>;
|
|
872
1039
|
}, "strip", z.ZodTypeAny, {
|
|
873
1040
|
type: "voice" | "chat";
|
|
874
1041
|
voice: {
|
|
@@ -905,7 +1072,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
905
1072
|
text: string;
|
|
906
1073
|
enabled: boolean;
|
|
907
1074
|
};
|
|
1075
|
+
disclaimer?: {
|
|
1076
|
+
title: string;
|
|
1077
|
+
description: string;
|
|
1078
|
+
enabled: boolean;
|
|
1079
|
+
primaryButtonText: string;
|
|
1080
|
+
secondaryButtonText: string;
|
|
1081
|
+
secondaryButtonURL: string;
|
|
1082
|
+
} | undefined;
|
|
908
1083
|
handoffToAgentImageURL?: string | null | undefined;
|
|
1084
|
+
streamingDisabled?: boolean | undefined;
|
|
909
1085
|
};
|
|
910
1086
|
common: {
|
|
911
1087
|
sideSpacing: string;
|
|
@@ -940,6 +1116,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
940
1116
|
};
|
|
941
1117
|
persistence: string;
|
|
942
1118
|
};
|
|
1119
|
+
security?: {
|
|
1120
|
+
approvedDomains: {
|
|
1121
|
+
enabled: boolean;
|
|
1122
|
+
domains: string;
|
|
1123
|
+
};
|
|
1124
|
+
disableTranscript: boolean;
|
|
1125
|
+
} | undefined;
|
|
943
1126
|
}, {
|
|
944
1127
|
type: "voice" | "chat";
|
|
945
1128
|
voice: {
|
|
@@ -976,7 +1159,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
976
1159
|
text: string;
|
|
977
1160
|
enabled: boolean;
|
|
978
1161
|
};
|
|
1162
|
+
disclaimer?: {
|
|
1163
|
+
title: string;
|
|
1164
|
+
description: string;
|
|
1165
|
+
enabled: boolean;
|
|
1166
|
+
primaryButtonText: string;
|
|
1167
|
+
secondaryButtonText: string;
|
|
1168
|
+
secondaryButtonURL: string;
|
|
1169
|
+
} | undefined;
|
|
979
1170
|
handoffToAgentImageURL?: string | null | undefined;
|
|
1171
|
+
streamingDisabled?: boolean | undefined;
|
|
980
1172
|
};
|
|
981
1173
|
common: {
|
|
982
1174
|
sideSpacing: string;
|
|
@@ -1011,6 +1203,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
1011
1203
|
};
|
|
1012
1204
|
persistence: string;
|
|
1013
1205
|
};
|
|
1206
|
+
security?: {
|
|
1207
|
+
approvedDomains: {
|
|
1208
|
+
enabled: boolean;
|
|
1209
|
+
domains: string;
|
|
1210
|
+
};
|
|
1211
|
+
disableTranscript: boolean;
|
|
1212
|
+
} | undefined;
|
|
1014
1213
|
}>;
|
|
1015
1214
|
export type WidgetSettings = z.infer<typeof WidgetSettingsDTO>;
|
|
1016
1215
|
//# sourceMappingURL=widget-settings.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.dto.d.ts","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,wCAAwC;;;;;;;;;EAGnD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE7G,eAAO,MAAM,uCAAuC;;;;;;;;;EAGlD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAE3G,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;EAK9C,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEnG,eAAO,MAAM,yCAAyC;;;;;;;;;EAGpD,CAAC;AAEH,M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ineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WidgetSettingsDTO = exports.WidgetSettingsCommonSettingsDTO = exports.WidgetSettingsCommonSettingsFooterLinkDTO = exports.WidgetSettingsCommonSettingsLauncherDTO = exports.WidgetSettingsVoiceSettingsDTO = exports.WidgetSettingsVoiceSettingsContentDTO = exports.WidgetSettingsChatSettingsDTO = exports.WidgetSettingsChatSettingsAIDisclaimerDTO = exports.WidgetSettingsChatSettingsBannerDTO = exports.WidgetSettingsChatSettingsAgentImageDTO = exports.WidgetSettingsChatSettingsHeaderImageDTO = exports.WidgetSettingsPrimaryColorDTO = exports.WidgetSettingsColorPaletteDTO = void 0;
|
|
3
|
+
exports.WidgetSettingsDTO = exports.WidgetSettingsSecuritySettingsDTO = exports.WidgetSettingsSecuritySettingsApprovedDomainsDTO = exports.WidgetSettingsCommonSettingsDTO = exports.WidgetSettingsCommonSettingsFooterLinkDTO = exports.WidgetSettingsCommonSettingsLauncherDTO = exports.WidgetSettingsVoiceSettingsDTO = exports.WidgetSettingsVoiceSettingsContentDTO = exports.WidgetSettingsChatSettingsDTO = exports.WidgetSettingsChatDisclaimerDTO = exports.WidgetSettingsChatSettingsAIDisclaimerDTO = exports.WidgetSettingsChatSettingsBannerDTO = exports.WidgetSettingsChatSettingsAgentImageDTO = exports.WidgetSettingsChatSettingsHeaderImageDTO = exports.WidgetSettingsPrimaryColorDTO = exports.WidgetSettingsColorPaletteDTO = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const widget_settings_enum_1 = require("./widget-settings.enum");
|
|
6
6
|
exports.WidgetSettingsColorPaletteDTO = zod_1.z.object({
|
|
@@ -37,6 +37,14 @@ exports.WidgetSettingsChatSettingsAIDisclaimerDTO = zod_1.z.object({
|
|
|
37
37
|
text: zod_1.z.string(),
|
|
38
38
|
enabled: zod_1.z.boolean(),
|
|
39
39
|
});
|
|
40
|
+
exports.WidgetSettingsChatDisclaimerDTO = zod_1.z.object({
|
|
41
|
+
enabled: zod_1.z.boolean(),
|
|
42
|
+
title: zod_1.z.string(),
|
|
43
|
+
description: zod_1.z.string(),
|
|
44
|
+
primaryButtonText: zod_1.z.string(),
|
|
45
|
+
secondaryButtonText: zod_1.z.string(),
|
|
46
|
+
secondaryButtonURL: zod_1.z.string(),
|
|
47
|
+
});
|
|
40
48
|
exports.WidgetSettingsChatSettingsDTO = zod_1.z.object({
|
|
41
49
|
voiceInput: zod_1.z.boolean(),
|
|
42
50
|
voiceOutput: zod_1.z.boolean(),
|
|
@@ -45,8 +53,10 @@ exports.WidgetSettingsChatSettingsDTO = zod_1.z.object({
|
|
|
45
53
|
agentImage: exports.WidgetSettingsChatSettingsAgentImageDTO,
|
|
46
54
|
banner: exports.WidgetSettingsChatSettingsBannerDTO,
|
|
47
55
|
placeholderText: zod_1.z.string(),
|
|
56
|
+
disclaimer: exports.WidgetSettingsChatDisclaimerDTO.optional(),
|
|
48
57
|
aiDisclaimer: exports.WidgetSettingsChatSettingsAIDisclaimerDTO,
|
|
49
58
|
handoffToAgentImageURL: zod_1.z.string().nullable().optional(),
|
|
59
|
+
streamingDisabled: zod_1.z.boolean().optional(),
|
|
50
60
|
});
|
|
51
61
|
exports.WidgetSettingsVoiceSettingsContentDTO = zod_1.z.object({
|
|
52
62
|
imageURL: zod_1.z.string().nullable().optional(),
|
|
@@ -81,10 +91,19 @@ exports.WidgetSettingsCommonSettingsDTO = zod_1.z.object({
|
|
|
81
91
|
footerLink: exports.WidgetSettingsCommonSettingsFooterLinkDTO,
|
|
82
92
|
persistence: zod_1.z.nativeEnum(widget_settings_enum_1.WidgetSettingsChatPersistence),
|
|
83
93
|
});
|
|
94
|
+
exports.WidgetSettingsSecuritySettingsApprovedDomainsDTO = zod_1.z.object({
|
|
95
|
+
enabled: zod_1.z.boolean(),
|
|
96
|
+
domains: zod_1.z.string(),
|
|
97
|
+
});
|
|
98
|
+
exports.WidgetSettingsSecuritySettingsDTO = zod_1.z.object({
|
|
99
|
+
approvedDomains: exports.WidgetSettingsSecuritySettingsApprovedDomainsDTO,
|
|
100
|
+
disableTranscript: zod_1.z.boolean(),
|
|
101
|
+
});
|
|
84
102
|
exports.WidgetSettingsDTO = zod_1.z.object({
|
|
85
103
|
type: zod_1.z.nativeEnum(widget_settings_enum_1.WidgetSettingsWidgetType),
|
|
86
104
|
chat: exports.WidgetSettingsChatSettingsDTO,
|
|
87
105
|
voice: exports.WidgetSettingsVoiceSettingsDTO,
|
|
88
106
|
common: exports.WidgetSettingsCommonSettingsDTO,
|
|
107
|
+
security: exports.WidgetSettingsSecuritySettingsDTO.optional(),
|
|
89
108
|
});
|
|
90
109
|
//# sourceMappingURL=widget-settings.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.dto.js","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iEAOgC;AAEnB,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAIU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,qCAA6B;CACvC,CAAC,CAAC;AAIU,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAA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6B;IAC3C,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,+CAAuC;IACjD,UAAU,EAAE,iDAAyC;IACrD,WAAW,EAAE,OAAC,CAAC,UAAU,CAAC,oDAA6B,CAAC;CACzD,CAAC,CAAC;AAIU,QAAA,gDAAgD,GAAG,OAAC,CAAC,MAAM,CAAC;IACvE,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAMU,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,eAAe,EAAE,wDAAgD;IACjE,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC;AAIU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAwB,CAAC;IAC5C,IAAI,EAAE,qCAA6B;IACnC,KAAK,EAAE,sCAA8B;IACrC,MAAM,EAAE,uCAA+B;IACvC,QAAQ,EAAE,yCAAiC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { WidgetSettings } from './widget-settings.dto.js';
|
|
2
1
|
export declare const WIDGET_SETTINGS_DEFAULT_MAIN_COLOR = "#397DFF";
|
|
3
2
|
export declare const WIDGET_SETTINGS_DEFAULT_PALETTE: {
|
|
4
3
|
50: string;
|
|
@@ -12,5 +11,84 @@ export declare const WIDGET_SETTINGS_DEFAULT_PALETTE: {
|
|
|
12
11
|
800: string;
|
|
13
12
|
900: string;
|
|
14
13
|
};
|
|
15
|
-
export declare const WIDGET_SETTINGS_DEFAULT_SETTINGS:
|
|
14
|
+
export declare const WIDGET_SETTINGS_DEFAULT_SETTINGS: {
|
|
15
|
+
type: "chat";
|
|
16
|
+
chat: {
|
|
17
|
+
voiceInput: true;
|
|
18
|
+
voiceOutput: true;
|
|
19
|
+
renderMode: "widget";
|
|
20
|
+
headerImage: {
|
|
21
|
+
enabled: true;
|
|
22
|
+
};
|
|
23
|
+
agentImage: {
|
|
24
|
+
enabled: true;
|
|
25
|
+
};
|
|
26
|
+
banner: {
|
|
27
|
+
enabled: true;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
placeholderText: string;
|
|
32
|
+
aiDisclaimer: {
|
|
33
|
+
enabled: true;
|
|
34
|
+
text: string;
|
|
35
|
+
};
|
|
36
|
+
disclaimer: {
|
|
37
|
+
enabled: false;
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
primaryButtonText: string;
|
|
41
|
+
secondaryButtonText: string;
|
|
42
|
+
secondaryButtonURL: string;
|
|
43
|
+
};
|
|
44
|
+
handoffToAgentImageURL: string;
|
|
45
|
+
};
|
|
46
|
+
voice: {
|
|
47
|
+
renderMode: "full";
|
|
48
|
+
content: {
|
|
49
|
+
callToActionText: string;
|
|
50
|
+
startButtonText: string;
|
|
51
|
+
listeningText: string;
|
|
52
|
+
talkingText: string;
|
|
53
|
+
endButtonText: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
common: {
|
|
57
|
+
fontFamily: string;
|
|
58
|
+
launcher: {
|
|
59
|
+
text: string;
|
|
60
|
+
type: "both";
|
|
61
|
+
};
|
|
62
|
+
poweredBy: true;
|
|
63
|
+
footerLink: {
|
|
64
|
+
enabled: true;
|
|
65
|
+
};
|
|
66
|
+
position: "right";
|
|
67
|
+
sideSpacing: string;
|
|
68
|
+
bottomSpacing: string;
|
|
69
|
+
primaryColor: {
|
|
70
|
+
color: string;
|
|
71
|
+
palette: {
|
|
72
|
+
50: string;
|
|
73
|
+
100: string;
|
|
74
|
+
200: string;
|
|
75
|
+
300: string;
|
|
76
|
+
400: string;
|
|
77
|
+
500: string;
|
|
78
|
+
600: string;
|
|
79
|
+
700: string;
|
|
80
|
+
800: string;
|
|
81
|
+
900: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
persistence: string;
|
|
85
|
+
};
|
|
86
|
+
security: {
|
|
87
|
+
approvedDomains: {
|
|
88
|
+
enabled: false;
|
|
89
|
+
domains: string;
|
|
90
|
+
};
|
|
91
|
+
disableTranscript: false;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
16
94
|
//# sourceMappingURL=widget-settings.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.constant.d.ts","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"widget-settings.constant.d.ts","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC,YAAY,CAAC;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;CAW3C,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEnB,CAAC"}
|
|
@@ -34,6 +34,14 @@ export const WIDGET_SETTINGS_DEFAULT_SETTINGS = {
|
|
|
34
34
|
enabled: true,
|
|
35
35
|
text: 'Generated by AI, double-check for accuracy.',
|
|
36
36
|
},
|
|
37
|
+
disclaimer: {
|
|
38
|
+
enabled: false,
|
|
39
|
+
title: 'Privacy notice',
|
|
40
|
+
description: 'Before we can proceed with your conversation, we kindly ask you to review and accept our privacy policy, outlining how we handle and protect your personal information throughout our services.',
|
|
41
|
+
primaryButtonText: 'Submit',
|
|
42
|
+
secondaryButtonText: 'Privacy policy',
|
|
43
|
+
secondaryButtonURL: '',
|
|
44
|
+
},
|
|
37
45
|
handoffToAgentImageURL: '',
|
|
38
46
|
},
|
|
39
47
|
voice: {
|
|
@@ -65,5 +73,12 @@ export const WIDGET_SETTINGS_DEFAULT_SETTINGS = {
|
|
|
65
73
|
},
|
|
66
74
|
persistence: WidgetSettingsChatPersistence.LOCAL_STORAGE,
|
|
67
75
|
},
|
|
76
|
+
security: {
|
|
77
|
+
approvedDomains: {
|
|
78
|
+
enabled: false,
|
|
79
|
+
domains: '',
|
|
80
|
+
},
|
|
81
|
+
disableTranscript: false,
|
|
82
|
+
},
|
|
68
83
|
};
|
|
69
84
|
//# sourceMappingURL=widget-settings.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.constant.js","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,kCAAkC,GAAG,SAAS,CAAC;AAE5D,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,kCAAkC;IACvC,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"widget-settings.constant.js","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.constant.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,kCAAkC,GAAG,SAAS,CAAC;AAE5D,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,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SAAS,EAAE,IAAI;QACf,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;SACd;QACD,QAAQ,EAAE,4BAA4B,CAAC,KAAK;QAC5C,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE;YACZ,KAAK,EAAE,kCAAkC;YACzC,OAAO,EAAE,+BAA+B;SACzC;QACD,WAAW,EAAE,6BAA6B,CAAC,aAAa;KACzD;IACD,QAAQ,EAAE;QACR,eAAe,EAAE;YACf,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,EAAE;SACZ;QACD,iBAAiB,EAAE,KAAK;KACzB;CACuB,CAAC"}
|
|
@@ -150,6 +150,29 @@ export declare const WidgetSettingsChatSettingsAIDisclaimerDTO: z.ZodObject<{
|
|
|
150
150
|
enabled: boolean;
|
|
151
151
|
}>;
|
|
152
152
|
export type WidgetSettingsChatSettingsAIDisclaimer = z.infer<typeof WidgetSettingsChatSettingsAIDisclaimerDTO>;
|
|
153
|
+
export declare const WidgetSettingsChatDisclaimerDTO: z.ZodObject<{
|
|
154
|
+
enabled: z.ZodBoolean;
|
|
155
|
+
title: z.ZodString;
|
|
156
|
+
description: z.ZodString;
|
|
157
|
+
primaryButtonText: z.ZodString;
|
|
158
|
+
secondaryButtonText: z.ZodString;
|
|
159
|
+
secondaryButtonURL: z.ZodString;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
title: string;
|
|
162
|
+
description: string;
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
primaryButtonText: string;
|
|
165
|
+
secondaryButtonText: string;
|
|
166
|
+
secondaryButtonURL: string;
|
|
167
|
+
}, {
|
|
168
|
+
title: string;
|
|
169
|
+
description: string;
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
primaryButtonText: string;
|
|
172
|
+
secondaryButtonText: string;
|
|
173
|
+
secondaryButtonURL: string;
|
|
174
|
+
}>;
|
|
175
|
+
export type WidgetSettingsChatDisclaimer = z.infer<typeof WidgetSettingsChatDisclaimerDTO>;
|
|
153
176
|
export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
154
177
|
voiceInput: z.ZodBoolean;
|
|
155
178
|
voiceOutput: z.ZodBoolean;
|
|
@@ -195,6 +218,28 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
195
218
|
imageURL?: string | null | undefined;
|
|
196
219
|
}>;
|
|
197
220
|
placeholderText: z.ZodString;
|
|
221
|
+
disclaimer: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
enabled: z.ZodBoolean;
|
|
223
|
+
title: z.ZodString;
|
|
224
|
+
description: z.ZodString;
|
|
225
|
+
primaryButtonText: z.ZodString;
|
|
226
|
+
secondaryButtonText: z.ZodString;
|
|
227
|
+
secondaryButtonURL: z.ZodString;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
title: string;
|
|
230
|
+
description: string;
|
|
231
|
+
enabled: boolean;
|
|
232
|
+
primaryButtonText: string;
|
|
233
|
+
secondaryButtonText: string;
|
|
234
|
+
secondaryButtonURL: string;
|
|
235
|
+
}, {
|
|
236
|
+
title: string;
|
|
237
|
+
description: string;
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
primaryButtonText: string;
|
|
240
|
+
secondaryButtonText: string;
|
|
241
|
+
secondaryButtonURL: string;
|
|
242
|
+
}>>;
|
|
198
243
|
aiDisclaimer: z.ZodObject<{
|
|
199
244
|
text: z.ZodString;
|
|
200
245
|
enabled: z.ZodBoolean;
|
|
@@ -206,6 +251,7 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
206
251
|
enabled: boolean;
|
|
207
252
|
}>;
|
|
208
253
|
handoffToAgentImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
streamingDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
209
255
|
}, "strip", z.ZodTypeAny, {
|
|
210
256
|
voiceInput: boolean;
|
|
211
257
|
voiceOutput: boolean;
|
|
@@ -229,7 +275,16 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
229
275
|
text: string;
|
|
230
276
|
enabled: boolean;
|
|
231
277
|
};
|
|
278
|
+
disclaimer?: {
|
|
279
|
+
title: string;
|
|
280
|
+
description: string;
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
primaryButtonText: string;
|
|
283
|
+
secondaryButtonText: string;
|
|
284
|
+
secondaryButtonURL: string;
|
|
285
|
+
} | undefined;
|
|
232
286
|
handoffToAgentImageURL?: string | null | undefined;
|
|
287
|
+
streamingDisabled?: boolean | undefined;
|
|
233
288
|
}, {
|
|
234
289
|
voiceInput: boolean;
|
|
235
290
|
voiceOutput: boolean;
|
|
@@ -253,7 +308,16 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
253
308
|
text: string;
|
|
254
309
|
enabled: boolean;
|
|
255
310
|
};
|
|
311
|
+
disclaimer?: {
|
|
312
|
+
title: string;
|
|
313
|
+
description: string;
|
|
314
|
+
enabled: boolean;
|
|
315
|
+
primaryButtonText: string;
|
|
316
|
+
secondaryButtonText: string;
|
|
317
|
+
secondaryButtonURL: string;
|
|
318
|
+
} | undefined;
|
|
256
319
|
handoffToAgentImageURL?: string | null | undefined;
|
|
320
|
+
streamingDisabled?: boolean | undefined;
|
|
257
321
|
}>;
|
|
258
322
|
export type WidgetSettingsChatSettings = z.infer<typeof WidgetSettingsChatSettingsDTO>;
|
|
259
323
|
export declare const WidgetSettingsVoiceSettingsContentDTO: z.ZodObject<{
|
|
@@ -536,6 +600,43 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
|
|
|
536
600
|
persistence: string;
|
|
537
601
|
}>;
|
|
538
602
|
export type WidgetSettingsCommonSettings = z.infer<typeof WidgetSettingsCommonSettingsDTO>;
|
|
603
|
+
export declare const WidgetSettingsSecuritySettingsApprovedDomainsDTO: z.ZodObject<{
|
|
604
|
+
enabled: z.ZodBoolean;
|
|
605
|
+
domains: z.ZodString;
|
|
606
|
+
}, "strip", z.ZodTypeAny, {
|
|
607
|
+
enabled: boolean;
|
|
608
|
+
domains: string;
|
|
609
|
+
}, {
|
|
610
|
+
enabled: boolean;
|
|
611
|
+
domains: string;
|
|
612
|
+
}>;
|
|
613
|
+
export type WidgetSettingsSecuritySettingsApprovedDomains = z.infer<typeof WidgetSettingsSecuritySettingsApprovedDomainsDTO>;
|
|
614
|
+
export declare const WidgetSettingsSecuritySettingsDTO: z.ZodObject<{
|
|
615
|
+
approvedDomains: z.ZodObject<{
|
|
616
|
+
enabled: z.ZodBoolean;
|
|
617
|
+
domains: z.ZodString;
|
|
618
|
+
}, "strip", z.ZodTypeAny, {
|
|
619
|
+
enabled: boolean;
|
|
620
|
+
domains: string;
|
|
621
|
+
}, {
|
|
622
|
+
enabled: boolean;
|
|
623
|
+
domains: string;
|
|
624
|
+
}>;
|
|
625
|
+
disableTranscript: z.ZodBoolean;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
approvedDomains: {
|
|
628
|
+
enabled: boolean;
|
|
629
|
+
domains: string;
|
|
630
|
+
};
|
|
631
|
+
disableTranscript: boolean;
|
|
632
|
+
}, {
|
|
633
|
+
approvedDomains: {
|
|
634
|
+
enabled: boolean;
|
|
635
|
+
domains: string;
|
|
636
|
+
};
|
|
637
|
+
disableTranscript: boolean;
|
|
638
|
+
}>;
|
|
639
|
+
export type WidgetSettingsSecuritySettings = z.infer<typeof WidgetSettingsSecuritySettingsDTO>;
|
|
539
640
|
export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
540
641
|
type: z.ZodNativeEnum<{
|
|
541
642
|
readonly CHAT: "chat";
|
|
@@ -586,6 +687,28 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
586
687
|
imageURL?: string | null | undefined;
|
|
587
688
|
}>;
|
|
588
689
|
placeholderText: z.ZodString;
|
|
690
|
+
disclaimer: z.ZodOptional<z.ZodObject<{
|
|
691
|
+
enabled: z.ZodBoolean;
|
|
692
|
+
title: z.ZodString;
|
|
693
|
+
description: z.ZodString;
|
|
694
|
+
primaryButtonText: z.ZodString;
|
|
695
|
+
secondaryButtonText: z.ZodString;
|
|
696
|
+
secondaryButtonURL: z.ZodString;
|
|
697
|
+
}, "strip", z.ZodTypeAny, {
|
|
698
|
+
title: string;
|
|
699
|
+
description: string;
|
|
700
|
+
enabled: boolean;
|
|
701
|
+
primaryButtonText: string;
|
|
702
|
+
secondaryButtonText: string;
|
|
703
|
+
secondaryButtonURL: string;
|
|
704
|
+
}, {
|
|
705
|
+
title: string;
|
|
706
|
+
description: string;
|
|
707
|
+
enabled: boolean;
|
|
708
|
+
primaryButtonText: string;
|
|
709
|
+
secondaryButtonText: string;
|
|
710
|
+
secondaryButtonURL: string;
|
|
711
|
+
}>>;
|
|
589
712
|
aiDisclaimer: z.ZodObject<{
|
|
590
713
|
text: z.ZodString;
|
|
591
714
|
enabled: z.ZodBoolean;
|
|
@@ -597,6 +720,7 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
597
720
|
enabled: boolean;
|
|
598
721
|
}>;
|
|
599
722
|
handoffToAgentImageURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
|
+
streamingDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
600
724
|
}, "strip", z.ZodTypeAny, {
|
|
601
725
|
voiceInput: boolean;
|
|
602
726
|
voiceOutput: boolean;
|
|
@@ -620,7 +744,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
620
744
|
text: string;
|
|
621
745
|
enabled: boolean;
|
|
622
746
|
};
|
|
747
|
+
disclaimer?: {
|
|
748
|
+
title: string;
|
|
749
|
+
description: string;
|
|
750
|
+
enabled: boolean;
|
|
751
|
+
primaryButtonText: string;
|
|
752
|
+
secondaryButtonText: string;
|
|
753
|
+
secondaryButtonURL: string;
|
|
754
|
+
} | undefined;
|
|
623
755
|
handoffToAgentImageURL?: string | null | undefined;
|
|
756
|
+
streamingDisabled?: boolean | undefined;
|
|
624
757
|
}, {
|
|
625
758
|
voiceInput: boolean;
|
|
626
759
|
voiceOutput: boolean;
|
|
@@ -644,7 +777,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
644
777
|
text: string;
|
|
645
778
|
enabled: boolean;
|
|
646
779
|
};
|
|
780
|
+
disclaimer?: {
|
|
781
|
+
title: string;
|
|
782
|
+
description: string;
|
|
783
|
+
enabled: boolean;
|
|
784
|
+
primaryButtonText: string;
|
|
785
|
+
secondaryButtonText: string;
|
|
786
|
+
secondaryButtonURL: string;
|
|
787
|
+
} | undefined;
|
|
647
788
|
handoffToAgentImageURL?: string | null | undefined;
|
|
789
|
+
streamingDisabled?: boolean | undefined;
|
|
648
790
|
}>;
|
|
649
791
|
voice: z.ZodObject<{
|
|
650
792
|
renderMode: z.ZodNativeEnum<{
|
|
@@ -869,6 +1011,31 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
869
1011
|
};
|
|
870
1012
|
persistence: string;
|
|
871
1013
|
}>;
|
|
1014
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
1015
|
+
approvedDomains: z.ZodObject<{
|
|
1016
|
+
enabled: z.ZodBoolean;
|
|
1017
|
+
domains: z.ZodString;
|
|
1018
|
+
}, "strip", z.ZodTypeAny, {
|
|
1019
|
+
enabled: boolean;
|
|
1020
|
+
domains: string;
|
|
1021
|
+
}, {
|
|
1022
|
+
enabled: boolean;
|
|
1023
|
+
domains: string;
|
|
1024
|
+
}>;
|
|
1025
|
+
disableTranscript: z.ZodBoolean;
|
|
1026
|
+
}, "strip", z.ZodTypeAny, {
|
|
1027
|
+
approvedDomains: {
|
|
1028
|
+
enabled: boolean;
|
|
1029
|
+
domains: string;
|
|
1030
|
+
};
|
|
1031
|
+
disableTranscript: boolean;
|
|
1032
|
+
}, {
|
|
1033
|
+
approvedDomains: {
|
|
1034
|
+
enabled: boolean;
|
|
1035
|
+
domains: string;
|
|
1036
|
+
};
|
|
1037
|
+
disableTranscript: boolean;
|
|
1038
|
+
}>>;
|
|
872
1039
|
}, "strip", z.ZodTypeAny, {
|
|
873
1040
|
type: "voice" | "chat";
|
|
874
1041
|
voice: {
|
|
@@ -905,7 +1072,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
905
1072
|
text: string;
|
|
906
1073
|
enabled: boolean;
|
|
907
1074
|
};
|
|
1075
|
+
disclaimer?: {
|
|
1076
|
+
title: string;
|
|
1077
|
+
description: string;
|
|
1078
|
+
enabled: boolean;
|
|
1079
|
+
primaryButtonText: string;
|
|
1080
|
+
secondaryButtonText: string;
|
|
1081
|
+
secondaryButtonURL: string;
|
|
1082
|
+
} | undefined;
|
|
908
1083
|
handoffToAgentImageURL?: string | null | undefined;
|
|
1084
|
+
streamingDisabled?: boolean | undefined;
|
|
909
1085
|
};
|
|
910
1086
|
common: {
|
|
911
1087
|
sideSpacing: string;
|
|
@@ -940,6 +1116,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
940
1116
|
};
|
|
941
1117
|
persistence: string;
|
|
942
1118
|
};
|
|
1119
|
+
security?: {
|
|
1120
|
+
approvedDomains: {
|
|
1121
|
+
enabled: boolean;
|
|
1122
|
+
domains: string;
|
|
1123
|
+
};
|
|
1124
|
+
disableTranscript: boolean;
|
|
1125
|
+
} | undefined;
|
|
943
1126
|
}, {
|
|
944
1127
|
type: "voice" | "chat";
|
|
945
1128
|
voice: {
|
|
@@ -976,7 +1159,16 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
976
1159
|
text: string;
|
|
977
1160
|
enabled: boolean;
|
|
978
1161
|
};
|
|
1162
|
+
disclaimer?: {
|
|
1163
|
+
title: string;
|
|
1164
|
+
description: string;
|
|
1165
|
+
enabled: boolean;
|
|
1166
|
+
primaryButtonText: string;
|
|
1167
|
+
secondaryButtonText: string;
|
|
1168
|
+
secondaryButtonURL: string;
|
|
1169
|
+
} | undefined;
|
|
979
1170
|
handoffToAgentImageURL?: string | null | undefined;
|
|
1171
|
+
streamingDisabled?: boolean | undefined;
|
|
980
1172
|
};
|
|
981
1173
|
common: {
|
|
982
1174
|
sideSpacing: string;
|
|
@@ -1011,6 +1203,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
1011
1203
|
};
|
|
1012
1204
|
persistence: string;
|
|
1013
1205
|
};
|
|
1206
|
+
security?: {
|
|
1207
|
+
approvedDomains: {
|
|
1208
|
+
enabled: boolean;
|
|
1209
|
+
domains: string;
|
|
1210
|
+
};
|
|
1211
|
+
disableTranscript: boolean;
|
|
1212
|
+
} | undefined;
|
|
1014
1213
|
}>;
|
|
1015
1214
|
export type WidgetSettings = z.infer<typeof WidgetSettingsDTO>;
|
|
1016
1215
|
//# sourceMappingURL=widget-settings.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.dto.d.ts","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,wCAAwC;;;;;;;;;EAGnD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE7G,eAAO,MAAM,uCAAuC;;;;;;;;;EAGlD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -34,6 +34,14 @@ export const WidgetSettingsChatSettingsAIDisclaimerDTO = z.object({
|
|
|
34
34
|
text: z.string(),
|
|
35
35
|
enabled: z.boolean(),
|
|
36
36
|
});
|
|
37
|
+
export const WidgetSettingsChatDisclaimerDTO = z.object({
|
|
38
|
+
enabled: z.boolean(),
|
|
39
|
+
title: z.string(),
|
|
40
|
+
description: z.string(),
|
|
41
|
+
primaryButtonText: z.string(),
|
|
42
|
+
secondaryButtonText: z.string(),
|
|
43
|
+
secondaryButtonURL: z.string(),
|
|
44
|
+
});
|
|
37
45
|
export const WidgetSettingsChatSettingsDTO = z.object({
|
|
38
46
|
voiceInput: z.boolean(),
|
|
39
47
|
voiceOutput: z.boolean(),
|
|
@@ -42,8 +50,10 @@ export const WidgetSettingsChatSettingsDTO = z.object({
|
|
|
42
50
|
agentImage: WidgetSettingsChatSettingsAgentImageDTO,
|
|
43
51
|
banner: WidgetSettingsChatSettingsBannerDTO,
|
|
44
52
|
placeholderText: z.string(),
|
|
53
|
+
disclaimer: WidgetSettingsChatDisclaimerDTO.optional(),
|
|
45
54
|
aiDisclaimer: WidgetSettingsChatSettingsAIDisclaimerDTO,
|
|
46
55
|
handoffToAgentImageURL: z.string().nullable().optional(),
|
|
56
|
+
streamingDisabled: z.boolean().optional(),
|
|
47
57
|
});
|
|
48
58
|
export const WidgetSettingsVoiceSettingsContentDTO = z.object({
|
|
49
59
|
imageURL: z.string().nullable().optional(),
|
|
@@ -78,10 +88,19 @@ export const WidgetSettingsCommonSettingsDTO = z.object({
|
|
|
78
88
|
footerLink: WidgetSettingsCommonSettingsFooterLinkDTO,
|
|
79
89
|
persistence: z.nativeEnum(WidgetSettingsChatPersistence),
|
|
80
90
|
});
|
|
91
|
+
export const WidgetSettingsSecuritySettingsApprovedDomainsDTO = z.object({
|
|
92
|
+
enabled: z.boolean(),
|
|
93
|
+
domains: z.string(),
|
|
94
|
+
});
|
|
95
|
+
export const WidgetSettingsSecuritySettingsDTO = z.object({
|
|
96
|
+
approvedDomains: WidgetSettingsSecuritySettingsApprovedDomainsDTO,
|
|
97
|
+
disableTranscript: z.boolean(),
|
|
98
|
+
});
|
|
81
99
|
export const WidgetSettingsDTO = z.object({
|
|
82
100
|
type: z.nativeEnum(WidgetSettingsWidgetType),
|
|
83
101
|
chat: WidgetSettingsChatSettingsDTO,
|
|
84
102
|
voice: WidgetSettingsVoiceSettingsDTO,
|
|
85
103
|
common: WidgetSettingsCommonSettingsDTO,
|
|
104
|
+
security: WidgetSettingsSecuritySettingsDTO.optional(),
|
|
86
105
|
});
|
|
87
106
|
//# sourceMappingURL=widget-settings.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-settings.dto.js","sourceRoot":"","sources":["../../../src/widget-settings/widget-settings.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,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C,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAC5C,IAAI,EAAE,6BAA6B;IACnC,KAAK,EAAE,8BAA8B;IACrC,MAAM,EAAE,+BAA+B;IACvC,QAAQ,EAAE,iCAAiC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/dtos-interact",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./build/cjs/main.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "b1aea7916ded8235f8dac7ef4f3465b35192e65a"
|
|
47
47
|
}
|