@wildix/wilma-voice-client 0.0.38 → 0.0.39

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.
@@ -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 = "started";
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 = "transcription";
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
- [_sta, _tr, _aT, _re, _sa, _pl, _int, _l, _too, _end],
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$
@@ -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 = "started";
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 = "transcription";
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
- [_sta, _tr, _aT, _re, _sa, _pl, _int, _l, _too, _end],
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,51 @@ 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
+ * This platform puts no request body, no signature and no credential on it: the envelope holds
196
+ * the caller's words, and this stream is read by anyone who may watch the call. `error` is the
197
+ * one member carrying the backend's OWN words, truncated — a backend that echoes what it was
198
+ * sent echoes it here, which is the tenant's own text reaching the tenant's own operators.
199
+ * @public
200
+ */
201
+ export interface VoiceCallBackendEvent {
202
+ /**
203
+ * Which transport carries an external backend's events.
204
+ * @public
205
+ */
206
+ transport: VoiceCallBackendTransport;
207
+ /**
208
+ * The event delivered, by its name in the backend contract — `started`, `reply`, `playback`, `ended`.
209
+ * @public
210
+ */
211
+ event: string;
212
+ delivered: boolean;
213
+ /**
214
+ * HTTP status for the webhook transport; absent for a queue send, which has none.
215
+ * @public
216
+ */
217
+ status?: number | undefined;
218
+ /**
219
+ * How long the delivery took, in milliseconds.
220
+ * @public
221
+ */
222
+ durationMs?: number | undefined;
223
+ /**
224
+ * Why the backend did not receive it, truncated. Absent when it did — `delivered` is what says
225
+ * whether it arrived, and this only ever explains a `false`.
226
+ * @public
227
+ */
228
+ error?: string | undefined;
229
+ }
185
230
  /**
186
231
  * The session ended. After `transfer` another session of the same call may follow with its own `started`.
187
232
  * @public
@@ -356,7 +401,7 @@ export interface VoiceCallTranscriptionEvent {
356
401
  * 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
402
  * @public
358
403
  */
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;
404
+ 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
405
  /**
361
406
  * @public
362
407
  */
@@ -375,6 +420,7 @@ export declare namespace VoiceCallEvent {
375
420
  interruption?: never;
376
421
  language?: never;
377
422
  tool?: never;
423
+ backend?: never;
378
424
  ended?: never;
379
425
  $unknown?: never;
380
426
  }
@@ -392,6 +438,7 @@ export declare namespace VoiceCallEvent {
392
438
  interruption?: never;
393
439
  language?: never;
394
440
  tool?: never;
441
+ backend?: never;
395
442
  ended?: never;
396
443
  $unknown?: never;
397
444
  }
@@ -409,6 +456,7 @@ export declare namespace VoiceCallEvent {
409
456
  interruption?: never;
410
457
  language?: never;
411
458
  tool?: never;
459
+ backend?: never;
412
460
  ended?: never;
413
461
  $unknown?: never;
414
462
  }
@@ -426,6 +474,7 @@ export declare namespace VoiceCallEvent {
426
474
  interruption?: never;
427
475
  language?: never;
428
476
  tool?: never;
477
+ backend?: never;
429
478
  ended?: never;
430
479
  $unknown?: never;
431
480
  }
@@ -443,6 +492,7 @@ export declare namespace VoiceCallEvent {
443
492
  interruption?: never;
444
493
  language?: never;
445
494
  tool?: never;
495
+ backend?: never;
446
496
  ended?: never;
447
497
  $unknown?: never;
448
498
  }
@@ -460,6 +510,7 @@ export declare namespace VoiceCallEvent {
460
510
  interruption?: never;
461
511
  language?: never;
462
512
  tool?: never;
513
+ backend?: never;
463
514
  ended?: never;
464
515
  $unknown?: never;
465
516
  }
@@ -477,6 +528,7 @@ export declare namespace VoiceCallEvent {
477
528
  interruption: VoiceCallInterruptionEvent;
478
529
  language?: never;
479
530
  tool?: never;
531
+ backend?: never;
480
532
  ended?: never;
481
533
  $unknown?: never;
482
534
  }
@@ -494,6 +546,7 @@ export declare namespace VoiceCallEvent {
494
546
  interruption?: never;
495
547
  language: VoiceCallLanguageEvent;
496
548
  tool?: never;
549
+ backend?: never;
497
550
  ended?: never;
498
551
  $unknown?: never;
499
552
  }
@@ -511,6 +564,37 @@ export declare namespace VoiceCallEvent {
511
564
  interruption?: never;
512
565
  language?: never;
513
566
  tool: VoiceCallToolEvent;
567
+ backend?: never;
568
+ ended?: never;
569
+ $unknown?: never;
570
+ }
571
+ /**
572
+ * One delivery to the agent's external backend, for a call whose replies this platform does not
573
+ * produce.
574
+ *
575
+ * Without it such a call reads as a call where nothing happens: the transcript shows the greeting
576
+ * and then silence, and a backend that is unreachable, one that refuses, and one that answers 200
577
+ * and then says nothing are the same empty panel. Diagnosing that is one of the reasons the
578
+ * preview exists, so the delivery has to be visible where the call is watched rather than only in
579
+ * a service log.
580
+ *
581
+ * This platform puts no request body, no signature and no credential on it: the envelope holds
582
+ * the caller's words, and this stream is read by anyone who may watch the call. `error` is the
583
+ * one member carrying the backend's OWN words, truncated — a backend that echoes what it was
584
+ * sent echoes it here, which is the tenant's own text reaching the tenant's own operators.
585
+ * @public
586
+ */
587
+ interface BackendMember {
588
+ started?: never;
589
+ transcription?: never;
590
+ agentTranscription?: never;
591
+ reply?: never;
592
+ say?: never;
593
+ playback?: never;
594
+ interruption?: never;
595
+ language?: never;
596
+ tool?: never;
597
+ backend: VoiceCallBackendEvent;
514
598
  ended?: never;
515
599
  $unknown?: never;
516
600
  }
@@ -528,6 +612,7 @@ export declare namespace VoiceCallEvent {
528
612
  interruption?: never;
529
613
  language?: never;
530
614
  tool?: never;
615
+ backend?: never;
531
616
  ended: VoiceCallEndedEvent;
532
617
  $unknown?: never;
533
618
  }
@@ -544,6 +629,7 @@ export declare namespace VoiceCallEvent {
544
629
  interruption?: never;
545
630
  language?: never;
546
631
  tool?: never;
632
+ backend?: never;
547
633
  ended?: never;
548
634
  $unknown: [string, any];
549
635
  }
@@ -561,6 +647,7 @@ export declare namespace VoiceCallEvent {
561
647
  interruption: (value: VoiceCallInterruptionEvent) => T;
562
648
  language: (value: VoiceCallLanguageEvent) => T;
563
649
  tool: (value: VoiceCallToolEvent) => T;
650
+ backend: (value: VoiceCallBackendEvent) => T;
564
651
  ended: (value: VoiceCallEndedEvent) => T;
565
652
  _: (name: string, value: any) => T;
566
653
  }
@@ -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.38",
4
+ "version": "0.0.39",
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",