@voiceflow/dtos-interact 1.35.0 → 1.36.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 +6 -9
- package/build/cjs/trace/any.dto.d.ts.map +1 -1
- package/build/cjs/trace/audio/audio.dto.d.ts +0 -5
- package/build/cjs/trace/audio/audio.dto.d.ts.map +1 -1
- package/build/cjs/trace/audio/audio.dto.js +0 -1
- package/build/cjs/trace/audio/audio.dto.js.map +1 -1
- package/build/cjs/trace/live-agent-handoff.dto.d.ts +8 -4
- package/build/cjs/trace/live-agent-handoff.dto.d.ts.map +1 -1
- package/build/cjs/trace/live-agent-handoff.dto.js +2 -0
- package/build/cjs/trace/live-agent-handoff.dto.js.map +1 -1
- package/build/esm/trace/any.dto.d.ts +6 -9
- package/build/esm/trace/any.dto.d.ts.map +1 -1
- package/build/esm/trace/audio/audio.dto.d.ts +0 -5
- package/build/esm/trace/audio/audio.dto.d.ts.map +1 -1
- package/build/esm/trace/audio/audio.dto.js +0 -1
- package/build/esm/trace/audio/audio.dto.js.map +1 -1
- package/build/esm/trace/live-agent-handoff.dto.d.ts +8 -4
- package/build/esm/trace/live-agent-handoff.dto.d.ts.map +1 -1
- package/build/esm/trace/live-agent-handoff.dto.js +2 -0
- package/build/esm/trace/live-agent-handoff.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -48,19 +48,16 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
48
48
|
readonly MULAW: "audio/x-mulaw";
|
|
49
49
|
readonly PCM: "audio/pcm";
|
|
50
50
|
}>;
|
|
51
|
-
text: z.ZodOptional<z.ZodString>;
|
|
52
51
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
53
52
|
}, "strip", z.ZodTypeAny, {
|
|
54
53
|
content: string;
|
|
55
54
|
state: "content";
|
|
56
55
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
|
-
text?: string | undefined;
|
|
58
56
|
duration?: number | undefined;
|
|
59
57
|
}, {
|
|
60
58
|
content: string;
|
|
61
59
|
state: "content";
|
|
62
60
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
63
|
-
text?: string | undefined;
|
|
64
61
|
duration?: number | undefined;
|
|
65
62
|
}>, z.ZodObject<{
|
|
66
63
|
state: z.ZodLiteral<"end">;
|
|
@@ -77,7 +74,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
77
74
|
content: string;
|
|
78
75
|
state: "content";
|
|
79
76
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
80
|
-
text?: string | undefined;
|
|
81
77
|
duration?: number | undefined;
|
|
82
78
|
} | {
|
|
83
79
|
state: "end";
|
|
@@ -100,7 +96,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
100
96
|
content: string;
|
|
101
97
|
state: "content";
|
|
102
98
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
103
|
-
text?: string | undefined;
|
|
104
99
|
duration?: number | undefined;
|
|
105
100
|
} | {
|
|
106
101
|
state: "end";
|
|
@@ -3071,6 +3066,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3071
3066
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
3072
3067
|
readonly PARTICIPANT_LEFT: "participant_left";
|
|
3073
3068
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
3069
|
+
readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
|
|
3070
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
3074
3071
|
}>;
|
|
3075
3072
|
conversationID: z.ZodString;
|
|
3076
3073
|
message: z.ZodString;
|
|
@@ -3086,7 +3083,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3086
3083
|
}>>;
|
|
3087
3084
|
}, "strip", z.ZodTypeAny, {
|
|
3088
3085
|
message: string;
|
|
3089
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3086
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3090
3087
|
conversationID: string;
|
|
3091
3088
|
agent?: {
|
|
3092
3089
|
name: string;
|
|
@@ -3094,7 +3091,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3094
3091
|
} | undefined;
|
|
3095
3092
|
}, {
|
|
3096
3093
|
message: string;
|
|
3097
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3094
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3098
3095
|
conversationID: string;
|
|
3099
3096
|
agent?: {
|
|
3100
3097
|
name: string;
|
|
@@ -3105,7 +3102,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3105
3102
|
type: "live-agent-handoff";
|
|
3106
3103
|
payload: {
|
|
3107
3104
|
message: string;
|
|
3108
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3105
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3109
3106
|
conversationID: string;
|
|
3110
3107
|
agent?: {
|
|
3111
3108
|
name: string;
|
|
@@ -3126,7 +3123,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3126
3123
|
type: "live-agent-handoff";
|
|
3127
3124
|
payload: {
|
|
3128
3125
|
message: string;
|
|
3129
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3126
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3130
3127
|
conversationID: string;
|
|
3131
3128
|
agent?: {
|
|
3132
3129
|
name: string;
|
|
@@ -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;AA2BxB,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;AA2BxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBtB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -48,19 +48,16 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
48
48
|
readonly MULAW: "audio/x-mulaw";
|
|
49
49
|
readonly PCM: "audio/pcm";
|
|
50
50
|
}>;
|
|
51
|
-
text: z.ZodOptional<z.ZodString>;
|
|
52
51
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
53
52
|
}, "strip", z.ZodTypeAny, {
|
|
54
53
|
content: string;
|
|
55
54
|
state: "content";
|
|
56
55
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
|
-
text?: string | undefined;
|
|
58
56
|
duration?: number | undefined;
|
|
59
57
|
}, {
|
|
60
58
|
content: string;
|
|
61
59
|
state: "content";
|
|
62
60
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
63
|
-
text?: string | undefined;
|
|
64
61
|
duration?: number | undefined;
|
|
65
62
|
}>, z.ZodObject<{
|
|
66
63
|
state: z.ZodLiteral<"end">;
|
|
@@ -77,7 +74,6 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
77
74
|
content: string;
|
|
78
75
|
state: "content";
|
|
79
76
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
80
|
-
text?: string | undefined;
|
|
81
77
|
duration?: number | undefined;
|
|
82
78
|
} | {
|
|
83
79
|
state: "end";
|
|
@@ -100,7 +96,6 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
100
96
|
content: string;
|
|
101
97
|
state: "content";
|
|
102
98
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
103
|
-
text?: string | undefined;
|
|
104
99
|
duration?: number | undefined;
|
|
105
100
|
} | {
|
|
106
101
|
state: "end";
|
|
@@ -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;
|
|
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;AAsBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -13,7 +13,6 @@ const AudioContentStateDTO = zod_1.z.object({
|
|
|
13
13
|
state: zod_1.z.literal(audio_state_enum_1.AudioState.CONTENT),
|
|
14
14
|
content: zod_1.z.string(),
|
|
15
15
|
encoding: zod_1.z.nativeEnum(audio_encoding_enum_1.AudioEncoding),
|
|
16
|
-
text: zod_1.z.string().optional(),
|
|
17
16
|
duration: zod_1.z.number().optional(), // duration of audio in milliseconds
|
|
18
17
|
});
|
|
19
18
|
const AudioEndStateDTO = zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.dto.js","sourceRoot":"","sources":["../../../../src/trace/audio/audio.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,wDAA+C;AAC/C,4CAA4C;AAC5C,+DAAsD;AACtD,yDAAgD;AAEhD,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,6BAAU,CAAC,KAAK,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,6BAAU,CAAC,OAAO,CAAC;IACpC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,mCAAa,CAAC;IACrC,
|
|
1
|
+
{"version":3,"file":"audio.dto.js","sourceRoot":"","sources":["../../../../src/trace/audio/audio.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,wDAA+C;AAC/C,4CAA4C;AAC5C,+DAAsD;AACtD,yDAAgD;AAEhD,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,6BAAU,CAAC,KAAK,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,6BAAU,CAAC,OAAO,CAAC;IACpC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,mCAAa,CAAC;IACrC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,oCAAoC;CACtE,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChC,KAAK,EAAE,OAAC,CAAC,OAAO,CAAC,6BAAU,CAAC,GAAG,CAAC;CACjC,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,wBAAY,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,2BAAS,CAAC,KAAK,CAAC;IAChC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;CAC/E,CAAC,CAAC"}
|
|
@@ -7,6 +7,8 @@ export declare const LiveAgentHandoffEventType: {
|
|
|
7
7
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
8
8
|
readonly PARTICIPANT_LEFT: "participant_left";
|
|
9
9
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
10
|
+
readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
|
|
11
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
10
12
|
};
|
|
11
13
|
export type LiveAgentHandoffTrace = z.infer<typeof LiveAgentHandoffTraceDTO>;
|
|
12
14
|
export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
@@ -51,6 +53,8 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
51
53
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
52
54
|
readonly PARTICIPANT_LEFT: "participant_left";
|
|
53
55
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
56
|
+
readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
|
|
57
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
54
58
|
}>;
|
|
55
59
|
conversationID: z.ZodString;
|
|
56
60
|
message: z.ZodString;
|
|
@@ -66,7 +70,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
66
70
|
}>>;
|
|
67
71
|
}, "strip", z.ZodTypeAny, {
|
|
68
72
|
message: string;
|
|
69
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
73
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
70
74
|
conversationID: string;
|
|
71
75
|
agent?: {
|
|
72
76
|
name: string;
|
|
@@ -74,7 +78,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
74
78
|
} | undefined;
|
|
75
79
|
}, {
|
|
76
80
|
message: string;
|
|
77
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
81
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
78
82
|
conversationID: string;
|
|
79
83
|
agent?: {
|
|
80
84
|
name: string;
|
|
@@ -85,7 +89,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
85
89
|
type: "live-agent-handoff";
|
|
86
90
|
payload: {
|
|
87
91
|
message: string;
|
|
88
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
92
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
89
93
|
conversationID: string;
|
|
90
94
|
agent?: {
|
|
91
95
|
name: string;
|
|
@@ -106,7 +110,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
106
110
|
type: "live-agent-handoff";
|
|
107
111
|
payload: {
|
|
108
112
|
message: string;
|
|
109
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
113
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
110
114
|
conversationID: string;
|
|
111
115
|
agent?: {
|
|
112
116
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-agent-handoff.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/live-agent-handoff.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"live-agent-handoff.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/live-agent-handoff.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;CAQ5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC"}
|
|
@@ -10,6 +10,8 @@ exports.LiveAgentHandoffEventType = {
|
|
|
10
10
|
PARTICIPANT_JOINED: 'participant_joined',
|
|
11
11
|
PARTICIPANT_LEFT: 'participant_left',
|
|
12
12
|
MESSAGE_RECEIVED: 'message_received',
|
|
13
|
+
CHAT_DISMISSAL_WARNING: 'chat_dismissal_warning',
|
|
14
|
+
CHAT_DISMISSED: 'chat_dismissed',
|
|
13
15
|
};
|
|
14
16
|
exports.LiveAgentHandoffTraceDTO = utils_dto_1.BaseTraceDTO.extend({
|
|
15
17
|
type: zod_1.z.literal(trace_type_enum_1.TraceType.LIVE_AGENT_HANDOFF),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-agent-handoff.dto.js","sourceRoot":"","sources":["../../../src/trace/live-agent-handoff.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,uDAA8C;AAC9C,2CAA2C;AAG9B,QAAA,yBAAyB,GAAG;IACvC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"live-agent-handoff.dto.js","sourceRoot":"","sources":["../../../src/trace/live-agent-handoff.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,uDAA8C;AAC9C,2CAA2C;AAG9B,QAAA,yBAAyB,GAAG;IACvC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,wBAAwB;IAChD,cAAc,EAAE,gBAAgB;CACxB,CAAC;AAGE,QAAA,wBAAwB,GAAG,wBAAY,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,2BAAS,CAAC,kBAAkB,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,KAAK,EAAE,OAAC,CAAC,UAAU,CAAC,iCAAyB,CAAC;QAC9C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACjC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,OAAC;aACL,MAAM,CAAC;YACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACvB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;SACtC,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -48,19 +48,16 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
48
48
|
readonly MULAW: "audio/x-mulaw";
|
|
49
49
|
readonly PCM: "audio/pcm";
|
|
50
50
|
}>;
|
|
51
|
-
text: z.ZodOptional<z.ZodString>;
|
|
52
51
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
53
52
|
}, "strip", z.ZodTypeAny, {
|
|
54
53
|
content: string;
|
|
55
54
|
state: "content";
|
|
56
55
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
|
-
text?: string | undefined;
|
|
58
56
|
duration?: number | undefined;
|
|
59
57
|
}, {
|
|
60
58
|
content: string;
|
|
61
59
|
state: "content";
|
|
62
60
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
63
|
-
text?: string | undefined;
|
|
64
61
|
duration?: number | undefined;
|
|
65
62
|
}>, z.ZodObject<{
|
|
66
63
|
state: z.ZodLiteral<"end">;
|
|
@@ -77,7 +74,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
77
74
|
content: string;
|
|
78
75
|
state: "content";
|
|
79
76
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
80
|
-
text?: string | undefined;
|
|
81
77
|
duration?: number | undefined;
|
|
82
78
|
} | {
|
|
83
79
|
state: "end";
|
|
@@ -100,7 +96,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
100
96
|
content: string;
|
|
101
97
|
state: "content";
|
|
102
98
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
103
|
-
text?: string | undefined;
|
|
104
99
|
duration?: number | undefined;
|
|
105
100
|
} | {
|
|
106
101
|
state: "end";
|
|
@@ -3071,6 +3066,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3071
3066
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
3072
3067
|
readonly PARTICIPANT_LEFT: "participant_left";
|
|
3073
3068
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
3069
|
+
readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
|
|
3070
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
3074
3071
|
}>;
|
|
3075
3072
|
conversationID: z.ZodString;
|
|
3076
3073
|
message: z.ZodString;
|
|
@@ -3086,7 +3083,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3086
3083
|
}>>;
|
|
3087
3084
|
}, "strip", z.ZodTypeAny, {
|
|
3088
3085
|
message: string;
|
|
3089
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3086
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3090
3087
|
conversationID: string;
|
|
3091
3088
|
agent?: {
|
|
3092
3089
|
name: string;
|
|
@@ -3094,7 +3091,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3094
3091
|
} | undefined;
|
|
3095
3092
|
}, {
|
|
3096
3093
|
message: string;
|
|
3097
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3094
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3098
3095
|
conversationID: string;
|
|
3099
3096
|
agent?: {
|
|
3100
3097
|
name: string;
|
|
@@ -3105,7 +3102,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3105
3102
|
type: "live-agent-handoff";
|
|
3106
3103
|
payload: {
|
|
3107
3104
|
message: string;
|
|
3108
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3105
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3109
3106
|
conversationID: string;
|
|
3110
3107
|
agent?: {
|
|
3111
3108
|
name: string;
|
|
@@ -3126,7 +3123,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3126
3123
|
type: "live-agent-handoff";
|
|
3127
3124
|
payload: {
|
|
3128
3125
|
message: string;
|
|
3129
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
3126
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
3130
3127
|
conversationID: string;
|
|
3131
3128
|
agent?: {
|
|
3132
3129
|
name: string;
|
|
@@ -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;AA2BxB,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;AA2BxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -48,19 +48,16 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
48
48
|
readonly MULAW: "audio/x-mulaw";
|
|
49
49
|
readonly PCM: "audio/pcm";
|
|
50
50
|
}>;
|
|
51
|
-
text: z.ZodOptional<z.ZodString>;
|
|
52
51
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
53
52
|
}, "strip", z.ZodTypeAny, {
|
|
54
53
|
content: string;
|
|
55
54
|
state: "content";
|
|
56
55
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
57
|
-
text?: string | undefined;
|
|
58
56
|
duration?: number | undefined;
|
|
59
57
|
}, {
|
|
60
58
|
content: string;
|
|
61
59
|
state: "content";
|
|
62
60
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
63
|
-
text?: string | undefined;
|
|
64
61
|
duration?: number | undefined;
|
|
65
62
|
}>, z.ZodObject<{
|
|
66
63
|
state: z.ZodLiteral<"end">;
|
|
@@ -77,7 +74,6 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
77
74
|
content: string;
|
|
78
75
|
state: "content";
|
|
79
76
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
80
|
-
text?: string | undefined;
|
|
81
77
|
duration?: number | undefined;
|
|
82
78
|
} | {
|
|
83
79
|
state: "end";
|
|
@@ -100,7 +96,6 @@ export declare const AudioTraceDTO: z.ZodObject<{
|
|
|
100
96
|
content: string;
|
|
101
97
|
state: "content";
|
|
102
98
|
encoding: "audio/mp3" | "audio/x-mulaw" | "audio/pcm";
|
|
103
|
-
text?: string | undefined;
|
|
104
99
|
duration?: number | undefined;
|
|
105
100
|
} | {
|
|
106
101
|
state: "end";
|
|
@@ -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;
|
|
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;AAsBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -10,7 +10,6 @@ const AudioContentStateDTO = z.object({
|
|
|
10
10
|
state: z.literal(AudioState.CONTENT),
|
|
11
11
|
content: z.string(),
|
|
12
12
|
encoding: z.nativeEnum(AudioEncoding),
|
|
13
|
-
text: z.string().optional(),
|
|
14
13
|
duration: z.number().optional(), // duration of audio in milliseconds
|
|
15
14
|
});
|
|
16
15
|
const AudioEndStateDTO = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.dto.js","sourceRoot":"","sources":["../../../../src/trace/audio/audio.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,KAA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CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;CAC/E,CAAC,CAAC"}
|
|
@@ -7,6 +7,8 @@ export declare const LiveAgentHandoffEventType: {
|
|
|
7
7
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
8
8
|
readonly PARTICIPANT_LEFT: "participant_left";
|
|
9
9
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
10
|
+
readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
|
|
11
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
10
12
|
};
|
|
11
13
|
export type LiveAgentHandoffTrace = z.infer<typeof LiveAgentHandoffTraceDTO>;
|
|
12
14
|
export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
@@ -51,6 +53,8 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
51
53
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
52
54
|
readonly PARTICIPANT_LEFT: "participant_left";
|
|
53
55
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
56
|
+
readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
|
|
57
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
54
58
|
}>;
|
|
55
59
|
conversationID: z.ZodString;
|
|
56
60
|
message: z.ZodString;
|
|
@@ -66,7 +70,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
66
70
|
}>>;
|
|
67
71
|
}, "strip", z.ZodTypeAny, {
|
|
68
72
|
message: string;
|
|
69
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
73
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
70
74
|
conversationID: string;
|
|
71
75
|
agent?: {
|
|
72
76
|
name: string;
|
|
@@ -74,7 +78,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
74
78
|
} | undefined;
|
|
75
79
|
}, {
|
|
76
80
|
message: string;
|
|
77
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
81
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
78
82
|
conversationID: string;
|
|
79
83
|
agent?: {
|
|
80
84
|
name: string;
|
|
@@ -85,7 +89,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
85
89
|
type: "live-agent-handoff";
|
|
86
90
|
payload: {
|
|
87
91
|
message: string;
|
|
88
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
92
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
89
93
|
conversationID: string;
|
|
90
94
|
agent?: {
|
|
91
95
|
name: string;
|
|
@@ -106,7 +110,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
106
110
|
type: "live-agent-handoff";
|
|
107
111
|
payload: {
|
|
108
112
|
message: string;
|
|
109
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received";
|
|
113
|
+
event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
|
|
110
114
|
conversationID: string;
|
|
111
115
|
agent?: {
|
|
112
116
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-agent-handoff.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/live-agent-handoff.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"live-agent-handoff.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/live-agent-handoff.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;CAQ5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC"}
|
|
@@ -7,6 +7,8 @@ export const LiveAgentHandoffEventType = {
|
|
|
7
7
|
PARTICIPANT_JOINED: 'participant_joined',
|
|
8
8
|
PARTICIPANT_LEFT: 'participant_left',
|
|
9
9
|
MESSAGE_RECEIVED: 'message_received',
|
|
10
|
+
CHAT_DISMISSAL_WARNING: 'chat_dismissal_warning',
|
|
11
|
+
CHAT_DISMISSED: 'chat_dismissed',
|
|
10
12
|
};
|
|
11
13
|
export const LiveAgentHandoffTraceDTO = BaseTraceDTO.extend({
|
|
12
14
|
type: z.literal(TraceType.LIVE_AGENT_HANDOFF),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-agent-handoff.dto.js","sourceRoot":"","sources":["../../../src/trace/live-agent-handoff.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EA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tC,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/dtos-interact",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.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": "6e9dea52beb99bb02292b32b24c27a55a1c055e7"
|
|
47
47
|
}
|