@wildix/wilma-voice-client 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/WilmaVoice.js +2 -0
- package/dist-cjs/commands/GetVoiceDefaultsCommand.js +20 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/enums.js +80 -5
- package/dist-cjs/schemas/schemas_0.js +277 -54
- package/dist-es/WilmaVoice.js +2 -0
- package/dist-es/commands/GetVoiceDefaultsCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +79 -4
- package/dist-es/schemas/schemas_0.js +274 -52
- package/dist-types/WilmaVoice.d.ts +15 -5
- package/dist-types/WilmaVoiceClient.d.ts +10 -7
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +136 -9
- package/dist-types/commands/GetVoiceDefaultsCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +7 -5
- package/dist-types/models/enums.d.ts +302 -12
- package/dist-types/models/models_0.d.ts +677 -91
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +31 -1
- package/package.json +3 -2
|
@@ -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
|
|
@@ -157,3 +145,305 @@ export declare const VoiceCommandType: {
|
|
|
157
145
|
* @public
|
|
158
146
|
*/
|
|
159
147
|
export type VoiceCommandType = (typeof VoiceCommandType)[keyof typeof VoiceCommandType];
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
* @enum
|
|
151
|
+
*/
|
|
152
|
+
export declare const MediaAudioBeginFrameType: {
|
|
153
|
+
readonly AUDIO_BEGIN: "audio.begin";
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export type MediaAudioBeginFrameType = (typeof MediaAudioBeginFrameType)[keyof typeof MediaAudioBeginFrameType];
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* @enum
|
|
162
|
+
*/
|
|
163
|
+
export declare const MediaAudioEndFrameType: {
|
|
164
|
+
readonly AUDIO_END: "audio.end";
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
export type MediaAudioEndFrameType = (typeof MediaAudioEndFrameType)[keyof typeof MediaAudioEndFrameType];
|
|
170
|
+
/**
|
|
171
|
+
* @public
|
|
172
|
+
* @enum
|
|
173
|
+
*/
|
|
174
|
+
export declare const MediaDuckFrameType: {
|
|
175
|
+
readonly DUCK: "duck";
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export type MediaDuckFrameType = (typeof MediaDuckFrameType)[keyof typeof MediaDuckFrameType];
|
|
181
|
+
/**
|
|
182
|
+
* @public
|
|
183
|
+
* @enum
|
|
184
|
+
*/
|
|
185
|
+
export declare const MediaErrorFrameType: {
|
|
186
|
+
readonly ERROR: "error";
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
*/
|
|
191
|
+
export type MediaErrorFrameType = (typeof MediaErrorFrameType)[keyof typeof MediaErrorFrameType];
|
|
192
|
+
/**
|
|
193
|
+
* @public
|
|
194
|
+
* @enum
|
|
195
|
+
*/
|
|
196
|
+
export declare const MediaFinishedFrameType: {
|
|
197
|
+
readonly FINISHED: "finished";
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
export type MediaFinishedFrameType = (typeof MediaFinishedFrameType)[keyof typeof MediaFinishedFrameType];
|
|
203
|
+
/**
|
|
204
|
+
* @public
|
|
205
|
+
* @enum
|
|
206
|
+
*/
|
|
207
|
+
export declare const MediaHangupFrameType: {
|
|
208
|
+
readonly HANGUP: "hangup";
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
export type MediaHangupFrameType = (typeof MediaHangupFrameType)[keyof typeof MediaHangupFrameType];
|
|
214
|
+
/**
|
|
215
|
+
* @public
|
|
216
|
+
* @enum
|
|
217
|
+
*/
|
|
218
|
+
export declare const MediaLanguageFrameType: {
|
|
219
|
+
readonly LANGUAGE: "language";
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
export type MediaLanguageFrameType = (typeof MediaLanguageFrameType)[keyof typeof MediaLanguageFrameType];
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
* @enum
|
|
228
|
+
*/
|
|
229
|
+
export declare const MediaRestoreFrameType: {
|
|
230
|
+
readonly RESTORE: "restore";
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
235
|
+
export type MediaRestoreFrameType = (typeof MediaRestoreFrameType)[keyof typeof MediaRestoreFrameType];
|
|
236
|
+
/**
|
|
237
|
+
* @public
|
|
238
|
+
* @enum
|
|
239
|
+
*/
|
|
240
|
+
export declare const MediaStartedFrameType: {
|
|
241
|
+
readonly STARTED: "started";
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
export type MediaStartedFrameType = (typeof MediaStartedFrameType)[keyof typeof MediaStartedFrameType];
|
|
247
|
+
/**
|
|
248
|
+
* @public
|
|
249
|
+
* @enum
|
|
250
|
+
*/
|
|
251
|
+
export declare const MediaStopFrameType: {
|
|
252
|
+
readonly STOP: "stop";
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* @public
|
|
256
|
+
*/
|
|
257
|
+
export type MediaStopFrameType = (typeof MediaStopFrameType)[keyof typeof MediaStopFrameType];
|
|
258
|
+
/**
|
|
259
|
+
* @public
|
|
260
|
+
* @enum
|
|
261
|
+
*/
|
|
262
|
+
export declare const MediaParty: {
|
|
263
|
+
readonly CALLEE: "callee";
|
|
264
|
+
readonly CALLER: "caller";
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
export type MediaParty = (typeof MediaParty)[keyof typeof MediaParty];
|
|
270
|
+
/**
|
|
271
|
+
* @public
|
|
272
|
+
* @enum
|
|
273
|
+
*/
|
|
274
|
+
export declare const MediaTranscriptionFrameType: {
|
|
275
|
+
readonly TRANSCRIPTION: "transcription";
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
export type MediaTranscriptionFrameType = (typeof MediaTranscriptionFrameType)[keyof typeof MediaTranscriptionFrameType];
|
|
281
|
+
/**
|
|
282
|
+
* @public
|
|
283
|
+
* @enum
|
|
284
|
+
*/
|
|
285
|
+
export declare const MediaTransferFrameType: {
|
|
286
|
+
readonly TRANSFER: "transfer";
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* @public
|
|
290
|
+
*/
|
|
291
|
+
export type MediaTransferFrameType = (typeof MediaTransferFrameType)[keyof typeof MediaTransferFrameType];
|
|
292
|
+
/**
|
|
293
|
+
* @public
|
|
294
|
+
* @enum
|
|
295
|
+
*/
|
|
296
|
+
export declare const MediaDtmfFrameType: {
|
|
297
|
+
readonly DTMF: "dtmf";
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* @public
|
|
301
|
+
*/
|
|
302
|
+
export type MediaDtmfFrameType = (typeof MediaDtmfFrameType)[keyof typeof MediaDtmfFrameType];
|
|
303
|
+
/**
|
|
304
|
+
* @public
|
|
305
|
+
* @enum
|
|
306
|
+
*/
|
|
307
|
+
export declare const MediaFinishReason: {
|
|
308
|
+
/**
|
|
309
|
+
* The PBX ran the agent's `hangup`.
|
|
310
|
+
*/
|
|
311
|
+
readonly AGENT_HANGUP: "agent-hangup";
|
|
312
|
+
/**
|
|
313
|
+
* The PBX ran the agent's `transfer`, or tried to and the target does not exist.
|
|
314
|
+
*/
|
|
315
|
+
readonly AGENT_TRANSFER: "agent-transfer";
|
|
316
|
+
/**
|
|
317
|
+
* The callee hung up.
|
|
318
|
+
*/
|
|
319
|
+
readonly CALLEE_HANGUP: "callee-hangup";
|
|
320
|
+
/**
|
|
321
|
+
* The caller hung up.
|
|
322
|
+
*/
|
|
323
|
+
readonly CALLER_HANGUP: "caller-hangup";
|
|
324
|
+
/**
|
|
325
|
+
* The PBX got no agent reply in time.
|
|
326
|
+
*/
|
|
327
|
+
readonly TIMEOUT: "timeout";
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* @public
|
|
331
|
+
*/
|
|
332
|
+
export type MediaFinishReason = (typeof MediaFinishReason)[keyof typeof MediaFinishReason];
|
|
333
|
+
/**
|
|
334
|
+
* @public
|
|
335
|
+
* @enum
|
|
336
|
+
*/
|
|
337
|
+
export declare const MediaFinishFrameType: {
|
|
338
|
+
readonly FINISH: "finish";
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* @public
|
|
342
|
+
*/
|
|
343
|
+
export type MediaFinishFrameType = (typeof MediaFinishFrameType)[keyof typeof MediaFinishFrameType];
|
|
344
|
+
/**
|
|
345
|
+
* @public
|
|
346
|
+
* @enum
|
|
347
|
+
*/
|
|
348
|
+
export declare const MediaPlaybackStopCause: {
|
|
349
|
+
/**
|
|
350
|
+
* The caller hung up or the run ended.
|
|
351
|
+
*/
|
|
352
|
+
readonly CALLER: "caller";
|
|
353
|
+
/**
|
|
354
|
+
* A `stop` frame from the cloud.
|
|
355
|
+
*/
|
|
356
|
+
readonly CLOUD: "cloud";
|
|
357
|
+
/**
|
|
358
|
+
* The PBX dropped the stream, for example at its queue limit.
|
|
359
|
+
*/
|
|
360
|
+
readonly DROP: "drop";
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* @public
|
|
364
|
+
*/
|
|
365
|
+
export type MediaPlaybackStopCause = (typeof MediaPlaybackStopCause)[keyof typeof MediaPlaybackStopCause];
|
|
366
|
+
/**
|
|
367
|
+
* @public
|
|
368
|
+
* @enum
|
|
369
|
+
*/
|
|
370
|
+
export declare const MediaPlaybackEvent: {
|
|
371
|
+
/**
|
|
372
|
+
* The stream played to its end.
|
|
373
|
+
*/
|
|
374
|
+
readonly FINISHED: "finished";
|
|
375
|
+
/**
|
|
376
|
+
* The stream started to play.
|
|
377
|
+
*/
|
|
378
|
+
readonly STARTED: "started";
|
|
379
|
+
/**
|
|
380
|
+
* The stream stopped before its end.
|
|
381
|
+
*/
|
|
382
|
+
readonly STOPPED: "stopped";
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* @public
|
|
386
|
+
*/
|
|
387
|
+
export type MediaPlaybackEvent = (typeof MediaPlaybackEvent)[keyof typeof MediaPlaybackEvent];
|
|
388
|
+
/**
|
|
389
|
+
* @public
|
|
390
|
+
* @enum
|
|
391
|
+
*/
|
|
392
|
+
export declare const MediaPlaybackFrameType: {
|
|
393
|
+
readonly PLAYBACK: "playback";
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* @public
|
|
397
|
+
*/
|
|
398
|
+
export type MediaPlaybackFrameType = (typeof MediaPlaybackFrameType)[keyof typeof MediaPlaybackFrameType];
|
|
399
|
+
/**
|
|
400
|
+
* @public
|
|
401
|
+
* @enum
|
|
402
|
+
*/
|
|
403
|
+
export declare const MediaAudioEncoding: {
|
|
404
|
+
readonly PCM_S16LE: "pcm_s16le";
|
|
405
|
+
};
|
|
406
|
+
/**
|
|
407
|
+
* @public
|
|
408
|
+
*/
|
|
409
|
+
export type MediaAudioEncoding = (typeof MediaAudioEncoding)[keyof typeof MediaAudioEncoding];
|
|
410
|
+
/**
|
|
411
|
+
* @public
|
|
412
|
+
* @enum
|
|
413
|
+
*/
|
|
414
|
+
export declare const MediaRunPurpose: {
|
|
415
|
+
/**
|
|
416
|
+
* A voice agent answers the call.
|
|
417
|
+
*/
|
|
418
|
+
readonly AGENT: "agent";
|
|
419
|
+
/**
|
|
420
|
+
* The cloud transcribes the call and sends no audio.
|
|
421
|
+
*/
|
|
422
|
+
readonly TRANSCRIPTION: "transcription";
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* @public
|
|
426
|
+
*/
|
|
427
|
+
export type MediaRunPurpose = (typeof MediaRunPurpose)[keyof typeof MediaRunPurpose];
|
|
428
|
+
/**
|
|
429
|
+
* @public
|
|
430
|
+
* @enum
|
|
431
|
+
*/
|
|
432
|
+
export declare const MediaStartFrameType: {
|
|
433
|
+
readonly START: "start";
|
|
434
|
+
};
|
|
435
|
+
/**
|
|
436
|
+
* @public
|
|
437
|
+
*/
|
|
438
|
+
export type MediaStartFrameType = (typeof MediaStartFrameType)[keyof typeof MediaStartFrameType];
|
|
439
|
+
/**
|
|
440
|
+
* @public
|
|
441
|
+
* @enum
|
|
442
|
+
*/
|
|
443
|
+
export declare const MediaVadFrameType: {
|
|
444
|
+
readonly VAD: "vad";
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* @public
|
|
448
|
+
*/
|
|
449
|
+
export type MediaVadFrameType = (typeof MediaVadFrameType)[keyof typeof MediaVadFrameType];
|