@voiceflow/dtos-interact 2.7.0 → 2.7.1-1919bb0ab1.21

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 (110) hide show
  1. package/build/esm/action/action-type.enum.d.ts +2 -2
  2. package/build/esm/action/action-type.enum.d.ts.map +1 -1
  3. package/build/esm/action/action.dto.d.ts.map +1 -1
  4. package/build/esm/enum/canvas-visibility.enum.d.ts +6 -6
  5. package/build/esm/enum/canvas-visibility.enum.d.ts.map +1 -1
  6. package/build/esm/enum/carousel-layout.enum.d.ts +4 -4
  7. package/build/esm/enum/carousel-layout.enum.d.ts.map +1 -1
  8. package/build/esm/enum/environment-tag.enum.d.ts +6 -6
  9. package/build/esm/enum/environment-tag.enum.d.ts.map +1 -1
  10. package/build/esm/enum/modality.enum.d.ts +6 -6
  11. package/build/esm/enum/modality.enum.d.ts.map +1 -1
  12. package/build/esm/enum/version-variant.enum.d.ts +4 -4
  13. package/build/esm/enum/version-variant.enum.d.ts.map +1 -1
  14. package/build/esm/enum/visual-type.enum.d.ts +4 -4
  15. package/build/esm/enum/visual-type.enum.d.ts.map +1 -1
  16. package/build/esm/request/action-request.dto.d.ts.map +1 -1
  17. package/build/esm/request/any-request.dto.d.ts +9 -9
  18. package/build/esm/request/any-request.dto.d.ts.map +1 -1
  19. package/build/esm/request/dtmf-request.dto.d.ts.map +1 -1
  20. package/build/esm/request/end-request.dto.d.ts.map +1 -1
  21. package/build/esm/request/event-request.dto.d.ts.map +1 -1
  22. package/build/esm/request/exit-scenario-request.dto.d.ts.map +1 -1
  23. package/build/esm/request/file-request.dto.d.ts.map +1 -1
  24. package/build/esm/request/general/general-request.dto.d.ts +1 -1
  25. package/build/esm/request/general/general-request.dto.d.ts.map +1 -1
  26. package/build/esm/request/general/general-request.dto.js +4 -1
  27. package/build/esm/request/general/general-request.dto.js.map +1 -1
  28. package/build/esm/request/general/path-request.dto.d.ts.map +1 -1
  29. package/build/esm/request/intent/alexa-intent-request.dto.d.ts +3 -3
  30. package/build/esm/request/intent/alexa-intent-request.dto.d.ts.map +1 -1
  31. package/build/esm/request/intent/general-intent-request.dto.d.ts +1 -1
  32. package/build/esm/request/intent/general-intent-request.dto.d.ts.map +1 -1
  33. package/build/esm/request/intent/intent-request.dto.d.ts +6 -6
  34. package/build/esm/request/intent/intent-request.dto.d.ts.map +1 -1
  35. package/build/esm/request/intent/intent-request.dto.js +1 -1
  36. package/build/esm/request/intent/intent-request.dto.js.map +1 -1
  37. package/build/esm/request/launch-request.dto.d.ts.map +1 -1
  38. package/build/esm/request/live-agent-handoff-request.dto.d.ts +6 -6
  39. package/build/esm/request/live-agent-handoff-request.dto.d.ts.map +1 -1
  40. package/build/esm/request/message-request.dto.d.ts.map +1 -1
  41. package/build/esm/request/no-reply-request.dto.d.ts.map +1 -1
  42. package/build/esm/request/request-type.enum.d.ts +26 -26
  43. package/build/esm/request/request-type.enum.d.ts.map +1 -1
  44. package/build/esm/request/text-request.dto.d.ts.map +1 -1
  45. package/build/esm/socket/socket-action-send.dto.d.ts +9 -9
  46. package/build/esm/socket/socket-action-status.dto.d.ts +9 -9
  47. package/build/esm/socket/socket-action-status.dto.d.ts.map +1 -1
  48. package/build/esm/socket/socket-action-trace.dto.d.ts +34 -31
  49. package/build/esm/socket/socket-action-trace.dto.d.ts.map +1 -1
  50. package/build/esm/socket/socket-client-start.dto.d.ts +8 -8
  51. package/build/esm/socket/socket-message-type.enum.d.ts +32 -32
  52. package/build/esm/socket/socket-message-type.enum.d.ts.map +1 -1
  53. package/build/esm/socket/socket-message.dto.d.ts +126 -120
  54. package/build/esm/socket/socket-message.dto.d.ts.map +1 -1
  55. package/build/esm/socket/socket-server-restart.dto.d.ts +9 -9
  56. package/build/esm/text/text.dto.d.ts +23 -19
  57. package/build/esm/text/text.dto.d.ts.map +1 -1
  58. package/build/esm/text/text.dto.js +16 -23
  59. package/build/esm/text/text.dto.js.map +1 -1
  60. package/build/esm/trace/any.dto.d.ts +34 -31
  61. package/build/esm/trace/any.dto.d.ts.map +1 -1
  62. package/build/esm/trace/audio/audio-encoding.enum.d.ts +6 -6
  63. package/build/esm/trace/audio/audio-encoding.enum.d.ts.map +1 -1
  64. package/build/esm/trace/audio/audio-state.enum.d.ts +6 -6
  65. package/build/esm/trace/audio/audio-state.enum.d.ts.map +1 -1
  66. package/build/esm/trace/audio/audio.dto.d.ts +3 -3
  67. package/build/esm/trace/call-forward.dto.d.ts +4 -4
  68. package/build/esm/trace/call-forward.dto.d.ts.map +1 -1
  69. package/build/esm/trace/carousel.dto.d.ts +2 -2
  70. package/build/esm/trace/completion.dto.d.ts +3 -3
  71. package/build/esm/trace/completion.dto.d.ts.map +1 -1
  72. package/build/esm/trace/debug.dto.d.ts +23 -23
  73. package/build/esm/trace/debug.dto.d.ts.map +1 -1
  74. package/build/esm/trace/entity-filling.dto.d.ts +3 -3
  75. package/build/esm/trace/live-agent-handoff-provider.enum.d.ts +6 -6
  76. package/build/esm/trace/live-agent-handoff-provider.enum.d.ts.map +1 -1
  77. package/build/esm/trace/live-agent-handoff.dto.d.ts +12 -12
  78. package/build/esm/trace/live-agent-handoff.dto.d.ts.map +1 -1
  79. package/build/esm/trace/realtime-agent.dto.d.ts +9 -9
  80. package/build/esm/trace/realtime-agent.dto.d.ts.map +1 -1
  81. package/build/esm/trace/reasoning.dto.d.ts +4 -4
  82. package/build/esm/trace/reasoning.dto.d.ts.map +1 -1
  83. package/build/esm/trace/speak/speak.dto.d.ts +3 -2
  84. package/build/esm/trace/speak/speak.dto.d.ts.map +1 -1
  85. package/build/esm/trace/speak/trace-speak-type.enum.d.ts +4 -4
  86. package/build/esm/trace/speak/trace-speak-type.enum.d.ts.map +1 -1
  87. package/build/esm/trace/stream/stream.dto.d.ts +4 -4
  88. package/build/esm/trace/stream/trace-stream-action.enum.d.ts +8 -8
  89. package/build/esm/trace/stream/trace-stream-action.enum.d.ts.map +1 -1
  90. package/build/esm/trace/text.dto.d.ts +1 -0
  91. package/build/esm/trace/text.dto.d.ts.map +1 -1
  92. package/build/esm/trace/tool-call.dto.d.ts +3 -2
  93. package/build/esm/trace/tool-call.dto.d.ts.map +1 -1
  94. package/build/esm/trace/tool-call.dto.js +1 -0
  95. package/build/esm/trace/tool-call.dto.js.map +1 -1
  96. package/build/esm/trace/trace-type.enum.d.ts +54 -54
  97. package/build/esm/trace/trace-type.enum.d.ts.map +1 -1
  98. package/build/esm/trace/utils.dto.d.ts +2 -29
  99. package/build/esm/trace/utils.dto.d.ts.map +1 -1
  100. package/build/esm/trace/utils.dto.js +5 -2
  101. package/build/esm/trace/utils.dto.js.map +1 -1
  102. package/build/esm/trace/visual.dto.d.ts +6 -6
  103. package/build/esm/widget-settings/widget-settings-chat-settings/response-loader/widget-settings-chat-settings-response-loader.enum.d.ts +4 -4
  104. package/build/esm/widget-settings/widget-settings-chat-settings/response-loader/widget-settings-chat-settings-response-loader.enum.d.ts.map +1 -1
  105. package/build/esm/widget-settings/widget-settings-chat-settings/widget-settings-chat-settings.dto.d.ts +3 -3
  106. package/build/esm/widget-settings/widget-settings.constant.d.ts.map +1 -1
  107. package/build/esm/widget-settings/widget-settings.dto.d.ts +30 -30
  108. package/build/esm/widget-settings/widget-settings.enum.d.ts +32 -32
  109. package/build/esm/widget-settings/widget-settings.enum.d.ts.map +1 -1
  110. package/package.json +2 -2
@@ -58,6 +58,9 @@ export declare const SocketActionSendDTO: z.ZodObject<{
58
58
  label: z.ZodOptional<z.ZodString>;
59
59
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
60
60
  query: z.ZodDefault<z.ZodString>;
61
+ intent: z.ZodObject<{
62
+ name: z.ZodString;
63
+ }, z.core.$loose>;
61
64
  entities: z.ZodDefault<z.ZodArray<z.ZodObject<{
62
65
  name: z.ZodString;
63
66
  value: z.ZodString;
@@ -68,9 +71,6 @@ export declare const SocketActionSendDTO: z.ZodObject<{
68
71
  startIndex: z.ZodNumber;
69
72
  }, z.core.$strip>>>;
70
73
  }, z.core.$strip>>>;
71
- intent: z.ZodObject<{
72
- name: z.ZodString;
73
- }, z.core.$loose>;
74
74
  confidence: z.ZodOptional<z.ZodNumber>;
75
75
  }, z.core.$strip>;
76
76
  }, z.core.$strip>, z.ZodObject<{
@@ -143,8 +143,8 @@ export declare const SocketActionSendDTO: z.ZodObject<{
143
143
  size: z.ZodNumber;
144
144
  type: z.ZodString;
145
145
  status: z.ZodOptional<z.ZodEnum<{
146
- uploaded: "uploaded";
147
146
  failed: "failed";
147
+ uploaded: "uploaded";
148
148
  }>>;
149
149
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
150
150
  }, z.core.$strip>>;
@@ -157,7 +157,7 @@ export declare const SocketActionSendDTO: z.ZodObject<{
157
157
  diagramID: z.ZodOptional<z.ZodString>;
158
158
  time: z.ZodOptional<z.ZodNumber>;
159
159
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
160
- type: z.ZodString;
160
+ type: z.core.$ZodBranded<z.ZodString, "general", "out">;
161
161
  payload: z.ZodOptional<z.ZodObject<{
162
162
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
163
163
  type: z.ZodString;
@@ -178,6 +178,9 @@ export declare const SocketActionSendDTO: z.ZodObject<{
178
178
  label: z.ZodOptional<z.ZodString>;
179
179
  data: z.ZodNonOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
180
180
  query: z.ZodDefault<z.ZodString>;
181
+ intent: z.ZodObject<{
182
+ name: z.ZodString;
183
+ }, z.core.$loose>;
181
184
  entities: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
182
185
  name: z.ZodString;
183
186
  value: z.ZodString;
@@ -188,9 +191,6 @@ export declare const SocketActionSendDTO: z.ZodObject<{
188
191
  startIndex: z.ZodNumber;
189
192
  }, z.core.$strip>>>;
190
193
  }, z.core.$strip>>>>;
191
- intent: z.ZodObject<{
192
- name: z.ZodString;
193
- }, z.core.$loose>;
194
194
  confidence: z.ZodOptional<z.ZodNumber>;
195
195
  }, z.core.$strip>;
196
196
  }, z.core.$loose>, z.ZodObject<{
@@ -204,10 +204,10 @@ export declare const SocketActionSendDTO: z.ZodObject<{
204
204
  payload: z.ZodUnknown;
205
205
  }, z.core.$strip>>>;
206
206
  label: z.ZodOptional<z.ZodString>;
207
+ query: z.ZodDefault<z.ZodString>;
207
208
  intent: z.ZodObject<{
208
209
  name: z.ZodString;
209
210
  }, z.core.$loose>;
210
- query: z.ZodDefault<z.ZodString>;
211
211
  entities: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
212
212
  name: z.ZodString;
213
213
  value: z.ZodString;
@@ -1,23 +1,23 @@
1
1
  import { z } from 'zod';
2
2
  import type { Enum } from '../utils/enum.util.js';
3
3
  export declare const SocketActionStatusEnum: {
4
- readonly ACCEPTED: "accepted";
5
- readonly REJECTED: "rejected";
6
- readonly COMPLETED: "completed";
4
+ readonly ACCEPTED: 'accepted';
5
+ readonly REJECTED: 'rejected';
6
+ readonly COMPLETED: 'completed';
7
7
  };
8
8
  export type SocketActionStatusEnum = Enum<typeof SocketActionStatusEnum>;
9
9
  export declare const SocketActionStatusEnumDTO: z.ZodEnum<{
10
- readonly ACCEPTED: "accepted";
11
- readonly REJECTED: "rejected";
12
- readonly COMPLETED: "completed";
10
+ readonly ACCEPTED: 'accepted';
11
+ readonly REJECTED: 'rejected';
12
+ readonly COMPLETED: 'completed';
13
13
  }>;
14
14
  export declare const SocketActionStatusDTO: z.ZodObject<{
15
15
  type: z.ZodLiteral<"action.status">;
16
16
  payload: z.ZodObject<{
17
17
  status: z.ZodEnum<{
18
- readonly ACCEPTED: "accepted";
19
- readonly REJECTED: "rejected";
20
- readonly COMPLETED: "completed";
18
+ readonly ACCEPTED: 'accepted';
19
+ readonly REJECTED: 'rejected';
20
+ readonly COMPLETED: 'completed';
21
21
  }>;
22
22
  messageID: z.ZodString;
23
23
  reason: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"socket-action-status.dto.d.ts","sourceRoot":"","sources":["../../../src/socket/socket-action-status.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAI9C,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,yBAAyB;;;;EAAwE,CAAC;AAE/G,eAAO,MAAM,qBAAqB;;;;;;;;;;;iBAUG,CAAC;AAEtC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"socket-action-status.dto.d.ts","sourceRoot":"","sources":["../../../src/socket/socket-action-status.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAI9C,eAAO,MAAM,sBAAsB;aACjC,QAAQ,EAAE,UAAU;aACpB,QAAQ,EAAE,UAAU;aACpB,SAAS,EAAE,WAAW;CACd,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,yBAAyB;uBAP1B,UAAU;uBACV,UAAU;wBACT,WAAW;EAKsF,CAAC;AAE/G,eAAO,MAAM,qBAAqB;;;;+BATtB,UAAU;+BACV,UAAU;gCACT,WAAW;;;;;iBAiBa,CAAC;AAEtC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -26,9 +26,9 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
26
26
  state: z.ZodLiteral<"content">;
27
27
  content: z.ZodString;
28
28
  encoding: z.ZodEnum<{
29
- readonly MP3: "audio/mp3";
30
- readonly MULAW: "audio/x-mulaw";
31
- readonly PCM: "audio/pcm";
29
+ readonly MP3: 'audio/mp3';
30
+ readonly MULAW: 'audio/x-mulaw';
31
+ readonly PCM: 'audio/pcm';
32
32
  }>;
33
33
  duration: z.ZodOptional<z.ZodNumber>;
34
34
  }, z.core.$strip>, z.ZodObject<{
@@ -53,9 +53,10 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
53
53
  payload: z.ZodObject<{
54
54
  ai: z.ZodOptional<z.ZodBoolean>;
55
55
  message: z.ZodString;
56
+ messageLabel: z.ZodOptional<z.ZodString>;
56
57
  type: z.ZodEnum<{
57
- readonly AUDIO: "audio";
58
- readonly MESSAGE: "message";
58
+ readonly AUDIO: 'audio';
59
+ readonly MESSAGE: 'message';
59
60
  }>;
60
61
  src: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
62
  voice: z.ZodOptional<z.ZodString>;
@@ -81,10 +82,10 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
81
82
  src: z.ZodString;
82
83
  token: z.ZodString;
83
84
  action: z.ZodEnum<{
84
- readonly LOOP: "LOOP";
85
- readonly PLAY: "PLAY";
86
- readonly PAUSE: "PAUSE";
87
- readonly END: "END";
85
+ readonly LOOP: 'LOOP';
86
+ readonly PLAY: 'PLAY';
87
+ readonly PAUSE: 'PAUSE';
88
+ readonly END: 'END';
88
89
  }>;
89
90
  loop: z.ZodOptional<z.ZodBoolean>;
90
91
  title: z.ZodOptional<z.ZodString>;
@@ -322,8 +323,8 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
322
323
  id: z.ZodOptional<z.ZodString>;
323
324
  }, z.core.$strip>>;
324
325
  layout: z.ZodEnum<{
325
- readonly LIST: "List";
326
- readonly CAROUSEL: "Carousel";
326
+ readonly LIST: 'List';
327
+ readonly CAROUSEL: 'Carousel';
327
328
  }>;
328
329
  messageID: z.ZodOptional<z.ZodString>;
329
330
  }, z.core.$strip>;
@@ -610,11 +611,11 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
610
611
  }, z.core.$strip>], "type">>;
611
612
  type: z.ZodOptional<z.ZodString>;
612
613
  level: z.ZodOptional<z.ZodEnum<{
613
- readonly FATAL: "fatal";
614
- readonly ERROR: "error";
615
- readonly WARN: "warn";
616
- readonly INFO: "info";
617
- readonly DEBUG: "debug";
614
+ readonly FATAL: 'fatal';
615
+ readonly ERROR: 'error';
616
+ readonly WARN: 'warn';
617
+ readonly INFO: 'info';
618
+ readonly DEBUG: 'debug';
618
619
  }>>;
619
620
  message: z.ZodString;
620
621
  context: z.ZodOptional<z.ZodString>;
@@ -676,6 +677,9 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
676
677
  label: z.ZodOptional<z.ZodString>;
677
678
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
678
679
  query: z.ZodDefault<z.ZodString>;
680
+ intent: z.ZodObject<{
681
+ name: z.ZodString;
682
+ }, z.core.$loose>;
679
683
  entities: z.ZodDefault<z.ZodArray<z.ZodObject<{
680
684
  name: z.ZodString;
681
685
  value: z.ZodString;
@@ -686,9 +690,6 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
686
690
  startIndex: z.ZodNumber;
687
691
  }, z.core.$strip>>>;
688
692
  }, z.core.$strip>>>;
689
- intent: z.ZodObject<{
690
- name: z.ZodString;
691
- }, z.core.$loose>;
692
693
  confidence: z.ZodOptional<z.ZodNumber>;
693
694
  }, z.core.$strip>;
694
695
  }, z.core.$strip>;
@@ -829,6 +830,7 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
829
830
  payload: z.ZodObject<{
830
831
  ai: z.ZodOptional<z.ZodBoolean>;
831
832
  message: z.ZodString;
833
+ messageLabel: z.ZodOptional<z.ZodString>;
832
834
  ref: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
833
835
  type: z.ZodLiteral<"node">;
834
836
  nodeID: z.ZodString;
@@ -946,9 +948,9 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
946
948
  height: z.ZodNumber;
947
949
  }, z.core.$strip>>>;
948
950
  canvasVisibility: z.ZodOptional<z.ZodEnum<{
949
- readonly FULL: "full";
950
- readonly HIDDEN: "hidden";
951
- readonly CROPPED: "cropped";
951
+ readonly FULL: 'full';
952
+ readonly HIDDEN: 'hidden';
953
+ readonly CROPPED: 'cropped';
952
954
  }>>;
953
955
  }, z.core.$strip>;
954
956
  }, z.core.$strip>, z.ZodObject<{
@@ -1026,17 +1028,17 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1026
1028
  action: z.ZodLiteral<"START">;
1027
1029
  input: z.ZodObject<{
1028
1030
  encoding: z.ZodEnum<{
1029
- readonly MP3: "audio/mp3";
1030
- readonly MULAW: "audio/x-mulaw";
1031
- readonly PCM: "audio/pcm";
1031
+ readonly MP3: 'audio/mp3';
1032
+ readonly MULAW: 'audio/x-mulaw';
1033
+ readonly PCM: 'audio/pcm';
1032
1034
  }>;
1033
1035
  sampleRate: z.ZodOptional<z.ZodNumber>;
1034
1036
  }, z.core.$strip>;
1035
1037
  output: z.ZodObject<{
1036
1038
  encoding: z.ZodEnum<{
1037
- readonly MP3: "audio/mp3";
1038
- readonly MULAW: "audio/x-mulaw";
1039
- readonly PCM: "audio/pcm";
1039
+ readonly MP3: 'audio/mp3';
1040
+ readonly MULAW: 'audio/x-mulaw';
1041
+ readonly PCM: 'audio/pcm';
1040
1042
  }>;
1041
1043
  sampleRate: z.ZodOptional<z.ZodNumber>;
1042
1044
  }, z.core.$strip>;
@@ -1072,9 +1074,9 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1072
1074
  }, z.core.$strip>>;
1073
1075
  event: z.ZodLiteral<"chat_started">;
1074
1076
  provider: z.ZodOptional<z.ZodEnum<{
1075
- readonly UJET: "ujet";
1076
- readonly GENESYS: "genesys";
1077
- readonly KUSTOMER: "kustomer";
1077
+ readonly UJET: 'ujet';
1078
+ readonly GENESYS: 'genesys';
1079
+ readonly KUSTOMER: 'kustomer';
1078
1080
  }>>;
1079
1081
  config: z.ZodOptional<z.ZodObject<{
1080
1082
  returnToAI: z.ZodOptional<z.ZodBoolean>;
@@ -1138,6 +1140,7 @@ export declare const SocketActionTraceDTO: z.ZodObject<{
1138
1140
  callID: z.ZodString;
1139
1141
  sound: z.ZodOptional<z.ZodObject<{
1140
1142
  ref: z.ZodString;
1143
+ volume: z.ZodOptional<z.ZodNumber>;
1141
1144
  }, z.core.$strip>>;
1142
1145
  state: z.ZodLiteral<"start">;
1143
1146
  }, z.core.$strip>, z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"socket-action-trace.dto.d.ts","sourceRoot":"","sources":["../../../src/socket/socket-action-trace.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ketClientStartDTO: z.ZodObject<{
7
7
  sessionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
8
  environmentID: z.ZodOptional<z.ZodString>;
9
9
  versionVariant: z.ZodOptional<z.ZodEnum<{
10
- readonly DRAFT: "draft";
11
- readonly PUBLISHED: "published";
10
+ readonly DRAFT: 'draft';
11
+ readonly PUBLISHED: 'published';
12
12
  }>>;
13
13
  authorization: z.ZodOptional<z.ZodString>;
14
14
  projectID: z.ZodOptional<z.ZodString>;
@@ -20,15 +20,15 @@ export declare const SocketClientStartDTO: z.ZodObject<{
20
20
  completionEvents: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21
21
  audioEvents: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
22
22
  audioEncoding: z.ZodOptional<z.ZodEnum<{
23
- readonly MP3: "audio/mp3";
24
- readonly MULAW: "audio/x-mulaw";
25
- readonly PCM: "audio/pcm";
23
+ readonly MP3: 'audio/mp3';
24
+ readonly MULAW: 'audio/x-mulaw';
25
+ readonly PCM: 'audio/pcm';
26
26
  }>>;
27
27
  platform: z.ZodOptional<z.ZodString>;
28
28
  modality: z.ZodOptional<z.ZodEnum<{
29
- readonly VOICE: "voice";
30
- readonly CHAT: "chat";
31
- readonly API: "api";
29
+ readonly VOICE: 'voice';
30
+ readonly CHAT: 'chat';
31
+ readonly API: 'api';
32
32
  }>>;
33
33
  os: z.ZodOptional<z.ZodString>;
34
34
  device: z.ZodOptional<z.ZodString>;
@@ -17,140 +17,140 @@ export declare const ClientMessageType: {
17
17
  /**
18
18
  * initial handshake with init metadata and config, results in client.started
19
19
  */
20
- readonly CLIENT_START: "client.start";
20
+ readonly CLIENT_START: 'client.start';
21
21
  /**
22
22
  * [INTERNAL] keeps websocket alive, doesn't affect the actual session
23
23
  */
24
- readonly CLIENT_KEEP_ALIVE: "client.keep-alive";
24
+ readonly CLIENT_KEEP_ALIVE: 'client.keep-alive';
25
25
  /**
26
26
  * creates a new session for user, results in session.created
27
27
  */
28
- readonly SESSION_CREATE: "session.create";
28
+ readonly SESSION_CREATE: 'session.create';
29
29
  /**
30
30
  * sends an user action to the server, valid session must already exist
31
31
  */
32
- readonly ACTION_SEND: "action.send";
32
+ readonly ACTION_SEND: 'action.send';
33
33
  /**
34
34
  * [INTERNAL] attempts to cancel (interrupt) the ongoing action, results in action.cancel.status
35
35
  */
36
- readonly ACTION_CANCEL: "action.cancel";
36
+ readonly ACTION_CANCEL: 'action.cancel';
37
37
  /**
38
38
  * sends an raw audio to the server (for realtime voice-to-voice LLMs)
39
39
  */
40
- readonly ACTION_AUDIO_SEND: "action.audio.send";
40
+ readonly ACTION_AUDIO_SEND: 'action.audio.send';
41
41
  };
42
42
  export type ClientMessageType = Enum<typeof ClientMessageType>;
43
43
  export declare const ServerMessageType: {
44
44
  /**
45
45
  * general error message
46
46
  */
47
- readonly ERROR: "error";
47
+ readonly ERROR: 'error';
48
48
  /**
49
49
  * server validated client parameters, informs if new session is needed
50
50
  */
51
- readonly CLIENT_STARTED: "client.started";
51
+ readonly CLIENT_STARTED: 'client.started';
52
52
  /**
53
53
  * server is gracefully shutting down, informing the client to reconnect to a different server
54
54
  */
55
- readonly SERVER_RESTART: "server.restart";
55
+ readonly SERVER_RESTART: 'server.restart';
56
56
  /**
57
57
  * new session created, client should store sessionKey
58
58
  */
59
- readonly SESSION_CREATED: "session.created";
59
+ readonly SESSION_CREATED: 'session.created';
60
60
  /**
61
61
  * conversation session has ended, client should close the session
62
62
  * can be caused by a variety of reasons: end of diagram, inactivity timeout, etc.
63
63
  */
64
- readonly SESSION_ENDED: "session.ended";
64
+ readonly SESSION_ENDED: 'session.ended';
65
65
  /**
66
66
  * [INTERNAL] history of previous turns in session
67
67
  */
68
- readonly SESSION_HISTORY: "session.history";
68
+ readonly SESSION_HISTORY: 'session.history';
69
69
  /**
70
70
  * [INTERNAL] current dialog state (large payload), disabled by default
71
71
  */
72
- readonly SESSION_STATE: "session.state";
72
+ readonly SESSION_STATE: 'session.state';
73
73
  /**
74
74
  * ongoing action status, if action status accepted there will be a action status completed message
75
75
  */
76
- readonly ACTION_STATUS: "action.status";
76
+ readonly ACTION_STATUS: 'action.status';
77
77
  /**
78
78
  * trace event representing responses of the agent along with debugging information
79
79
  */
80
- readonly ACTION_TRACE: "action.trace";
80
+ readonly ACTION_TRACE: 'action.trace';
81
81
  /**
82
82
  * [INTERNAL] whether the action was cancelled successfully
83
83
  */
84
- readonly ACTION_CANCEL_STATUS: "action.cancel.status";
84
+ readonly ACTION_CANCEL_STATUS: 'action.cancel.status';
85
85
  };
86
86
  export type ServerMessageType = Enum<typeof ServerMessageType>;
87
87
  export declare const ClientMessageTypeDTO: z.ZodEnum<{
88
88
  /**
89
89
  * initial handshake with init metadata and config, results in client.started
90
90
  */
91
- readonly CLIENT_START: "client.start";
91
+ readonly CLIENT_START: 'client.start';
92
92
  /**
93
93
  * [INTERNAL] keeps websocket alive, doesn't affect the actual session
94
94
  */
95
- readonly CLIENT_KEEP_ALIVE: "client.keep-alive";
95
+ readonly CLIENT_KEEP_ALIVE: 'client.keep-alive';
96
96
  /**
97
97
  * creates a new session for user, results in session.created
98
98
  */
99
- readonly SESSION_CREATE: "session.create";
99
+ readonly SESSION_CREATE: 'session.create';
100
100
  /**
101
101
  * sends an user action to the server, valid session must already exist
102
102
  */
103
- readonly ACTION_SEND: "action.send";
103
+ readonly ACTION_SEND: 'action.send';
104
104
  /**
105
105
  * [INTERNAL] attempts to cancel (interrupt) the ongoing action, results in action.cancel.status
106
106
  */
107
- readonly ACTION_CANCEL: "action.cancel";
107
+ readonly ACTION_CANCEL: 'action.cancel';
108
108
  /**
109
109
  * sends an raw audio to the server (for realtime voice-to-voice LLMs)
110
110
  */
111
- readonly ACTION_AUDIO_SEND: "action.audio.send";
111
+ readonly ACTION_AUDIO_SEND: 'action.audio.send';
112
112
  }>;
113
113
  export declare const ServerMessageTypeDTO: z.ZodEnum<{
114
114
  /**
115
115
  * general error message
116
116
  */
117
- readonly ERROR: "error";
117
+ readonly ERROR: 'error';
118
118
  /**
119
119
  * server validated client parameters, informs if new session is needed
120
120
  */
121
- readonly CLIENT_STARTED: "client.started";
121
+ readonly CLIENT_STARTED: 'client.started';
122
122
  /**
123
123
  * server is gracefully shutting down, informing the client to reconnect to a different server
124
124
  */
125
- readonly SERVER_RESTART: "server.restart";
125
+ readonly SERVER_RESTART: 'server.restart';
126
126
  /**
127
127
  * new session created, client should store sessionKey
128
128
  */
129
- readonly SESSION_CREATED: "session.created";
129
+ readonly SESSION_CREATED: 'session.created';
130
130
  /**
131
131
  * conversation session has ended, client should close the session
132
132
  * can be caused by a variety of reasons: end of diagram, inactivity timeout, etc.
133
133
  */
134
- readonly SESSION_ENDED: "session.ended";
134
+ readonly SESSION_ENDED: 'session.ended';
135
135
  /**
136
136
  * [INTERNAL] history of previous turns in session
137
137
  */
138
- readonly SESSION_HISTORY: "session.history";
138
+ readonly SESSION_HISTORY: 'session.history';
139
139
  /**
140
140
  * [INTERNAL] current dialog state (large payload), disabled by default
141
141
  */
142
- readonly SESSION_STATE: "session.state";
142
+ readonly SESSION_STATE: 'session.state';
143
143
  /**
144
144
  * ongoing action status, if action status accepted there will be a action status completed message
145
145
  */
146
- readonly ACTION_STATUS: "action.status";
146
+ readonly ACTION_STATUS: 'action.status';
147
147
  /**
148
148
  * trace event representing responses of the agent along with debugging information
149
149
  */
150
- readonly ACTION_TRACE: "action.trace";
150
+ readonly ACTION_TRACE: 'action.trace';
151
151
  /**
152
152
  * [INTERNAL] whether the action was cancelled successfully
153
153
  */
154
- readonly ACTION_CANCEL_STATUS: "action.cancel.status";
154
+ readonly ACTION_CANCEL_STATUS: 'action.cancel.status';
155
155
  }>;
156
156
  //# sourceMappingURL=socket-message-type.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"socket-message-type.enum.d.ts","sourceRoot":"","sources":["../../../src/socket/socket-message-type.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,O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