@voiceflow/dtos-interact 1.15.0 → 1.16.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/trace/any.dto.d.ts +5 -4
- package/build/cjs/trace/any.dto.d.ts.map +1 -1
- package/build/cjs/trace/audio/audio-encoding.enum.d.ts +1 -0
- package/build/cjs/trace/audio/audio-encoding.enum.d.ts.map +1 -1
- package/build/cjs/trace/audio/audio-encoding.enum.js +1 -0
- package/build/cjs/trace/audio/audio-encoding.enum.js.map +1 -1
- package/build/cjs/trace/audio/audio.dto.d.ts +5 -4
- package/build/cjs/trace/audio/audio.dto.d.ts.map +1 -1
- 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 +191 -0
- package/build/cjs/widget-settings/widget-settings.dto.d.ts.map +1 -1
- package/build/cjs/widget-settings/widget-settings.dto.js +19 -1
- package/build/cjs/widget-settings/widget-settings.dto.js.map +1 -1
- package/build/esm/trace/any.dto.d.ts +5 -4
- package/build/esm/trace/any.dto.d.ts.map +1 -1
- package/build/esm/trace/audio/audio-encoding.enum.d.ts +1 -0
- package/build/esm/trace/audio/audio-encoding.enum.d.ts.map +1 -1
- package/build/esm/trace/audio/audio-encoding.enum.js +1 -0
- package/build/esm/trace/audio/audio-encoding.enum.js.map +1 -1
- package/build/esm/trace/audio/audio.dto.d.ts +5 -4
- package/build/esm/trace/audio/audio.dto.d.ts.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 +191 -0
- package/build/esm/widget-settings/widget-settings.dto.d.ts.map +1 -1
- package/build/esm/widget-settings/widget-settings.dto.js +18 -0
- package/build/esm/widget-settings/widget-settings.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -45,15 +45,16 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
45
45
|
encoding: z.ZodNativeEnum<{
|
|
46
46
|
readonly MP3: "audio/mp3";
|
|
47
47
|
readonly MULAW: "audio/x-mulaw";
|
|
48
|
+
readonly PCM: "audio/pcm";
|
|
48
49
|
}>;
|
|
49
50
|
}, "strip", z.ZodTypeAny, {
|
|
50
51
|
content: string;
|
|
51
52
|
state: "content";
|
|
52
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
53
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
53
54
|
}, {
|
|
54
55
|
content: string;
|
|
55
56
|
state: "content";
|
|
56
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
57
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
58
|
}>, z.ZodObject<{
|
|
58
59
|
state: z.ZodLiteral<"end">;
|
|
59
60
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -68,7 +69,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
68
69
|
} | {
|
|
69
70
|
content: string;
|
|
70
71
|
state: "content";
|
|
71
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
72
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
72
73
|
} | {
|
|
73
74
|
state: "end";
|
|
74
75
|
};
|
|
@@ -89,7 +90,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
89
90
|
} | {
|
|
90
91
|
content: string;
|
|
91
92
|
state: "content";
|
|
92
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
93
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
93
94
|
} | {
|
|
94
95
|
state: "end";
|
|
95
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/any.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"any.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/any.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqBtB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const AudioEncoding: {
|
|
2
2
|
readonly MP3: "audio/mp3";
|
|
3
3
|
readonly MULAW: "audio/x-mulaw";
|
|
4
|
+
readonly PCM: "audio/pcm";
|
|
4
5
|
};
|
|
5
6
|
export type AudioEncoding = (typeof AudioEncoding)[keyof typeof AudioEncoding];
|
|
6
7
|
//# sourceMappingURL=audio-encoding.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-encoding.enum.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"audio-encoding.enum.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-encoding.enum.js","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"audio-encoding.enum.js","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,eAAe;IACtB,GAAG,EAAE,WAAW;CACR,CAAC"}
|
|
@@ -45,15 +45,16 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
45
45
|
encoding: z.ZodNativeEnum<{
|
|
46
46
|
readonly MP3: "audio/mp3";
|
|
47
47
|
readonly MULAW: "audio/x-mulaw";
|
|
48
|
+
readonly PCM: "audio/pcm";
|
|
48
49
|
}>;
|
|
49
50
|
}, "strip", z.ZodTypeAny, {
|
|
50
51
|
content: string;
|
|
51
52
|
state: "content";
|
|
52
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
53
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
53
54
|
}, {
|
|
54
55
|
content: string;
|
|
55
56
|
state: "content";
|
|
56
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
57
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
58
|
}>, z.ZodObject<{
|
|
58
59
|
state: z.ZodLiteral<"end">;
|
|
59
60
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -68,7 +69,7 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
68
69
|
} | {
|
|
69
70
|
content: string;
|
|
70
71
|
state: "content";
|
|
71
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
72
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
72
73
|
} | {
|
|
73
74
|
state: "end";
|
|
74
75
|
};
|
|
@@ -89,7 +90,7 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
89
90
|
} | {
|
|
90
91
|
content: string;
|
|
91
92
|
state: "content";
|
|
92
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
93
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
93
94
|
} | {
|
|
94
95
|
state: "end";
|
|
95
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.dto.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"audio.dto.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -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;IAC9C,IAAI,EAAE,+CAAwB,CAAC,IAAI;IAEnC,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,IAAI;QAEjB,UAAU,EAAE,mDAA4B,CAAC,MAAM;QAE/C,WAAW,EAAE;YACX,OAAO,EAAE,IAAI;SACd;QACD,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACN,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,2BAA2B;SACzC;QACD,eAAe,EAAE,YAAY;QAC7B,YAAY,EAAE;YACZ,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,6CAA6C;SACpD;QACD,UAAU,EAAE;YACV,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,gBAAgB;YACvB,WAAW,EACT,iMAAiM;YACnM,iBAAiB,EAAE,QAAQ;YAC3B,mBAAmB,EAAE,gBAAgB;YACrC,kBAAkB,EAAE,EAAE;SACvB;QACD,sBAAsB,EAAE,EAAE;KAC3B;IACD,KAAK,EAAE;QACL,UAAU,EAAE,oDAA6B,CAAC,IAAI;QAC9C,OAAO,EAAE;YACP,gBAAgB,EAAE,qBAAqB;YACvC,eAAe,EAAE,cAAc;YAC/B,aAAa,EAAE,cAAc;YAC7B,WAAW,EAAE,mBAAmB;YAChC,aAAa,EAAE,KAAK;SACrB;KACF;IACD,MAAM,EAAE;QACN,UAAU,EAAE,WAAW;QACvB,QAAQ,EAAE;YACR,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,iDAA0B,CAAC,IAAI;SACtC;QACD,SAAS,EAAE,IAAI;QACf,UAAU,EAAE;YACV,OAAO,EAAE,IAAI;SACd;QACD,QAAQ,EAAE,mDAA4B,CAAC,KAAK;QAC5C,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE;YACZ,KAAK,EAAE,0CAAkC;YACzC,OAAO,EAAE,uCAA+B;SACzC;QACD,WAAW,EAAE,oDAA6B,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;
|
|
@@ -229,6 +274,14 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
229
274
|
text: string;
|
|
230
275
|
enabled: boolean;
|
|
231
276
|
};
|
|
277
|
+
disclaimer?: {
|
|
278
|
+
title: string;
|
|
279
|
+
description: string;
|
|
280
|
+
enabled: boolean;
|
|
281
|
+
primaryButtonText: string;
|
|
282
|
+
secondaryButtonText: string;
|
|
283
|
+
secondaryButtonURL: string;
|
|
284
|
+
} | undefined;
|
|
232
285
|
handoffToAgentImageURL?: string | null | undefined;
|
|
233
286
|
}, {
|
|
234
287
|
voiceInput: boolean;
|
|
@@ -253,6 +306,14 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
253
306
|
text: string;
|
|
254
307
|
enabled: boolean;
|
|
255
308
|
};
|
|
309
|
+
disclaimer?: {
|
|
310
|
+
title: string;
|
|
311
|
+
description: string;
|
|
312
|
+
enabled: boolean;
|
|
313
|
+
primaryButtonText: string;
|
|
314
|
+
secondaryButtonText: string;
|
|
315
|
+
secondaryButtonURL: string;
|
|
316
|
+
} | undefined;
|
|
256
317
|
handoffToAgentImageURL?: string | null | undefined;
|
|
257
318
|
}>;
|
|
258
319
|
export type WidgetSettingsChatSettings = z.infer<typeof WidgetSettingsChatSettingsDTO>;
|
|
@@ -536,6 +597,43 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
|
|
|
536
597
|
persistence: string;
|
|
537
598
|
}>;
|
|
538
599
|
export type WidgetSettingsCommonSettings = z.infer<typeof WidgetSettingsCommonSettingsDTO>;
|
|
600
|
+
export declare const WidgetSettingsSecuritySettingsApprovedDomainsDTO: z.ZodObject<{
|
|
601
|
+
enabled: z.ZodBoolean;
|
|
602
|
+
domains: z.ZodString;
|
|
603
|
+
}, "strip", z.ZodTypeAny, {
|
|
604
|
+
enabled: boolean;
|
|
605
|
+
domains: string;
|
|
606
|
+
}, {
|
|
607
|
+
enabled: boolean;
|
|
608
|
+
domains: string;
|
|
609
|
+
}>;
|
|
610
|
+
export type WidgetSettingsSecuritySettingsApprovedDomains = z.infer<typeof WidgetSettingsSecuritySettingsApprovedDomainsDTO>;
|
|
611
|
+
export declare const WidgetSettingsSecuritySettingsDTO: z.ZodObject<{
|
|
612
|
+
approvedDomains: z.ZodObject<{
|
|
613
|
+
enabled: z.ZodBoolean;
|
|
614
|
+
domains: z.ZodString;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
enabled: boolean;
|
|
617
|
+
domains: string;
|
|
618
|
+
}, {
|
|
619
|
+
enabled: boolean;
|
|
620
|
+
domains: string;
|
|
621
|
+
}>;
|
|
622
|
+
disableTranscript: z.ZodBoolean;
|
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
|
624
|
+
approvedDomains: {
|
|
625
|
+
enabled: boolean;
|
|
626
|
+
domains: string;
|
|
627
|
+
};
|
|
628
|
+
disableTranscript: boolean;
|
|
629
|
+
}, {
|
|
630
|
+
approvedDomains: {
|
|
631
|
+
enabled: boolean;
|
|
632
|
+
domains: string;
|
|
633
|
+
};
|
|
634
|
+
disableTranscript: boolean;
|
|
635
|
+
}>;
|
|
636
|
+
export type WidgetSettingsSecuritySettings = z.infer<typeof WidgetSettingsSecuritySettingsDTO>;
|
|
539
637
|
export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
540
638
|
type: z.ZodNativeEnum<{
|
|
541
639
|
readonly CHAT: "chat";
|
|
@@ -586,6 +684,28 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
586
684
|
imageURL?: string | null | undefined;
|
|
587
685
|
}>;
|
|
588
686
|
placeholderText: z.ZodString;
|
|
687
|
+
disclaimer: z.ZodOptional<z.ZodObject<{
|
|
688
|
+
enabled: z.ZodBoolean;
|
|
689
|
+
title: z.ZodString;
|
|
690
|
+
description: z.ZodString;
|
|
691
|
+
primaryButtonText: z.ZodString;
|
|
692
|
+
secondaryButtonText: z.ZodString;
|
|
693
|
+
secondaryButtonURL: z.ZodString;
|
|
694
|
+
}, "strip", z.ZodTypeAny, {
|
|
695
|
+
title: string;
|
|
696
|
+
description: string;
|
|
697
|
+
enabled: boolean;
|
|
698
|
+
primaryButtonText: string;
|
|
699
|
+
secondaryButtonText: string;
|
|
700
|
+
secondaryButtonURL: string;
|
|
701
|
+
}, {
|
|
702
|
+
title: string;
|
|
703
|
+
description: string;
|
|
704
|
+
enabled: boolean;
|
|
705
|
+
primaryButtonText: string;
|
|
706
|
+
secondaryButtonText: string;
|
|
707
|
+
secondaryButtonURL: string;
|
|
708
|
+
}>>;
|
|
589
709
|
aiDisclaimer: z.ZodObject<{
|
|
590
710
|
text: z.ZodString;
|
|
591
711
|
enabled: z.ZodBoolean;
|
|
@@ -620,6 +740,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
620
740
|
text: string;
|
|
621
741
|
enabled: boolean;
|
|
622
742
|
};
|
|
743
|
+
disclaimer?: {
|
|
744
|
+
title: string;
|
|
745
|
+
description: string;
|
|
746
|
+
enabled: boolean;
|
|
747
|
+
primaryButtonText: string;
|
|
748
|
+
secondaryButtonText: string;
|
|
749
|
+
secondaryButtonURL: string;
|
|
750
|
+
} | undefined;
|
|
623
751
|
handoffToAgentImageURL?: string | null | undefined;
|
|
624
752
|
}, {
|
|
625
753
|
voiceInput: boolean;
|
|
@@ -644,6 +772,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
644
772
|
text: string;
|
|
645
773
|
enabled: boolean;
|
|
646
774
|
};
|
|
775
|
+
disclaimer?: {
|
|
776
|
+
title: string;
|
|
777
|
+
description: string;
|
|
778
|
+
enabled: boolean;
|
|
779
|
+
primaryButtonText: string;
|
|
780
|
+
secondaryButtonText: string;
|
|
781
|
+
secondaryButtonURL: string;
|
|
782
|
+
} | undefined;
|
|
647
783
|
handoffToAgentImageURL?: string | null | undefined;
|
|
648
784
|
}>;
|
|
649
785
|
voice: z.ZodObject<{
|
|
@@ -869,6 +1005,31 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
869
1005
|
};
|
|
870
1006
|
persistence: string;
|
|
871
1007
|
}>;
|
|
1008
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
1009
|
+
approvedDomains: z.ZodObject<{
|
|
1010
|
+
enabled: z.ZodBoolean;
|
|
1011
|
+
domains: z.ZodString;
|
|
1012
|
+
}, "strip", z.ZodTypeAny, {
|
|
1013
|
+
enabled: boolean;
|
|
1014
|
+
domains: string;
|
|
1015
|
+
}, {
|
|
1016
|
+
enabled: boolean;
|
|
1017
|
+
domains: string;
|
|
1018
|
+
}>;
|
|
1019
|
+
disableTranscript: z.ZodBoolean;
|
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
|
1021
|
+
approvedDomains: {
|
|
1022
|
+
enabled: boolean;
|
|
1023
|
+
domains: string;
|
|
1024
|
+
};
|
|
1025
|
+
disableTranscript: boolean;
|
|
1026
|
+
}, {
|
|
1027
|
+
approvedDomains: {
|
|
1028
|
+
enabled: boolean;
|
|
1029
|
+
domains: string;
|
|
1030
|
+
};
|
|
1031
|
+
disableTranscript: boolean;
|
|
1032
|
+
}>>;
|
|
872
1033
|
}, "strip", z.ZodTypeAny, {
|
|
873
1034
|
type: "voice" | "chat";
|
|
874
1035
|
voice: {
|
|
@@ -905,6 +1066,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
905
1066
|
text: string;
|
|
906
1067
|
enabled: boolean;
|
|
907
1068
|
};
|
|
1069
|
+
disclaimer?: {
|
|
1070
|
+
title: string;
|
|
1071
|
+
description: string;
|
|
1072
|
+
enabled: boolean;
|
|
1073
|
+
primaryButtonText: string;
|
|
1074
|
+
secondaryButtonText: string;
|
|
1075
|
+
secondaryButtonURL: string;
|
|
1076
|
+
} | undefined;
|
|
908
1077
|
handoffToAgentImageURL?: string | null | undefined;
|
|
909
1078
|
};
|
|
910
1079
|
common: {
|
|
@@ -940,6 +1109,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
940
1109
|
};
|
|
941
1110
|
persistence: string;
|
|
942
1111
|
};
|
|
1112
|
+
security?: {
|
|
1113
|
+
approvedDomains: {
|
|
1114
|
+
enabled: boolean;
|
|
1115
|
+
domains: string;
|
|
1116
|
+
};
|
|
1117
|
+
disableTranscript: boolean;
|
|
1118
|
+
} | undefined;
|
|
943
1119
|
}, {
|
|
944
1120
|
type: "voice" | "chat";
|
|
945
1121
|
voice: {
|
|
@@ -976,6 +1152,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
976
1152
|
text: string;
|
|
977
1153
|
enabled: boolean;
|
|
978
1154
|
};
|
|
1155
|
+
disclaimer?: {
|
|
1156
|
+
title: string;
|
|
1157
|
+
description: string;
|
|
1158
|
+
enabled: boolean;
|
|
1159
|
+
primaryButtonText: string;
|
|
1160
|
+
secondaryButtonText: string;
|
|
1161
|
+
secondaryButtonURL: string;
|
|
1162
|
+
} | undefined;
|
|
979
1163
|
handoffToAgentImageURL?: string | null | undefined;
|
|
980
1164
|
};
|
|
981
1165
|
common: {
|
|
@@ -1011,6 +1195,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
1011
1195
|
};
|
|
1012
1196
|
persistence: string;
|
|
1013
1197
|
};
|
|
1198
|
+
security?: {
|
|
1199
|
+
approvedDomains: {
|
|
1200
|
+
enabled: boolean;
|
|
1201
|
+
domains: string;
|
|
1202
|
+
};
|
|
1203
|
+
disableTranscript: boolean;
|
|
1204
|
+
} | undefined;
|
|
1014
1205
|
}>;
|
|
1015
1206
|
export type WidgetSettings = z.infer<typeof WidgetSettingsDTO>;
|
|
1016
1207
|
//# 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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(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,6 +53,7 @@ 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(),
|
|
50
59
|
});
|
|
@@ -81,10 +90,19 @@ exports.WidgetSettingsCommonSettingsDTO = zod_1.z.object({
|
|
|
81
90
|
footerLink: exports.WidgetSettingsCommonSettingsFooterLinkDTO,
|
|
82
91
|
persistence: zod_1.z.nativeEnum(widget_settings_enum_1.WidgetSettingsChatPersistence),
|
|
83
92
|
});
|
|
93
|
+
exports.WidgetSettingsSecuritySettingsApprovedDomainsDTO = zod_1.z.object({
|
|
94
|
+
enabled: zod_1.z.boolean(),
|
|
95
|
+
domains: zod_1.z.string(),
|
|
96
|
+
});
|
|
97
|
+
exports.WidgetSettingsSecuritySettingsDTO = zod_1.z.object({
|
|
98
|
+
approvedDomains: exports.WidgetSettingsSecuritySettingsApprovedDomainsDTO,
|
|
99
|
+
disableTranscript: zod_1.z.boolean(),
|
|
100
|
+
});
|
|
84
101
|
exports.WidgetSettingsDTO = zod_1.z.object({
|
|
85
102
|
type: zod_1.z.nativeEnum(widget_settings_enum_1.WidgetSettingsWidgetType),
|
|
86
103
|
chat: exports.WidgetSettingsChatSettingsDTO,
|
|
87
104
|
voice: exports.WidgetSettingsVoiceSettingsDTO,
|
|
88
105
|
common: exports.WidgetSettingsCommonSettingsDTO,
|
|
106
|
+
security: exports.WidgetSettingsSecuritySettingsDTO.optional(),
|
|
89
107
|
});
|
|
90
108
|
//# 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,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AAC,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"}
|
|
@@ -45,15 +45,16 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
45
45
|
encoding: z.ZodNativeEnum<{
|
|
46
46
|
readonly MP3: "audio/mp3";
|
|
47
47
|
readonly MULAW: "audio/x-mulaw";
|
|
48
|
+
readonly PCM: "audio/pcm";
|
|
48
49
|
}>;
|
|
49
50
|
}, "strip", z.ZodTypeAny, {
|
|
50
51
|
content: string;
|
|
51
52
|
state: "content";
|
|
52
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
53
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
53
54
|
}, {
|
|
54
55
|
content: string;
|
|
55
56
|
state: "content";
|
|
56
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
57
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
58
|
}>, z.ZodObject<{
|
|
58
59
|
state: z.ZodLiteral<"end">;
|
|
59
60
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -68,7 +69,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
68
69
|
} | {
|
|
69
70
|
content: string;
|
|
70
71
|
state: "content";
|
|
71
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
72
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
72
73
|
} | {
|
|
73
74
|
state: "end";
|
|
74
75
|
};
|
|
@@ -89,7 +90,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
89
90
|
} | {
|
|
90
91
|
content: string;
|
|
91
92
|
state: "content";
|
|
92
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
93
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
93
94
|
} | {
|
|
94
95
|
state: "end";
|
|
95
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/any.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"any.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/any.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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1,7 @@
|
|
|
1
1
|
export declare const AudioEncoding: {
|
|
2
2
|
readonly MP3: "audio/mp3";
|
|
3
3
|
readonly MULAW: "audio/x-mulaw";
|
|
4
|
+
readonly PCM: "audio/pcm";
|
|
4
5
|
};
|
|
5
6
|
export type AudioEncoding = (typeof AudioEncoding)[keyof typeof AudioEncoding];
|
|
6
7
|
//# sourceMappingURL=audio-encoding.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-encoding.enum.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"audio-encoding.enum.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-encoding.enum.js","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"audio-encoding.enum.js","sourceRoot":"","sources":["../../../../src/trace/audio/audio-encoding.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,eAAe;IACtB,GAAG,EAAE,WAAW;CACR,CAAC"}
|
|
@@ -45,15 +45,16 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
45
45
|
encoding: z.ZodNativeEnum<{
|
|
46
46
|
readonly MP3: "audio/mp3";
|
|
47
47
|
readonly MULAW: "audio/x-mulaw";
|
|
48
|
+
readonly PCM: "audio/pcm";
|
|
48
49
|
}>;
|
|
49
50
|
}, "strip", z.ZodTypeAny, {
|
|
50
51
|
content: string;
|
|
51
52
|
state: "content";
|
|
52
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
53
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
53
54
|
}, {
|
|
54
55
|
content: string;
|
|
55
56
|
state: "content";
|
|
56
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
57
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
58
|
}>, z.ZodObject<{
|
|
58
59
|
state: z.ZodLiteral<"end">;
|
|
59
60
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -68,7 +69,7 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
68
69
|
} | {
|
|
69
70
|
content: string;
|
|
70
71
|
state: "content";
|
|
71
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
72
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
72
73
|
} | {
|
|
73
74
|
state: "end";
|
|
74
75
|
};
|
|
@@ -89,7 +90,7 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
89
90
|
} | {
|
|
90
91
|
content: string;
|
|
91
92
|
state: "content";
|
|
92
|
-
encoding: "audio/mp3" | "audio/x-mulaw";
|
|
93
|
+
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
93
94
|
} | {
|
|
94
95
|
state: "end";
|
|
95
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.dto.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"audio.dto.d.ts","sourceRoot":"","sources":["../../../../src/trace/audio/audio.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,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,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,GAAG;IAC9C,IAAI,EAAE,wBAAwB,CAAC,IAAI;IAEnC,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,IAAI;QAEjB,UAAU,EAAE,4BAA4B,CAAC,MAAM;QAE/C,WAAW,EAAE;YACX,OAAO,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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;
|
|
@@ -229,6 +274,14 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
229
274
|
text: string;
|
|
230
275
|
enabled: boolean;
|
|
231
276
|
};
|
|
277
|
+
disclaimer?: {
|
|
278
|
+
title: string;
|
|
279
|
+
description: string;
|
|
280
|
+
enabled: boolean;
|
|
281
|
+
primaryButtonText: string;
|
|
282
|
+
secondaryButtonText: string;
|
|
283
|
+
secondaryButtonURL: string;
|
|
284
|
+
} | undefined;
|
|
232
285
|
handoffToAgentImageURL?: string | null | undefined;
|
|
233
286
|
}, {
|
|
234
287
|
voiceInput: boolean;
|
|
@@ -253,6 +306,14 @@ export declare const WidgetSettingsChatSettingsDTO: z.ZodObject<{
|
|
|
253
306
|
text: string;
|
|
254
307
|
enabled: boolean;
|
|
255
308
|
};
|
|
309
|
+
disclaimer?: {
|
|
310
|
+
title: string;
|
|
311
|
+
description: string;
|
|
312
|
+
enabled: boolean;
|
|
313
|
+
primaryButtonText: string;
|
|
314
|
+
secondaryButtonText: string;
|
|
315
|
+
secondaryButtonURL: string;
|
|
316
|
+
} | undefined;
|
|
256
317
|
handoffToAgentImageURL?: string | null | undefined;
|
|
257
318
|
}>;
|
|
258
319
|
export type WidgetSettingsChatSettings = z.infer<typeof WidgetSettingsChatSettingsDTO>;
|
|
@@ -536,6 +597,43 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
|
|
|
536
597
|
persistence: string;
|
|
537
598
|
}>;
|
|
538
599
|
export type WidgetSettingsCommonSettings = z.infer<typeof WidgetSettingsCommonSettingsDTO>;
|
|
600
|
+
export declare const WidgetSettingsSecuritySettingsApprovedDomainsDTO: z.ZodObject<{
|
|
601
|
+
enabled: z.ZodBoolean;
|
|
602
|
+
domains: z.ZodString;
|
|
603
|
+
}, "strip", z.ZodTypeAny, {
|
|
604
|
+
enabled: boolean;
|
|
605
|
+
domains: string;
|
|
606
|
+
}, {
|
|
607
|
+
enabled: boolean;
|
|
608
|
+
domains: string;
|
|
609
|
+
}>;
|
|
610
|
+
export type WidgetSettingsSecuritySettingsApprovedDomains = z.infer<typeof WidgetSettingsSecuritySettingsApprovedDomainsDTO>;
|
|
611
|
+
export declare const WidgetSettingsSecuritySettingsDTO: z.ZodObject<{
|
|
612
|
+
approvedDomains: z.ZodObject<{
|
|
613
|
+
enabled: z.ZodBoolean;
|
|
614
|
+
domains: z.ZodString;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
enabled: boolean;
|
|
617
|
+
domains: string;
|
|
618
|
+
}, {
|
|
619
|
+
enabled: boolean;
|
|
620
|
+
domains: string;
|
|
621
|
+
}>;
|
|
622
|
+
disableTranscript: z.ZodBoolean;
|
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
|
624
|
+
approvedDomains: {
|
|
625
|
+
enabled: boolean;
|
|
626
|
+
domains: string;
|
|
627
|
+
};
|
|
628
|
+
disableTranscript: boolean;
|
|
629
|
+
}, {
|
|
630
|
+
approvedDomains: {
|
|
631
|
+
enabled: boolean;
|
|
632
|
+
domains: string;
|
|
633
|
+
};
|
|
634
|
+
disableTranscript: boolean;
|
|
635
|
+
}>;
|
|
636
|
+
export type WidgetSettingsSecuritySettings = z.infer<typeof WidgetSettingsSecuritySettingsDTO>;
|
|
539
637
|
export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
540
638
|
type: z.ZodNativeEnum<{
|
|
541
639
|
readonly CHAT: "chat";
|
|
@@ -586,6 +684,28 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
586
684
|
imageURL?: string | null | undefined;
|
|
587
685
|
}>;
|
|
588
686
|
placeholderText: z.ZodString;
|
|
687
|
+
disclaimer: z.ZodOptional<z.ZodObject<{
|
|
688
|
+
enabled: z.ZodBoolean;
|
|
689
|
+
title: z.ZodString;
|
|
690
|
+
description: z.ZodString;
|
|
691
|
+
primaryButtonText: z.ZodString;
|
|
692
|
+
secondaryButtonText: z.ZodString;
|
|
693
|
+
secondaryButtonURL: z.ZodString;
|
|
694
|
+
}, "strip", z.ZodTypeAny, {
|
|
695
|
+
title: string;
|
|
696
|
+
description: string;
|
|
697
|
+
enabled: boolean;
|
|
698
|
+
primaryButtonText: string;
|
|
699
|
+
secondaryButtonText: string;
|
|
700
|
+
secondaryButtonURL: string;
|
|
701
|
+
}, {
|
|
702
|
+
title: string;
|
|
703
|
+
description: string;
|
|
704
|
+
enabled: boolean;
|
|
705
|
+
primaryButtonText: string;
|
|
706
|
+
secondaryButtonText: string;
|
|
707
|
+
secondaryButtonURL: string;
|
|
708
|
+
}>>;
|
|
589
709
|
aiDisclaimer: z.ZodObject<{
|
|
590
710
|
text: z.ZodString;
|
|
591
711
|
enabled: z.ZodBoolean;
|
|
@@ -620,6 +740,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
620
740
|
text: string;
|
|
621
741
|
enabled: boolean;
|
|
622
742
|
};
|
|
743
|
+
disclaimer?: {
|
|
744
|
+
title: string;
|
|
745
|
+
description: string;
|
|
746
|
+
enabled: boolean;
|
|
747
|
+
primaryButtonText: string;
|
|
748
|
+
secondaryButtonText: string;
|
|
749
|
+
secondaryButtonURL: string;
|
|
750
|
+
} | undefined;
|
|
623
751
|
handoffToAgentImageURL?: string | null | undefined;
|
|
624
752
|
}, {
|
|
625
753
|
voiceInput: boolean;
|
|
@@ -644,6 +772,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
644
772
|
text: string;
|
|
645
773
|
enabled: boolean;
|
|
646
774
|
};
|
|
775
|
+
disclaimer?: {
|
|
776
|
+
title: string;
|
|
777
|
+
description: string;
|
|
778
|
+
enabled: boolean;
|
|
779
|
+
primaryButtonText: string;
|
|
780
|
+
secondaryButtonText: string;
|
|
781
|
+
secondaryButtonURL: string;
|
|
782
|
+
} | undefined;
|
|
647
783
|
handoffToAgentImageURL?: string | null | undefined;
|
|
648
784
|
}>;
|
|
649
785
|
voice: z.ZodObject<{
|
|
@@ -869,6 +1005,31 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
869
1005
|
};
|
|
870
1006
|
persistence: string;
|
|
871
1007
|
}>;
|
|
1008
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
1009
|
+
approvedDomains: z.ZodObject<{
|
|
1010
|
+
enabled: z.ZodBoolean;
|
|
1011
|
+
domains: z.ZodString;
|
|
1012
|
+
}, "strip", z.ZodTypeAny, {
|
|
1013
|
+
enabled: boolean;
|
|
1014
|
+
domains: string;
|
|
1015
|
+
}, {
|
|
1016
|
+
enabled: boolean;
|
|
1017
|
+
domains: string;
|
|
1018
|
+
}>;
|
|
1019
|
+
disableTranscript: z.ZodBoolean;
|
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
|
1021
|
+
approvedDomains: {
|
|
1022
|
+
enabled: boolean;
|
|
1023
|
+
domains: string;
|
|
1024
|
+
};
|
|
1025
|
+
disableTranscript: boolean;
|
|
1026
|
+
}, {
|
|
1027
|
+
approvedDomains: {
|
|
1028
|
+
enabled: boolean;
|
|
1029
|
+
domains: string;
|
|
1030
|
+
};
|
|
1031
|
+
disableTranscript: boolean;
|
|
1032
|
+
}>>;
|
|
872
1033
|
}, "strip", z.ZodTypeAny, {
|
|
873
1034
|
type: "voice" | "chat";
|
|
874
1035
|
voice: {
|
|
@@ -905,6 +1066,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
905
1066
|
text: string;
|
|
906
1067
|
enabled: boolean;
|
|
907
1068
|
};
|
|
1069
|
+
disclaimer?: {
|
|
1070
|
+
title: string;
|
|
1071
|
+
description: string;
|
|
1072
|
+
enabled: boolean;
|
|
1073
|
+
primaryButtonText: string;
|
|
1074
|
+
secondaryButtonText: string;
|
|
1075
|
+
secondaryButtonURL: string;
|
|
1076
|
+
} | undefined;
|
|
908
1077
|
handoffToAgentImageURL?: string | null | undefined;
|
|
909
1078
|
};
|
|
910
1079
|
common: {
|
|
@@ -940,6 +1109,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
940
1109
|
};
|
|
941
1110
|
persistence: string;
|
|
942
1111
|
};
|
|
1112
|
+
security?: {
|
|
1113
|
+
approvedDomains: {
|
|
1114
|
+
enabled: boolean;
|
|
1115
|
+
domains: string;
|
|
1116
|
+
};
|
|
1117
|
+
disableTranscript: boolean;
|
|
1118
|
+
} | undefined;
|
|
943
1119
|
}, {
|
|
944
1120
|
type: "voice" | "chat";
|
|
945
1121
|
voice: {
|
|
@@ -976,6 +1152,14 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
976
1152
|
text: string;
|
|
977
1153
|
enabled: boolean;
|
|
978
1154
|
};
|
|
1155
|
+
disclaimer?: {
|
|
1156
|
+
title: string;
|
|
1157
|
+
description: string;
|
|
1158
|
+
enabled: boolean;
|
|
1159
|
+
primaryButtonText: string;
|
|
1160
|
+
secondaryButtonText: string;
|
|
1161
|
+
secondaryButtonURL: string;
|
|
1162
|
+
} | undefined;
|
|
979
1163
|
handoffToAgentImageURL?: string | null | undefined;
|
|
980
1164
|
};
|
|
981
1165
|
common: {
|
|
@@ -1011,6 +1195,13 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
|
|
|
1011
1195
|
};
|
|
1012
1196
|
persistence: string;
|
|
1013
1197
|
};
|
|
1198
|
+
security?: {
|
|
1199
|
+
approvedDomains: {
|
|
1200
|
+
enabled: boolean;
|
|
1201
|
+
domains: string;
|
|
1202
|
+
};
|
|
1203
|
+
disableTranscript: boolean;
|
|
1204
|
+
} | undefined;
|
|
1014
1205
|
}>;
|
|
1015
1206
|
export type WidgetSettings = z.infer<typeof WidgetSettingsDTO>;
|
|
1016
1207
|
//# 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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
|
@@ -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,6 +50,7 @@ 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(),
|
|
47
56
|
});
|
|
@@ -78,10 +87,19 @@ export const WidgetSettingsCommonSettingsDTO = z.object({
|
|
|
78
87
|
footerLink: WidgetSettingsCommonSettingsFooterLinkDTO,
|
|
79
88
|
persistence: z.nativeEnum(WidgetSettingsChatPersistence),
|
|
80
89
|
});
|
|
90
|
+
export const WidgetSettingsSecuritySettingsApprovedDomainsDTO = z.object({
|
|
91
|
+
enabled: z.boolean(),
|
|
92
|
+
domains: z.string(),
|
|
93
|
+
});
|
|
94
|
+
export const WidgetSettingsSecuritySettingsDTO = z.object({
|
|
95
|
+
approvedDomains: WidgetSettingsSecuritySettingsApprovedDomainsDTO,
|
|
96
|
+
disableTranscript: z.boolean(),
|
|
97
|
+
});
|
|
81
98
|
export const WidgetSettingsDTO = z.object({
|
|
82
99
|
type: z.nativeEnum(WidgetSettingsWidgetType),
|
|
83
100
|
chat: WidgetSettingsChatSettingsDTO,
|
|
84
101
|
voice: WidgetSettingsVoiceSettingsDTO,
|
|
85
102
|
common: WidgetSettingsCommonSettingsDTO,
|
|
103
|
+
security: WidgetSettingsSecuritySettingsDTO.optional(),
|
|
86
104
|
});
|
|
87
105
|
//# 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,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,6BAA6B;CACvC,CAAC,CAAC;AAIH,MAAM,CAAC,MA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CAAC;IACxD,eAAe,EAAE,gDAAgD;IACjE,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,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.16.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": "2f8e3a77dec84594c95ba003fb60fb9786ad278b"
|
|
47
47
|
}
|