@voiceflow/dtos-interact 1.35.1 → 1.37.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 -5
- package/build/cjs/trace/any.dto.d.ts.map +1 -1
- package/build/cjs/trace/live-agent-handoff.dto.d.ts +8 -6
- package/build/cjs/trace/live-agent-handoff.dto.d.ts.map +1 -1
- package/build/cjs/trace/live-agent-handoff.dto.js +2 -1
- package/build/cjs/trace/live-agent-handoff.dto.js.map +1 -1
- package/build/esm/trace/any.dto.d.ts +6 -5
- package/build/esm/trace/any.dto.d.ts.map +1 -1
- package/build/esm/trace/live-agent-handoff.dto.d.ts +8 -6
- package/build/esm/trace/live-agent-handoff.dto.d.ts.map +1 -1
- package/build/esm/trace/live-agent-handoff.dto.js +2 -1
- package/build/esm/trace/live-agent-handoff.dto.js.map +1 -1
- package/package.json +2 -2
|
@@ -3064,8 +3064,9 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3064
3064
|
readonly CHAT_STARTED: "chat_started";
|
|
3065
3065
|
readonly CHAT_ENDED: "chat_ended";
|
|
3066
3066
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
3067
|
-
readonly PARTICIPANT_LEFT: "participant_left";
|
|
3068
3067
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
3068
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
3069
|
+
readonly EVENT: "event";
|
|
3069
3070
|
}>;
|
|
3070
3071
|
conversationID: z.ZodString;
|
|
3071
3072
|
message: z.ZodString;
|
|
@@ -3081,7 +3082,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3081
3082
|
}>>;
|
|
3082
3083
|
}, "strip", z.ZodTypeAny, {
|
|
3083
3084
|
message: string;
|
|
3084
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3085
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3085
3086
|
conversationID: string;
|
|
3086
3087
|
agent?: {
|
|
3087
3088
|
name: string;
|
|
@@ -3089,7 +3090,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3089
3090
|
} | undefined;
|
|
3090
3091
|
}, {
|
|
3091
3092
|
message: string;
|
|
3092
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3093
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3093
3094
|
conversationID: string;
|
|
3094
3095
|
agent?: {
|
|
3095
3096
|
name: string;
|
|
@@ -3100,7 +3101,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3100
3101
|
type: "live-agent-handoff";
|
|
3101
3102
|
payload: {
|
|
3102
3103
|
message: string;
|
|
3103
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3104
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3104
3105
|
conversationID: string;
|
|
3105
3106
|
agent?: {
|
|
3106
3107
|
name: string;
|
|
@@ -3121,7 +3122,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3121
3122
|
type: "live-agent-handoff";
|
|
3122
3123
|
payload: {
|
|
3123
3124
|
message: string;
|
|
3124
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3125
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3125
3126
|
conversationID: string;
|
|
3126
3127
|
agent?: {
|
|
3127
3128
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"any.dto.d.ts","sourceRoot":"","sources":["../../../src/trace/any.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBtB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -5,8 +5,9 @@ export declare const LiveAgentHandoffEventType: {
|
|
|
5
5
|
readonly CHAT_STARTED: "chat_started";
|
|
6
6
|
readonly CHAT_ENDED: "chat_ended";
|
|
7
7
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
8
|
-
readonly PARTICIPANT_LEFT: "participant_left";
|
|
9
8
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
9
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
10
|
+
readonly EVENT: "event";
|
|
10
11
|
};
|
|
11
12
|
export type LiveAgentHandoffTrace = z.infer<typeof LiveAgentHandoffTraceDTO>;
|
|
12
13
|
export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
@@ -49,8 +50,9 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
49
50
|
readonly CHAT_STARTED: "chat_started";
|
|
50
51
|
readonly CHAT_ENDED: "chat_ended";
|
|
51
52
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
52
|
-
readonly PARTICIPANT_LEFT: "participant_left";
|
|
53
53
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
54
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
55
|
+
readonly EVENT: "event";
|
|
54
56
|
}>;
|
|
55
57
|
conversationID: z.ZodString;
|
|
56
58
|
message: z.ZodString;
|
|
@@ -66,7 +68,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
66
68
|
}>>;
|
|
67
69
|
}, "strip", z.ZodTypeAny, {
|
|
68
70
|
message: string;
|
|
69
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
71
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
70
72
|
conversationID: string;
|
|
71
73
|
agent?: {
|
|
72
74
|
name: string;
|
|
@@ -74,7 +76,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
74
76
|
} | undefined;
|
|
75
77
|
}, {
|
|
76
78
|
message: string;
|
|
77
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
79
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
78
80
|
conversationID: string;
|
|
79
81
|
agent?: {
|
|
80
82
|
name: string;
|
|
@@ -85,7 +87,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
85
87
|
type: "live-agent-handoff";
|
|
86
88
|
payload: {
|
|
87
89
|
message: string;
|
|
88
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
90
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
89
91
|
conversationID: string;
|
|
90
92
|
agent?: {
|
|
91
93
|
name: string;
|
|
@@ -106,7 +108,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
106
108
|
type: "live-agent-handoff";
|
|
107
109
|
payload: {
|
|
108
110
|
message: string;
|
|
109
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
111
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
110
112
|
conversationID: string;
|
|
111
113
|
agent?: {
|
|
112
114
|
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;;;;;;;CAO5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC"}
|
|
@@ -8,8 +8,9 @@ exports.LiveAgentHandoffEventType = {
|
|
|
8
8
|
CHAT_STARTED: 'chat_started',
|
|
9
9
|
CHAT_ENDED: 'chat_ended',
|
|
10
10
|
PARTICIPANT_JOINED: 'participant_joined',
|
|
11
|
-
PARTICIPANT_LEFT: 'participant_left',
|
|
12
11
|
MESSAGE_RECEIVED: 'message_received',
|
|
12
|
+
CHAT_DISMISSED: 'chat_dismissed',
|
|
13
|
+
EVENT: 'event',
|
|
13
14
|
};
|
|
14
15
|
exports.LiveAgentHandoffTraceDTO = utils_dto_1.BaseTraceDTO.extend({
|
|
15
16
|
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,
|
|
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,cAAc,EAAE,gBAAgB;IAChC,KAAK,EAAE,OAAO;CACN,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"}
|
|
@@ -3064,8 +3064,9 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3064
3064
|
readonly CHAT_STARTED: "chat_started";
|
|
3065
3065
|
readonly CHAT_ENDED: "chat_ended";
|
|
3066
3066
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
3067
|
-
readonly PARTICIPANT_LEFT: "participant_left";
|
|
3068
3067
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
3068
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
3069
|
+
readonly EVENT: "event";
|
|
3069
3070
|
}>;
|
|
3070
3071
|
conversationID: z.ZodString;
|
|
3071
3072
|
message: z.ZodString;
|
|
@@ -3081,7 +3082,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3081
3082
|
}>>;
|
|
3082
3083
|
}, "strip", z.ZodTypeAny, {
|
|
3083
3084
|
message: string;
|
|
3084
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3085
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3085
3086
|
conversationID: string;
|
|
3086
3087
|
agent?: {
|
|
3087
3088
|
name: string;
|
|
@@ -3089,7 +3090,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3089
3090
|
} | undefined;
|
|
3090
3091
|
}, {
|
|
3091
3092
|
message: string;
|
|
3092
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3093
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3093
3094
|
conversationID: string;
|
|
3094
3095
|
agent?: {
|
|
3095
3096
|
name: string;
|
|
@@ -3100,7 +3101,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3100
3101
|
type: "live-agent-handoff";
|
|
3101
3102
|
payload: {
|
|
3102
3103
|
message: string;
|
|
3103
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3104
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3104
3105
|
conversationID: string;
|
|
3105
3106
|
agent?: {
|
|
3106
3107
|
name: string;
|
|
@@ -3121,7 +3122,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3121
3122
|
type: "live-agent-handoff";
|
|
3122
3123
|
payload: {
|
|
3123
3124
|
message: string;
|
|
3124
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
3125
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
3125
3126
|
conversationID: string;
|
|
3126
3127
|
agent?: {
|
|
3127
3128
|
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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_STARTED: "chat_started";
|
|
6
6
|
readonly CHAT_ENDED: "chat_ended";
|
|
7
7
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
8
|
-
readonly PARTICIPANT_LEFT: "participant_left";
|
|
9
8
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
9
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
10
|
+
readonly EVENT: "event";
|
|
10
11
|
};
|
|
11
12
|
export type LiveAgentHandoffTrace = z.infer<typeof LiveAgentHandoffTraceDTO>;
|
|
12
13
|
export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
@@ -49,8 +50,9 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
49
50
|
readonly CHAT_STARTED: "chat_started";
|
|
50
51
|
readonly CHAT_ENDED: "chat_ended";
|
|
51
52
|
readonly PARTICIPANT_JOINED: "participant_joined";
|
|
52
|
-
readonly PARTICIPANT_LEFT: "participant_left";
|
|
53
53
|
readonly MESSAGE_RECEIVED: "message_received";
|
|
54
|
+
readonly CHAT_DISMISSED: "chat_dismissed";
|
|
55
|
+
readonly EVENT: "event";
|
|
54
56
|
}>;
|
|
55
57
|
conversationID: z.ZodString;
|
|
56
58
|
message: z.ZodString;
|
|
@@ -66,7 +68,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
66
68
|
}>>;
|
|
67
69
|
}, "strip", z.ZodTypeAny, {
|
|
68
70
|
message: string;
|
|
69
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
71
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
70
72
|
conversationID: string;
|
|
71
73
|
agent?: {
|
|
72
74
|
name: string;
|
|
@@ -74,7 +76,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
74
76
|
} | undefined;
|
|
75
77
|
}, {
|
|
76
78
|
message: string;
|
|
77
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
79
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
78
80
|
conversationID: string;
|
|
79
81
|
agent?: {
|
|
80
82
|
name: string;
|
|
@@ -85,7 +87,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
85
87
|
type: "live-agent-handoff";
|
|
86
88
|
payload: {
|
|
87
89
|
message: string;
|
|
88
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
90
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
89
91
|
conversationID: string;
|
|
90
92
|
agent?: {
|
|
91
93
|
name: string;
|
|
@@ -106,7 +108,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
|
|
|
106
108
|
type: "live-agent-handoff";
|
|
107
109
|
payload: {
|
|
108
110
|
message: string;
|
|
109
|
-
event: "chat_started" | "chat_ended" | "participant_joined" | "
|
|
111
|
+
event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
|
|
110
112
|
conversationID: string;
|
|
111
113
|
agent?: {
|
|
112
114
|
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;;;;;;;CAO5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC"}
|
|
@@ -5,8 +5,9 @@ export const LiveAgentHandoffEventType = {
|
|
|
5
5
|
CHAT_STARTED: 'chat_started',
|
|
6
6
|
CHAT_ENDED: 'chat_ended',
|
|
7
7
|
PARTICIPANT_JOINED: 'participant_joined',
|
|
8
|
-
PARTICIPANT_LEFT: 'participant_left',
|
|
9
8
|
MESSAGE_RECEIVED: 'message_received',
|
|
9
|
+
CHAT_DISMISSED: 'chat_dismissed',
|
|
10
|
+
EVENT: 'event',
|
|
10
11
|
};
|
|
11
12
|
export const LiveAgentHandoffTraceDTO = BaseTraceDTO.extend({
|
|
12
13
|
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,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,
|
|
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,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,kBAAkB,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,KAAK,EAAE,CAAC,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC9C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,CAAC;aACL,MAAM,CAAC;YACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;SACtC,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.37.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": "36f978d1f32d23569cb79850aa7fbbc80e17f0f6"
|
|
47
47
|
}
|