@voiceflow/dtos-interact 1.36.0 → 1.38.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.
Files changed (29) hide show
  1. package/build/cjs/request/any-request.dto.d.ts +105 -33
  2. package/build/cjs/request/any-request.dto.d.ts.map +1 -1
  3. package/build/cjs/request/live-agent-handoff-request.dto.d.ts +148 -45
  4. package/build/cjs/request/live-agent-handoff-request.dto.d.ts.map +1 -1
  5. package/build/cjs/request/live-agent-handoff-request.dto.js +31 -13
  6. package/build/cjs/request/live-agent-handoff-request.dto.js.map +1 -1
  7. package/build/cjs/trace/any.dto.d.ts +15 -16
  8. package/build/cjs/trace/any.dto.d.ts.map +1 -1
  9. package/build/cjs/trace/debug.dto.d.ts +4 -4
  10. package/build/cjs/trace/live-agent-handoff.dto.d.ts +6 -8
  11. package/build/cjs/trace/live-agent-handoff.dto.d.ts.map +1 -1
  12. package/build/cjs/trace/live-agent-handoff.dto.js +1 -2
  13. package/build/cjs/trace/live-agent-handoff.dto.js.map +1 -1
  14. package/build/cjs/trace/text.dto.d.ts +6 -6
  15. package/build/esm/request/any-request.dto.d.ts +105 -33
  16. package/build/esm/request/any-request.dto.d.ts.map +1 -1
  17. package/build/esm/request/live-agent-handoff-request.dto.d.ts +148 -45
  18. package/build/esm/request/live-agent-handoff-request.dto.d.ts.map +1 -1
  19. package/build/esm/request/live-agent-handoff-request.dto.js +30 -10
  20. package/build/esm/request/live-agent-handoff-request.dto.js.map +1 -1
  21. package/build/esm/trace/any.dto.d.ts +15 -16
  22. package/build/esm/trace/any.dto.d.ts.map +1 -1
  23. package/build/esm/trace/debug.dto.d.ts +4 -4
  24. package/build/esm/trace/live-agent-handoff.dto.d.ts +6 -8
  25. package/build/esm/trace/live-agent-handoff.dto.d.ts.map +1 -1
  26. package/build/esm/trace/live-agent-handoff.dto.js +1 -2
  27. package/build/esm/trace/live-agent-handoff.dto.js.map +1 -1
  28. package/build/esm/trace/text.dto.d.ts +6 -6
  29. package/package.json +2 -2
@@ -1435,62 +1435,134 @@ export declare const AnyRequestDTO: z.ZodUnion<[z.ZodObject<{
1435
1435
  diagramID: z.ZodOptional<z.ZodString>;
1436
1436
  } & {
1437
1437
  type: z.ZodLiteral<"live-agent-handoff">;
1438
- payload: z.ZodUnion<[z.ZodObject<{
1438
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1439
+ type: z.ZodLiteral<"message">;
1439
1440
  message: z.ZodString;
1440
- }, "strip", z.ZodTypeAny, {
1441
+ }, "strict", z.ZodTypeAny, {
1442
+ type: "message";
1441
1443
  message: string;
1442
1444
  }, {
1445
+ type: "message";
1443
1446
  message: string;
1444
- }>, z.ZodArray<z.ZodObject<{
1445
- url: z.ZodString;
1446
- contentType: z.ZodString;
1447
- }, "strip", z.ZodTypeAny, {
1448
- url: string;
1449
- contentType: string;
1447
+ }>, z.ZodObject<{
1448
+ type: z.ZodLiteral<"file_upload">;
1449
+ files: z.ZodArray<z.ZodObject<{
1450
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1451
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ metadata: Record<string, any>;
1454
+ id?: string | null | undefined;
1455
+ }, {
1456
+ metadata: Record<string, any>;
1457
+ id?: string | null | undefined;
1458
+ }>, "many">;
1459
+ }, "strict", z.ZodTypeAny, {
1460
+ type: "file_upload";
1461
+ files: {
1462
+ metadata: Record<string, any>;
1463
+ id?: string | null | undefined;
1464
+ }[];
1450
1465
  }, {
1451
- url: string;
1452
- contentType: string;
1453
- }>, "many">]>;
1466
+ type: "file_upload";
1467
+ files: {
1468
+ metadata: Record<string, any>;
1469
+ id?: string | null | undefined;
1470
+ }[];
1471
+ }>, z.ZodObject<{
1472
+ type: z.ZodLiteral<"continue_conversation">;
1473
+ }, "strict", z.ZodTypeAny, {
1474
+ type: "continue_conversation";
1475
+ }, {
1476
+ type: "continue_conversation";
1477
+ }>]>;
1454
1478
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1455
1479
  diagramID: z.ZodOptional<z.ZodString>;
1456
1480
  } & {
1457
1481
  type: z.ZodLiteral<"live-agent-handoff">;
1458
- payload: z.ZodUnion<[z.ZodObject<{
1482
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1483
+ type: z.ZodLiteral<"message">;
1459
1484
  message: z.ZodString;
1460
- }, "strip", z.ZodTypeAny, {
1485
+ }, "strict", z.ZodTypeAny, {
1486
+ type: "message";
1461
1487
  message: string;
1462
1488
  }, {
1489
+ type: "message";
1463
1490
  message: string;
1464
- }>, z.ZodArray<z.ZodObject<{
1465
- url: z.ZodString;
1466
- contentType: z.ZodString;
1467
- }, "strip", z.ZodTypeAny, {
1468
- url: string;
1469
- contentType: string;
1491
+ }>, z.ZodObject<{
1492
+ type: z.ZodLiteral<"file_upload">;
1493
+ files: z.ZodArray<z.ZodObject<{
1494
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1495
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ metadata: Record<string, any>;
1498
+ id?: string | null | undefined;
1499
+ }, {
1500
+ metadata: Record<string, any>;
1501
+ id?: string | null | undefined;
1502
+ }>, "many">;
1503
+ }, "strict", z.ZodTypeAny, {
1504
+ type: "file_upload";
1505
+ files: {
1506
+ metadata: Record<string, any>;
1507
+ id?: string | null | undefined;
1508
+ }[];
1509
+ }, {
1510
+ type: "file_upload";
1511
+ files: {
1512
+ metadata: Record<string, any>;
1513
+ id?: string | null | undefined;
1514
+ }[];
1515
+ }>, z.ZodObject<{
1516
+ type: z.ZodLiteral<"continue_conversation">;
1517
+ }, "strict", z.ZodTypeAny, {
1518
+ type: "continue_conversation";
1470
1519
  }, {
1471
- url: string;
1472
- contentType: string;
1473
- }>, "many">]>;
1520
+ type: "continue_conversation";
1521
+ }>]>;
1474
1522
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1475
1523
  diagramID: z.ZodOptional<z.ZodString>;
1476
1524
  } & {
1477
1525
  type: z.ZodLiteral<"live-agent-handoff">;
1478
- payload: z.ZodUnion<[z.ZodObject<{
1526
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1527
+ type: z.ZodLiteral<"message">;
1479
1528
  message: z.ZodString;
1480
- }, "strip", z.ZodTypeAny, {
1529
+ }, "strict", z.ZodTypeAny, {
1530
+ type: "message";
1481
1531
  message: string;
1482
1532
  }, {
1533
+ type: "message";
1483
1534
  message: string;
1484
- }>, z.ZodArray<z.ZodObject<{
1485
- url: z.ZodString;
1486
- contentType: z.ZodString;
1487
- }, "strip", z.ZodTypeAny, {
1488
- url: string;
1489
- contentType: string;
1535
+ }>, z.ZodObject<{
1536
+ type: z.ZodLiteral<"file_upload">;
1537
+ files: z.ZodArray<z.ZodObject<{
1538
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1539
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ metadata: Record<string, any>;
1542
+ id?: string | null | undefined;
1543
+ }, {
1544
+ metadata: Record<string, any>;
1545
+ id?: string | null | undefined;
1546
+ }>, "many">;
1547
+ }, "strict", z.ZodTypeAny, {
1548
+ type: "file_upload";
1549
+ files: {
1550
+ metadata: Record<string, any>;
1551
+ id?: string | null | undefined;
1552
+ }[];
1553
+ }, {
1554
+ type: "file_upload";
1555
+ files: {
1556
+ metadata: Record<string, any>;
1557
+ id?: string | null | undefined;
1558
+ }[];
1559
+ }>, z.ZodObject<{
1560
+ type: z.ZodLiteral<"continue_conversation">;
1561
+ }, "strict", z.ZodTypeAny, {
1562
+ type: "continue_conversation";
1490
1563
  }, {
1491
- url: string;
1492
- contentType: string;
1493
- }>, "many">]>;
1564
+ type: "continue_conversation";
1565
+ }>]>;
1494
1566
  }, z.ZodTypeAny, "passthrough">>]>;
1495
1567
  export type AnyRequest = z.infer<typeof AnyRequestDTO>;
1496
1568
  export declare const isAnyRequest: (value: unknown) => value is AnyRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"any-request.dto.d.ts","sourceRoot":"","sources":["../../../src/request/any-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAexB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEvD,eAAO,MAAM,YAAY,UAAW,OAAO,KAAG,KAAK,IAAI,UAAoD,CAAC"}
@@ -1,86 +1,189 @@
1
1
  import { z } from 'zod';
2
+ import type { Enum } from '../utils/enum.util';
3
+ export type LiveAgentHandoffRequestType = Enum<typeof LiveAgentHandoffRequestType>;
4
+ export declare const LiveAgentHandoffRequestType: {
5
+ readonly MESSAGE: "message";
6
+ readonly FILE_UPLOAD: "file_upload";
7
+ readonly CONTINUE_CONVERSATION: "continue_conversation";
8
+ };
2
9
  export type LiveAgentHandoffMessagePayload = z.infer<typeof LiveAgentHandoffMessagePayloadDTO>;
3
10
  export declare const LiveAgentHandoffMessagePayloadDTO: z.ZodObject<{
11
+ type: z.ZodLiteral<"message">;
4
12
  message: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
13
+ }, "strict", z.ZodTypeAny, {
14
+ type: "message";
6
15
  message: string;
7
16
  }, {
17
+ type: "message";
8
18
  message: string;
9
19
  }>;
10
20
  export type LiveAgentHandoffFileUploadPayload = z.infer<typeof LiveAgentHandoffFileUploadPayloadDTO>;
11
- export declare const LiveAgentHandoffFileUploadPayloadDTO: z.ZodArray<z.ZodObject<{
12
- url: z.ZodString;
13
- contentType: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- url: string;
16
- contentType: string;
21
+ export declare const LiveAgentHandoffFileUploadPayloadDTO: z.ZodObject<{
22
+ type: z.ZodLiteral<"file_upload">;
23
+ files: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ metadata: Record<string, any>;
28
+ id?: string | null | undefined;
29
+ }, {
30
+ metadata: Record<string, any>;
31
+ id?: string | null | undefined;
32
+ }>, "many">;
33
+ }, "strict", z.ZodTypeAny, {
34
+ type: "file_upload";
35
+ files: {
36
+ metadata: Record<string, any>;
37
+ id?: string | null | undefined;
38
+ }[];
39
+ }, {
40
+ type: "file_upload";
41
+ files: {
42
+ metadata: Record<string, any>;
43
+ id?: string | null | undefined;
44
+ }[];
45
+ }>;
46
+ export type LiveAgentHandoffContinueConversationPayload = z.infer<typeof LiveAgentHandoffContinueConversationPayloadDTO>;
47
+ export declare const LiveAgentHandoffContinueConversationPayloadDTO: z.ZodObject<{
48
+ type: z.ZodLiteral<"continue_conversation">;
49
+ }, "strict", z.ZodTypeAny, {
50
+ type: "continue_conversation";
17
51
  }, {
18
- url: string;
19
- contentType: string;
20
- }>, "many">;
52
+ type: "continue_conversation";
53
+ }>;
21
54
  export type LiveAgentHandoffRequest = z.infer<typeof LiveAgentHandoffRequestDTO>;
22
55
  export declare const LiveAgentHandoffRequestDTO: z.ZodObject<{
23
56
  diagramID: z.ZodOptional<z.ZodString>;
24
57
  } & {
25
58
  type: z.ZodLiteral<"live-agent-handoff">;
26
- payload: z.ZodUnion<[z.ZodObject<{
59
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
60
+ type: z.ZodLiteral<"message">;
27
61
  message: z.ZodString;
28
- }, "strip", z.ZodTypeAny, {
62
+ }, "strict", z.ZodTypeAny, {
63
+ type: "message";
29
64
  message: string;
30
65
  }, {
66
+ type: "message";
31
67
  message: string;
32
- }>, z.ZodArray<z.ZodObject<{
33
- url: z.ZodString;
34
- contentType: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- url: string;
37
- contentType: string;
68
+ }>, z.ZodObject<{
69
+ type: z.ZodLiteral<"file_upload">;
70
+ files: z.ZodArray<z.ZodObject<{
71
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ metadata: Record<string, any>;
75
+ id?: string | null | undefined;
76
+ }, {
77
+ metadata: Record<string, any>;
78
+ id?: string | null | undefined;
79
+ }>, "many">;
80
+ }, "strict", z.ZodTypeAny, {
81
+ type: "file_upload";
82
+ files: {
83
+ metadata: Record<string, any>;
84
+ id?: string | null | undefined;
85
+ }[];
38
86
  }, {
39
- url: string;
40
- contentType: string;
41
- }>, "many">]>;
87
+ type: "file_upload";
88
+ files: {
89
+ metadata: Record<string, any>;
90
+ id?: string | null | undefined;
91
+ }[];
92
+ }>, z.ZodObject<{
93
+ type: z.ZodLiteral<"continue_conversation">;
94
+ }, "strict", z.ZodTypeAny, {
95
+ type: "continue_conversation";
96
+ }, {
97
+ type: "continue_conversation";
98
+ }>]>;
42
99
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
43
100
  diagramID: z.ZodOptional<z.ZodString>;
44
101
  } & {
45
102
  type: z.ZodLiteral<"live-agent-handoff">;
46
- payload: z.ZodUnion<[z.ZodObject<{
103
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
104
+ type: z.ZodLiteral<"message">;
47
105
  message: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
106
+ }, "strict", z.ZodTypeAny, {
107
+ type: "message";
49
108
  message: string;
50
109
  }, {
110
+ type: "message";
51
111
  message: string;
52
- }>, z.ZodArray<z.ZodObject<{
53
- url: z.ZodString;
54
- contentType: z.ZodString;
55
- }, "strip", z.ZodTypeAny, {
56
- url: string;
57
- contentType: string;
112
+ }>, z.ZodObject<{
113
+ type: z.ZodLiteral<"file_upload">;
114
+ files: z.ZodArray<z.ZodObject<{
115
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ metadata: Record<string, any>;
119
+ id?: string | null | undefined;
120
+ }, {
121
+ metadata: Record<string, any>;
122
+ id?: string | null | undefined;
123
+ }>, "many">;
124
+ }, "strict", z.ZodTypeAny, {
125
+ type: "file_upload";
126
+ files: {
127
+ metadata: Record<string, any>;
128
+ id?: string | null | undefined;
129
+ }[];
130
+ }, {
131
+ type: "file_upload";
132
+ files: {
133
+ metadata: Record<string, any>;
134
+ id?: string | null | undefined;
135
+ }[];
136
+ }>, z.ZodObject<{
137
+ type: z.ZodLiteral<"continue_conversation">;
138
+ }, "strict", z.ZodTypeAny, {
139
+ type: "continue_conversation";
58
140
  }, {
59
- url: string;
60
- contentType: string;
61
- }>, "many">]>;
141
+ type: "continue_conversation";
142
+ }>]>;
62
143
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63
144
  diagramID: z.ZodOptional<z.ZodString>;
64
145
  } & {
65
146
  type: z.ZodLiteral<"live-agent-handoff">;
66
- payload: z.ZodUnion<[z.ZodObject<{
147
+ payload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
148
+ type: z.ZodLiteral<"message">;
67
149
  message: z.ZodString;
68
- }, "strip", z.ZodTypeAny, {
150
+ }, "strict", z.ZodTypeAny, {
151
+ type: "message";
69
152
  message: string;
70
153
  }, {
154
+ type: "message";
71
155
  message: string;
72
- }>, z.ZodArray<z.ZodObject<{
73
- url: z.ZodString;
74
- contentType: z.ZodString;
75
- }, "strip", z.ZodTypeAny, {
76
- url: string;
77
- contentType: string;
156
+ }>, z.ZodObject<{
157
+ type: z.ZodLiteral<"file_upload">;
158
+ files: z.ZodArray<z.ZodObject<{
159
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ metadata: Record<string, any>;
163
+ id?: string | null | undefined;
164
+ }, {
165
+ metadata: Record<string, any>;
166
+ id?: string | null | undefined;
167
+ }>, "many">;
168
+ }, "strict", z.ZodTypeAny, {
169
+ type: "file_upload";
170
+ files: {
171
+ metadata: Record<string, any>;
172
+ id?: string | null | undefined;
173
+ }[];
174
+ }, {
175
+ type: "file_upload";
176
+ files: {
177
+ metadata: Record<string, any>;
178
+ id?: string | null | undefined;
179
+ }[];
180
+ }>, z.ZodObject<{
181
+ type: z.ZodLiteral<"continue_conversation">;
182
+ }, "strict", z.ZodTypeAny, {
183
+ type: "continue_conversation";
78
184
  }, {
79
- url: string;
80
- contentType: string;
81
- }>, "many">]>;
185
+ type: "continue_conversation";
186
+ }>]>;
82
187
  }, z.ZodTypeAny, "passthrough">>;
83
188
  export declare const isLiveAgentHandoffRequest: (value: unknown) => value is LiveAgentHandoffRequest;
84
- export declare const isLiveAgentHandoffMessagePayload: (value: unknown) => value is LiveAgentHandoffMessagePayload;
85
- export declare const isLiveAgentHandoffFileUploadPayload: (value: unknown) => value is LiveAgentHandoffFileUploadPayload;
86
189
  //# sourceMappingURL=live-agent-handoff-request.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"live-agent-handoff-request.dto.d.ts","sourceRoot":"","sources":["../../../src/request/live-agent-handoff-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC/F,eAAO,MAAM,i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,8CAA8C,CACtD,CAAC;AACF,eAAO,MAAM,8CAA8C;;;;;;EAIhD,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACjF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAOvB,CAAC;AAEjB,eAAO,MAAM,yBAAyB,UAAW,OAAO,KAAG,KAAK,IAAI,uBACf,CAAC"}
@@ -1,26 +1,44 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLiveAgentHandoffFileUploadPayload = exports.isLiveAgentHandoffMessagePayload = exports.isLiveAgentHandoffRequest = exports.LiveAgentHandoffRequestDTO = exports.LiveAgentHandoffFileUploadPayloadDTO = exports.LiveAgentHandoffMessagePayloadDTO = void 0;
3
+ exports.isLiveAgentHandoffRequest = exports.LiveAgentHandoffRequestDTO = exports.LiveAgentHandoffContinueConversationPayloadDTO = exports.LiveAgentHandoffFileUploadPayloadDTO = exports.LiveAgentHandoffMessagePayloadDTO = exports.LiveAgentHandoffRequestType = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const request_type_enum_1 = require("./request-type.enum");
6
6
  const utils_dto_1 = require("./utils.dto");
7
- exports.LiveAgentHandoffMessagePayloadDTO = zod_1.z.object({
7
+ exports.LiveAgentHandoffRequestType = {
8
+ MESSAGE: 'message',
9
+ FILE_UPLOAD: 'file_upload',
10
+ CONTINUE_CONVERSATION: 'continue_conversation',
11
+ };
12
+ exports.LiveAgentHandoffMessagePayloadDTO = zod_1.z
13
+ .object({
14
+ type: zod_1.z.literal(exports.LiveAgentHandoffRequestType.MESSAGE),
8
15
  message: zod_1.z.string(),
9
- });
16
+ })
17
+ .strict();
10
18
  exports.LiveAgentHandoffFileUploadPayloadDTO = zod_1.z
11
- .array(zod_1.z.object({
12
- url: zod_1.z.string().url(),
13
- contentType: zod_1.z.string().min(1),
14
- }))
15
- .min(1);
19
+ .object({
20
+ type: zod_1.z.literal(exports.LiveAgentHandoffRequestType.FILE_UPLOAD),
21
+ files: zod_1.z
22
+ .array(zod_1.z.object({
23
+ id: zod_1.z.string().min(1).nullish(),
24
+ metadata: zod_1.z.record(zod_1.z.any()),
25
+ }))
26
+ .min(1),
27
+ })
28
+ .strict();
29
+ exports.LiveAgentHandoffContinueConversationPayloadDTO = zod_1.z
30
+ .object({
31
+ type: zod_1.z.literal(exports.LiveAgentHandoffRequestType.CONTINUE_CONVERSATION),
32
+ })
33
+ .strict();
16
34
  exports.LiveAgentHandoffRequestDTO = utils_dto_1.BaseRequestDTO.extend({
17
35
  type: zod_1.z.literal(request_type_enum_1.RequestType.LIVE_AGENT_HANDOFF),
18
- payload: zod_1.z.union([exports.LiveAgentHandoffMessagePayloadDTO, exports.LiveAgentHandoffFileUploadPayloadDTO]),
36
+ payload: zod_1.z.discriminatedUnion('type', [
37
+ exports.LiveAgentHandoffMessagePayloadDTO,
38
+ exports.LiveAgentHandoffFileUploadPayloadDTO,
39
+ exports.LiveAgentHandoffContinueConversationPayloadDTO,
40
+ ]),
19
41
  }).passthrough();
20
42
  const isLiveAgentHandoffRequest = (value) => exports.LiveAgentHandoffRequestDTO.safeParse(value).success;
21
43
  exports.isLiveAgentHandoffRequest = isLiveAgentHandoffRequest;
22
- const isLiveAgentHandoffMessagePayload = (value) => exports.LiveAgentHandoffMessagePayloadDTO.safeParse(value).success;
23
- exports.isLiveAgentHandoffMessagePayload = isLiveAgentHandoffMessagePayload;
24
- const isLiveAgentHandoffFileUploadPayload = (value) => exports.LiveAgentHandoffFileUploadPayloadDTO.safeParse(value).success;
25
- exports.isLiveAgentHandoffFileUploadPayload = isLiveAgentHandoffFileUploadPayload;
26
44
  //# sourceMappingURL=live-agent-handoff-request.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"live-agent-handoff-request.dto.js","sourceRoot":"","sources":["../../../src/request/live-agent-handoff-request.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,2DAAkD;AAClD,2CAA6C;AAGhC,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,oCAAoC,GAAG,OAAC;KAClD,KAAK,CACJ,OAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/B,CAAC,CACH;KACA,GAAG,CAAC,CAAC,CAAC,CAAC;AAGG,QAAA,0BAA0B,GAAG,0BAAc,CAAC,MAAM,CAAC;IAC9D,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,+BAAW,CAAC,kBAAkB,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,yCAAiC,EAAE,4CAAoC,CAAC,CAAC;CAC5F,CAAC,CAAC,WAAW,EAAE,CAAC;AAEV,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAAoC,EAAE,CAC5F,kCAA0B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AADzC,QAAA,yBAAyB,6BACgB;AAC/C,MAAM,gCAAgC,GAAG,CAAC,KAAc,EAA2C,EAAE,CAC1G,yCAAiC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AADhD,QAAA,gCAAgC,oCACgB;AACtD,MAAM,mCAAmC,GAAG,CAAC,KAAc,EAA8C,EAAE,CAChH,4CAAoC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AADnD,QAAA,mCAAmC,uCACgB"}
1
+ {"version":3,"file":"live-agent-handoff-request.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;KAC/C,CAAC;CACH,CAAC,CAAC,WAAW,EAAE,CAAC;AAEV,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAAoC,EAAE,CAC5F,kCAA0B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AADzC,QAAA,yBAAyB,6BACgB"}
@@ -1254,6 +1254,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1254
1254
  }, "strip", z.ZodTypeAny, {
1255
1255
  message: string;
1256
1256
  type?: string | undefined;
1257
+ metadata?: Record<string, unknown> | undefined;
1257
1258
  ref?: {
1258
1259
  type: "node";
1259
1260
  diagramID: string;
@@ -1295,10 +1296,10 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1295
1296
  } | undefined;
1296
1297
  level?: "debug" | "fatal" | "error" | "warn" | "info" | undefined;
1297
1298
  context?: string | undefined;
1298
- metadata?: Record<string, unknown> | undefined;
1299
1299
  }, {
1300
1300
  message: string;
1301
1301
  type?: string | undefined;
1302
+ metadata?: Record<string, unknown> | undefined;
1302
1303
  ref?: {
1303
1304
  type: "node";
1304
1305
  diagramID: string;
@@ -1340,13 +1341,13 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1340
1341
  } | undefined;
1341
1342
  level?: "debug" | "fatal" | "error" | "warn" | "info" | undefined;
1342
1343
  context?: string | undefined;
1343
- metadata?: Record<string, unknown> | undefined;
1344
1344
  }>;
1345
1345
  }, "strip", z.ZodTypeAny, {
1346
1346
  type: "debug";
1347
1347
  payload: {
1348
1348
  message: string;
1349
1349
  type?: string | undefined;
1350
+ metadata?: Record<string, unknown> | undefined;
1350
1351
  ref?: {
1351
1352
  type: "node";
1352
1353
  diagramID: string;
@@ -1388,7 +1389,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1388
1389
  } | undefined;
1389
1390
  level?: "debug" | "fatal" | "error" | "warn" | "info" | undefined;
1390
1391
  context?: string | undefined;
1391
- metadata?: Record<string, unknown> | undefined;
1392
1392
  };
1393
1393
  paths?: {
1394
1394
  label?: string | undefined;
@@ -1405,6 +1405,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1405
1405
  payload: {
1406
1406
  message: string;
1407
1407
  type?: string | undefined;
1408
+ metadata?: Record<string, unknown> | undefined;
1408
1409
  ref?: {
1409
1410
  type: "node";
1410
1411
  diagramID: string;
@@ -1446,7 +1447,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1446
1447
  } | undefined;
1447
1448
  level?: "debug" | "fatal" | "error" | "warn" | "info" | undefined;
1448
1449
  context?: string | undefined;
1449
- metadata?: Record<string, unknown> | undefined;
1450
1450
  };
1451
1451
  paths?: {
1452
1452
  label?: string | undefined;
@@ -2391,11 +2391,11 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2391
2391
  id: z.ZodString;
2392
2392
  content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">;
2393
2393
  }, "strip", z.ZodTypeAny, {
2394
- content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2395
2394
  id: string;
2395
+ content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2396
2396
  }, {
2397
- content: any[];
2398
2397
  id: string;
2398
+ content: any[];
2399
2399
  }>;
2400
2400
  delay: z.ZodOptional<z.ZodNumber>;
2401
2401
  voice: z.ZodOptional<z.ZodString>;
@@ -2409,8 +2409,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2409
2409
  }, "strip", z.ZodTypeAny, {
2410
2410
  message: string;
2411
2411
  slate: {
2412
- content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2413
2412
  id: string;
2413
+ content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2414
2414
  };
2415
2415
  voice?: string | undefined;
2416
2416
  audio?: {
@@ -2421,8 +2421,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2421
2421
  }, {
2422
2422
  message: string;
2423
2423
  slate: {
2424
- content: any[];
2425
2424
  id: string;
2425
+ content: any[];
2426
2426
  };
2427
2427
  voice?: string | undefined;
2428
2428
  audio?: {
@@ -2436,8 +2436,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2436
2436
  payload: {
2437
2437
  message: string;
2438
2438
  slate: {
2439
- content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2440
2439
  id: string;
2440
+ content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2441
2441
  };
2442
2442
  voice?: string | undefined;
2443
2443
  audio?: {
@@ -2461,8 +2461,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2461
2461
  payload: {
2462
2462
  message: string;
2463
2463
  slate: {
2464
- content: any[];
2465
2464
  id: string;
2465
+ content: any[];
2466
2466
  };
2467
2467
  voice?: string | undefined;
2468
2468
  audio?: {
@@ -3064,10 +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";
3069
- readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
3070
3068
  readonly CHAT_DISMISSED: "chat_dismissed";
3069
+ readonly EVENT: "event";
3071
3070
  }>;
3072
3071
  conversationID: z.ZodString;
3073
3072
  message: z.ZodString;
@@ -3083,7 +3082,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3083
3082
  }>>;
3084
3083
  }, "strip", z.ZodTypeAny, {
3085
3084
  message: string;
3086
- event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
3085
+ event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
3087
3086
  conversationID: string;
3088
3087
  agent?: {
3089
3088
  name: string;
@@ -3091,7 +3090,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3091
3090
  } | undefined;
3092
3091
  }, {
3093
3092
  message: string;
3094
- event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
3093
+ event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
3095
3094
  conversationID: string;
3096
3095
  agent?: {
3097
3096
  name: string;
@@ -3102,7 +3101,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3102
3101
  type: "live-agent-handoff";
3103
3102
  payload: {
3104
3103
  message: string;
3105
- event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
3104
+ event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
3106
3105
  conversationID: string;
3107
3106
  agent?: {
3108
3107
  name: string;
@@ -3123,7 +3122,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3123
3122
  type: "live-agent-handoff";
3124
3123
  payload: {
3125
3124
  message: string;
3126
- event: "chat_started" | "chat_ended" | "participant_joined" | "participant_left" | "message_received" | "chat_dismissal_warning" | "chat_dismissed";
3125
+ event: "event" | "chat_started" | "chat_ended" | "participant_joined" | "message_received" | "chat_dismissed";
3127
3126
  conversationID: string;
3128
3127
  agent?: {
3129
3128
  name: string;