@wildix/wilma-voice-client 0.0.36 → 0.0.37
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.
- package/dist-cjs/models/enums.js +5 -1
- package/dist-cjs/schemas/schemas_0.js +16 -5
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +15 -4
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +8 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +84 -2
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/package.json +2 -2
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
|
|
3
|
+
exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceCallBackendTransport = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
|
|
4
4
|
exports.VoicePronunciationEncoding = {
|
|
5
5
|
ALIAS: "alias",
|
|
6
6
|
IPA: "ipa",
|
|
@@ -23,6 +23,10 @@ exports.VoiceControlAction = {
|
|
|
23
23
|
END_OF_TURN: "end_of_turn",
|
|
24
24
|
KEEPALIVE: "keepalive",
|
|
25
25
|
};
|
|
26
|
+
exports.VoiceCallBackendTransport = {
|
|
27
|
+
SQS: "sqs",
|
|
28
|
+
WEBHOOK: "webhook",
|
|
29
|
+
};
|
|
26
30
|
exports.VoiceCallEndReason = {
|
|
27
31
|
COMPLETE: "complete",
|
|
28
32
|
ERROR: "error",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StreamCallEventsOutput$ = exports.StreamCallEventsInput$ = exports.StopWebsocketCommand$ = exports.StopCommandData$ = exports.SessionStartedWebsocketEvent$ = exports.SessionStartedEvent$ = exports.SessionEndedWebsocketEvent$ = exports.SessionEndedEvent$ = exports.SendTransferOutput$ = exports.SendTransferInput$ = exports.SendStopOutput$ = exports.SendStopInput$ = exports.SendSayOutput$ = exports.SendSayInput$ = exports.SendPlayOutput$ = exports.SendPlayInput$ = exports.SendHangupOutput$ = exports.SendHangupInput$ = exports.SayWebsocketCommand$ = exports.SayCommandData$ = exports.SayCommandAudioOptions$ = exports.ReplyWebsocketEvent$ = exports.ReplyEvent$ = exports.PlayWebsocketCommand$ = exports.PlayCommandData$ = exports.PlaybackWebsocketEvent$ = exports.PlaybackEvent$ = exports.ListVoicesOutput$ = exports.ListVoicesInput$ = exports.InterruptionWebsocketEvent$ = exports.InterruptionEvent$ = exports.HangupWebsocketCommand$ = exports.HangupCommandData$ = exports.ErrorWebsocketEvent$ = exports.DescribeVoiceProtocolOutput$ = exports.DescribeVoiceProtocolInput$ = exports.ControlWebsocketEvent$ = exports.ControlEvent$ = exports.CompleteWebsocketEvent$ = exports.CompleteEvent$ = exports.AudioWebsocketEvent$ = exports.AudioEvent$ = exports.AgentTranscriptionWebsocketEvent$ = exports.AgentTranscriptionEvent$ = exports.VoicePronunciation$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaVoiceServiceException$ = void 0;
|
|
4
|
-
exports.TextToSpeech$ = exports.StreamCallEvents$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.ListVoices$ = exports.DescribeVoiceProtocol$ = exports.VoiceCallEvent$ = exports.VoiceSpeechPayload$ = exports.VoiceErrorEvent$ = exports.VoiceConnectParams$ = exports.VoiceCallTranscriptionEvent$ = exports.VoiceCallToolEvent$ = exports.VoiceCallStartedEvent$ = exports.VoiceCallSayEvent$ = exports.VoiceCallReplyEvent$ = exports.VoiceCallPlaybackEvent$ = exports.VoiceCallLanguageEvent$ = exports.VoiceCallInterruptionEvent$ = exports.VoiceCallEndedEvent$ = exports.VoiceCallAgentTranscriptionEvent$ = exports.VoiceAudioFormat$ = exports.Voice$ = exports.TransferWebsocketCommand$ = exports.TransferCommandData$ = exports.TranscriptionWebsocketEvent$ = exports.TranscriptionEvent$ = exports.TextToSpeechOutput$ = exports.TextToSpeechInput$ = void 0;
|
|
4
|
+
exports.TextToSpeech$ = exports.StreamCallEvents$ = exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.ListVoices$ = exports.DescribeVoiceProtocol$ = exports.VoiceCallEvent$ = exports.VoiceSpeechPayload$ = exports.VoiceErrorEvent$ = exports.VoiceConnectParams$ = exports.VoiceCallTranscriptionEvent$ = exports.VoiceCallToolEvent$ = exports.VoiceCallStartedEvent$ = exports.VoiceCallSayEvent$ = exports.VoiceCallReplyEvent$ = exports.VoiceCallPlaybackEvent$ = exports.VoiceCallLanguageEvent$ = exports.VoiceCallInterruptionEvent$ = exports.VoiceCallEndedEvent$ = exports.VoiceCallBackendEvent$ = exports.VoiceCallAgentTranscriptionEvent$ = exports.VoiceAudioFormat$ = exports.Voice$ = exports.TransferWebsocketCommand$ = exports.TransferCommandData$ = exports.TranscriptionWebsocketEvent$ = exports.TranscriptionEvent$ = exports.TextToSpeechOutput$ = exports.TextToSpeechInput$ = void 0;
|
|
5
5
|
const _AE = "AudioEvent";
|
|
6
6
|
const _ATE = "AgentTranscriptionEvent";
|
|
7
7
|
const _ATWE = "AgentTranscriptionWebsocketEvent";
|
|
@@ -68,6 +68,7 @@ const _TWE = "TranscriptionWebsocketEvent";
|
|
|
68
68
|
const _V = "Voice";
|
|
69
69
|
const _VAF = "VoiceAudioFormat";
|
|
70
70
|
const _VCATE = "VoiceCallAgentTranscriptionEvent";
|
|
71
|
+
const _VCBE = "VoiceCallBackendEvent";
|
|
71
72
|
const _VCE = "VoiceCallEvent";
|
|
72
73
|
const _VCEE = "VoiceCallEndedEvent";
|
|
73
74
|
const _VCESB = "VoiceCallEventStreamBody";
|
|
@@ -98,6 +99,7 @@ const _aWE = "audioWebsocketEvent";
|
|
|
98
99
|
const _ac = "action";
|
|
99
100
|
const _as = "as";
|
|
100
101
|
const _au = "audio";
|
|
102
|
+
const _b = "backend";
|
|
101
103
|
const _bS = "backgroundSound";
|
|
102
104
|
const _c = "client";
|
|
103
105
|
const _cC = "callerCompany";
|
|
@@ -120,7 +122,9 @@ const _compa = "company";
|
|
|
120
122
|
const _con = "context";
|
|
121
123
|
const _cr = "credential";
|
|
122
124
|
const _d = "data";
|
|
125
|
+
const _dM = "durationMs";
|
|
123
126
|
const _dN = "dialedNumber";
|
|
127
|
+
const _de = "delivered";
|
|
124
128
|
const _e = "error";
|
|
125
129
|
const _eT = "endTime";
|
|
126
130
|
const _eWE = "errorWebsocketEvent";
|
|
@@ -182,7 +186,8 @@ const _sa = "say";
|
|
|
182
186
|
const _se = "seq";
|
|
183
187
|
const _sp = "speech";
|
|
184
188
|
const _st = "streaming";
|
|
185
|
-
const _sta = "
|
|
189
|
+
const _sta = "status";
|
|
190
|
+
const _star = "started";
|
|
186
191
|
const _t = "type";
|
|
187
192
|
const _tCI = "toolCallId";
|
|
188
193
|
const _tI = "traceId";
|
|
@@ -193,7 +198,8 @@ const _te = "text";
|
|
|
193
198
|
const _ti = "time";
|
|
194
199
|
const _to = "to";
|
|
195
200
|
const _too = "tool";
|
|
196
|
-
const _tr = "
|
|
201
|
+
const _tr = "transport";
|
|
202
|
+
const _tra = "transcription";
|
|
197
203
|
const _u = "uri";
|
|
198
204
|
const _v = "voices";
|
|
199
205
|
const _va = "variables";
|
|
@@ -502,6 +508,11 @@ exports.VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
|
|
|
502
508
|
[_i, _te, _f, _l, _ti],
|
|
503
509
|
[0, 0, 2, 0, 1], 3
|
|
504
510
|
];
|
|
511
|
+
exports.VoiceCallBackendEvent$ = [3, n1, _VCBE,
|
|
512
|
+
0,
|
|
513
|
+
[_tr, _ev, _de, _sta, _dM, _e],
|
|
514
|
+
[0, 0, 2, 1, 1, 0], 3
|
|
515
|
+
];
|
|
505
516
|
exports.VoiceCallEndedEvent$ = [3, n1, _VCEE,
|
|
506
517
|
0,
|
|
507
518
|
[_sIe, _r],
|
|
@@ -571,8 +582,8 @@ var VoiceList = [1, n1, _VL,
|
|
|
571
582
|
];
|
|
572
583
|
exports.VoiceCallEvent$ = [4, n1, _VCE,
|
|
573
584
|
0,
|
|
574
|
-
[
|
|
575
|
-
[() => exports.VoiceCallStartedEvent$, () => exports.VoiceCallTranscriptionEvent$, () => exports.VoiceCallAgentTranscriptionEvent$, () => exports.VoiceCallReplyEvent$, () => exports.VoiceCallSayEvent$, () => exports.VoiceCallPlaybackEvent$, () => exports.VoiceCallInterruptionEvent$, () => exports.VoiceCallLanguageEvent$, () => exports.VoiceCallToolEvent$, () => exports.VoiceCallEndedEvent$]
|
|
585
|
+
[_star, _tra, _aT, _re, _sa, _pl, _int, _l, _too, _b, _end],
|
|
586
|
+
[() => exports.VoiceCallStartedEvent$, () => exports.VoiceCallTranscriptionEvent$, () => exports.VoiceCallAgentTranscriptionEvent$, () => exports.VoiceCallReplyEvent$, () => exports.VoiceCallSayEvent$, () => exports.VoiceCallPlaybackEvent$, () => exports.VoiceCallInterruptionEvent$, () => exports.VoiceCallLanguageEvent$, () => exports.VoiceCallToolEvent$, () => exports.VoiceCallBackendEvent$, () => exports.VoiceCallEndedEvent$]
|
|
576
587
|
];
|
|
577
588
|
exports.DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
578
589
|
{ [_h]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
|
package/dist-es/models/enums.js
CHANGED
|
@@ -20,6 +20,10 @@ export const VoiceControlAction = {
|
|
|
20
20
|
END_OF_TURN: "end_of_turn",
|
|
21
21
|
KEEPALIVE: "keepalive",
|
|
22
22
|
};
|
|
23
|
+
export const VoiceCallBackendTransport = {
|
|
24
|
+
SQS: "sqs",
|
|
25
|
+
WEBHOOK: "webhook",
|
|
26
|
+
};
|
|
23
27
|
export const VoiceCallEndReason = {
|
|
24
28
|
COMPLETE: "complete",
|
|
25
29
|
ERROR: "error",
|
|
@@ -64,6 +64,7 @@ const _TWE = "TranscriptionWebsocketEvent";
|
|
|
64
64
|
const _V = "Voice";
|
|
65
65
|
const _VAF = "VoiceAudioFormat";
|
|
66
66
|
const _VCATE = "VoiceCallAgentTranscriptionEvent";
|
|
67
|
+
const _VCBE = "VoiceCallBackendEvent";
|
|
67
68
|
const _VCE = "VoiceCallEvent";
|
|
68
69
|
const _VCEE = "VoiceCallEndedEvent";
|
|
69
70
|
const _VCESB = "VoiceCallEventStreamBody";
|
|
@@ -94,6 +95,7 @@ const _aWE = "audioWebsocketEvent";
|
|
|
94
95
|
const _ac = "action";
|
|
95
96
|
const _as = "as";
|
|
96
97
|
const _au = "audio";
|
|
98
|
+
const _b = "backend";
|
|
97
99
|
const _bS = "backgroundSound";
|
|
98
100
|
const _c = "client";
|
|
99
101
|
const _cC = "callerCompany";
|
|
@@ -116,7 +118,9 @@ const _compa = "company";
|
|
|
116
118
|
const _con = "context";
|
|
117
119
|
const _cr = "credential";
|
|
118
120
|
const _d = "data";
|
|
121
|
+
const _dM = "durationMs";
|
|
119
122
|
const _dN = "dialedNumber";
|
|
123
|
+
const _de = "delivered";
|
|
120
124
|
const _e = "error";
|
|
121
125
|
const _eT = "endTime";
|
|
122
126
|
const _eWE = "errorWebsocketEvent";
|
|
@@ -178,7 +182,8 @@ const _sa = "say";
|
|
|
178
182
|
const _se = "seq";
|
|
179
183
|
const _sp = "speech";
|
|
180
184
|
const _st = "streaming";
|
|
181
|
-
const _sta = "
|
|
185
|
+
const _sta = "status";
|
|
186
|
+
const _star = "started";
|
|
182
187
|
const _t = "type";
|
|
183
188
|
const _tCI = "toolCallId";
|
|
184
189
|
const _tI = "traceId";
|
|
@@ -189,7 +194,8 @@ const _te = "text";
|
|
|
189
194
|
const _ti = "time";
|
|
190
195
|
const _to = "to";
|
|
191
196
|
const _too = "tool";
|
|
192
|
-
const _tr = "
|
|
197
|
+
const _tr = "transport";
|
|
198
|
+
const _tra = "transcription";
|
|
193
199
|
const _u = "uri";
|
|
194
200
|
const _v = "voices";
|
|
195
201
|
const _va = "variables";
|
|
@@ -498,6 +504,11 @@ export var VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
|
|
|
498
504
|
[_i, _te, _f, _l, _ti],
|
|
499
505
|
[0, 0, 2, 0, 1], 3
|
|
500
506
|
];
|
|
507
|
+
export var VoiceCallBackendEvent$ = [3, n1, _VCBE,
|
|
508
|
+
0,
|
|
509
|
+
[_tr, _ev, _de, _sta, _dM, _e],
|
|
510
|
+
[0, 0, 2, 1, 1, 0], 3
|
|
511
|
+
];
|
|
501
512
|
export var VoiceCallEndedEvent$ = [3, n1, _VCEE,
|
|
502
513
|
0,
|
|
503
514
|
[_sIe, _r],
|
|
@@ -567,8 +578,8 @@ var VoiceList = [1, n1, _VL,
|
|
|
567
578
|
];
|
|
568
579
|
export var VoiceCallEvent$ = [4, n1, _VCE,
|
|
569
580
|
0,
|
|
570
|
-
[
|
|
571
|
-
[() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
|
|
581
|
+
[_star, _tra, _aT, _re, _sa, _pl, _int, _l, _too, _b, _end],
|
|
582
|
+
[() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallBackendEvent$, () => VoiceCallEndedEvent$]
|
|
572
583
|
];
|
|
573
584
|
export var DescribeVoiceProtocol$ = [9, n1, _DVP,
|
|
574
585
|
{ [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
|
|
@@ -297,6 +297,14 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
297
297
|
* // phase: "started" || "finished", // required
|
|
298
298
|
* // startMessage: "STRING_VALUE",
|
|
299
299
|
* // },
|
|
300
|
+
* // backend: { // VoiceCallBackendEvent
|
|
301
|
+
* // transport: "webhook" || "sqs", // required
|
|
302
|
+
* // event: "STRING_VALUE", // required
|
|
303
|
+
* // delivered: true || false, // required
|
|
304
|
+
* // status: Number("int"),
|
|
305
|
+
* // durationMs: Number("int"),
|
|
306
|
+
* // error: "STRING_VALUE",
|
|
307
|
+
* // },
|
|
300
308
|
* // ended: { // VoiceCallEndedEvent
|
|
301
309
|
* // sessionId: "STRING_VALUE", // required
|
|
302
310
|
* // reason: "hangup" || "transfer" || "timeout" || "error" || "complete", // required
|
|
@@ -59,6 +59,18 @@ export declare const VoiceControlAction: {
|
|
|
59
59
|
* @public
|
|
60
60
|
*/
|
|
61
61
|
export type VoiceControlAction = (typeof VoiceControlAction)[keyof typeof VoiceControlAction];
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* @enum
|
|
65
|
+
*/
|
|
66
|
+
export declare const VoiceCallBackendTransport: {
|
|
67
|
+
readonly SQS: "sqs";
|
|
68
|
+
readonly WEBHOOK: "webhook";
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export type VoiceCallBackendTransport = (typeof VoiceCallBackendTransport)[keyof typeof VoiceCallBackendTransport];
|
|
62
74
|
/**
|
|
63
75
|
* @public
|
|
64
76
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { VoiceAudioEncoding, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding } from "./enums";
|
|
2
|
+
import type { VoiceAudioEncoding, VoiceCallBackendTransport, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
|
|
5
5
|
* respelled differently for an Italian and a German voice, so one list shared ACROSS languages
|
|
@@ -182,6 +182,48 @@ export interface VoiceCallAgentTranscriptionEvent {
|
|
|
182
182
|
language?: string | undefined;
|
|
183
183
|
time?: number | undefined;
|
|
184
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* One delivery to the agent's external backend, for a call whose replies this platform does not
|
|
187
|
+
* produce.
|
|
188
|
+
*
|
|
189
|
+
* Without it such a call reads as a call where nothing happens: the transcript shows the greeting
|
|
190
|
+
* and then silence, and a backend that is unreachable, one that refuses, and one that answers 200
|
|
191
|
+
* and then says nothing are the same empty panel. Diagnosing that is one of the reasons the
|
|
192
|
+
* preview exists, so the delivery has to be visible where the call is watched rather than only in
|
|
193
|
+
* a service log.
|
|
194
|
+
*
|
|
195
|
+
* Carries no request body, no signature and no credential: the envelope holds the caller's words,
|
|
196
|
+
* and this stream is read by anyone who may watch the call.
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
export interface VoiceCallBackendEvent {
|
|
200
|
+
/**
|
|
201
|
+
* Which transport carries an external backend's events.
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
transport: VoiceCallBackendTransport;
|
|
205
|
+
/**
|
|
206
|
+
* The event delivered, by its name in the backend contract — `started`, `reply`, `playback`, `ended`.
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
209
|
+
event: string;
|
|
210
|
+
delivered: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* HTTP status for the webhook transport; absent for a queue send, which has none.
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
status?: number | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* How long the delivery took, in milliseconds.
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
durationMs?: number | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Why the backend did not receive it, truncated. Absent when it did.
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
error?: string | undefined;
|
|
226
|
+
}
|
|
185
227
|
/**
|
|
186
228
|
* The session ended. After `transfer` another session of the same call may follow with its own `started`.
|
|
187
229
|
* @public
|
|
@@ -356,7 +398,7 @@ export interface VoiceCallTranscriptionEvent {
|
|
|
356
398
|
* One event on a live call. The SSE frame's `event:` is the member name and `data:` this whole union document, so a frame reads `data: \{"say": \{...\}\}` — never the member's payload on its own.
|
|
357
399
|
* @public
|
|
358
400
|
*/
|
|
359
|
-
export type VoiceCallEvent = VoiceCallEvent.AgentTranscriptionMember | VoiceCallEvent.EndedMember | VoiceCallEvent.InterruptionMember | VoiceCallEvent.LanguageMember | VoiceCallEvent.PlaybackMember | VoiceCallEvent.ReplyMember | VoiceCallEvent.SayMember | VoiceCallEvent.StartedMember | VoiceCallEvent.ToolMember | VoiceCallEvent.TranscriptionMember | VoiceCallEvent.$UnknownMember;
|
|
401
|
+
export type VoiceCallEvent = VoiceCallEvent.AgentTranscriptionMember | VoiceCallEvent.BackendMember | VoiceCallEvent.EndedMember | VoiceCallEvent.InterruptionMember | VoiceCallEvent.LanguageMember | VoiceCallEvent.PlaybackMember | VoiceCallEvent.ReplyMember | VoiceCallEvent.SayMember | VoiceCallEvent.StartedMember | VoiceCallEvent.ToolMember | VoiceCallEvent.TranscriptionMember | VoiceCallEvent.$UnknownMember;
|
|
360
402
|
/**
|
|
361
403
|
* @public
|
|
362
404
|
*/
|
|
@@ -375,6 +417,7 @@ export declare namespace VoiceCallEvent {
|
|
|
375
417
|
interruption?: never;
|
|
376
418
|
language?: never;
|
|
377
419
|
tool?: never;
|
|
420
|
+
backend?: never;
|
|
378
421
|
ended?: never;
|
|
379
422
|
$unknown?: never;
|
|
380
423
|
}
|
|
@@ -392,6 +435,7 @@ export declare namespace VoiceCallEvent {
|
|
|
392
435
|
interruption?: never;
|
|
393
436
|
language?: never;
|
|
394
437
|
tool?: never;
|
|
438
|
+
backend?: never;
|
|
395
439
|
ended?: never;
|
|
396
440
|
$unknown?: never;
|
|
397
441
|
}
|
|
@@ -409,6 +453,7 @@ export declare namespace VoiceCallEvent {
|
|
|
409
453
|
interruption?: never;
|
|
410
454
|
language?: never;
|
|
411
455
|
tool?: never;
|
|
456
|
+
backend?: never;
|
|
412
457
|
ended?: never;
|
|
413
458
|
$unknown?: never;
|
|
414
459
|
}
|
|
@@ -426,6 +471,7 @@ export declare namespace VoiceCallEvent {
|
|
|
426
471
|
interruption?: never;
|
|
427
472
|
language?: never;
|
|
428
473
|
tool?: never;
|
|
474
|
+
backend?: never;
|
|
429
475
|
ended?: never;
|
|
430
476
|
$unknown?: never;
|
|
431
477
|
}
|
|
@@ -443,6 +489,7 @@ export declare namespace VoiceCallEvent {
|
|
|
443
489
|
interruption?: never;
|
|
444
490
|
language?: never;
|
|
445
491
|
tool?: never;
|
|
492
|
+
backend?: never;
|
|
446
493
|
ended?: never;
|
|
447
494
|
$unknown?: never;
|
|
448
495
|
}
|
|
@@ -460,6 +507,7 @@ export declare namespace VoiceCallEvent {
|
|
|
460
507
|
interruption?: never;
|
|
461
508
|
language?: never;
|
|
462
509
|
tool?: never;
|
|
510
|
+
backend?: never;
|
|
463
511
|
ended?: never;
|
|
464
512
|
$unknown?: never;
|
|
465
513
|
}
|
|
@@ -477,6 +525,7 @@ export declare namespace VoiceCallEvent {
|
|
|
477
525
|
interruption: VoiceCallInterruptionEvent;
|
|
478
526
|
language?: never;
|
|
479
527
|
tool?: never;
|
|
528
|
+
backend?: never;
|
|
480
529
|
ended?: never;
|
|
481
530
|
$unknown?: never;
|
|
482
531
|
}
|
|
@@ -494,6 +543,7 @@ export declare namespace VoiceCallEvent {
|
|
|
494
543
|
interruption?: never;
|
|
495
544
|
language: VoiceCallLanguageEvent;
|
|
496
545
|
tool?: never;
|
|
546
|
+
backend?: never;
|
|
497
547
|
ended?: never;
|
|
498
548
|
$unknown?: never;
|
|
499
549
|
}
|
|
@@ -511,6 +561,35 @@ export declare namespace VoiceCallEvent {
|
|
|
511
561
|
interruption?: never;
|
|
512
562
|
language?: never;
|
|
513
563
|
tool: VoiceCallToolEvent;
|
|
564
|
+
backend?: never;
|
|
565
|
+
ended?: never;
|
|
566
|
+
$unknown?: never;
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* One delivery to the agent's external backend, for a call whose replies this platform does not
|
|
570
|
+
* produce.
|
|
571
|
+
*
|
|
572
|
+
* Without it such a call reads as a call where nothing happens: the transcript shows the greeting
|
|
573
|
+
* and then silence, and a backend that is unreachable, one that refuses, and one that answers 200
|
|
574
|
+
* and then says nothing are the same empty panel. Diagnosing that is one of the reasons the
|
|
575
|
+
* preview exists, so the delivery has to be visible where the call is watched rather than only in
|
|
576
|
+
* a service log.
|
|
577
|
+
*
|
|
578
|
+
* Carries no request body, no signature and no credential: the envelope holds the caller's words,
|
|
579
|
+
* and this stream is read by anyone who may watch the call.
|
|
580
|
+
* @public
|
|
581
|
+
*/
|
|
582
|
+
interface BackendMember {
|
|
583
|
+
started?: never;
|
|
584
|
+
transcription?: never;
|
|
585
|
+
agentTranscription?: never;
|
|
586
|
+
reply?: never;
|
|
587
|
+
say?: never;
|
|
588
|
+
playback?: never;
|
|
589
|
+
interruption?: never;
|
|
590
|
+
language?: never;
|
|
591
|
+
tool?: never;
|
|
592
|
+
backend: VoiceCallBackendEvent;
|
|
514
593
|
ended?: never;
|
|
515
594
|
$unknown?: never;
|
|
516
595
|
}
|
|
@@ -528,6 +607,7 @@ export declare namespace VoiceCallEvent {
|
|
|
528
607
|
interruption?: never;
|
|
529
608
|
language?: never;
|
|
530
609
|
tool?: never;
|
|
610
|
+
backend?: never;
|
|
531
611
|
ended: VoiceCallEndedEvent;
|
|
532
612
|
$unknown?: never;
|
|
533
613
|
}
|
|
@@ -544,6 +624,7 @@ export declare namespace VoiceCallEvent {
|
|
|
544
624
|
interruption?: never;
|
|
545
625
|
language?: never;
|
|
546
626
|
tool?: never;
|
|
627
|
+
backend?: never;
|
|
547
628
|
ended?: never;
|
|
548
629
|
$unknown: [string, any];
|
|
549
630
|
}
|
|
@@ -561,6 +642,7 @@ export declare namespace VoiceCallEvent {
|
|
|
561
642
|
interruption: (value: VoiceCallInterruptionEvent) => T;
|
|
562
643
|
language: (value: VoiceCallLanguageEvent) => T;
|
|
563
644
|
tool: (value: VoiceCallToolEvent) => T;
|
|
645
|
+
backend: (value: VoiceCallBackendEvent) => T;
|
|
564
646
|
ended: (value: VoiceCallEndedEvent) => T;
|
|
565
647
|
_: (name: string, value: any) => T;
|
|
566
648
|
}
|
|
@@ -64,6 +64,7 @@ export declare var TransferWebsocketCommand$: StaticStructureSchema;
|
|
|
64
64
|
export declare var Voice$: StaticStructureSchema;
|
|
65
65
|
export declare var VoiceAudioFormat$: StaticStructureSchema;
|
|
66
66
|
export declare var VoiceCallAgentTranscriptionEvent$: StaticStructureSchema;
|
|
67
|
+
export declare var VoiceCallBackendEvent$: StaticStructureSchema;
|
|
67
68
|
export declare var VoiceCallEndedEvent$: StaticStructureSchema;
|
|
68
69
|
export declare var VoiceCallInterruptionEvent$: StaticStructureSchema;
|
|
69
70
|
export declare var VoiceCallLanguageEvent$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wilma-voice-client",
|
|
3
3
|
"description": "@wildix/wilma-voice-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.37",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"browser": {
|
|
57
57
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|