@wildix/wilma-voice-client 0.0.27 → 0.0.28

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.
@@ -27,7 +27,6 @@ const _PWC = "PlayWebsocketCommand";
27
27
  const _PWE = "PlaybackWebsocketEvent";
28
28
  const _RE = "ReplyEvent";
29
29
  const _RWE = "ReplyWebsocketEvent";
30
- const _SC = "SpeechCredential";
31
30
  const _SCAO = "SayCommandAudioOptions";
32
31
  const _SCD = "SayCommandData";
33
32
  const _SCDt = "StopCommandData";
@@ -156,8 +155,8 @@ const _v = "voices";
156
155
  const _va = "variables";
157
156
  const _vo = "voice";
158
157
  const n0 = "smithy.framework";
159
- const n1 = "wildix.wilma.voice";
160
- const n2 = "wildix.wilma.agents";
158
+ const n1 = "wildix.wilma.agents";
159
+ const n2 = "wildix.wilma.voice";
161
160
  const schema_1 = require("@smithy/core/schema");
162
161
  const errors_1 = require("../models/errors");
163
162
  const WilmaVoiceServiceException_1 = require("../models/WilmaVoiceServiceException");
@@ -187,295 +186,294 @@ exports.errorTypeRegistries = [
187
186
  _s_registry,
188
187
  n0_registry,
189
188
  ];
190
- var SpeechCredential = [0, n1, _SC, 8, 0];
191
- exports.VoicePronunciation$ = [3, n2, _VP,
189
+ exports.VoicePronunciation$ = [3, n1, _VP,
192
190
  0,
193
191
  [_p, _a, _en],
194
192
  [0, 0, 0], 2
195
193
  ];
196
- exports.AudioEvent$ = [3, n1, _AE,
194
+ exports.AudioEvent$ = [3, n2, _AE,
197
195
  0,
198
196
  [_t, _d, _se],
199
197
  [0, 0, 1], 2
200
198
  ];
201
- exports.AudioWebsocketEvent$ = [3, n1, _AWE,
199
+ exports.AudioWebsocketEvent$ = [3, n2, _AWE,
202
200
  0,
203
201
  [_t, _ev],
204
202
  [0, () => exports.AudioEvent$], 2
205
203
  ];
206
- exports.CompleteEvent$ = [3, n1, _CE,
204
+ exports.CompleteEvent$ = [3, n2, _CE,
207
205
  0,
208
206
  [_t, _r, _ti],
209
207
  [0, 0, 1], 3
210
208
  ];
211
- exports.CompleteWebsocketEvent$ = [3, n1, _CWE,
209
+ exports.CompleteWebsocketEvent$ = [3, n2, _CWE,
212
210
  0,
213
211
  [_t, _ev],
214
212
  [0, () => exports.CompleteEvent$], 2
215
213
  ];
216
- exports.ControlEvent$ = [3, n1, _CEo,
214
+ exports.ControlEvent$ = [3, n2, _CEo,
217
215
  0,
218
216
  [_t, _ac],
219
217
  [0, 0], 2
220
218
  ];
221
- exports.ControlWebsocketEvent$ = [3, n1, _CWEo,
219
+ exports.ControlWebsocketEvent$ = [3, n2, _CWEo,
222
220
  0,
223
221
  [_t, _ev],
224
222
  [0, () => exports.ControlEvent$], 2
225
223
  ];
226
- exports.DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
224
+ exports.DescribeVoiceProtocolInput$ = [3, n2, _DVPI,
227
225
  0,
228
226
  [],
229
227
  []
230
228
  ];
231
- exports.DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
229
+ exports.DescribeVoiceProtocolOutput$ = [3, n2, _DVPO,
232
230
  0,
233
231
  [_cP, _aWE, _tWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC],
234
232
  [() => exports.VoiceConnectParams$, () => exports.AudioWebsocketEvent$, () => exports.TranscriptionWebsocketEvent$, () => exports.ReplyWebsocketEvent$, () => exports.PlaybackWebsocketEvent$, () => exports.InterruptionWebsocketEvent$, () => exports.CompleteWebsocketEvent$, () => exports.ControlWebsocketEvent$, () => exports.SessionStartedWebsocketEvent$, () => exports.SessionEndedWebsocketEvent$, () => exports.ErrorWebsocketEvent$, () => exports.SayWebsocketCommand$, () => exports.PlayWebsocketCommand$, () => exports.StopWebsocketCommand$, () => exports.HangupWebsocketCommand$, () => exports.TransferWebsocketCommand$]
235
233
  ];
236
- exports.ErrorWebsocketEvent$ = [3, n1, _EWE,
234
+ exports.ErrorWebsocketEvent$ = [3, n2, _EWE,
237
235
  0,
238
236
  [_t, _ev],
239
237
  [0, () => exports.VoiceErrorEvent$], 2
240
238
  ];
241
- exports.HangupCommandData$ = [3, n1, _HCD,
239
+ exports.HangupCommandData$ = [3, n2, _HCD,
242
240
  0,
243
241
  [_t, _r],
244
242
  [0, 0], 1
245
243
  ];
246
- exports.HangupWebsocketCommand$ = [3, n1, _HWC,
244
+ exports.HangupWebsocketCommand$ = [3, n2, _HWC,
247
245
  0,
248
246
  [_t, _co],
249
247
  [0, () => exports.HangupCommandData$], 2
250
248
  ];
251
- exports.InterruptionEvent$ = [3, n1, _IE,
249
+ exports.InterruptionEvent$ = [3, n2, _IE,
252
250
  0,
253
251
  [_t, _rI, _pT, _oT, _ti],
254
252
  [0, 0, 0, 0, 1], 5
255
253
  ];
256
- exports.InterruptionWebsocketEvent$ = [3, n1, _IWE,
254
+ exports.InterruptionWebsocketEvent$ = [3, n2, _IWE,
257
255
  0,
258
256
  [_t, _ev],
259
257
  [0, () => exports.InterruptionEvent$], 2
260
258
  ];
261
- exports.ListVoicesInput$ = [3, n1, _LVI,
259
+ exports.ListVoicesInput$ = [3, n2, _LVI,
262
260
  0,
263
261
  [_pr, _l, _sea, _cr],
264
- [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [() => SpeechCredential, { [_hQ]: _cr }]], 1
262
+ [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
265
263
  ];
266
- exports.ListVoicesOutput$ = [3, n1, _LVO,
264
+ exports.ListVoicesOutput$ = [3, n2, _LVO,
267
265
  0,
268
266
  [_v],
269
267
  [() => VoiceList], 1
270
268
  ];
271
- exports.PlaybackEvent$ = [3, n1, _PE,
269
+ exports.PlaybackEvent$ = [3, n2, _PE,
272
270
  0,
273
271
  [_t, _rI, _te, _com, _sT, _eT],
274
272
  [0, 0, 0, 2, 1, 1], 5
275
273
  ];
276
- exports.PlaybackWebsocketEvent$ = [3, n1, _PWE,
274
+ exports.PlaybackWebsocketEvent$ = [3, n2, _PWE,
277
275
  0,
278
276
  [_t, _ev],
279
277
  [0, () => exports.PlaybackEvent$], 2
280
278
  ];
281
- exports.PlayCommandData$ = [3, n1, _PCD,
279
+ exports.PlayCommandData$ = [3, n2, _PCD,
282
280
  0,
283
281
  [_rI, _sI, _d, _t],
284
282
  [0, 0, 0, 0], 4
285
283
  ];
286
- exports.PlayWebsocketCommand$ = [3, n1, _PWC,
284
+ exports.PlayWebsocketCommand$ = [3, n2, _PWC,
287
285
  0,
288
286
  [_t, _co],
289
287
  [0, () => exports.PlayCommandData$], 2
290
288
  ];
291
- exports.ReplyEvent$ = [3, n1, _RE,
289
+ exports.ReplyEvent$ = [3, n2, _RE,
292
290
  0,
293
291
  [_t, _i, _te, _sT, _eT, _l],
294
292
  [0, 0, 0, 1, 1, 0], 5
295
293
  ];
296
- exports.ReplyWebsocketEvent$ = [3, n1, _RWE,
294
+ exports.ReplyWebsocketEvent$ = [3, n2, _RWE,
297
295
  0,
298
296
  [_t, _ev],
299
297
  [0, () => exports.ReplyEvent$], 2
300
298
  ];
301
- exports.SayCommandAudioOptions$ = [3, n1, _SCAO,
299
+ exports.SayCommandAudioOptions$ = [3, n2, _SCAO,
302
300
  0,
303
301
  [_sI, _sR],
304
302
  [0, 1], 2
305
303
  ];
306
- exports.SayCommandData$ = [3, n1, _SCD,
304
+ exports.SayCommandData$ = [3, n2, _SCD,
307
305
  0,
308
306
  [_te, _rI, _t, _in, _vo, _au],
309
307
  [0, 0, 0, 2, 0, () => exports.SayCommandAudioOptions$], 3
310
308
  ];
311
- exports.SayWebsocketCommand$ = [3, n1, _SWC,
309
+ exports.SayWebsocketCommand$ = [3, n2, _SWC,
312
310
  0,
313
311
  [_t, _co],
314
312
  [0, () => exports.SayCommandData$], 2
315
313
  ];
316
- exports.SendHangupInput$ = [3, n1, _SHI,
314
+ exports.SendHangupInput$ = [3, n2, _SHI,
317
315
  0,
318
316
  [_sIe, _r],
319
317
  [[0, 1], 0], 1
320
318
  ];
321
- exports.SendHangupOutput$ = [3, n1, _SHO,
319
+ exports.SendHangupOutput$ = [3, n2, _SHO,
322
320
  0,
323
321
  [],
324
322
  []
325
323
  ];
326
- exports.SendPlayInput$ = [3, n1, _SPI,
324
+ exports.SendPlayInput$ = [3, n2, _SPI,
327
325
  0,
328
326
  [_rI, _sI, _d, _sIe],
329
327
  [0, 0, 0, [0, 1]], 4
330
328
  ];
331
- exports.SendPlayOutput$ = [3, n1, _SPO,
329
+ exports.SendPlayOutput$ = [3, n2, _SPO,
332
330
  0,
333
331
  [],
334
332
  []
335
333
  ];
336
- exports.SendSayInput$ = [3, n1, _SSI,
334
+ exports.SendSayInput$ = [3, n2, _SSI,
337
335
  0,
338
336
  [_te, _rI, _sIe, _in, _vo, _au],
339
337
  [0, 0, [0, 1], 2, 0, () => exports.SayCommandAudioOptions$], 3
340
338
  ];
341
- exports.SendSayOutput$ = [3, n1, _SSO,
339
+ exports.SendSayOutput$ = [3, n2, _SSO,
342
340
  0,
343
341
  [],
344
342
  []
345
343
  ];
346
- exports.SendStopInput$ = [3, n1, _SSIe,
344
+ exports.SendStopInput$ = [3, n2, _SSIe,
347
345
  0,
348
346
  [_sIe],
349
347
  [[0, 1]], 1
350
348
  ];
351
- exports.SendStopOutput$ = [3, n1, _SSOe,
349
+ exports.SendStopOutput$ = [3, n2, _SSOe,
352
350
  0,
353
351
  [],
354
352
  []
355
353
  ];
356
- exports.SendTransferInput$ = [3, n1, _STI,
354
+ exports.SendTransferInput$ = [3, n2, _STI,
357
355
  0,
358
356
  [_con, _ex, _sIe],
359
357
  [0, 0, [0, 1]], 3
360
358
  ];
361
- exports.SendTransferOutput$ = [3, n1, _STO,
359
+ exports.SendTransferOutput$ = [3, n2, _STO,
362
360
  0,
363
361
  [],
364
362
  []
365
363
  ];
366
- exports.SessionEndedEvent$ = [3, n1, _SEE,
364
+ exports.SessionEndedEvent$ = [3, n2, _SEE,
367
365
  0,
368
366
  [_t, _ti, _r, _e],
369
367
  [0, 1, 0, 0], 2
370
368
  ];
371
- exports.SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
369
+ exports.SessionEndedWebsocketEvent$ = [3, n2, _SEWE,
372
370
  0,
373
371
  [_t, _ev],
374
372
  [0, () => exports.SessionEndedEvent$], 2
375
373
  ];
376
- exports.SessionStartedEvent$ = [3, n1, _SSE,
374
+ exports.SessionStartedEvent$ = [3, n2, _SSE,
377
375
  0,
378
376
  [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
379
377
  [0, 1, 0, 0, 1, 0, 0, 0, 0, () => exports.VoiceSpeechPayload$, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 4
380
378
  ];
381
- exports.SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
379
+ exports.SessionStartedWebsocketEvent$ = [3, n2, _SSWE,
382
380
  0,
383
381
  [_t, _ev],
384
382
  [0, () => exports.SessionStartedEvent$], 2
385
383
  ];
386
- exports.StopCommandData$ = [3, n1, _SCDt,
384
+ exports.StopCommandData$ = [3, n2, _SCDt,
387
385
  0,
388
386
  [_t],
389
387
  [0], 1
390
388
  ];
391
- exports.StopWebsocketCommand$ = [3, n1, _SWCt,
389
+ exports.StopWebsocketCommand$ = [3, n2, _SWCt,
392
390
  0,
393
391
  [_t, _co],
394
392
  [0, () => exports.StopCommandData$], 2
395
393
  ];
396
- exports.TextToSpeechInput$ = [3, n1, _TTSI,
394
+ exports.TextToSpeechInput$ = [3, n2, _TTSI,
397
395
  0,
398
396
  [_vo, _l, _te, _pro],
399
397
  [0, 0, 0, () => VoicePronunciationList], 3
400
398
  ];
401
- exports.TextToSpeechOutput$ = [3, n1, _TTSO,
399
+ exports.TextToSpeechOutput$ = [3, n2, _TTSO,
402
400
  0,
403
401
  [_au],
404
402
  [[21, 16]], 1
405
403
  ];
406
- exports.TranscriptionEvent$ = [3, n1, _TE,
404
+ exports.TranscriptionEvent$ = [3, n2, _TE,
407
405
  0,
408
406
  [_t, _i, _te, _ti, _conf, _f, _l],
409
407
  [0, 0, 0, 1, 1, 2, 0], 4
410
408
  ];
411
- exports.TranscriptionWebsocketEvent$ = [3, n1, _TWE,
409
+ exports.TranscriptionWebsocketEvent$ = [3, n2, _TWE,
412
410
  0,
413
411
  [_t, _ev],
414
412
  [0, () => exports.TranscriptionEvent$], 2
415
413
  ];
416
- exports.TransferCommandData$ = [3, n1, _TCD,
414
+ exports.TransferCommandData$ = [3, n2, _TCD,
417
415
  0,
418
416
  [_con, _ex, _t],
419
417
  [0, 0, 0], 3
420
418
  ];
421
- exports.TransferWebsocketCommand$ = [3, n1, _TWC,
419
+ exports.TransferWebsocketCommand$ = [3, n2, _TWC,
422
420
  0,
423
421
  [_t, _co],
424
422
  [0, () => exports.TransferCommandData$], 2
425
423
  ];
426
- exports.Voice$ = [3, n1, _V,
424
+ exports.Voice$ = [3, n2, _V,
427
425
  0,
428
426
  [_u, _n, _o],
429
427
  [0, 0, 15], 2
430
428
  ];
431
- exports.VoiceAudioFormat$ = [3, n1, _VAF,
429
+ exports.VoiceAudioFormat$ = [3, n2, _VAF,
432
430
  0,
433
431
  [_en, _sR, _ch],
434
432
  [0, 1, 1], 2
435
433
  ];
436
- exports.VoiceConnectParams$ = [3, n1, _VCP,
434
+ exports.VoiceConnectParams$ = [3, n2, _VCP,
437
435
  0,
438
436
  [_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
439
437
  [0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
440
438
  ];
441
- exports.VoiceErrorEvent$ = [3, n1, _VEE,
439
+ exports.VoiceErrorEvent$ = [3, n2, _VEE,
442
440
  0,
443
441
  [_t, _cod, _m, _ti],
444
442
  [0, 0, 0, 1], 4
445
443
  ];
446
- exports.VoiceSpeechPayload$ = [3, n1, _VSP,
444
+ exports.VoiceSpeechPayload$ = [3, n2, _VSP,
447
445
  0,
448
446
  [_eng, _la, _pL, _aDu],
449
447
  [0, 64 | 0, 0, 2], 4
450
448
  ];
451
449
  var LanguageCodeList = 64 | 0;
452
- var VoicePronunciationList = [1, n2, _VPL,
450
+ var VoicePronunciationList = [1, n1, _VPL,
453
451
  0, () => exports.VoicePronunciation$
454
452
  ];
455
- var VoiceList = [1, n1, _VL,
453
+ var VoiceList = [1, n2, _VL,
456
454
  0, () => exports.Voice$
457
455
  ];
458
- exports.DescribeVoiceProtocol$ = [9, n1, _DVP,
456
+ exports.DescribeVoiceProtocol$ = [9, n2, _DVP,
459
457
  { [_h]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
460
458
  ];
461
- exports.ListVoices$ = [9, n1, _LV,
459
+ exports.ListVoices$ = [9, n2, _LV,
462
460
  { [_h]: ["GET", "/v2/voice/voices", 200] }, () => exports.ListVoicesInput$, () => exports.ListVoicesOutput$
463
461
  ];
464
- exports.SendHangup$ = [9, n1, _SH,
462
+ exports.SendHangup$ = [9, n2, _SH,
465
463
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => exports.SendHangupInput$, () => exports.SendHangupOutput$
466
464
  ];
467
- exports.SendPlay$ = [9, n1, _SP,
465
+ exports.SendPlay$ = [9, n2, _SP,
468
466
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => exports.SendPlayInput$, () => exports.SendPlayOutput$
469
467
  ];
470
- exports.SendSay$ = [9, n1, _SS,
468
+ exports.SendSay$ = [9, n2, _SS,
471
469
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => exports.SendSayInput$, () => exports.SendSayOutput$
472
470
  ];
473
- exports.SendStop$ = [9, n1, _SSe,
471
+ exports.SendStop$ = [9, n2, _SSe,
474
472
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => exports.SendStopInput$, () => exports.SendStopOutput$
475
473
  ];
476
- exports.SendTransfer$ = [9, n1, _ST,
474
+ exports.SendTransfer$ = [9, n2, _ST,
477
475
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => exports.SendTransferInput$, () => exports.SendTransferOutput$
478
476
  ];
479
- exports.TextToSpeech$ = [9, n1, _TTS,
477
+ exports.TextToSpeech$ = [9, n2, _TTS,
480
478
  { [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => exports.TextToSpeechInput$, () => exports.TextToSpeechOutput$
481
479
  ];
@@ -23,7 +23,6 @@ const _PWC = "PlayWebsocketCommand";
23
23
  const _PWE = "PlaybackWebsocketEvent";
24
24
  const _RE = "ReplyEvent";
25
25
  const _RWE = "ReplyWebsocketEvent";
26
- const _SC = "SpeechCredential";
27
26
  const _SCAO = "SayCommandAudioOptions";
28
27
  const _SCD = "SayCommandData";
29
28
  const _SCDt = "StopCommandData";
@@ -152,8 +151,8 @@ const _v = "voices";
152
151
  const _va = "variables";
153
152
  const _vo = "voice";
154
153
  const n0 = "smithy.framework";
155
- const n1 = "wildix.wilma.voice";
156
- const n2 = "wildix.wilma.agents";
154
+ const n1 = "wildix.wilma.agents";
155
+ const n2 = "wildix.wilma.voice";
157
156
  import { TypeRegistry } from "@smithy/core/schema";
158
157
  import { ForbiddenException, NotFoundException, ValidationException } from "../models/errors";
159
158
  import { WilmaVoiceServiceException } from "../models/WilmaVoiceServiceException";
@@ -183,295 +182,294 @@ export const errorTypeRegistries = [
183
182
  _s_registry,
184
183
  n0_registry,
185
184
  ];
186
- var SpeechCredential = [0, n1, _SC, 8, 0];
187
- export var VoicePronunciation$ = [3, n2, _VP,
185
+ export var VoicePronunciation$ = [3, n1, _VP,
188
186
  0,
189
187
  [_p, _a, _en],
190
188
  [0, 0, 0], 2
191
189
  ];
192
- export var AudioEvent$ = [3, n1, _AE,
190
+ export var AudioEvent$ = [3, n2, _AE,
193
191
  0,
194
192
  [_t, _d, _se],
195
193
  [0, 0, 1], 2
196
194
  ];
197
- export var AudioWebsocketEvent$ = [3, n1, _AWE,
195
+ export var AudioWebsocketEvent$ = [3, n2, _AWE,
198
196
  0,
199
197
  [_t, _ev],
200
198
  [0, () => AudioEvent$], 2
201
199
  ];
202
- export var CompleteEvent$ = [3, n1, _CE,
200
+ export var CompleteEvent$ = [3, n2, _CE,
203
201
  0,
204
202
  [_t, _r, _ti],
205
203
  [0, 0, 1], 3
206
204
  ];
207
- export var CompleteWebsocketEvent$ = [3, n1, _CWE,
205
+ export var CompleteWebsocketEvent$ = [3, n2, _CWE,
208
206
  0,
209
207
  [_t, _ev],
210
208
  [0, () => CompleteEvent$], 2
211
209
  ];
212
- export var ControlEvent$ = [3, n1, _CEo,
210
+ export var ControlEvent$ = [3, n2, _CEo,
213
211
  0,
214
212
  [_t, _ac],
215
213
  [0, 0], 2
216
214
  ];
217
- export var ControlWebsocketEvent$ = [3, n1, _CWEo,
215
+ export var ControlWebsocketEvent$ = [3, n2, _CWEo,
218
216
  0,
219
217
  [_t, _ev],
220
218
  [0, () => ControlEvent$], 2
221
219
  ];
222
- export var DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
220
+ export var DescribeVoiceProtocolInput$ = [3, n2, _DVPI,
223
221
  0,
224
222
  [],
225
223
  []
226
224
  ];
227
- export var DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
225
+ export var DescribeVoiceProtocolOutput$ = [3, n2, _DVPO,
228
226
  0,
229
227
  [_cP, _aWE, _tWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC],
230
228
  [() => VoiceConnectParams$, () => AudioWebsocketEvent$, () => TranscriptionWebsocketEvent$, () => ReplyWebsocketEvent$, () => PlaybackWebsocketEvent$, () => InterruptionWebsocketEvent$, () => CompleteWebsocketEvent$, () => ControlWebsocketEvent$, () => SessionStartedWebsocketEvent$, () => SessionEndedWebsocketEvent$, () => ErrorWebsocketEvent$, () => SayWebsocketCommand$, () => PlayWebsocketCommand$, () => StopWebsocketCommand$, () => HangupWebsocketCommand$, () => TransferWebsocketCommand$]
231
229
  ];
232
- export var ErrorWebsocketEvent$ = [3, n1, _EWE,
230
+ export var ErrorWebsocketEvent$ = [3, n2, _EWE,
233
231
  0,
234
232
  [_t, _ev],
235
233
  [0, () => VoiceErrorEvent$], 2
236
234
  ];
237
- export var HangupCommandData$ = [3, n1, _HCD,
235
+ export var HangupCommandData$ = [3, n2, _HCD,
238
236
  0,
239
237
  [_t, _r],
240
238
  [0, 0], 1
241
239
  ];
242
- export var HangupWebsocketCommand$ = [3, n1, _HWC,
240
+ export var HangupWebsocketCommand$ = [3, n2, _HWC,
243
241
  0,
244
242
  [_t, _co],
245
243
  [0, () => HangupCommandData$], 2
246
244
  ];
247
- export var InterruptionEvent$ = [3, n1, _IE,
245
+ export var InterruptionEvent$ = [3, n2, _IE,
248
246
  0,
249
247
  [_t, _rI, _pT, _oT, _ti],
250
248
  [0, 0, 0, 0, 1], 5
251
249
  ];
252
- export var InterruptionWebsocketEvent$ = [3, n1, _IWE,
250
+ export var InterruptionWebsocketEvent$ = [3, n2, _IWE,
253
251
  0,
254
252
  [_t, _ev],
255
253
  [0, () => InterruptionEvent$], 2
256
254
  ];
257
- export var ListVoicesInput$ = [3, n1, _LVI,
255
+ export var ListVoicesInput$ = [3, n2, _LVI,
258
256
  0,
259
257
  [_pr, _l, _sea, _cr],
260
- [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [() => SpeechCredential, { [_hQ]: _cr }]], 1
258
+ [[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _sea }], [0, { [_hQ]: _cr }]], 1
261
259
  ];
262
- export var ListVoicesOutput$ = [3, n1, _LVO,
260
+ export var ListVoicesOutput$ = [3, n2, _LVO,
263
261
  0,
264
262
  [_v],
265
263
  [() => VoiceList], 1
266
264
  ];
267
- export var PlaybackEvent$ = [3, n1, _PE,
265
+ export var PlaybackEvent$ = [3, n2, _PE,
268
266
  0,
269
267
  [_t, _rI, _te, _com, _sT, _eT],
270
268
  [0, 0, 0, 2, 1, 1], 5
271
269
  ];
272
- export var PlaybackWebsocketEvent$ = [3, n1, _PWE,
270
+ export var PlaybackWebsocketEvent$ = [3, n2, _PWE,
273
271
  0,
274
272
  [_t, _ev],
275
273
  [0, () => PlaybackEvent$], 2
276
274
  ];
277
- export var PlayCommandData$ = [3, n1, _PCD,
275
+ export var PlayCommandData$ = [3, n2, _PCD,
278
276
  0,
279
277
  [_rI, _sI, _d, _t],
280
278
  [0, 0, 0, 0], 4
281
279
  ];
282
- export var PlayWebsocketCommand$ = [3, n1, _PWC,
280
+ export var PlayWebsocketCommand$ = [3, n2, _PWC,
283
281
  0,
284
282
  [_t, _co],
285
283
  [0, () => PlayCommandData$], 2
286
284
  ];
287
- export var ReplyEvent$ = [3, n1, _RE,
285
+ export var ReplyEvent$ = [3, n2, _RE,
288
286
  0,
289
287
  [_t, _i, _te, _sT, _eT, _l],
290
288
  [0, 0, 0, 1, 1, 0], 5
291
289
  ];
292
- export var ReplyWebsocketEvent$ = [3, n1, _RWE,
290
+ export var ReplyWebsocketEvent$ = [3, n2, _RWE,
293
291
  0,
294
292
  [_t, _ev],
295
293
  [0, () => ReplyEvent$], 2
296
294
  ];
297
- export var SayCommandAudioOptions$ = [3, n1, _SCAO,
295
+ export var SayCommandAudioOptions$ = [3, n2, _SCAO,
298
296
  0,
299
297
  [_sI, _sR],
300
298
  [0, 1], 2
301
299
  ];
302
- export var SayCommandData$ = [3, n1, _SCD,
300
+ export var SayCommandData$ = [3, n2, _SCD,
303
301
  0,
304
302
  [_te, _rI, _t, _in, _vo, _au],
305
303
  [0, 0, 0, 2, 0, () => SayCommandAudioOptions$], 3
306
304
  ];
307
- export var SayWebsocketCommand$ = [3, n1, _SWC,
305
+ export var SayWebsocketCommand$ = [3, n2, _SWC,
308
306
  0,
309
307
  [_t, _co],
310
308
  [0, () => SayCommandData$], 2
311
309
  ];
312
- export var SendHangupInput$ = [3, n1, _SHI,
310
+ export var SendHangupInput$ = [3, n2, _SHI,
313
311
  0,
314
312
  [_sIe, _r],
315
313
  [[0, 1], 0], 1
316
314
  ];
317
- export var SendHangupOutput$ = [3, n1, _SHO,
315
+ export var SendHangupOutput$ = [3, n2, _SHO,
318
316
  0,
319
317
  [],
320
318
  []
321
319
  ];
322
- export var SendPlayInput$ = [3, n1, _SPI,
320
+ export var SendPlayInput$ = [3, n2, _SPI,
323
321
  0,
324
322
  [_rI, _sI, _d, _sIe],
325
323
  [0, 0, 0, [0, 1]], 4
326
324
  ];
327
- export var SendPlayOutput$ = [3, n1, _SPO,
325
+ export var SendPlayOutput$ = [3, n2, _SPO,
328
326
  0,
329
327
  [],
330
328
  []
331
329
  ];
332
- export var SendSayInput$ = [3, n1, _SSI,
330
+ export var SendSayInput$ = [3, n2, _SSI,
333
331
  0,
334
332
  [_te, _rI, _sIe, _in, _vo, _au],
335
333
  [0, 0, [0, 1], 2, 0, () => SayCommandAudioOptions$], 3
336
334
  ];
337
- export var SendSayOutput$ = [3, n1, _SSO,
335
+ export var SendSayOutput$ = [3, n2, _SSO,
338
336
  0,
339
337
  [],
340
338
  []
341
339
  ];
342
- export var SendStopInput$ = [3, n1, _SSIe,
340
+ export var SendStopInput$ = [3, n2, _SSIe,
343
341
  0,
344
342
  [_sIe],
345
343
  [[0, 1]], 1
346
344
  ];
347
- export var SendStopOutput$ = [3, n1, _SSOe,
345
+ export var SendStopOutput$ = [3, n2, _SSOe,
348
346
  0,
349
347
  [],
350
348
  []
351
349
  ];
352
- export var SendTransferInput$ = [3, n1, _STI,
350
+ export var SendTransferInput$ = [3, n2, _STI,
353
351
  0,
354
352
  [_con, _ex, _sIe],
355
353
  [0, 0, [0, 1]], 3
356
354
  ];
357
- export var SendTransferOutput$ = [3, n1, _STO,
355
+ export var SendTransferOutput$ = [3, n2, _STO,
358
356
  0,
359
357
  [],
360
358
  []
361
359
  ];
362
- export var SessionEndedEvent$ = [3, n1, _SEE,
360
+ export var SessionEndedEvent$ = [3, n2, _SEE,
363
361
  0,
364
362
  [_t, _ti, _r, _e],
365
363
  [0, 1, 0, 0], 2
366
364
  ];
367
- export var SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
365
+ export var SessionEndedWebsocketEvent$ = [3, n2, _SEWE,
368
366
  0,
369
367
  [_t, _ev],
370
368
  [0, () => SessionEndedEvent$], 2
371
369
  ];
372
- export var SessionStartedEvent$ = [3, n1, _SSE,
370
+ export var SessionStartedEvent$ = [3, n2, _SSE,
373
371
  0,
374
372
  [_t, _ti, _sIe, _aI, _aV, _tI, _aN, _ca, _gI, _sp, _bS, _iA, _oA],
375
373
  [0, 1, 0, 0, 1, 0, 0, 0, 0, () => VoiceSpeechPayload$, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 4
376
374
  ];
377
- export var SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
375
+ export var SessionStartedWebsocketEvent$ = [3, n2, _SSWE,
378
376
  0,
379
377
  [_t, _ev],
380
378
  [0, () => SessionStartedEvent$], 2
381
379
  ];
382
- export var StopCommandData$ = [3, n1, _SCDt,
380
+ export var StopCommandData$ = [3, n2, _SCDt,
383
381
  0,
384
382
  [_t],
385
383
  [0], 1
386
384
  ];
387
- export var StopWebsocketCommand$ = [3, n1, _SWCt,
385
+ export var StopWebsocketCommand$ = [3, n2, _SWCt,
388
386
  0,
389
387
  [_t, _co],
390
388
  [0, () => StopCommandData$], 2
391
389
  ];
392
- export var TextToSpeechInput$ = [3, n1, _TTSI,
390
+ export var TextToSpeechInput$ = [3, n2, _TTSI,
393
391
  0,
394
392
  [_vo, _l, _te, _pro],
395
393
  [0, 0, 0, () => VoicePronunciationList], 3
396
394
  ];
397
- export var TextToSpeechOutput$ = [3, n1, _TTSO,
395
+ export var TextToSpeechOutput$ = [3, n2, _TTSO,
398
396
  0,
399
397
  [_au],
400
398
  [[21, 16]], 1
401
399
  ];
402
- export var TranscriptionEvent$ = [3, n1, _TE,
400
+ export var TranscriptionEvent$ = [3, n2, _TE,
403
401
  0,
404
402
  [_t, _i, _te, _ti, _conf, _f, _l],
405
403
  [0, 0, 0, 1, 1, 2, 0], 4
406
404
  ];
407
- export var TranscriptionWebsocketEvent$ = [3, n1, _TWE,
405
+ export var TranscriptionWebsocketEvent$ = [3, n2, _TWE,
408
406
  0,
409
407
  [_t, _ev],
410
408
  [0, () => TranscriptionEvent$], 2
411
409
  ];
412
- export var TransferCommandData$ = [3, n1, _TCD,
410
+ export var TransferCommandData$ = [3, n2, _TCD,
413
411
  0,
414
412
  [_con, _ex, _t],
415
413
  [0, 0, 0], 3
416
414
  ];
417
- export var TransferWebsocketCommand$ = [3, n1, _TWC,
415
+ export var TransferWebsocketCommand$ = [3, n2, _TWC,
418
416
  0,
419
417
  [_t, _co],
420
418
  [0, () => TransferCommandData$], 2
421
419
  ];
422
- export var Voice$ = [3, n1, _V,
420
+ export var Voice$ = [3, n2, _V,
423
421
  0,
424
422
  [_u, _n, _o],
425
423
  [0, 0, 15], 2
426
424
  ];
427
- export var VoiceAudioFormat$ = [3, n1, _VAF,
425
+ export var VoiceAudioFormat$ = [3, n2, _VAF,
428
426
  0,
429
427
  [_en, _sR, _ch],
430
428
  [0, 1, 1], 2
431
429
  ];
432
- export var VoiceConnectParams$ = [3, n1, _VCP,
430
+ export var VoiceConnectParams$ = [3, n2, _VCP,
433
431
  0,
434
432
  [_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
435
433
  [0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
436
434
  ];
437
- export var VoiceErrorEvent$ = [3, n1, _VEE,
435
+ export var VoiceErrorEvent$ = [3, n2, _VEE,
438
436
  0,
439
437
  [_t, _cod, _m, _ti],
440
438
  [0, 0, 0, 1], 4
441
439
  ];
442
- export var VoiceSpeechPayload$ = [3, n1, _VSP,
440
+ export var VoiceSpeechPayload$ = [3, n2, _VSP,
443
441
  0,
444
442
  [_eng, _la, _pL, _aDu],
445
443
  [0, 64 | 0, 0, 2], 4
446
444
  ];
447
445
  var LanguageCodeList = 64 | 0;
448
- var VoicePronunciationList = [1, n2, _VPL,
446
+ var VoicePronunciationList = [1, n1, _VPL,
449
447
  0, () => VoicePronunciation$
450
448
  ];
451
- var VoiceList = [1, n1, _VL,
449
+ var VoiceList = [1, n2, _VL,
452
450
  0, () => Voice$
453
451
  ];
454
- export var DescribeVoiceProtocol$ = [9, n1, _DVP,
452
+ export var DescribeVoiceProtocol$ = [9, n2, _DVP,
455
453
  { [_h]: ["POST", "/v2/voice/describe", 200] }, () => DescribeVoiceProtocolInput$, () => DescribeVoiceProtocolOutput$
456
454
  ];
457
- export var ListVoices$ = [9, n1, _LV,
455
+ export var ListVoices$ = [9, n2, _LV,
458
456
  { [_h]: ["GET", "/v2/voice/voices", 200] }, () => ListVoicesInput$, () => ListVoicesOutput$
459
457
  ];
460
- export var SendHangup$ = [9, n1, _SH,
458
+ export var SendHangup$ = [9, n2, _SH,
461
459
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => SendHangupInput$, () => SendHangupOutput$
462
460
  ];
463
- export var SendPlay$ = [9, n1, _SP,
461
+ export var SendPlay$ = [9, n2, _SP,
464
462
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => SendPlayInput$, () => SendPlayOutput$
465
463
  ];
466
- export var SendSay$ = [9, n1, _SS,
464
+ export var SendSay$ = [9, n2, _SS,
467
465
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => SendSayInput$, () => SendSayOutput$
468
466
  ];
469
- export var SendStop$ = [9, n1, _SSe,
467
+ export var SendStop$ = [9, n2, _SSe,
470
468
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => SendStopInput$, () => SendStopOutput$
471
469
  ];
472
- export var SendTransfer$ = [9, n1, _ST,
470
+ export var SendTransfer$ = [9, n2, _ST,
473
471
  { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => SendTransferInput$, () => SendTransferOutput$
474
472
  ];
475
- export var TextToSpeech$ = [9, n1, _TTS,
473
+ export var TextToSpeech$ = [9, n2, _TTS,
476
474
  { [_h]: ["POST", "/v2/voice/text-to-speech", 200] }, () => TextToSpeechInput$, () => TextToSpeechOutput$
477
475
  ];
@@ -813,20 +813,16 @@ export interface ListVoicesInput {
813
813
  language?: string | undefined;
814
814
  search?: string | undefined;
815
815
  /**
816
- * The company's own provider credential to read the catalog with, so the picker lists that
817
- * account's voices including cloned ones. Absent means the platform key.
816
+ * A reference to the company's own provider credential, so the picker lists that account's
817
+ * voices including cloned ones. Absent means the platform key.
818
818
  *
819
- * EITHER A REFERENCE OR THE KEY ITSELF: `secrets:\{secretId\}` for a stored credential, resolved
820
- * under the CALLER's company — an id that does not resolve there is rejected — or the provider
821
- * key, for an account being configured whose key is not stored yet, which is the case this
822
- * operation has to serve before there is anything to reference.
819
+ * `secrets:\{secretId\}` ONLY, resolved under the CALLER's company — an id that does not resolve
820
+ * there is rejected. There is no form of this member that carries a key, which is what keeps a
821
+ * provider credential out of a URL on this stack: every one of them lives in `wilma-secrets`,
822
+ * and a reference in a query string is not a secret.
823
823
  *
824
- * A STORED VOICE URI is not the same latitude: its `apiKey` carries a reference, and a literal
825
- * key in one is the legacy dialplan form that nothing new writes.
826
- *
827
- * A PLAIN KEY HERE IS IN A URL. `@sensitive` keeps it out of the generated clients' and servers'
828
- * log filters, but it cannot keep it out of an access log, a proxy or a browser history, and the
829
- * service must not put it in a cache identity. Send a reference wherever one exists.
824
+ * A stored voice URI says the same thing the same way: its `apiKey` parameter is a reference,
825
+ * and `validateSpeech` refuses a literal key in one.
830
826
  * @public
831
827
  */
832
828
  credential?: string | undefined;
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.27",
4
+ "version": "0.0.28",
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",