@wildix/wilma-voice-client 0.0.39 → 0.0.40

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.VoiceCallBackendTransport = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
3
+ exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
4
4
  exports.VoicePronunciationEncoding = {
5
5
  ALIAS: "alias",
6
6
  IPA: "ipa",
@@ -23,10 +23,6 @@ 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
- };
30
26
  exports.VoiceCallEndReason = {
31
27
  COMPLETE: "complete",
32
28
  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.VoiceCallBackendEvent$ = 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.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,7 +68,6 @@ const _TWE = "TranscriptionWebsocketEvent";
68
68
  const _V = "Voice";
69
69
  const _VAF = "VoiceAudioFormat";
70
70
  const _VCATE = "VoiceCallAgentTranscriptionEvent";
71
- const _VCBE = "VoiceCallBackendEvent";
72
71
  const _VCE = "VoiceCallEvent";
73
72
  const _VCEE = "VoiceCallEndedEvent";
74
73
  const _VCESB = "VoiceCallEventStreamBody";
@@ -99,7 +98,6 @@ const _aWE = "audioWebsocketEvent";
99
98
  const _ac = "action";
100
99
  const _as = "as";
101
100
  const _au = "audio";
102
- const _b = "backend";
103
101
  const _bS = "backgroundSound";
104
102
  const _c = "client";
105
103
  const _cC = "callerCompany";
@@ -122,9 +120,7 @@ const _compa = "company";
122
120
  const _con = "context";
123
121
  const _cr = "credential";
124
122
  const _d = "data";
125
- const _dM = "durationMs";
126
123
  const _dN = "dialedNumber";
127
- const _de = "delivered";
128
124
  const _e = "error";
129
125
  const _eT = "endTime";
130
126
  const _eWE = "errorWebsocketEvent";
@@ -186,8 +182,7 @@ const _sa = "say";
186
182
  const _se = "seq";
187
183
  const _sp = "speech";
188
184
  const _st = "streaming";
189
- const _sta = "status";
190
- const _star = "started";
185
+ const _sta = "started";
191
186
  const _t = "type";
192
187
  const _tCI = "toolCallId";
193
188
  const _tI = "traceId";
@@ -198,8 +193,7 @@ const _te = "text";
198
193
  const _ti = "time";
199
194
  const _to = "to";
200
195
  const _too = "tool";
201
- const _tr = "transport";
202
- const _tra = "transcription";
196
+ const _tr = "transcription";
203
197
  const _u = "uri";
204
198
  const _v = "voices";
205
199
  const _va = "variables";
@@ -508,11 +502,6 @@ exports.VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
508
502
  [_i, _te, _f, _l, _ti],
509
503
  [0, 0, 2, 0, 1], 3
510
504
  ];
511
- exports.VoiceCallBackendEvent$ = [3, n1, _VCBE,
512
- 0,
513
- [_tr, _ev, _de, _sta, _dM, _e],
514
- [0, 0, 2, 1, 1, 0], 3
515
- ];
516
505
  exports.VoiceCallEndedEvent$ = [3, n1, _VCEE,
517
506
  0,
518
507
  [_sIe, _r],
@@ -582,8 +571,8 @@ var VoiceList = [1, n1, _VL,
582
571
  ];
583
572
  exports.VoiceCallEvent$ = [4, n1, _VCE,
584
573
  0,
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$]
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$]
587
576
  ];
588
577
  exports.DescribeVoiceProtocol$ = [9, n1, _DVP,
589
578
  { [_h]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
@@ -20,10 +20,6 @@ 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
- };
27
23
  export const VoiceCallEndReason = {
28
24
  COMPLETE: "complete",
29
25
  ERROR: "error",
@@ -64,7 +64,6 @@ const _TWE = "TranscriptionWebsocketEvent";
64
64
  const _V = "Voice";
65
65
  const _VAF = "VoiceAudioFormat";
66
66
  const _VCATE = "VoiceCallAgentTranscriptionEvent";
67
- const _VCBE = "VoiceCallBackendEvent";
68
67
  const _VCE = "VoiceCallEvent";
69
68
  const _VCEE = "VoiceCallEndedEvent";
70
69
  const _VCESB = "VoiceCallEventStreamBody";
@@ -95,7 +94,6 @@ const _aWE = "audioWebsocketEvent";
95
94
  const _ac = "action";
96
95
  const _as = "as";
97
96
  const _au = "audio";
98
- const _b = "backend";
99
97
  const _bS = "backgroundSound";
100
98
  const _c = "client";
101
99
  const _cC = "callerCompany";
@@ -118,9 +116,7 @@ const _compa = "company";
118
116
  const _con = "context";
119
117
  const _cr = "credential";
120
118
  const _d = "data";
121
- const _dM = "durationMs";
122
119
  const _dN = "dialedNumber";
123
- const _de = "delivered";
124
120
  const _e = "error";
125
121
  const _eT = "endTime";
126
122
  const _eWE = "errorWebsocketEvent";
@@ -182,8 +178,7 @@ const _sa = "say";
182
178
  const _se = "seq";
183
179
  const _sp = "speech";
184
180
  const _st = "streaming";
185
- const _sta = "status";
186
- const _star = "started";
181
+ const _sta = "started";
187
182
  const _t = "type";
188
183
  const _tCI = "toolCallId";
189
184
  const _tI = "traceId";
@@ -194,8 +189,7 @@ const _te = "text";
194
189
  const _ti = "time";
195
190
  const _to = "to";
196
191
  const _too = "tool";
197
- const _tr = "transport";
198
- const _tra = "transcription";
192
+ const _tr = "transcription";
199
193
  const _u = "uri";
200
194
  const _v = "voices";
201
195
  const _va = "variables";
@@ -504,11 +498,6 @@ export var VoiceCallAgentTranscriptionEvent$ = [3, n1, _VCATE,
504
498
  [_i, _te, _f, _l, _ti],
505
499
  [0, 0, 2, 0, 1], 3
506
500
  ];
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
- ];
512
501
  export var VoiceCallEndedEvent$ = [3, n1, _VCEE,
513
502
  0,
514
503
  [_sIe, _r],
@@ -578,8 +567,8 @@ var VoiceList = [1, n1, _VL,
578
567
  ];
579
568
  export var VoiceCallEvent$ = [4, n1, _VCE,
580
569
  0,
581
- [_star, _tra, _aT, _re, _sa, _pl, _int, _l, _too, _b, _end],
582
- [() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallBackendEvent$, () => VoiceCallEndedEvent$]
570
+ [_sta, _tr, _aT, _re, _sa, _pl, _int, _l, _too, _end],
571
+ [() => VoiceCallStartedEvent$, () => VoiceCallTranscriptionEvent$, () => VoiceCallAgentTranscriptionEvent$, () => VoiceCallReplyEvent$, () => VoiceCallSayEvent$, () => VoiceCallPlaybackEvent$, () => VoiceCallInterruptionEvent$, () => VoiceCallLanguageEvent$, () => VoiceCallToolEvent$, () => VoiceCallEndedEvent$]
583
572
  ];
584
573
  export var DescribeVoiceProtocol$ = [9, n1, _DVP,
585
574
  { [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
@@ -297,14 +297,6 @@ 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
- * // },
308
300
  * // ended: { // VoiceCallEndedEvent
309
301
  * // sessionId: "STRING_VALUE", // required
310
302
  * // reason: "hangup" || "transfer" || "timeout" || "error" || "complete", // required
@@ -59,18 +59,6 @@ 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];
74
62
  /**
75
63
  * @public
76
64
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
2
- import type { VoiceAudioEncoding, VoiceCallBackendTransport, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding } from "./enums";
2
+ import type { VoiceAudioEncoding, 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,51 +182,6 @@ 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
- }
230
185
  /**
231
186
  * The session ended. After `transfer` another session of the same call may follow with its own `started`.
232
187
  * @public
@@ -401,7 +356,7 @@ export interface VoiceCallTranscriptionEvent {
401
356
  * 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.
402
357
  * @public
403
358
  */
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;
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;
405
360
  /**
406
361
  * @public
407
362
  */
@@ -420,7 +375,6 @@ export declare namespace VoiceCallEvent {
420
375
  interruption?: never;
421
376
  language?: never;
422
377
  tool?: never;
423
- backend?: never;
424
378
  ended?: never;
425
379
  $unknown?: never;
426
380
  }
@@ -438,7 +392,6 @@ export declare namespace VoiceCallEvent {
438
392
  interruption?: never;
439
393
  language?: never;
440
394
  tool?: never;
441
- backend?: never;
442
395
  ended?: never;
443
396
  $unknown?: never;
444
397
  }
@@ -456,7 +409,6 @@ export declare namespace VoiceCallEvent {
456
409
  interruption?: never;
457
410
  language?: never;
458
411
  tool?: never;
459
- backend?: never;
460
412
  ended?: never;
461
413
  $unknown?: never;
462
414
  }
@@ -474,7 +426,6 @@ export declare namespace VoiceCallEvent {
474
426
  interruption?: never;
475
427
  language?: never;
476
428
  tool?: never;
477
- backend?: never;
478
429
  ended?: never;
479
430
  $unknown?: never;
480
431
  }
@@ -492,7 +443,6 @@ export declare namespace VoiceCallEvent {
492
443
  interruption?: never;
493
444
  language?: never;
494
445
  tool?: never;
495
- backend?: never;
496
446
  ended?: never;
497
447
  $unknown?: never;
498
448
  }
@@ -510,7 +460,6 @@ export declare namespace VoiceCallEvent {
510
460
  interruption?: never;
511
461
  language?: never;
512
462
  tool?: never;
513
- backend?: never;
514
463
  ended?: never;
515
464
  $unknown?: never;
516
465
  }
@@ -528,7 +477,6 @@ export declare namespace VoiceCallEvent {
528
477
  interruption: VoiceCallInterruptionEvent;
529
478
  language?: never;
530
479
  tool?: never;
531
- backend?: never;
532
480
  ended?: never;
533
481
  $unknown?: never;
534
482
  }
@@ -546,7 +494,6 @@ export declare namespace VoiceCallEvent {
546
494
  interruption?: never;
547
495
  language: VoiceCallLanguageEvent;
548
496
  tool?: never;
549
- backend?: never;
550
497
  ended?: never;
551
498
  $unknown?: never;
552
499
  }
@@ -564,37 +511,6 @@ export declare namespace VoiceCallEvent {
564
511
  interruption?: never;
565
512
  language?: never;
566
513
  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;
598
514
  ended?: never;
599
515
  $unknown?: never;
600
516
  }
@@ -612,7 +528,6 @@ export declare namespace VoiceCallEvent {
612
528
  interruption?: never;
613
529
  language?: never;
614
530
  tool?: never;
615
- backend?: never;
616
531
  ended: VoiceCallEndedEvent;
617
532
  $unknown?: never;
618
533
  }
@@ -629,7 +544,6 @@ export declare namespace VoiceCallEvent {
629
544
  interruption?: never;
630
545
  language?: never;
631
546
  tool?: never;
632
- backend?: never;
633
547
  ended?: never;
634
548
  $unknown: [string, any];
635
549
  }
@@ -647,7 +561,6 @@ export declare namespace VoiceCallEvent {
647
561
  interruption: (value: VoiceCallInterruptionEvent) => T;
648
562
  language: (value: VoiceCallLanguageEvent) => T;
649
563
  tool: (value: VoiceCallToolEvent) => T;
650
- backend: (value: VoiceCallBackendEvent) => T;
651
564
  ended: (value: VoiceCallEndedEvent) => T;
652
565
  _: (name: string, value: any) => T;
653
566
  }
@@ -40,6 +40,7 @@ export declare const getRuntimeConfig: (config: WilmaVoiceClientConfig) => {
40
40
  tls?: boolean;
41
41
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
42
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
43
+ ignoreConfiguredEndpointUrls?: boolean;
43
44
  serviceConfiguredEndpoint?: never;
44
45
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
46
  httpAuthSchemes: {
@@ -40,6 +40,7 @@ export declare const getRuntimeConfig: (config: WilmaVoiceClientConfig) => {
40
40
  tls?: boolean;
41
41
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
42
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
43
+ ignoreConfiguredEndpointUrls?: boolean;
43
44
  serviceConfiguredEndpoint?: never;
44
45
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
46
  httpAuthSchemes: {
@@ -40,6 +40,7 @@ export declare const getRuntimeConfig: (config: WilmaVoiceClientConfig) => {
40
40
  tls?: boolean;
41
41
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
42
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
43
+ ignoreConfiguredEndpointUrls?: boolean;
43
44
  serviceConfiguredEndpoint?: never;
44
45
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
46
  httpAuthSchemes: {
@@ -64,7 +64,6 @@ 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;
68
67
  export declare var VoiceCallEndedEvent$: StaticStructureSchema;
69
68
  export declare var VoiceCallInterruptionEvent$: StaticStructureSchema;
70
69
  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.39",
4
+ "version": "0.0.40",
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",
@@ -25,7 +25,8 @@
25
25
  "@smithy/fetch-http-handler": "^5.4.5",
26
26
  "@smithy/node-http-handler": "^4.7.5",
27
27
  "@smithy/types": "^4.14.2",
28
- "@wildix/smithy-react-native": "^1.0.0"
28
+ "@wildix/smithy-react-native": "^1.0.0",
29
+ "@smithy/middleware-endpoint": "^4.7.2"
29
30
  },
30
31
  "devDependencies": {
31
32
  "@tsconfig/node20": "20.1.8",