@voiceflow/dtos-interact 1.63.0 → 1.64.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 (41) hide show
  1. package/build/cjs/request/any-request.dto.d.ts +18 -0
  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 +27 -0
  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 +8 -1
  6. package/build/cjs/request/live-agent-handoff-request.dto.js.map +1 -1
  7. package/build/cjs/socket/socket-action-send.dto.d.ts +42 -0
  8. package/build/cjs/socket/socket-action-send.dto.d.ts.map +1 -1
  9. package/build/cjs/socket/socket-action-trace.dto.d.ts +137 -9
  10. package/build/cjs/socket/socket-action-trace.dto.d.ts.map +1 -1
  11. package/build/cjs/socket/socket-message.dto.d.ts +442 -18
  12. package/build/cjs/socket/socket-message.dto.d.ts.map +1 -1
  13. package/build/cjs/socket/socket-server-restart.dto.d.ts +42 -0
  14. package/build/cjs/socket/socket-server-restart.dto.d.ts.map +1 -1
  15. package/build/cjs/trace/any.dto.d.ts +81 -5
  16. package/build/cjs/trace/any.dto.d.ts.map +1 -1
  17. package/build/cjs/trace/live-agent-handoff.dto.d.ts +81 -5
  18. package/build/cjs/trace/live-agent-handoff.dto.d.ts.map +1 -1
  19. package/build/cjs/trace/live-agent-handoff.dto.js +9 -2
  20. package/build/cjs/trace/live-agent-handoff.dto.js.map +1 -1
  21. package/build/esm/request/any-request.dto.d.ts +18 -0
  22. package/build/esm/request/any-request.dto.d.ts.map +1 -1
  23. package/build/esm/request/live-agent-handoff-request.dto.d.ts +27 -0
  24. package/build/esm/request/live-agent-handoff-request.dto.d.ts.map +1 -1
  25. package/build/esm/request/live-agent-handoff-request.dto.js +7 -0
  26. package/build/esm/request/live-agent-handoff-request.dto.js.map +1 -1
  27. package/build/esm/socket/socket-action-send.dto.d.ts +42 -0
  28. package/build/esm/socket/socket-action-send.dto.d.ts.map +1 -1
  29. package/build/esm/socket/socket-action-trace.dto.d.ts +137 -9
  30. package/build/esm/socket/socket-action-trace.dto.d.ts.map +1 -1
  31. package/build/esm/socket/socket-message.dto.d.ts +442 -18
  32. package/build/esm/socket/socket-message.dto.d.ts.map +1 -1
  33. package/build/esm/socket/socket-server-restart.dto.d.ts +42 -0
  34. package/build/esm/socket/socket-server-restart.dto.d.ts.map +1 -1
  35. package/build/esm/trace/any.dto.d.ts +81 -5
  36. package/build/esm/trace/any.dto.d.ts.map +1 -1
  37. package/build/esm/trace/live-agent-handoff.dto.d.ts +81 -5
  38. package/build/esm/trace/live-agent-handoff.dto.d.ts.map +1 -1
  39. package/build/esm/trace/live-agent-handoff.dto.js +9 -2
  40. package/build/esm/trace/live-agent-handoff.dto.js.map +1 -1
  41. package/package.json +2 -2
@@ -977,6 +977,12 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
977
977
  type: "continue_conversation";
978
978
  }, {
979
979
  type: "continue_conversation";
980
+ }>, z.ZodObject<{
981
+ type: z.ZodLiteral<"return_to_voiceflow">;
982
+ }, "strict", z.ZodTypeAny, {
983
+ type: "return_to_voiceflow";
984
+ }, {
985
+ type: "return_to_voiceflow";
980
986
  }>]>;
981
987
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
982
988
  diagramID: z.ZodOptional<z.ZodString>;
@@ -1043,6 +1049,12 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
1043
1049
  type: "continue_conversation";
1044
1050
  }, {
1045
1051
  type: "continue_conversation";
1052
+ }>, z.ZodObject<{
1053
+ type: z.ZodLiteral<"return_to_voiceflow">;
1054
+ }, "strict", z.ZodTypeAny, {
1055
+ type: "return_to_voiceflow";
1056
+ }, {
1057
+ type: "return_to_voiceflow";
1046
1058
  }>]>;
1047
1059
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1048
1060
  diagramID: z.ZodOptional<z.ZodString>;
@@ -1109,6 +1121,12 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
1109
1121
  type: "continue_conversation";
1110
1122
  }, {
1111
1123
  type: "continue_conversation";
1124
+ }>, z.ZodObject<{
1125
+ type: z.ZodLiteral<"return_to_voiceflow">;
1126
+ }, "strict", z.ZodTypeAny, {
1127
+ type: "return_to_voiceflow";
1128
+ }, {
1129
+ type: "return_to_voiceflow";
1112
1130
  }>]>;
1113
1131
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1114
1132
  diagramID: z.ZodOptional<z.ZodString>;
@@ -2439,6 +2457,12 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
2439
2457
  type: "continue_conversation";
2440
2458
  }, {
2441
2459
  type: "continue_conversation";
2460
+ }>, z.ZodObject<{
2461
+ type: z.ZodLiteral<"return_to_voiceflow">;
2462
+ }, "strict", z.ZodTypeAny, {
2463
+ type: "return_to_voiceflow";
2464
+ }, {
2465
+ type: "return_to_voiceflow";
2442
2466
  }>]>;
2443
2467
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2444
2468
  diagramID: z.ZodOptional<z.ZodString>;
@@ -2986,6 +3010,12 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
2986
3010
  type: "continue_conversation";
2987
3011
  }, {
2988
3012
  type: "continue_conversation";
3013
+ }>, z.ZodObject<{
3014
+ type: z.ZodLiteral<"return_to_voiceflow">;
3015
+ }, "strict", z.ZodTypeAny, {
3016
+ type: "return_to_voiceflow";
3017
+ }, {
3018
+ type: "return_to_voiceflow";
2989
3019
  }>]>;
2990
3020
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2991
3021
  diagramID: z.ZodOptional<z.ZodString>;
@@ -3536,6 +3566,12 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
3536
3566
  type: "continue_conversation";
3537
3567
  }, {
3538
3568
  type: "continue_conversation";
3569
+ }>, z.ZodObject<{
3570
+ type: z.ZodLiteral<"return_to_voiceflow">;
3571
+ }, "strict", z.ZodTypeAny, {
3572
+ type: "return_to_voiceflow";
3573
+ }, {
3574
+ type: "return_to_voiceflow";
3539
3575
  }>]>;
3540
3576
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3541
3577
  diagramID: z.ZodOptional<z.ZodString>;
@@ -4086,6 +4122,12 @@ export declare const SocketClientMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
4086
4122
  type: "continue_conversation";
4087
4123
  }, {
4088
4124
  type: "continue_conversation";
4125
+ }>, z.ZodObject<{
4126
+ type: z.ZodLiteral<"return_to_voiceflow">;
4127
+ }, "strict", z.ZodTypeAny, {
4128
+ type: "return_to_voiceflow";
4129
+ }, {
4130
+ type: "return_to_voiceflow";
4089
4131
  }>]>;
4090
4132
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
4091
4133
  diagramID: z.ZodOptional<z.ZodString>;
@@ -8971,6 +9013,56 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
8971
9013
  name: string;
8972
9014
  imageUrl?: string | undefined;
8973
9015
  }>>;
9016
+ } & {
9017
+ event: z.ZodLiteral<"chat_started">;
9018
+ config: z.ZodOptional<z.ZodObject<{
9019
+ returnToAI: z.ZodOptional<z.ZodBoolean>;
9020
+ }, "strip", z.ZodTypeAny, {
9021
+ returnToAI?: boolean | undefined;
9022
+ }, {
9023
+ returnToAI?: boolean | undefined;
9024
+ }>>;
9025
+ }, "strip", z.ZodTypeAny, {
9026
+ message: string;
9027
+ event: "chat_started";
9028
+ conversationID: string;
9029
+ config?: {
9030
+ returnToAI?: boolean | undefined;
9031
+ } | undefined;
9032
+ agent?: {
9033
+ name: string;
9034
+ imageUrl?: string | undefined;
9035
+ } | undefined;
9036
+ translationKey?: string | undefined;
9037
+ translationParams?: Record<string, string> | undefined;
9038
+ }, {
9039
+ message: string;
9040
+ event: "chat_started";
9041
+ conversationID: string;
9042
+ config?: {
9043
+ returnToAI?: boolean | undefined;
9044
+ } | undefined;
9045
+ agent?: {
9046
+ name: string;
9047
+ imageUrl?: string | undefined;
9048
+ } | undefined;
9049
+ translationKey?: string | undefined;
9050
+ translationParams?: Record<string, string> | undefined;
9051
+ }>, z.ZodObject<{
9052
+ conversationID: z.ZodString;
9053
+ message: z.ZodString;
9054
+ translationKey: z.ZodOptional<z.ZodString>;
9055
+ translationParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9056
+ agent: z.ZodOptional<z.ZodObject<{
9057
+ name: z.ZodString;
9058
+ imageUrl: z.ZodOptional<z.ZodString>;
9059
+ }, "strip", z.ZodTypeAny, {
9060
+ name: string;
9061
+ imageUrl?: string | undefined;
9062
+ }, {
9063
+ name: string;
9064
+ imageUrl?: string | undefined;
9065
+ }>>;
8974
9066
  } & {
8975
9067
  event: z.ZodUnion<[z.ZodLiteral<"chat_ended">, z.ZodLiteral<"chat_dismissed">]>;
8976
9068
  downloadMessage: z.ZodOptional<z.ZodString>;
@@ -9018,10 +9110,10 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9018
9110
  imageUrl?: string | undefined;
9019
9111
  }>>;
9020
9112
  } & {
9021
- event: z.ZodUnion<[z.ZodLiteral<"chat_started">, z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">]>;
9113
+ event: z.ZodUnion<[z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">]>;
9022
9114
  }, "strip", z.ZodTypeAny, {
9023
9115
  message: string;
9024
- event: "event" | "chat_started" | "participant_joined" | "message_received";
9116
+ event: "event" | "participant_joined" | "message_received";
9025
9117
  conversationID: string;
9026
9118
  agent?: {
9027
9119
  name: string;
@@ -9031,7 +9123,7 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9031
9123
  translationParams?: Record<string, string> | undefined;
9032
9124
  }, {
9033
9125
  message: string;
9034
- event: "event" | "chat_started" | "participant_joined" | "message_received";
9126
+ event: "event" | "participant_joined" | "message_received";
9035
9127
  conversationID: string;
9036
9128
  agent?: {
9037
9129
  name: string;
@@ -9057,7 +9149,20 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9057
9149
  newConversationMessage?: string | undefined;
9058
9150
  } | {
9059
9151
  message: string;
9060
- event: "event" | "chat_started" | "participant_joined" | "message_received";
9152
+ event: "chat_started";
9153
+ conversationID: string;
9154
+ config?: {
9155
+ returnToAI?: boolean | undefined;
9156
+ } | undefined;
9157
+ agent?: {
9158
+ name: string;
9159
+ imageUrl?: string | undefined;
9160
+ } | undefined;
9161
+ translationKey?: string | undefined;
9162
+ translationParams?: Record<string, string> | undefined;
9163
+ } | {
9164
+ message: string;
9165
+ event: "event" | "participant_joined" | "message_received";
9061
9166
  conversationID: string;
9062
9167
  agent?: {
9063
9168
  name: string;
@@ -9097,7 +9202,20 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9097
9202
  newConversationMessage?: string | undefined;
9098
9203
  } | {
9099
9204
  message: string;
9100
- event: "event" | "chat_started" | "participant_joined" | "message_received";
9205
+ event: "chat_started";
9206
+ conversationID: string;
9207
+ config?: {
9208
+ returnToAI?: boolean | undefined;
9209
+ } | undefined;
9210
+ agent?: {
9211
+ name: string;
9212
+ imageUrl?: string | undefined;
9213
+ } | undefined;
9214
+ translationKey?: string | undefined;
9215
+ translationParams?: Record<string, string> | undefined;
9216
+ } | {
9217
+ message: string;
9218
+ event: "event" | "participant_joined" | "message_received";
9101
9219
  conversationID: string;
9102
9220
  agent?: {
9103
9221
  name: string;
@@ -9667,7 +9785,20 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
9667
9785
  newConversationMessage?: string | undefined;
9668
9786
  } | {
9669
9787
  message: string;
9670
- event: "event" | "chat_started" | "participant_joined" | "message_received";
9788
+ event: "chat_started";
9789
+ conversationID: string;
9790
+ config?: {
9791
+ returnToAI?: boolean | undefined;
9792
+ } | undefined;
9793
+ agent?: {
9794
+ name: string;
9795
+ imageUrl?: string | undefined;
9796
+ } | undefined;
9797
+ translationKey?: string | undefined;
9798
+ translationParams?: Record<string, string> | undefined;
9799
+ } | {
9800
+ message: string;
9801
+ event: "event" | "participant_joined" | "message_received";
9671
9802
  conversationID: string;
9672
9803
  agent?: {
9673
9804
  name: string;
@@ -10502,7 +10633,20 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
10502
10633
  newConversationMessage?: string | undefined;
10503
10634
  } | {
10504
10635
  message: string;
10505
- event: "event" | "chat_started" | "participant_joined" | "message_received";
10636
+ event: "chat_started";
10637
+ conversationID: string;
10638
+ config?: {
10639
+ returnToAI?: boolean | undefined;
10640
+ } | undefined;
10641
+ agent?: {
10642
+ name: string;
10643
+ imageUrl?: string | undefined;
10644
+ } | undefined;
10645
+ translationKey?: string | undefined;
10646
+ translationParams?: Record<string, string> | undefined;
10647
+ } | {
10648
+ message: string;
10649
+ event: "event" | "participant_joined" | "message_received";
10506
10650
  conversationID: string;
10507
10651
  agent?: {
10508
10652
  name: string;
@@ -11340,7 +11484,20 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
11340
11484
  newConversationMessage?: string | undefined;
11341
11485
  } | {
11342
11486
  message: string;
11343
- event: "event" | "chat_started" | "participant_joined" | "message_received";
11487
+ event: "chat_started";
11488
+ conversationID: string;
11489
+ config?: {
11490
+ returnToAI?: boolean | undefined;
11491
+ } | undefined;
11492
+ agent?: {
11493
+ name: string;
11494
+ imageUrl?: string | undefined;
11495
+ } | undefined;
11496
+ translationKey?: string | undefined;
11497
+ translationParams?: Record<string, string> | undefined;
11498
+ } | {
11499
+ message: string;
11500
+ event: "event" | "participant_joined" | "message_received";
11344
11501
  conversationID: string;
11345
11502
  agent?: {
11346
11503
  name: string;
@@ -12178,7 +12335,20 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
12178
12335
  newConversationMessage?: string | undefined;
12179
12336
  } | {
12180
12337
  message: string;
12181
- event: "event" | "chat_started" | "participant_joined" | "message_received";
12338
+ event: "chat_started";
12339
+ conversationID: string;
12340
+ config?: {
12341
+ returnToAI?: boolean | undefined;
12342
+ } | undefined;
12343
+ agent?: {
12344
+ name: string;
12345
+ imageUrl?: string | undefined;
12346
+ } | undefined;
12347
+ translationKey?: string | undefined;
12348
+ translationParams?: Record<string, string> | undefined;
12349
+ } | {
12350
+ message: string;
12351
+ event: "event" | "participant_joined" | "message_received";
12182
12352
  conversationID: string;
12183
12353
  agent?: {
12184
12354
  name: string;
@@ -13277,6 +13447,12 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
13277
13447
  type: "continue_conversation";
13278
13448
  }, {
13279
13449
  type: "continue_conversation";
13450
+ }>, z.ZodObject<{
13451
+ type: z.ZodLiteral<"return_to_voiceflow">;
13452
+ }, "strict", z.ZodTypeAny, {
13453
+ type: "return_to_voiceflow";
13454
+ }, {
13455
+ type: "return_to_voiceflow";
13280
13456
  }>]>;
13281
13457
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
13282
13458
  diagramID: z.ZodOptional<z.ZodString>;
@@ -13343,6 +13519,12 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
13343
13519
  type: "continue_conversation";
13344
13520
  }, {
13345
13521
  type: "continue_conversation";
13522
+ }>, z.ZodObject<{
13523
+ type: z.ZodLiteral<"return_to_voiceflow">;
13524
+ }, "strict", z.ZodTypeAny, {
13525
+ type: "return_to_voiceflow";
13526
+ }, {
13527
+ type: "return_to_voiceflow";
13346
13528
  }>]>;
13347
13529
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
13348
13530
  diagramID: z.ZodOptional<z.ZodString>;
@@ -13409,6 +13591,12 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
13409
13591
  type: "continue_conversation";
13410
13592
  }, {
13411
13593
  type: "continue_conversation";
13594
+ }>, z.ZodObject<{
13595
+ type: z.ZodLiteral<"return_to_voiceflow">;
13596
+ }, "strict", z.ZodTypeAny, {
13597
+ type: "return_to_voiceflow";
13598
+ }, {
13599
+ type: "return_to_voiceflow";
13412
13600
  }>]>;
13413
13601
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
13414
13602
  diagramID: z.ZodOptional<z.ZodString>;
@@ -14722,6 +14910,12 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
14722
14910
  type: "continue_conversation";
14723
14911
  }, {
14724
14912
  type: "continue_conversation";
14913
+ }>, z.ZodObject<{
14914
+ type: z.ZodLiteral<"return_to_voiceflow">;
14915
+ }, "strict", z.ZodTypeAny, {
14916
+ type: "return_to_voiceflow";
14917
+ }, {
14918
+ type: "return_to_voiceflow";
14725
14919
  }>]>;
14726
14920
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
14727
14921
  diagramID: z.ZodOptional<z.ZodString>;
@@ -15260,6 +15454,12 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
15260
15454
  type: "continue_conversation";
15261
15455
  }, {
15262
15456
  type: "continue_conversation";
15457
+ }>, z.ZodObject<{
15458
+ type: z.ZodLiteral<"return_to_voiceflow">;
15459
+ }, "strict", z.ZodTypeAny, {
15460
+ type: "return_to_voiceflow";
15461
+ }, {
15462
+ type: "return_to_voiceflow";
15263
15463
  }>]>;
15264
15464
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
15265
15465
  diagramID: z.ZodOptional<z.ZodString>;
@@ -15801,6 +16001,12 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
15801
16001
  type: "continue_conversation";
15802
16002
  }, {
15803
16003
  type: "continue_conversation";
16004
+ }>, z.ZodObject<{
16005
+ type: z.ZodLiteral<"return_to_voiceflow">;
16006
+ }, "strict", z.ZodTypeAny, {
16007
+ type: "return_to_voiceflow";
16008
+ }, {
16009
+ type: "return_to_voiceflow";
15804
16010
  }>]>;
15805
16011
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
15806
16012
  diagramID: z.ZodOptional<z.ZodString>;
@@ -16342,6 +16548,12 @@ export declare const SocketServerMessageDTO: z.ZodDiscriminatedUnion<"type", [z.
16342
16548
  type: "continue_conversation";
16343
16549
  }, {
16344
16550
  type: "continue_conversation";
16551
+ }>, z.ZodObject<{
16552
+ type: z.ZodLiteral<"return_to_voiceflow">;
16553
+ }, "strict", z.ZodTypeAny, {
16554
+ type: "return_to_voiceflow";
16555
+ }, {
16556
+ type: "return_to_voiceflow";
16345
16557
  }>]>;
16346
16558
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
16347
16559
  diagramID: z.ZodOptional<z.ZodString>;
@@ -17381,6 +17593,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
17381
17593
  type: "continue_conversation";
17382
17594
  }, {
17383
17595
  type: "continue_conversation";
17596
+ }>, z.ZodObject<{
17597
+ type: z.ZodLiteral<"return_to_voiceflow">;
17598
+ }, "strict", z.ZodTypeAny, {
17599
+ type: "return_to_voiceflow";
17600
+ }, {
17601
+ type: "return_to_voiceflow";
17384
17602
  }>]>;
17385
17603
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
17386
17604
  diagramID: z.ZodOptional<z.ZodString>;
@@ -17447,6 +17665,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
17447
17665
  type: "continue_conversation";
17448
17666
  }, {
17449
17667
  type: "continue_conversation";
17668
+ }>, z.ZodObject<{
17669
+ type: z.ZodLiteral<"return_to_voiceflow">;
17670
+ }, "strict", z.ZodTypeAny, {
17671
+ type: "return_to_voiceflow";
17672
+ }, {
17673
+ type: "return_to_voiceflow";
17450
17674
  }>]>;
17451
17675
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
17452
17676
  diagramID: z.ZodOptional<z.ZodString>;
@@ -17513,6 +17737,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
17513
17737
  type: "continue_conversation";
17514
17738
  }, {
17515
17739
  type: "continue_conversation";
17740
+ }>, z.ZodObject<{
17741
+ type: z.ZodLiteral<"return_to_voiceflow">;
17742
+ }, "strict", z.ZodTypeAny, {
17743
+ type: "return_to_voiceflow";
17744
+ }, {
17745
+ type: "return_to_voiceflow";
17516
17746
  }>]>;
17517
17747
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
17518
17748
  diagramID: z.ZodOptional<z.ZodString>;
@@ -18843,6 +19073,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
18843
19073
  type: "continue_conversation";
18844
19074
  }, {
18845
19075
  type: "continue_conversation";
19076
+ }>, z.ZodObject<{
19077
+ type: z.ZodLiteral<"return_to_voiceflow">;
19078
+ }, "strict", z.ZodTypeAny, {
19079
+ type: "return_to_voiceflow";
19080
+ }, {
19081
+ type: "return_to_voiceflow";
18846
19082
  }>]>;
18847
19083
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
18848
19084
  diagramID: z.ZodOptional<z.ZodString>;
@@ -19390,6 +19626,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
19390
19626
  type: "continue_conversation";
19391
19627
  }, {
19392
19628
  type: "continue_conversation";
19629
+ }>, z.ZodObject<{
19630
+ type: z.ZodLiteral<"return_to_voiceflow">;
19631
+ }, "strict", z.ZodTypeAny, {
19632
+ type: "return_to_voiceflow";
19633
+ }, {
19634
+ type: "return_to_voiceflow";
19393
19635
  }>]>;
19394
19636
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
19395
19637
  diagramID: z.ZodOptional<z.ZodString>;
@@ -19940,6 +20182,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
19940
20182
  type: "continue_conversation";
19941
20183
  }, {
19942
20184
  type: "continue_conversation";
20185
+ }>, z.ZodObject<{
20186
+ type: z.ZodLiteral<"return_to_voiceflow">;
20187
+ }, "strict", z.ZodTypeAny, {
20188
+ type: "return_to_voiceflow";
20189
+ }, {
20190
+ type: "return_to_voiceflow";
19943
20191
  }>]>;
19944
20192
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
19945
20193
  diagramID: z.ZodOptional<z.ZodString>;
@@ -20490,6 +20738,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
20490
20738
  type: "continue_conversation";
20491
20739
  }, {
20492
20740
  type: "continue_conversation";
20741
+ }>, z.ZodObject<{
20742
+ type: z.ZodLiteral<"return_to_voiceflow">;
20743
+ }, "strict", z.ZodTypeAny, {
20744
+ type: "return_to_voiceflow";
20745
+ }, {
20746
+ type: "return_to_voiceflow";
20493
20747
  }>]>;
20494
20748
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
20495
20749
  diagramID: z.ZodOptional<z.ZodString>;
@@ -25368,6 +25622,56 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
25368
25622
  name: string;
25369
25623
  imageUrl?: string | undefined;
25370
25624
  }>>;
25625
+ } & {
25626
+ event: z.ZodLiteral<"chat_started">;
25627
+ config: z.ZodOptional<z.ZodObject<{
25628
+ returnToAI: z.ZodOptional<z.ZodBoolean>;
25629
+ }, "strip", z.ZodTypeAny, {
25630
+ returnToAI?: boolean | undefined;
25631
+ }, {
25632
+ returnToAI?: boolean | undefined;
25633
+ }>>;
25634
+ }, "strip", z.ZodTypeAny, {
25635
+ message: string;
25636
+ event: "chat_started";
25637
+ conversationID: string;
25638
+ config?: {
25639
+ returnToAI?: boolean | undefined;
25640
+ } | undefined;
25641
+ agent?: {
25642
+ name: string;
25643
+ imageUrl?: string | undefined;
25644
+ } | undefined;
25645
+ translationKey?: string | undefined;
25646
+ translationParams?: Record<string, string> | undefined;
25647
+ }, {
25648
+ message: string;
25649
+ event: "chat_started";
25650
+ conversationID: string;
25651
+ config?: {
25652
+ returnToAI?: boolean | undefined;
25653
+ } | undefined;
25654
+ agent?: {
25655
+ name: string;
25656
+ imageUrl?: string | undefined;
25657
+ } | undefined;
25658
+ translationKey?: string | undefined;
25659
+ translationParams?: Record<string, string> | undefined;
25660
+ }>, z.ZodObject<{
25661
+ conversationID: z.ZodString;
25662
+ message: z.ZodString;
25663
+ translationKey: z.ZodOptional<z.ZodString>;
25664
+ translationParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25665
+ agent: z.ZodOptional<z.ZodObject<{
25666
+ name: z.ZodString;
25667
+ imageUrl: z.ZodOptional<z.ZodString>;
25668
+ }, "strip", z.ZodTypeAny, {
25669
+ name: string;
25670
+ imageUrl?: string | undefined;
25671
+ }, {
25672
+ name: string;
25673
+ imageUrl?: string | undefined;
25674
+ }>>;
25371
25675
  } & {
25372
25676
  event: z.ZodUnion<[z.ZodLiteral<"chat_ended">, z.ZodLiteral<"chat_dismissed">]>;
25373
25677
  downloadMessage: z.ZodOptional<z.ZodString>;
@@ -25415,10 +25719,10 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
25415
25719
  imageUrl?: string | undefined;
25416
25720
  }>>;
25417
25721
  } & {
25418
- event: z.ZodUnion<[z.ZodLiteral<"chat_started">, z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">]>;
25722
+ event: z.ZodUnion<[z.ZodLiteral<"participant_joined">, z.ZodLiteral<"message_received">, z.ZodLiteral<"event">]>;
25419
25723
  }, "strip", z.ZodTypeAny, {
25420
25724
  message: string;
25421
- event: "event" | "chat_started" | "participant_joined" | "message_received";
25725
+ event: "event" | "participant_joined" | "message_received";
25422
25726
  conversationID: string;
25423
25727
  agent?: {
25424
25728
  name: string;
@@ -25428,7 +25732,7 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
25428
25732
  translationParams?: Record<string, string> | undefined;
25429
25733
  }, {
25430
25734
  message: string;
25431
- event: "event" | "chat_started" | "participant_joined" | "message_received";
25735
+ event: "event" | "participant_joined" | "message_received";
25432
25736
  conversationID: string;
25433
25737
  agent?: {
25434
25738
  name: string;
@@ -25454,7 +25758,20 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
25454
25758
  newConversationMessage?: string | undefined;
25455
25759
  } | {
25456
25760
  message: string;
25457
- event: "event" | "chat_started" | "participant_joined" | "message_received";
25761
+ event: "chat_started";
25762
+ conversationID: string;
25763
+ config?: {
25764
+ returnToAI?: boolean | undefined;
25765
+ } | undefined;
25766
+ agent?: {
25767
+ name: string;
25768
+ imageUrl?: string | undefined;
25769
+ } | undefined;
25770
+ translationKey?: string | undefined;
25771
+ translationParams?: Record<string, string> | undefined;
25772
+ } | {
25773
+ message: string;
25774
+ event: "event" | "participant_joined" | "message_received";
25458
25775
  conversationID: string;
25459
25776
  agent?: {
25460
25777
  name: string;
@@ -25494,7 +25811,20 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
25494
25811
  newConversationMessage?: string | undefined;
25495
25812
  } | {
25496
25813
  message: string;
25497
- event: "event" | "chat_started" | "participant_joined" | "message_received";
25814
+ event: "chat_started";
25815
+ conversationID: string;
25816
+ config?: {
25817
+ returnToAI?: boolean | undefined;
25818
+ } | undefined;
25819
+ agent?: {
25820
+ name: string;
25821
+ imageUrl?: string | undefined;
25822
+ } | undefined;
25823
+ translationKey?: string | undefined;
25824
+ translationParams?: Record<string, string> | undefined;
25825
+ } | {
25826
+ message: string;
25827
+ event: "event" | "participant_joined" | "message_received";
25498
25828
  conversationID: string;
25499
25829
  agent?: {
25500
25830
  name: string;
@@ -26064,7 +26394,20 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
26064
26394
  newConversationMessage?: string | undefined;
26065
26395
  } | {
26066
26396
  message: string;
26067
- event: "event" | "chat_started" | "participant_joined" | "message_received";
26397
+ event: "chat_started";
26398
+ conversationID: string;
26399
+ config?: {
26400
+ returnToAI?: boolean | undefined;
26401
+ } | undefined;
26402
+ agent?: {
26403
+ name: string;
26404
+ imageUrl?: string | undefined;
26405
+ } | undefined;
26406
+ translationKey?: string | undefined;
26407
+ translationParams?: Record<string, string> | undefined;
26408
+ } | {
26409
+ message: string;
26410
+ event: "event" | "participant_joined" | "message_received";
26068
26411
  conversationID: string;
26069
26412
  agent?: {
26070
26413
  name: string;
@@ -26899,7 +27242,20 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
26899
27242
  newConversationMessage?: string | undefined;
26900
27243
  } | {
26901
27244
  message: string;
26902
- event: "event" | "chat_started" | "participant_joined" | "message_received";
27245
+ event: "chat_started";
27246
+ conversationID: string;
27247
+ config?: {
27248
+ returnToAI?: boolean | undefined;
27249
+ } | undefined;
27250
+ agent?: {
27251
+ name: string;
27252
+ imageUrl?: string | undefined;
27253
+ } | undefined;
27254
+ translationKey?: string | undefined;
27255
+ translationParams?: Record<string, string> | undefined;
27256
+ } | {
27257
+ message: string;
27258
+ event: "event" | "participant_joined" | "message_received";
26903
27259
  conversationID: string;
26904
27260
  agent?: {
26905
27261
  name: string;
@@ -27737,7 +28093,20 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
27737
28093
  newConversationMessage?: string | undefined;
27738
28094
  } | {
27739
28095
  message: string;
27740
- event: "event" | "chat_started" | "participant_joined" | "message_received";
28096
+ event: "chat_started";
28097
+ conversationID: string;
28098
+ config?: {
28099
+ returnToAI?: boolean | undefined;
28100
+ } | undefined;
28101
+ agent?: {
28102
+ name: string;
28103
+ imageUrl?: string | undefined;
28104
+ } | undefined;
28105
+ translationKey?: string | undefined;
28106
+ translationParams?: Record<string, string> | undefined;
28107
+ } | {
28108
+ message: string;
28109
+ event: "event" | "participant_joined" | "message_received";
27741
28110
  conversationID: string;
27742
28111
  agent?: {
27743
28112
  name: string;
@@ -28575,7 +28944,20 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
28575
28944
  newConversationMessage?: string | undefined;
28576
28945
  } | {
28577
28946
  message: string;
28578
- event: "event" | "chat_started" | "participant_joined" | "message_received";
28947
+ event: "chat_started";
28948
+ conversationID: string;
28949
+ config?: {
28950
+ returnToAI?: boolean | undefined;
28951
+ } | undefined;
28952
+ agent?: {
28953
+ name: string;
28954
+ imageUrl?: string | undefined;
28955
+ } | undefined;
28956
+ translationKey?: string | undefined;
28957
+ translationParams?: Record<string, string> | undefined;
28958
+ } | {
28959
+ message: string;
28960
+ event: "event" | "participant_joined" | "message_received";
28579
28961
  conversationID: string;
28580
28962
  agent?: {
28581
28963
  name: string;
@@ -29674,6 +30056,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
29674
30056
  type: "continue_conversation";
29675
30057
  }, {
29676
30058
  type: "continue_conversation";
30059
+ }>, z.ZodObject<{
30060
+ type: z.ZodLiteral<"return_to_voiceflow">;
30061
+ }, "strict", z.ZodTypeAny, {
30062
+ type: "return_to_voiceflow";
30063
+ }, {
30064
+ type: "return_to_voiceflow";
29677
30065
  }>]>;
29678
30066
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29679
30067
  diagramID: z.ZodOptional<z.ZodString>;
@@ -29740,6 +30128,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
29740
30128
  type: "continue_conversation";
29741
30129
  }, {
29742
30130
  type: "continue_conversation";
30131
+ }>, z.ZodObject<{
30132
+ type: z.ZodLiteral<"return_to_voiceflow">;
30133
+ }, "strict", z.ZodTypeAny, {
30134
+ type: "return_to_voiceflow";
30135
+ }, {
30136
+ type: "return_to_voiceflow";
29743
30137
  }>]>;
29744
30138
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29745
30139
  diagramID: z.ZodOptional<z.ZodString>;
@@ -29806,6 +30200,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
29806
30200
  type: "continue_conversation";
29807
30201
  }, {
29808
30202
  type: "continue_conversation";
30203
+ }>, z.ZodObject<{
30204
+ type: z.ZodLiteral<"return_to_voiceflow">;
30205
+ }, "strict", z.ZodTypeAny, {
30206
+ type: "return_to_voiceflow";
30207
+ }, {
30208
+ type: "return_to_voiceflow";
29809
30209
  }>]>;
29810
30210
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
29811
30211
  diagramID: z.ZodOptional<z.ZodString>;
@@ -31119,6 +31519,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
31119
31519
  type: "continue_conversation";
31120
31520
  }, {
31121
31521
  type: "continue_conversation";
31522
+ }>, z.ZodObject<{
31523
+ type: z.ZodLiteral<"return_to_voiceflow">;
31524
+ }, "strict", z.ZodTypeAny, {
31525
+ type: "return_to_voiceflow";
31526
+ }, {
31527
+ type: "return_to_voiceflow";
31122
31528
  }>]>;
31123
31529
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
31124
31530
  diagramID: z.ZodOptional<z.ZodString>;
@@ -31657,6 +32063,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
31657
32063
  type: "continue_conversation";
31658
32064
  }, {
31659
32065
  type: "continue_conversation";
32066
+ }>, z.ZodObject<{
32067
+ type: z.ZodLiteral<"return_to_voiceflow">;
32068
+ }, "strict", z.ZodTypeAny, {
32069
+ type: "return_to_voiceflow";
32070
+ }, {
32071
+ type: "return_to_voiceflow";
31660
32072
  }>]>;
31661
32073
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
31662
32074
  diagramID: z.ZodOptional<z.ZodString>;
@@ -32198,6 +32610,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
32198
32610
  type: "continue_conversation";
32199
32611
  }, {
32200
32612
  type: "continue_conversation";
32613
+ }>, z.ZodObject<{
32614
+ type: z.ZodLiteral<"return_to_voiceflow">;
32615
+ }, "strict", z.ZodTypeAny, {
32616
+ type: "return_to_voiceflow";
32617
+ }, {
32618
+ type: "return_to_voiceflow";
32201
32619
  }>]>;
32202
32620
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
32203
32621
  diagramID: z.ZodOptional<z.ZodString>;
@@ -32739,6 +33157,12 @@ export declare const SocketMessageDTO: z.ZodUnion<[z.ZodDiscriminatedUnion<"type
32739
33157
  type: "continue_conversation";
32740
33158
  }, {
32741
33159
  type: "continue_conversation";
33160
+ }>, z.ZodObject<{
33161
+ type: z.ZodLiteral<"return_to_voiceflow">;
33162
+ }, "strict", z.ZodTypeAny, {
33163
+ type: "return_to_voiceflow";
33164
+ }, {
33165
+ type: "return_to_voiceflow";
32742
33166
  }>]>;
32743
33167
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
32744
33168
  diagramID: z.ZodOptional<z.ZodString>;