@wildix/wilma-voice-client 0.0.51 → 0.0.53

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.
@@ -4,30 +4,25 @@ export const VoicePronunciationEncoding = {
4
4
  };
5
5
  export const VoiceEventType = {
6
6
  AGENT_TRANSCRIPTION: "agentTranscription",
7
- AUDIO: "audio",
8
7
  COMPLETE: "complete",
9
- CONTROL: "control",
10
8
  ENDED: "ended",
11
9
  ERROR: "error",
12
10
  INTERRUPTION: "interruption",
13
11
  PLAYBACK: "playback",
14
12
  REPLY: "reply",
15
13
  STARTED: "started",
14
+ THINKING: "thinking",
15
+ TOOL: "tool",
16
16
  TRANSCRIPTION: "transcription",
17
17
  };
18
- export const VoiceControlAction = {
19
- CLEAR: "clear",
20
- END_OF_TURN: "end_of_turn",
21
- KEEPALIVE: "keepalive",
22
- };
23
- export const VoiceCallEndReason = {
24
- COMPLETE: "complete",
25
- ERROR: "error",
18
+ export const VoiceCommandType = {
26
19
  HANGUP: "hangup",
27
- TIMEOUT: "timeout",
20
+ PLAY: "play",
21
+ SAY: "say",
22
+ STOP: "stop",
28
23
  TRANSFER: "transfer",
29
24
  };
30
- export const VoiceCallToolPhase = {
25
+ export const VoiceToolPhase = {
31
26
  FINISHED: "finished",
32
27
  STARTED: "started",
33
28
  };
@@ -35,99 +30,48 @@ export const VoiceTranscriptionDropReason = {
35
30
  LOW_CONFIDENCE: "low_confidence",
36
31
  OTHER_SPEAKER: "other_speaker",
37
32
  };
38
- export const VoiceAudioEncoding = {
39
- ALAW: "alaw",
40
- MULAW: "mulaw",
41
- OPUS: "opus",
42
- PCM_S16LE: "pcm_s16le",
43
- };
44
- export const VoiceInputMode = {
45
- AUDIO: "audio",
46
- TRANSCRIPTION: "transcription",
47
- };
48
- export const VoiceCommandType = {
49
- HANGUP: "hangup",
50
- PLAY: "play",
51
- SAY: "say",
52
- STOP: "stop",
53
- TRANSFER: "transfer",
54
- };
55
- export const MediaAudioBeginFrameType = {
56
- AUDIO_BEGIN: "audio.begin",
57
- };
58
- export const MediaAudioEndFrameType = {
59
- AUDIO_END: "audio.end",
60
- };
61
- export const MediaDuckFrameType = {
62
- DUCK: "duck",
63
- };
64
- export const MediaErrorFrameType = {
33
+ export const VoiceCallEndReason = {
34
+ COMPLETE: "complete",
65
35
  ERROR: "error",
66
- };
67
- export const MediaFinishedFrameType = {
68
- FINISHED: "finished",
69
- };
70
- export const MediaHangupFrameType = {
71
36
  HANGUP: "hangup",
72
- };
73
- export const MediaLanguageFrameType = {
74
- LANGUAGE: "language",
75
- };
76
- export const MediaRestoreFrameType = {
77
- RESTORE: "restore",
78
- };
79
- export const MediaStartedFrameType = {
80
- STARTED: "started",
81
- };
82
- export const MediaStopFrameType = {
83
- STOP: "stop",
84
- };
85
- export const MediaParty = {
86
- CALLEE: "callee",
87
- CALLER: "caller",
88
- };
89
- export const MediaTranscriptionFrameType = {
90
- TRANSCRIPTION: "transcription",
91
- };
92
- export const MediaTransferFrameType = {
37
+ TIMEOUT: "timeout",
93
38
  TRANSFER: "transfer",
94
39
  };
95
- export const MediaDtmfFrameType = {
40
+ export const VoiceCallClientFrameType = {
96
41
  DTMF: "dtmf",
42
+ END: "end",
43
+ PLAYBACK: "playback",
44
+ START: "start",
45
+ VAD: "vad",
97
46
  };
98
- export const MediaFinishReason = {
47
+ export const VoiceCallClientEndReason = {
99
48
  AGENT_HANGUP: "agent-hangup",
100
49
  AGENT_TRANSFER: "agent-transfer",
101
- CALLEE_HANGUP: "callee-hangup",
102
50
  CALLER_HANGUP: "caller-hangup",
103
51
  TIMEOUT: "timeout",
104
52
  };
105
- export const MediaFinishFrameType = {
106
- FINISH: "finish",
107
- };
108
- export const MediaPlaybackStopCause = {
109
- CALLER: "caller",
110
- CLOUD: "cloud",
111
- DROP: "drop",
112
- };
113
- export const MediaPlaybackEvent = {
53
+ export const VoiceCallPlaybackPhase = {
114
54
  FINISHED: "finished",
115
55
  STARTED: "started",
116
56
  STOPPED: "stopped",
117
57
  };
118
- export const MediaPlaybackFrameType = {
119
- PLAYBACK: "playback",
120
- };
121
- export const MediaAudioEncoding = {
122
- PCM_S16LE: "pcm_s16le",
123
- };
124
- export const MediaRunPurpose = {
125
- AGENT: "agent",
58
+ export const VoiceCallServerFrameType = {
59
+ AUDIO_BEGIN: "audio.begin",
60
+ AUDIO_END: "audio.end",
61
+ DUCK: "duck",
62
+ ENDED: "ended",
63
+ ERROR: "error",
64
+ HANGUP: "hangup",
65
+ LANGUAGE: "language",
66
+ STARTED: "started",
67
+ STOP: "stop",
126
68
  TRANSCRIPTION: "transcription",
69
+ TRANSFER: "transfer",
127
70
  };
128
- export const MediaStartFrameType = {
129
- START: "start",
71
+ export const VoiceCallParty = {
72
+ CALLEE: "callee",
73
+ CALLER: "caller",
130
74
  };
131
- export const MediaVadFrameType = {
132
- VAD: "vad",
75
+ export const VoiceInputMode = {
76
+ TRANSCRIPTION: "transcription",
133
77
  };