@voiceflow/dtos-interact 2.0.2-4ecc35face.21 → 2.1.1-3cab7c5745.68

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 (27) hide show
  1. package/build/cjs/request/any-request.dto.d.ts +2 -2
  2. package/build/cjs/request/file-request.dto.d.ts +3 -3
  3. package/build/cjs/request/file-request.dto.js +3 -3
  4. package/build/cjs/request/file-request.dto.js.map +1 -1
  5. package/build/cjs/socket/socket-action-send.dto.d.ts +2 -2
  6. package/build/cjs/socket/socket-action-trace.dto.d.ts +1 -1
  7. package/build/cjs/socket/socket-message.dto.d.ts +10 -10
  8. package/build/cjs/socket/socket-server-restart.dto.d.ts +2 -2
  9. package/build/cjs/trace/any.dto.d.ts +1 -1
  10. package/build/cjs/trace/live-agent-handoff.dto.d.ts +2 -1
  11. package/build/cjs/trace/live-agent-handoff.dto.d.ts.map +1 -1
  12. package/build/cjs/trace/live-agent-handoff.dto.js +2 -0
  13. package/build/cjs/trace/live-agent-handoff.dto.js.map +1 -1
  14. package/build/esm/request/any-request.dto.d.ts +2 -2
  15. package/build/esm/request/file-request.dto.d.ts +3 -3
  16. package/build/esm/request/file-request.dto.js +3 -3
  17. package/build/esm/request/file-request.dto.js.map +1 -1
  18. package/build/esm/socket/socket-action-send.dto.d.ts +2 -2
  19. package/build/esm/socket/socket-action-trace.dto.d.ts +1 -1
  20. package/build/esm/socket/socket-message.dto.d.ts +10 -10
  21. package/build/esm/socket/socket-server-restart.dto.d.ts +2 -2
  22. package/build/esm/trace/any.dto.d.ts +1 -1
  23. package/build/esm/trace/live-agent-handoff.dto.d.ts +2 -1
  24. package/build/esm/trace/live-agent-handoff.dto.d.ts.map +1 -1
  25. package/build/esm/trace/live-agent-handoff.dto.js +2 -0
  26. package/build/esm/trace/live-agent-handoff.dto.js.map +1 -1
  27. package/package.json +2 -2
@@ -28,8 +28,8 @@ export declare const AnyRequestDTO: z.ZodUnion<readonly [z.ZodObject<{
28
28
  filename: z.ZodOptional<z.ZodString>;
29
29
  size: z.ZodOptional<z.ZodNumber>;
30
30
  s3Key: z.ZodOptional<z.ZodString>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  }, z.core.$loose>, z.ZodObject<{
34
34
  diagramID: z.ZodOptional<z.ZodString>;
35
35
  time: z.ZodOptional<z.ZodNumber>;
@@ -5,7 +5,7 @@ export declare const FileAttachmentDTO: z.ZodObject<{
5
5
  filename: z.ZodOptional<z.ZodString>;
6
6
  size: z.ZodOptional<z.ZodNumber>;
7
7
  s3Key: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>;
8
+ }, z.core.$loose>;
9
9
  export declare const FileRequestDTO: z.ZodObject<{
10
10
  diagramID: z.ZodOptional<z.ZodString>;
11
11
  time: z.ZodOptional<z.ZodNumber>;
@@ -19,8 +19,8 @@ export declare const FileRequestDTO: z.ZodObject<{
19
19
  filename: z.ZodOptional<z.ZodString>;
20
20
  size: z.ZodOptional<z.ZodNumber>;
21
21
  s3Key: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>>;
23
- }, z.core.$strip>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$loose>;
24
24
  }, z.core.$loose>;
25
25
  export type FileRequest = z.infer<typeof FileRequestDTO>;
26
26
  export type FileAttachment = z.infer<typeof FileAttachmentDTO>;
@@ -4,7 +4,7 @@ exports.isFileRequest = exports.FileRequestDTO = exports.FileAttachmentDTO = voi
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.FileAttachmentDTO = zod_1.z.object({
7
+ exports.FileAttachmentDTO = zod_1.z.looseObject({
8
8
  url: zod_1.z.string(),
9
9
  mimeType: zod_1.z.string(),
10
10
  filename: zod_1.z.string().optional(),
@@ -13,12 +13,12 @@ exports.FileAttachmentDTO = zod_1.z.object({
13
13
  });
14
14
  exports.FileRequestDTO = utils_dto_1.BaseRequestDTO.extend({
15
15
  type: zod_1.z.literal(request_type_enum_1.RequestType.FILE),
16
- payload: zod_1.z.object({
16
+ payload: zod_1.z.looseObject({
17
17
  text: zod_1.z.string().optional(),
18
18
  files: zod_1.z.array(exports.FileAttachmentDTO).min(1),
19
19
  }),
20
20
  })
21
- .passthrough()
21
+ .loose()
22
22
  .describe('Send one or more file attachments, with an optional text message.');
23
23
  const isFileRequest = (value) => exports.FileRequestDTO.safeParse(value).success;
24
24
  exports.isFileRequest = isFileRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"file-request.dto.js","sourceRoot":"","sources":["../../../src/request/file-request.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,2DAAkD;AAClD,2CAA6C;AAEhC,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,0BAAc,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,+BAAW,CAAC,IAAI,CAAC;IACjC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC,CAAC;CACH,CAAC;KACC,WAAW,EAAE;KACb,QAAQ,CAAC,mEAAmE,CAAC,CAAC;AAK1E,MAAM,aAAa,GAAG,CAAC,KAAc,EAAwB,EAAE,CAAC,sBAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAAlG,QAAA,aAAa,iBAAqF"}
1
+ {"version":3,"file":"file-request.dto.js","sourceRoot":"","sources":["../../../src/request/file-request.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,2DAAkD;AAClD,2CAA6C;AAEhC,QAAA,iBAAiB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC7C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,0BAAc,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,+BAAW,CAAC,IAAI,CAAC;IACjC,OAAO,EAAE,OAAC,CAAC,WAAW,CAAC;QACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC,CAAC;CACH,CAAC;KACC,KAAK,EAAE;KACP,QAAQ,CAAC,mEAAmE,CAAC,CAAC;AAK1E,MAAM,aAAa,GAAG,CAAC,KAAc,EAAwB,EAAE,CAAC,sBAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAAlG,QAAA,aAAa,iBAAqF"}
@@ -31,8 +31,8 @@ export declare const SocketActionSendDTO: z.ZodObject<{
31
31
  filename: z.ZodOptional<z.ZodString>;
32
32
  size: z.ZodOptional<z.ZodNumber>;
33
33
  s3Key: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  }, z.core.$loose>, z.ZodObject<{
37
37
  diagramID: z.ZodOptional<z.ZodString>;
38
38
  time: z.ZodOptional<z.ZodNumber>;
@@ -1114,7 +1114,7 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1114
1114
  name: z.ZodString;
1115
1115
  imageUrl: z.ZodOptional<z.ZodString>;
1116
1116
  }, z.core.$strip>>;
1117
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
1117
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
1118
1118
  }, z.core.$strip>]>;
1119
1119
  }, z.core.$strip>, z.ZodObject<{
1120
1120
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -77,8 +77,8 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<[z.ZodObjec
77
77
  filename: z.ZodOptional<z.ZodString>;
78
78
  size: z.ZodOptional<z.ZodNumber>;
79
79
  s3Key: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strip>>;
81
- }, z.core.$strip>;
80
+ }, z.core.$loose>>;
81
+ }, z.core.$loose>;
82
82
  }, z.core.$loose>, z.ZodObject<{
83
83
  diagramID: z.ZodOptional<z.ZodString>;
84
84
  time: z.ZodOptional<z.ZodNumber>;
@@ -1447,7 +1447,7 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<[z.ZodObjec
1447
1447
  name: z.ZodString;
1448
1448
  imageUrl: z.ZodOptional<z.ZodString>;
1449
1449
  }, z.core.$strip>>;
1450
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
1450
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
1451
1451
  }, z.core.$strip>]>;
1452
1452
  }, z.core.$strip>, z.ZodObject<{
1453
1453
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1515,8 +1515,8 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<[z.ZodObjec
1515
1515
  filename: z.ZodOptional<z.ZodString>;
1516
1516
  size: z.ZodOptional<z.ZodNumber>;
1517
1517
  s3Key: z.ZodOptional<z.ZodString>;
1518
- }, z.core.$strip>>;
1519
- }, z.core.$strip>;
1518
+ }, z.core.$loose>>;
1519
+ }, z.core.$loose>;
1520
1520
  }, z.core.$loose>, z.ZodObject<{
1521
1521
  diagramID: z.ZodOptional<z.ZodString>;
1522
1522
  time: z.ZodOptional<z.ZodNumber>;
@@ -1792,8 +1792,8 @@ export declare const SocketMessageDTO: z.ZodUnion<readonly [z.ZodDiscriminatedUn
1792
1792
  filename: z.ZodOptional<z.ZodString>;
1793
1793
  size: z.ZodOptional<z.ZodNumber>;
1794
1794
  s3Key: z.ZodOptional<z.ZodString>;
1795
- }, z.core.$strip>>;
1796
- }, z.core.$strip>;
1795
+ }, z.core.$loose>>;
1796
+ }, z.core.$loose>;
1797
1797
  }, z.core.$loose>, z.ZodObject<{
1798
1798
  diagramID: z.ZodOptional<z.ZodString>;
1799
1799
  time: z.ZodOptional<z.ZodNumber>;
@@ -3155,7 +3155,7 @@ export declare const SocketMessageDTO: z.ZodUnion<readonly [z.ZodDiscriminatedUn
3155
3155
  name: z.ZodString;
3156
3156
  imageUrl: z.ZodOptional<z.ZodString>;
3157
3157
  }, z.core.$strip>>;
3158
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
3158
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
3159
3159
  }, z.core.$strip>]>;
3160
3160
  }, z.core.$strip>, z.ZodObject<{
3161
3161
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3223,8 +3223,8 @@ export declare const SocketMessageDTO: z.ZodUnion<readonly [z.ZodDiscriminatedUn
3223
3223
  filename: z.ZodOptional<z.ZodString>;
3224
3224
  size: z.ZodOptional<z.ZodNumber>;
3225
3225
  s3Key: z.ZodOptional<z.ZodString>;
3226
- }, z.core.$strip>>;
3227
- }, z.core.$strip>;
3226
+ }, z.core.$loose>>;
3227
+ }, z.core.$loose>;
3228
3228
  }, z.core.$loose>, z.ZodObject<{
3229
3229
  diagramID: z.ZodOptional<z.ZodString>;
3230
3230
  time: z.ZodOptional<z.ZodNumber>;
@@ -31,8 +31,8 @@ export declare const SocketServerRestartDTO: z.ZodObject<{
31
31
  filename: z.ZodOptional<z.ZodString>;
32
32
  size: z.ZodOptional<z.ZodNumber>;
33
33
  s3Key: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  }, z.core.$loose>, z.ZodObject<{
37
37
  diagramID: z.ZodOptional<z.ZodString>;
38
38
  time: z.ZodOptional<z.ZodNumber>;
@@ -1111,7 +1111,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<[z.ZodObject<{
1111
1111
  name: z.ZodString;
1112
1112
  imageUrl: z.ZodOptional<z.ZodString>;
1113
1113
  }, z.core.$strip>>;
1114
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
1114
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
1115
1115
  }, z.core.$strip>]>;
1116
1116
  }, z.core.$strip>, z.ZodObject<{
1117
1117
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7,6 +7,7 @@ export declare const LiveAgentHandoffEventType: {
7
7
  readonly PARTICIPANT_JOINED: "participant_joined";
8
8
  readonly MESSAGE_RECEIVED: "message_received";
9
9
  readonly CHAT_DISMISSED: "chat_dismissed";
10
+ readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
10
11
  readonly EVENT: "event";
11
12
  readonly WAIT_TIME: "wait_time";
12
13
  readonly FILE_RECEIVED: "file_received";
@@ -82,7 +83,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
82
83
  name: z.ZodString;
83
84
  imageUrl: z.ZodOptional<z.ZodString>;
84
85
  }, z.core.$strip>>;
85
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
86
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
86
87
  }, z.core.$strip>]>;
87
88
  }, z.core.$strip>;
88
89
  //# sourceMappingURL=live-agent-handoff.dto.d.ts.map
@@ -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;AAM9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;;CAS5B,CAAC;AAsDX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC"}
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;AAM9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;;;CAU5B,CAAC;AAuDX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC"}
@@ -11,6 +11,7 @@ exports.LiveAgentHandoffEventType = {
11
11
  PARTICIPANT_JOINED: 'participant_joined',
12
12
  MESSAGE_RECEIVED: 'message_received',
13
13
  CHAT_DISMISSED: 'chat_dismissed',
14
+ CHAT_DISMISSAL_WARNING: 'chat_dismissal_warning',
14
15
  EVENT: 'event',
15
16
  WAIT_TIME: 'wait_time',
16
17
  FILE_RECEIVED: 'file_received',
@@ -60,6 +61,7 @@ const OtherLiveAgentHandoffPayload = BaseLiveAgentHandoffPayload.extend({
60
61
  zod_1.z.literal(exports.LiveAgentHandoffEventType.MESSAGE_RECEIVED),
61
62
  zod_1.z.literal(exports.LiveAgentHandoffEventType.EVENT),
62
63
  zod_1.z.literal(exports.LiveAgentHandoffEventType.WAIT_TIME),
64
+ zod_1.z.literal(exports.LiveAgentHandoffEventType.CHAT_DISMISSAL_WARNING),
63
65
  ]),
64
66
  });
65
67
  exports.LiveAgentHandoffTraceDTO = utils_dto_1.BaseTraceDTO.extend({
@@ -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,yFAA8E;AAC9E,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;IACd,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,eAAe;CACtB,CAAC;AAEX,mDAAmD;AACnD,MAAM,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,KAAK,EAAE,OAAC;SACL,MAAM,CAAC;QACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACvB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KACtC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,gBAAgB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OAAC,CAAC,MAAM,EAAE;QACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,4BAA4B,GAAG,2BAA2B,CAAC,MAAM,CAAC;IACtE,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC;QACb,OAAC,CAAC,OAAO,CAAC,iCAAyB,CAAC,kBAAkB,CAAC;QACvD,OAAC,CAAC,OAAO,CAAC,iCAAyB,CAAC,gBAAgB,CAAC;QACrD,OAAC,CAAC,OAAO,CAAC,iCAAyB,CAAC,KAAK,CAAC;QAC1C,OAAC,CAAC,OAAO,CAAC,iCAAyB,CAAC,SAAS,CAAC;QAC9C,OAAC,CAAC,OAAO,CAAC,iCAAyB,CAAC,sBAAsB,CAAC;KAC5D,CAAC;CACH,CAAC,CAAC;AAGU,QAAA,wBAAwB,GAAG,wBAAY,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,2BAAS,CAAC,kBAAkB,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,4BAA4B,CAAC,CAAC;CAC5G,CAAC,CAAC"}
@@ -28,8 +28,8 @@ export declare const AnyRequestDTO: z.ZodUnion<readonly [z.ZodObject<{
28
28
  filename: z.ZodOptional<z.ZodString>;
29
29
  size: z.ZodOptional<z.ZodNumber>;
30
30
  s3Key: z.ZodOptional<z.ZodString>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  }, z.core.$loose>, z.ZodObject<{
34
34
  diagramID: z.ZodOptional<z.ZodString>;
35
35
  time: z.ZodOptional<z.ZodNumber>;
@@ -5,7 +5,7 @@ export declare const FileAttachmentDTO: z.ZodObject<{
5
5
  filename: z.ZodOptional<z.ZodString>;
6
6
  size: z.ZodOptional<z.ZodNumber>;
7
7
  s3Key: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>;
8
+ }, z.core.$loose>;
9
9
  export declare const FileRequestDTO: z.ZodObject<{
10
10
  diagramID: z.ZodOptional<z.ZodString>;
11
11
  time: z.ZodOptional<z.ZodNumber>;
@@ -19,8 +19,8 @@ export declare const FileRequestDTO: z.ZodObject<{
19
19
  filename: z.ZodOptional<z.ZodString>;
20
20
  size: z.ZodOptional<z.ZodNumber>;
21
21
  s3Key: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>>;
23
- }, z.core.$strip>;
22
+ }, z.core.$loose>>;
23
+ }, z.core.$loose>;
24
24
  }, z.core.$loose>;
25
25
  export type FileRequest = z.infer<typeof FileRequestDTO>;
26
26
  export type FileAttachment = z.infer<typeof FileAttachmentDTO>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { RequestType } from './request-type.enum.js';
3
3
  import { BaseRequestDTO } from './utils.dto.js';
4
- export const FileAttachmentDTO = z.object({
4
+ export const FileAttachmentDTO = z.looseObject({
5
5
  url: z.string(),
6
6
  mimeType: z.string(),
7
7
  filename: z.string().optional(),
@@ -10,12 +10,12 @@ export const FileAttachmentDTO = z.object({
10
10
  });
11
11
  export const FileRequestDTO = BaseRequestDTO.extend({
12
12
  type: z.literal(RequestType.FILE),
13
- payload: z.object({
13
+ payload: z.looseObject({
14
14
  text: z.string().optional(),
15
15
  files: z.array(FileAttachmentDTO).min(1),
16
16
  }),
17
17
  })
18
- .passthrough()
18
+ .loose()
19
19
  .describe('Send one or more file attachments, with an optional text message.');
20
20
  export const isFileRequest = (value) => FileRequestDTO.safeParse(value).success;
21
21
  //# sourceMappingURL=file-request.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-request.dto.js","sourceRoot":"","sources":["../../../src/request/file-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,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BAAiB,GAAG,CAAC,CAAC,WAAW,CAAC;IAC7C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC;IACjC,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC;QACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC,CAAC;CACH,CAAC;KACC,KAAK,EAAE;KACP,QAAQ,CAAC,mEAAmE,CAAC,CAAC;AAKjF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAc,EAAwB,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC"}
@@ -31,8 +31,8 @@ export declare const SocketActionSendDTO: z.ZodObject<{
31
31
  filename: z.ZodOptional<z.ZodString>;
32
32
  size: z.ZodOptional<z.ZodNumber>;
33
33
  s3Key: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  }, z.core.$loose>, z.ZodObject<{
37
37
  diagramID: z.ZodOptional<z.ZodString>;
38
38
  time: z.ZodOptional<z.ZodNumber>;
@@ -1114,7 +1114,7 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1114
1114
  name: z.ZodString;
1115
1115
  imageUrl: z.ZodOptional<z.ZodString>;
1116
1116
  }, z.core.$strip>>;
1117
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
1117
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
1118
1118
  }, z.core.$strip>]>;
1119
1119
  }, z.core.$strip>, z.ZodObject<{
1120
1120
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -77,8 +77,8 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<[z.ZodObjec
77
77
  filename: z.ZodOptional<z.ZodString>;
78
78
  size: z.ZodOptional<z.ZodNumber>;
79
79
  s3Key: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strip>>;
81
- }, z.core.$strip>;
80
+ }, z.core.$loose>>;
81
+ }, z.core.$loose>;
82
82
  }, z.core.$loose>, z.ZodObject<{
83
83
  diagramID: z.ZodOptional<z.ZodString>;
84
84
  time: z.ZodOptional<z.ZodNumber>;
@@ -1447,7 +1447,7 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<[z.ZodObjec
1447
1447
  name: z.ZodString;
1448
1448
  imageUrl: z.ZodOptional<z.ZodString>;
1449
1449
  }, z.core.$strip>>;
1450
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
1450
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
1451
1451
  }, z.core.$strip>]>;
1452
1452
  }, z.core.$strip>, z.ZodObject<{
1453
1453
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1515,8 +1515,8 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<[z.ZodObjec
1515
1515
  filename: z.ZodOptional<z.ZodString>;
1516
1516
  size: z.ZodOptional<z.ZodNumber>;
1517
1517
  s3Key: z.ZodOptional<z.ZodString>;
1518
- }, z.core.$strip>>;
1519
- }, z.core.$strip>;
1518
+ }, z.core.$loose>>;
1519
+ }, z.core.$loose>;
1520
1520
  }, z.core.$loose>, z.ZodObject<{
1521
1521
  diagramID: z.ZodOptional<z.ZodString>;
1522
1522
  time: z.ZodOptional<z.ZodNumber>;
@@ -1792,8 +1792,8 @@ export declare const SocketMessageDTO: z.ZodUnion<readonly [z.ZodDiscriminatedUn
1792
1792
  filename: z.ZodOptional<z.ZodString>;
1793
1793
  size: z.ZodOptional<z.ZodNumber>;
1794
1794
  s3Key: z.ZodOptional<z.ZodString>;
1795
- }, z.core.$strip>>;
1796
- }, z.core.$strip>;
1795
+ }, z.core.$loose>>;
1796
+ }, z.core.$loose>;
1797
1797
  }, z.core.$loose>, z.ZodObject<{
1798
1798
  diagramID: z.ZodOptional<z.ZodString>;
1799
1799
  time: z.ZodOptional<z.ZodNumber>;
@@ -3155,7 +3155,7 @@ export declare const SocketMessageDTO: z.ZodUnion<readonly [z.ZodDiscriminatedUn
3155
3155
  name: z.ZodString;
3156
3156
  imageUrl: z.ZodOptional<z.ZodString>;
3157
3157
  }, z.core.$strip>>;
3158
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
3158
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
3159
3159
  }, z.core.$strip>]>;
3160
3160
  }, z.core.$strip>, z.ZodObject<{
3161
3161
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3223,8 +3223,8 @@ export declare const SocketMessageDTO: z.ZodUnion<readonly [z.ZodDiscriminatedUn
3223
3223
  filename: z.ZodOptional<z.ZodString>;
3224
3224
  size: z.ZodOptional<z.ZodNumber>;
3225
3225
  s3Key: z.ZodOptional<z.ZodString>;
3226
- }, z.core.$strip>>;
3227
- }, z.core.$strip>;
3226
+ }, z.core.$loose>>;
3227
+ }, z.core.$loose>;
3228
3228
  }, z.core.$loose>, z.ZodObject<{
3229
3229
  diagramID: z.ZodOptional<z.ZodString>;
3230
3230
  time: z.ZodOptional<z.ZodNumber>;
@@ -31,8 +31,8 @@ export declare const SocketServerRestartDTO: z.ZodObject<{
31
31
  filename: z.ZodOptional<z.ZodString>;
32
32
  size: z.ZodOptional<z.ZodNumber>;
33
33
  s3Key: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  }, z.core.$loose>, z.ZodObject<{
37
37
  diagramID: z.ZodOptional<z.ZodString>;
38
38
  time: z.ZodOptional<z.ZodNumber>;
@@ -1111,7 +1111,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<[z.ZodObject<{
1111
1111
  name: z.ZodString;
1112
1112
  imageUrl: z.ZodOptional<z.ZodString>;
1113
1113
  }, z.core.$strip>>;
1114
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
1114
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
1115
1115
  }, z.core.$strip>]>;
1116
1116
  }, z.core.$strip>, z.ZodObject<{
1117
1117
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7,6 +7,7 @@ export declare const LiveAgentHandoffEventType: {
7
7
  readonly PARTICIPANT_JOINED: "participant_joined";
8
8
  readonly MESSAGE_RECEIVED: "message_received";
9
9
  readonly CHAT_DISMISSED: "chat_dismissed";
10
+ readonly CHAT_DISMISSAL_WARNING: "chat_dismissal_warning";
10
11
  readonly EVENT: "event";
11
12
  readonly WAIT_TIME: "wait_time";
12
13
  readonly FILE_RECEIVED: "file_received";
@@ -82,7 +83,7 @@ export declare const LiveAgentHandoffTraceDTO: z.ZodObject<{
82
83
  name: z.ZodString;
83
84
  imageUrl: z.ZodOptional<z.ZodString>;
84
85
  }, z.core.$strip>>;
85
- event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">]>;
86
+ event: z.ZodUnion<readonly [z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">, z.ZodLiteral<"wait_time">, z.ZodLiteral<"chat_dismissal_warning">]>;
86
87
  }, z.core.$strip>]>;
87
88
  }, z.core.$strip>;
88
89
  //# sourceMappingURL=live-agent-handoff.dto.d.ts.map
@@ -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;AAM9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;;CAS5B,CAAC;AAsDX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC"}
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;AAM9C,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;;;CAU5B,CAAC;AAuDX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC"}
@@ -8,6 +8,7 @@ export const LiveAgentHandoffEventType = {
8
8
  PARTICIPANT_JOINED: 'participant_joined',
9
9
  MESSAGE_RECEIVED: 'message_received',
10
10
  CHAT_DISMISSED: 'chat_dismissed',
11
+ CHAT_DISMISSAL_WARNING: 'chat_dismissal_warning',
11
12
  EVENT: 'event',
12
13
  WAIT_TIME: 'wait_time',
13
14
  FILE_RECEIVED: 'file_received',
@@ -57,6 +58,7 @@ const OtherLiveAgentHandoffPayload = BaseLiveAgentHandoffPayload.extend({
57
58
  z.literal(LiveAgentHandoffEventType.MESSAGE_RECEIVED),
58
59
  z.literal(LiveAgentHandoffEventType.EVENT),
59
60
  z.literal(LiveAgentHandoffEventType.WAIT_TIME),
61
+ z.literal(LiveAgentHandoffEventType.CHAT_DISMISSAL_WARNING),
60
62
  ]),
61
63
  });
62
64
  export const LiveAgentHandoffTraceDTO = BaseTraceDTO.extend({
@@ -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,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C,MAAM,EAAE;QACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,4BAA4B,GAAG,2BAA2B,CAAC,MAAM,CAAC;IACtE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;QACvD,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,gBAAgB,CAAC;QACrD,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,KAAK,CAAC;QAC1C,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,SAAS,CAAC;QAC9C,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,sBAAsB,CAAC;KAC5D,CAAC;CACH,CAAC,CAAC;AAGH,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,KAAK,CAAC,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,4BAA4B,CAAC,CAAC;CAC5G,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/dtos-interact",
3
- "version": "2.0.2-4ecc35face.21+4ecc35face",
3
+ "version": "2.1.1-3cab7c5745.68+3cab7c5745",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./build/cjs/main.d.ts",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "4ecc35faceda1cfa920f149a0292094fbd60d986"
47
+ "gitHead": "3cab7c57455c612c132c8e02aa76dcea820f2f6b"
48
48
  }