@wildix/wilma-voice-client 0.0.1

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.
Files changed (79) hide show
  1. package/dist-cjs/WilmaVoice.js +23 -0
  2. package/dist-cjs/WilmaVoiceClient.js +49 -0
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/DescribeVoiceProtocolCommand.js +20 -0
  6. package/dist-cjs/commands/SendHangupCommand.js +20 -0
  7. package/dist-cjs/commands/SendPlayCommand.js +20 -0
  8. package/dist-cjs/commands/SendSayCommand.js +20 -0
  9. package/dist-cjs/commands/SendStopCommand.js +20 -0
  10. package/dist-cjs/commands/SendTransferCommand.js +20 -0
  11. package/dist-cjs/commands/index.js +9 -0
  12. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  13. package/dist-cjs/endpoint/bdd.js +28 -0
  14. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  15. package/dist-cjs/extensionConfiguration.js +2 -0
  16. package/dist-cjs/index.js +13 -0
  17. package/dist-cjs/models/WilmaVoiceServiceException.js +12 -0
  18. package/dist-cjs/models/enums.js +37 -0
  19. package/dist-cjs/models/errors.js +45 -0
  20. package/dist-cjs/models/models_0.js +2 -0
  21. package/dist-cjs/runtimeConfig.browser.js +32 -0
  22. package/dist-cjs/runtimeConfig.js +41 -0
  23. package/dist-cjs/runtimeConfig.native.js +15 -0
  24. package/dist-cjs/runtimeConfig.shared.js +41 -0
  25. package/dist-cjs/runtimeExtensions.js +12 -0
  26. package/dist-cjs/schemas/schemas_0.js +404 -0
  27. package/dist-es/WilmaVoice.js +19 -0
  28. package/dist-es/WilmaVoiceClient.js +45 -0
  29. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  30. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  31. package/dist-es/commands/DescribeVoiceProtocolCommand.js +16 -0
  32. package/dist-es/commands/SendHangupCommand.js +16 -0
  33. package/dist-es/commands/SendPlayCommand.js +16 -0
  34. package/dist-es/commands/SendSayCommand.js +16 -0
  35. package/dist-es/commands/SendStopCommand.js +16 -0
  36. package/dist-es/commands/SendTransferCommand.js +16 -0
  37. package/dist-es/commands/index.js +6 -0
  38. package/dist-es/endpoint/EndpointParameters.js +12 -0
  39. package/dist-es/endpoint/bdd.js +25 -0
  40. package/dist-es/endpoint/endpointResolver.js +12 -0
  41. package/dist-es/extensionConfiguration.js +1 -0
  42. package/dist-es/index.js +8 -0
  43. package/dist-es/models/WilmaVoiceServiceException.js +8 -0
  44. package/dist-es/models/enums.js +34 -0
  45. package/dist-es/models/errors.js +39 -0
  46. package/dist-es/models/models_0.js +1 -0
  47. package/dist-es/runtimeConfig.browser.js +27 -0
  48. package/dist-es/runtimeConfig.js +36 -0
  49. package/dist-es/runtimeConfig.native.js +11 -0
  50. package/dist-es/runtimeConfig.shared.js +37 -0
  51. package/dist-es/runtimeExtensions.js +8 -0
  52. package/dist-es/schemas/schemas_0.js +400 -0
  53. package/dist-types/WilmaVoice.d.ts +70 -0
  54. package/dist-types/WilmaVoiceClient.d.ts +185 -0
  55. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  56. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  57. package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +252 -0
  58. package/dist-types/commands/SendHangupCommand.d.ts +79 -0
  59. package/dist-types/commands/SendPlayCommand.d.ts +81 -0
  60. package/dist-types/commands/SendSayCommand.d.ts +85 -0
  61. package/dist-types/commands/SendStopCommand.d.ts +78 -0
  62. package/dist-types/commands/SendTransferCommand.d.ts +80 -0
  63. package/dist-types/commands/index.d.ts +6 -0
  64. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  65. package/dist-types/endpoint/bdd.d.ts +2 -0
  66. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  67. package/dist-types/extensionConfiguration.d.ts +8 -0
  68. package/dist-types/index.d.ts +33 -0
  69. package/dist-types/models/WilmaVoiceServiceException.d.ts +14 -0
  70. package/dist-types/models/enums.d.ts +101 -0
  71. package/dist-types/models/errors.d.ts +36 -0
  72. package/dist-types/models/models_0.d.ts +805 -0
  73. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  74. package/dist-types/runtimeConfig.d.ts +55 -0
  75. package/dist-types/runtimeConfig.native.d.ts +54 -0
  76. package/dist-types/runtimeConfig.shared.d.ts +32 -0
  77. package/dist-types/runtimeExtensions.d.ts +17 -0
  78. package/dist-types/schemas/schemas_0.d.ts +63 -0
  79. package/package.json +57 -0
@@ -0,0 +1,404 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VoiceErrorEvent$ = exports.VoiceConnectParams$ = exports.VoiceAudioFormat$ = exports.TransferWebsocketCommand$ = exports.TransferCommandData$ = exports.TranscriptionWebsocketEvent$ = exports.TranscriptionEvent$ = 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.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.errorTypeRegistries = exports.VoiceSessionNotFoundException$ = exports.ValidationException$ = exports.ForbiddenException$ = exports.WilmaVoiceServiceException$ = void 0;
4
+ exports.SendTransfer$ = exports.SendStop$ = exports.SendSay$ = exports.SendPlay$ = exports.SendHangup$ = exports.DescribeVoiceProtocol$ = void 0;
5
+ const _AE = "AudioEvent";
6
+ const _AWE = "AudioWebsocketEvent";
7
+ const _CE = "CompleteEvent";
8
+ const _CEo = "ControlEvent";
9
+ const _CWE = "CompleteWebsocketEvent";
10
+ const _CWEo = "ControlWebsocketEvent";
11
+ const _DVP = "DescribeVoiceProtocol";
12
+ const _DVPI = "DescribeVoiceProtocolInput";
13
+ const _DVPO = "DescribeVoiceProtocolOutput";
14
+ const _EWE = "ErrorWebsocketEvent";
15
+ const _FE = "ForbiddenException";
16
+ const _HCD = "HangupCommandData";
17
+ const _HWC = "HangupWebsocketCommand";
18
+ const _IE = "InterruptionEvent";
19
+ const _IWE = "InterruptionWebsocketEvent";
20
+ const _PCD = "PlayCommandData";
21
+ const _PE = "PlaybackEvent";
22
+ const _PWC = "PlayWebsocketCommand";
23
+ const _PWE = "PlaybackWebsocketEvent";
24
+ const _RE = "ReplyEvent";
25
+ const _RWE = "ReplyWebsocketEvent";
26
+ const _SCAO = "SayCommandAudioOptions";
27
+ const _SCD = "SayCommandData";
28
+ const _SCDt = "StopCommandData";
29
+ const _SEE = "SessionEndedEvent";
30
+ const _SEWE = "SessionEndedWebsocketEvent";
31
+ const _SH = "SendHangup";
32
+ const _SHI = "SendHangupInput";
33
+ const _SHO = "SendHangupOutput";
34
+ const _SP = "SendPlay";
35
+ const _SPI = "SendPlayInput";
36
+ const _SPO = "SendPlayOutput";
37
+ const _SS = "SendSay";
38
+ const _SSE = "SessionStartedEvent";
39
+ const _SSI = "SendSayInput";
40
+ const _SSIe = "SendStopInput";
41
+ const _SSO = "SendSayOutput";
42
+ const _SSOe = "SendStopOutput";
43
+ const _SSWE = "SessionStartedWebsocketEvent";
44
+ const _SSe = "SendStop";
45
+ const _ST = "SendTransfer";
46
+ const _STI = "SendTransferInput";
47
+ const _STO = "SendTransferOutput";
48
+ const _SWC = "SayWebsocketCommand";
49
+ const _SWCt = "StopWebsocketCommand";
50
+ const _TCD = "TransferCommandData";
51
+ const _TE = "TranscriptionEvent";
52
+ const _TWC = "TransferWebsocketCommand";
53
+ const _TWE = "TranscriptionWebsocketEvent";
54
+ const _VAF = "VoiceAudioFormat";
55
+ const _VCP = "VoiceConnectParams";
56
+ const _VE = "ValidationException";
57
+ const _VEE = "VoiceErrorEvent";
58
+ const _VSNFE = "VoiceSessionNotFoundException";
59
+ const _a = "action";
60
+ const _aD = "agentDeployment";
61
+ const _aDg = "agentDraft";
62
+ const _aI = "agentId";
63
+ const _aN = "agentName";
64
+ const _aV = "agentVersion";
65
+ const _aWE = "audioWebsocketEvent";
66
+ const _au = "audio";
67
+ const _c = "client";
68
+ const _cC = "callerCompany";
69
+ const _cE = "callerEmail";
70
+ const _cI = "callId";
71
+ const _cN = "callerName";
72
+ const _cNa = "callerNumber";
73
+ const _cP = "connectParams";
74
+ const _cWE = "completeWebsocketEvent";
75
+ const _cWEo = "controlWebsocketEvent";
76
+ const _ca = "category";
77
+ const _ch = "channels";
78
+ const _co = "command";
79
+ const _cod = "code";
80
+ const _com = "complete";
81
+ const _con = "context";
82
+ const _conf = "confidence";
83
+ const _d = "data";
84
+ const _e = "error";
85
+ const _eT = "endTime";
86
+ const _eWE = "errorWebsocketEvent";
87
+ const _en = "encoding";
88
+ const _ev = "event";
89
+ const _ex = "extension";
90
+ const _f = "final";
91
+ const _gI = "groupId";
92
+ const _h = "http";
93
+ const _hE = "httpError";
94
+ const _hWC = "hangupWebsocketCommand";
95
+ const _i = "id";
96
+ const _iA = "inputAudio";
97
+ const _iM = "initialMessage";
98
+ const _iMn = "inputMode";
99
+ const _iWE = "interruptionWebsocketEvent";
100
+ const _in = "interruptible";
101
+ const _l = "language";
102
+ const _m = "message";
103
+ const _oA = "outputAudio";
104
+ const _oT = "originalText";
105
+ const _pT = "playedText";
106
+ const _pV = "protocolVersion";
107
+ const _pWC = "playWebsocketCommand";
108
+ const _pWE = "playbackWebsocketEvent";
109
+ const _r = "reason";
110
+ const _rI = "replyId";
111
+ const _rWE = "replyWebsocketEvent";
112
+ const _s = "smithy.ts.sdk.synthetic.wildix.wilma.voice";
113
+ const _sEWE = "sessionEndedWebsocketEvent";
114
+ const _sI = "streamId";
115
+ const _sIe = "sessionId";
116
+ const _sR = "sampleRate";
117
+ const _sSWE = "sessionStartedWebsocketEvent";
118
+ const _sT = "startTime";
119
+ const _sWC = "sayWebsocketCommand";
120
+ const _sWCt = "stopWebsocketCommand";
121
+ const _se = "seq";
122
+ const _t = "type";
123
+ const _tWC = "transferWebsocketCommand";
124
+ const _tWE = "transcriptionWebsocketEvent";
125
+ const _te = "text";
126
+ const _ti = "time";
127
+ const _v = "voice";
128
+ const _va = "variables";
129
+ const n0 = "smithy.framework";
130
+ const n1 = "wildix.wilma.voice";
131
+ const schema_1 = require("@smithy/core/schema");
132
+ const errors_1 = require("../models/errors");
133
+ const WilmaVoiceServiceException_1 = require("../models/WilmaVoiceServiceException");
134
+ const _s_registry = schema_1.TypeRegistry.for(_s);
135
+ exports.WilmaVoiceServiceException$ = [-3, _s, "WilmaVoiceServiceException", 0, [], []];
136
+ _s_registry.registerError(exports.WilmaVoiceServiceException$, WilmaVoiceServiceException_1.WilmaVoiceServiceException);
137
+ const n0_registry = schema_1.TypeRegistry.for(n0);
138
+ const n1_registry = schema_1.TypeRegistry.for(n1);
139
+ exports.ForbiddenException$ = [-3, n0, _FE,
140
+ { [_e]: _c, [_hE]: 403 },
141
+ [_m],
142
+ [0], 1
143
+ ];
144
+ n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException);
145
+ exports.ValidationException$ = [-3, n0, _VE,
146
+ { [_e]: _c, [_hE]: 400 },
147
+ [_m],
148
+ [0], 1
149
+ ];
150
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
151
+ exports.VoiceSessionNotFoundException$ = [-3, n1, _VSNFE,
152
+ { [_e]: _c, [_hE]: 404 },
153
+ [_m, _t],
154
+ [0, 0], 1
155
+ ];
156
+ n1_registry.registerError(exports.VoiceSessionNotFoundException$, errors_1.VoiceSessionNotFoundException);
157
+ exports.errorTypeRegistries = [
158
+ _s_registry,
159
+ n0_registry,
160
+ n1_registry,
161
+ ];
162
+ exports.AudioEvent$ = [3, n1, _AE,
163
+ 0,
164
+ [_t, _d, _se],
165
+ [0, 0, 1], 2
166
+ ];
167
+ exports.AudioWebsocketEvent$ = [3, n1, _AWE,
168
+ 0,
169
+ [_t, _ev],
170
+ [0, () => exports.AudioEvent$], 2
171
+ ];
172
+ exports.CompleteEvent$ = [3, n1, _CE,
173
+ 0,
174
+ [_t, _r, _ti],
175
+ [0, 0, 1], 3
176
+ ];
177
+ exports.CompleteWebsocketEvent$ = [3, n1, _CWE,
178
+ 0,
179
+ [_t, _ev],
180
+ [0, () => exports.CompleteEvent$], 2
181
+ ];
182
+ exports.ControlEvent$ = [3, n1, _CEo,
183
+ 0,
184
+ [_t, _a],
185
+ [0, 0], 2
186
+ ];
187
+ exports.ControlWebsocketEvent$ = [3, n1, _CWEo,
188
+ 0,
189
+ [_t, _ev],
190
+ [0, () => exports.ControlEvent$], 2
191
+ ];
192
+ exports.DescribeVoiceProtocolInput$ = [3, n1, _DVPI,
193
+ 0,
194
+ [],
195
+ []
196
+ ];
197
+ exports.DescribeVoiceProtocolOutput$ = [3, n1, _DVPO,
198
+ 0,
199
+ [_cP, _aWE, _tWE, _rWE, _pWE, _iWE, _cWE, _cWEo, _sSWE, _sEWE, _eWE, _sWC, _pWC, _sWCt, _hWC, _tWC],
200
+ [() => 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$]
201
+ ];
202
+ exports.ErrorWebsocketEvent$ = [3, n1, _EWE,
203
+ 0,
204
+ [_t, _ev],
205
+ [0, () => exports.VoiceErrorEvent$], 2
206
+ ];
207
+ exports.HangupCommandData$ = [3, n1, _HCD,
208
+ 0,
209
+ [_t, _r],
210
+ [0, 0], 1
211
+ ];
212
+ exports.HangupWebsocketCommand$ = [3, n1, _HWC,
213
+ 0,
214
+ [_t, _co],
215
+ [0, () => exports.HangupCommandData$], 2
216
+ ];
217
+ exports.InterruptionEvent$ = [3, n1, _IE,
218
+ 0,
219
+ [_t, _rI, _pT, _oT, _ti],
220
+ [0, 0, 0, 0, 1], 5
221
+ ];
222
+ exports.InterruptionWebsocketEvent$ = [3, n1, _IWE,
223
+ 0,
224
+ [_t, _ev],
225
+ [0, () => exports.InterruptionEvent$], 2
226
+ ];
227
+ exports.PlaybackEvent$ = [3, n1, _PE,
228
+ 0,
229
+ [_t, _rI, _te, _com, _sT, _eT],
230
+ [0, 0, 0, 2, 1, 1], 5
231
+ ];
232
+ exports.PlaybackWebsocketEvent$ = [3, n1, _PWE,
233
+ 0,
234
+ [_t, _ev],
235
+ [0, () => exports.PlaybackEvent$], 2
236
+ ];
237
+ exports.PlayCommandData$ = [3, n1, _PCD,
238
+ 0,
239
+ [_rI, _sI, _d, _t],
240
+ [0, 0, 0, 0], 4
241
+ ];
242
+ exports.PlayWebsocketCommand$ = [3, n1, _PWC,
243
+ 0,
244
+ [_t, _co],
245
+ [0, () => exports.PlayCommandData$], 2
246
+ ];
247
+ exports.ReplyEvent$ = [3, n1, _RE,
248
+ 0,
249
+ [_t, _i, _te, _sT, _eT],
250
+ [0, 0, 0, 1, 1], 5
251
+ ];
252
+ exports.ReplyWebsocketEvent$ = [3, n1, _RWE,
253
+ 0,
254
+ [_t, _ev],
255
+ [0, () => exports.ReplyEvent$], 2
256
+ ];
257
+ exports.SayCommandAudioOptions$ = [3, n1, _SCAO,
258
+ 0,
259
+ [_sI, _sR],
260
+ [0, 1], 2
261
+ ];
262
+ exports.SayCommandData$ = [3, n1, _SCD,
263
+ 0,
264
+ [_te, _rI, _t, _in, _au],
265
+ [0, 0, 0, 2, () => exports.SayCommandAudioOptions$], 3
266
+ ];
267
+ exports.SayWebsocketCommand$ = [3, n1, _SWC,
268
+ 0,
269
+ [_t, _co],
270
+ [0, () => exports.SayCommandData$], 2
271
+ ];
272
+ exports.SendHangupInput$ = [3, n1, _SHI,
273
+ 0,
274
+ [_sIe, _r],
275
+ [[0, 1], 0], 1
276
+ ];
277
+ exports.SendHangupOutput$ = [3, n1, _SHO,
278
+ 0,
279
+ [],
280
+ []
281
+ ];
282
+ exports.SendPlayInput$ = [3, n1, _SPI,
283
+ 0,
284
+ [_rI, _sI, _d, _sIe],
285
+ [0, 0, 0, [0, 1]], 4
286
+ ];
287
+ exports.SendPlayOutput$ = [3, n1, _SPO,
288
+ 0,
289
+ [],
290
+ []
291
+ ];
292
+ exports.SendSayInput$ = [3, n1, _SSI,
293
+ 0,
294
+ [_te, _rI, _sIe, _in, _au],
295
+ [0, 0, [0, 1], 2, () => exports.SayCommandAudioOptions$], 3
296
+ ];
297
+ exports.SendSayOutput$ = [3, n1, _SSO,
298
+ 0,
299
+ [],
300
+ []
301
+ ];
302
+ exports.SendStopInput$ = [3, n1, _SSIe,
303
+ 0,
304
+ [_sIe],
305
+ [[0, 1]], 1
306
+ ];
307
+ exports.SendStopOutput$ = [3, n1, _SSOe,
308
+ 0,
309
+ [],
310
+ []
311
+ ];
312
+ exports.SendTransferInput$ = [3, n1, _STI,
313
+ 0,
314
+ [_con, _ex, _sIe],
315
+ [0, 0, [0, 1]], 3
316
+ ];
317
+ exports.SendTransferOutput$ = [3, n1, _STO,
318
+ 0,
319
+ [],
320
+ []
321
+ ];
322
+ exports.SessionEndedEvent$ = [3, n1, _SEE,
323
+ 0,
324
+ [_t, _ti, _r, _e],
325
+ [0, 1, 0, 0], 2
326
+ ];
327
+ exports.SessionEndedWebsocketEvent$ = [3, n1, _SEWE,
328
+ 0,
329
+ [_t, _ev],
330
+ [0, () => exports.SessionEndedEvent$], 2
331
+ ];
332
+ exports.SessionStartedEvent$ = [3, n1, _SSE,
333
+ 0,
334
+ [_t, _ti, _sIe, _aI, _aV, _aN, _ca, _gI, _iA, _oA],
335
+ [0, 1, 0, 0, 1, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 4
336
+ ];
337
+ exports.SessionStartedWebsocketEvent$ = [3, n1, _SSWE,
338
+ 0,
339
+ [_t, _ev],
340
+ [0, () => exports.SessionStartedEvent$], 2
341
+ ];
342
+ exports.StopCommandData$ = [3, n1, _SCDt,
343
+ 0,
344
+ [_t],
345
+ [0], 1
346
+ ];
347
+ exports.StopWebsocketCommand$ = [3, n1, _SWCt,
348
+ 0,
349
+ [_t, _co],
350
+ [0, () => exports.StopCommandData$], 2
351
+ ];
352
+ exports.TranscriptionEvent$ = [3, n1, _TE,
353
+ 0,
354
+ [_t, _i, _te, _ti, _conf, _f],
355
+ [0, 0, 0, 1, 1, 2], 4
356
+ ];
357
+ exports.TranscriptionWebsocketEvent$ = [3, n1, _TWE,
358
+ 0,
359
+ [_t, _ev],
360
+ [0, () => exports.TranscriptionEvent$], 2
361
+ ];
362
+ exports.TransferCommandData$ = [3, n1, _TCD,
363
+ 0,
364
+ [_con, _ex, _t],
365
+ [0, 0, 0], 3
366
+ ];
367
+ exports.TransferWebsocketCommand$ = [3, n1, _TWC,
368
+ 0,
369
+ [_t, _co],
370
+ [0, () => exports.TransferCommandData$], 2
371
+ ];
372
+ exports.VoiceAudioFormat$ = [3, n1, _VAF,
373
+ 0,
374
+ [_en, _sR, _ch],
375
+ [0, 1, 1], 2
376
+ ];
377
+ exports.VoiceConnectParams$ = [3, n1, _VCP,
378
+ 0,
379
+ [_sIe, _aI, _pV, _aD, _aV, _aDg, _cI, _l, _cN, _cNa, _cE, _cC, _v, _iM, _va, _iMn, _iA, _oA],
380
+ [0, 0, 1, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
381
+ ];
382
+ exports.VoiceErrorEvent$ = [3, n1, _VEE,
383
+ 0,
384
+ [_t, _cod, _m, _ti],
385
+ [0, 0, 0, 1], 4
386
+ ];
387
+ exports.DescribeVoiceProtocol$ = [9, n1, _DVP,
388
+ { [_h]: ["POST", "/v2/voice/describe", 200] }, () => exports.DescribeVoiceProtocolInput$, () => exports.DescribeVoiceProtocolOutput$
389
+ ];
390
+ exports.SendHangup$ = [9, n1, _SH,
391
+ { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/hangup", 200] }, () => exports.SendHangupInput$, () => exports.SendHangupOutput$
392
+ ];
393
+ exports.SendPlay$ = [9, n1, _SP,
394
+ { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/play", 200] }, () => exports.SendPlayInput$, () => exports.SendPlayOutput$
395
+ ];
396
+ exports.SendSay$ = [9, n1, _SS,
397
+ { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/say", 200] }, () => exports.SendSayInput$, () => exports.SendSayOutput$
398
+ ];
399
+ exports.SendStop$ = [9, n1, _SSe,
400
+ { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/stop", 200] }, () => exports.SendStopInput$, () => exports.SendStopOutput$
401
+ ];
402
+ exports.SendTransfer$ = [9, n1, _ST,
403
+ { [_h]: ["POST", "/v2/voice/sessions/{sessionId}/transfer", 200] }, () => exports.SendTransferInput$, () => exports.SendTransferOutput$
404
+ ];
@@ -0,0 +1,19 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { DescribeVoiceProtocolCommand, } from "./commands/DescribeVoiceProtocolCommand";
3
+ import { SendHangupCommand, } from "./commands/SendHangupCommand";
4
+ import { SendPlayCommand } from "./commands/SendPlayCommand";
5
+ import { SendSayCommand } from "./commands/SendSayCommand";
6
+ import { SendStopCommand } from "./commands/SendStopCommand";
7
+ import { SendTransferCommand, } from "./commands/SendTransferCommand";
8
+ import { WilmaVoiceClient } from "./WilmaVoiceClient";
9
+ const commands = {
10
+ DescribeVoiceProtocolCommand,
11
+ SendHangupCommand,
12
+ SendPlayCommand,
13
+ SendSayCommand,
14
+ SendStopCommand,
15
+ SendTransferCommand,
16
+ };
17
+ export class WilmaVoice extends WilmaVoiceClient {
18
+ }
19
+ createAggregatedClient(commands, WilmaVoice);
@@ -0,0 +1,45 @@
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
2
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
3
+ import { Client as __Client, } from "@smithy/core/client";
4
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
5
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
6
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
+ import { defaultWilmaVoiceHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
9
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
12
+ export { __Client };
13
+ export class WilmaVoiceClient extends __Client {
14
+ config;
15
+ constructor(...[configuration]) {
16
+ const _config_0 = __getRuntimeConfig(configuration || {});
17
+ super(_config_0);
18
+ this.initConfig = _config_0;
19
+ const _config_1 = resolveClientEndpointParameters(_config_0);
20
+ const _config_2 = resolveUserAgentConfig(_config_1);
21
+ const _config_3 = resolveRetryConfig(_config_2);
22
+ const _config_4 = resolveHostHeaderConfig(_config_3);
23
+ const _config_5 = resolveEndpointConfig(_config_4);
24
+ const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
25
+ const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
26
+ this.config = _config_7;
27
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
29
+ this.middlewareStack.use(getRetryPlugin(this.config));
30
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
31
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
32
+ this.middlewareStack.use(getLoggerPlugin(this.config));
33
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
34
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
35
+ httpAuthSchemeParametersProvider: defaultWilmaVoiceHttpAuthSchemeParametersProvider,
36
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
37
+ "smithy.api#httpBearerAuth": config.token,
38
+ }),
39
+ }));
40
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
41
+ }
42
+ destroy() {
43
+ super.destroy();
44
+ }
45
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _token = runtimeConfig.token;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setToken(token) {
25
+ _token = token;
26
+ },
27
+ token() {
28
+ return _token;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ token: config.token(),
37
+ };
38
+ };
@@ -0,0 +1,52 @@
1
+ import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultWilmaVoiceHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ };
7
+ };
8
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
9
+ return {
10
+ schemeId: "smithy.api#httpBearerAuth",
11
+ };
12
+ }
13
+ function createWildixAuthApiKeysHttpAuthOption(authParameters) {
14
+ return {
15
+ schemeId: "wildix.auth#apiKeys",
16
+ };
17
+ }
18
+ function createWildixAuthPbxHttpAuthOption(authParameters) {
19
+ return {
20
+ schemeId: "wildix.auth#pbx",
21
+ };
22
+ }
23
+ function createWildixAuthS2sHttpAuthOption(authParameters) {
24
+ return {
25
+ schemeId: "wildix.auth#s2s",
26
+ };
27
+ }
28
+ function createWildixAuthXbsHttpAuthOption(authParameters) {
29
+ return {
30
+ schemeId: "wildix.auth#xbs",
31
+ };
32
+ }
33
+ export const defaultWilmaVoiceHttpAuthSchemeProvider = (authParameters) => {
34
+ const options = [];
35
+ switch (authParameters.operation) {
36
+ default: {
37
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
38
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
39
+ options.push(createWildixAuthPbxHttpAuthOption(authParameters));
40
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
41
+ options.push(createWildixAuthApiKeysHttpAuthOption(authParameters));
42
+ }
43
+ }
44
+ return options;
45
+ };
46
+ export const resolveHttpAuthSchemeConfig = (config) => {
47
+ const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
48
+ return Object.assign(config, {
49
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
50
+ token,
51
+ });
52
+ };
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeVoiceProtocol$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DescribeVoiceProtocolCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaVoice", "DescribeVoiceProtocol", {})
13
+ .n("WilmaVoiceClient", "DescribeVoiceProtocolCommand")
14
+ .sc(DescribeVoiceProtocol$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { SendHangup$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SendHangupCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaVoice", "SendHangup", {})
13
+ .n("WilmaVoiceClient", "SendHangupCommand")
14
+ .sc(SendHangup$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { SendPlay$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SendPlayCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaVoice", "SendPlay", {})
13
+ .n("WilmaVoiceClient", "SendPlayCommand")
14
+ .sc(SendPlay$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { SendSay$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SendSayCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaVoice", "SendSay", {})
13
+ .n("WilmaVoiceClient", "SendSayCommand")
14
+ .sc(SendSay$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { SendStop$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SendStopCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaVoice", "SendStop", {})
13
+ .n("WilmaVoiceClient", "SendStopCommand")
14
+ .sc(SendStop$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { SendTransfer$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SendTransferCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaVoice", "SendTransfer", {})
13
+ .n("WilmaVoiceClient", "SendTransferCommand")
14
+ .sc(SendTransfer$)
15
+ .build() {
16
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./DescribeVoiceProtocolCommand";
2
+ export * from "./SendHangupCommand";
3
+ export * from "./SendPlayCommand";
4
+ export * from "./SendSayCommand";
5
+ export * from "./SendStopCommand";
6
+ export * from "./SendTransferCommand";
@@ -0,0 +1,12 @@
1
+ const clientContextParamDefaults = {};
2
+ export const resolveClientEndpointParameters = (options) => {
3
+ return Object.assign(options, {
4
+ env: options.env ?? "prod",
5
+ defaultSigningName: "",
6
+ clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
7
+ });
8
+ };
9
+ export const commonParams = {
10
+ env: { type: "clientContextParams", name: "env" },
11
+ endpoint: { type: "builtInParams", name: "endpoint" },
12
+ };