@wildix/wilma-voice-client 0.0.30 → 0.0.32
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.
|
@@ -97,6 +97,7 @@ const _con = "context";
|
|
|
97
97
|
const _conf = "confidence";
|
|
98
98
|
const _cr = "credential";
|
|
99
99
|
const _d = "data";
|
|
100
|
+
const _dN = "dialedNumber";
|
|
100
101
|
const _e = "error";
|
|
101
102
|
const _eT = "endTime";
|
|
102
103
|
const _eWE = "errorWebsocketEvent";
|
|
@@ -105,6 +106,7 @@ const _eng = "engine";
|
|
|
105
106
|
const _ev = "event";
|
|
106
107
|
const _ex = "extension";
|
|
107
108
|
const _f = "final";
|
|
109
|
+
const _fI = "flowIndex";
|
|
108
110
|
const _gI = "groupId";
|
|
109
111
|
const _h = "http";
|
|
110
112
|
const _hE = "httpError";
|
|
@@ -120,8 +122,8 @@ const _l = "language";
|
|
|
120
122
|
const _la = "languages";
|
|
121
123
|
const _m = "message";
|
|
122
124
|
const _mT = "mediaType";
|
|
125
|
+
const _me = "metadata";
|
|
123
126
|
const _n = "name";
|
|
124
|
-
const _o = "options";
|
|
125
127
|
const _oA = "outputAudio";
|
|
126
128
|
const _oT = "originalText";
|
|
127
129
|
const _p = "phrase";
|
|
@@ -145,7 +147,6 @@ const _sT = "startTime";
|
|
|
145
147
|
const _sWC = "sayWebsocketCommand";
|
|
146
148
|
const _sWCt = "stopWebsocketCommand";
|
|
147
149
|
const _se = "seq";
|
|
148
|
-
const _sea = "search";
|
|
149
150
|
const _sp = "speech";
|
|
150
151
|
const _t = "type";
|
|
151
152
|
const _tI = "traceId";
|
|
@@ -262,8 +263,8 @@ exports.InterruptionWebsocketEvent$ = [3, n1, _IWE,
|
|
|
262
263
|
];
|
|
263
264
|
exports.ListVoicesInput$ = [3, n1, _LVI,
|
|
264
265
|
0,
|
|
265
|
-
[_pr, _l,
|
|
266
|
-
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]:
|
|
266
|
+
[_pr, _l, _cr],
|
|
267
|
+
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _cr }]], 1
|
|
267
268
|
];
|
|
268
269
|
exports.ListVoicesOutput$ = [3, n1, _LVO,
|
|
269
270
|
0,
|
|
@@ -427,7 +428,7 @@ exports.TransferWebsocketCommand$ = [3, n1, _TWC,
|
|
|
427
428
|
];
|
|
428
429
|
exports.Voice$ = [3, n1, _V,
|
|
429
430
|
0,
|
|
430
|
-
[_u, _n,
|
|
431
|
+
[_u, _n, _me],
|
|
431
432
|
[0, 0, 15], 2
|
|
432
433
|
];
|
|
433
434
|
exports.VoiceAudioFormat$ = [3, n1, _VAF,
|
|
@@ -437,8 +438,8 @@ exports.VoiceAudioFormat$ = [3, n1, _VAF,
|
|
|
437
438
|
];
|
|
438
439
|
exports.VoiceConnectParams$ = [3, n1, _VCP,
|
|
439
440
|
0,
|
|
440
|
-
[_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
|
|
441
|
-
[0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
|
|
441
|
+
[_sIe, _aI, _pV, _aV, _aD, _cI, _fI, _dN, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
|
|
442
|
+
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => exports.VoiceAudioFormat$, () => exports.VoiceAudioFormat$], 2
|
|
442
443
|
];
|
|
443
444
|
exports.VoiceErrorEvent$ = [3, n1, _VEE,
|
|
444
445
|
0,
|
|
@@ -93,6 +93,7 @@ const _con = "context";
|
|
|
93
93
|
const _conf = "confidence";
|
|
94
94
|
const _cr = "credential";
|
|
95
95
|
const _d = "data";
|
|
96
|
+
const _dN = "dialedNumber";
|
|
96
97
|
const _e = "error";
|
|
97
98
|
const _eT = "endTime";
|
|
98
99
|
const _eWE = "errorWebsocketEvent";
|
|
@@ -101,6 +102,7 @@ const _eng = "engine";
|
|
|
101
102
|
const _ev = "event";
|
|
102
103
|
const _ex = "extension";
|
|
103
104
|
const _f = "final";
|
|
105
|
+
const _fI = "flowIndex";
|
|
104
106
|
const _gI = "groupId";
|
|
105
107
|
const _h = "http";
|
|
106
108
|
const _hE = "httpError";
|
|
@@ -116,8 +118,8 @@ const _l = "language";
|
|
|
116
118
|
const _la = "languages";
|
|
117
119
|
const _m = "message";
|
|
118
120
|
const _mT = "mediaType";
|
|
121
|
+
const _me = "metadata";
|
|
119
122
|
const _n = "name";
|
|
120
|
-
const _o = "options";
|
|
121
123
|
const _oA = "outputAudio";
|
|
122
124
|
const _oT = "originalText";
|
|
123
125
|
const _p = "phrase";
|
|
@@ -141,7 +143,6 @@ const _sT = "startTime";
|
|
|
141
143
|
const _sWC = "sayWebsocketCommand";
|
|
142
144
|
const _sWCt = "stopWebsocketCommand";
|
|
143
145
|
const _se = "seq";
|
|
144
|
-
const _sea = "search";
|
|
145
146
|
const _sp = "speech";
|
|
146
147
|
const _t = "type";
|
|
147
148
|
const _tI = "traceId";
|
|
@@ -258,8 +259,8 @@ export var InterruptionWebsocketEvent$ = [3, n1, _IWE,
|
|
|
258
259
|
];
|
|
259
260
|
export var ListVoicesInput$ = [3, n1, _LVI,
|
|
260
261
|
0,
|
|
261
|
-
[_pr, _l,
|
|
262
|
-
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]:
|
|
262
|
+
[_pr, _l, _cr],
|
|
263
|
+
[[0, { [_hQ]: _pr }], [0, { [_hQ]: _l }], [0, { [_hQ]: _cr }]], 1
|
|
263
264
|
];
|
|
264
265
|
export var ListVoicesOutput$ = [3, n1, _LVO,
|
|
265
266
|
0,
|
|
@@ -423,7 +424,7 @@ export var TransferWebsocketCommand$ = [3, n1, _TWC,
|
|
|
423
424
|
];
|
|
424
425
|
export var Voice$ = [3, n1, _V,
|
|
425
426
|
0,
|
|
426
|
-
[_u, _n,
|
|
427
|
+
[_u, _n, _me],
|
|
427
428
|
[0, 0, 15], 2
|
|
428
429
|
];
|
|
429
430
|
export var VoiceAudioFormat$ = [3, n1, _VAF,
|
|
@@ -433,8 +434,8 @@ export var VoiceAudioFormat$ = [3, n1, _VAF,
|
|
|
433
434
|
];
|
|
434
435
|
export var VoiceConnectParams$ = [3, n1, _VCP,
|
|
435
436
|
0,
|
|
436
|
-
[_sIe, _aI, _pV, _aV, _aD, _cI, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
|
|
437
|
-
[0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
|
|
437
|
+
[_sIe, _aI, _pV, _aV, _aD, _cI, _fI, _dN, _l, _cN, _cNa, _cE, _cC, _vo, _iM, _va, _iMn, _iA, _oA],
|
|
438
|
+
[0, 0, 1, 1, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, () => VoiceAudioFormat$, () => VoiceAudioFormat$], 2
|
|
438
439
|
];
|
|
439
440
|
export var VoiceErrorEvent$ = [3, n1, _VEE,
|
|
440
441
|
0,
|
|
@@ -47,6 +47,8 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
47
47
|
* // agentVersion: Number("int"),
|
|
48
48
|
* // agentDraft: true || false,
|
|
49
49
|
* // callId: "STRING_VALUE",
|
|
50
|
+
* // flowIndex: Number("int"),
|
|
51
|
+
* // dialedNumber: "STRING_VALUE",
|
|
50
52
|
* // language: "STRING_VALUE",
|
|
51
53
|
* // callerName: "STRING_VALUE",
|
|
52
54
|
* // callerNumber: "STRING_VALUE",
|
|
@@ -39,7 +39,6 @@ declare const ListVoicesCommand_base: {
|
|
|
39
39
|
* const input = { // ListVoicesInput
|
|
40
40
|
* provider: "STRING_VALUE", // required
|
|
41
41
|
* language: "STRING_VALUE",
|
|
42
|
-
* search: "STRING_VALUE",
|
|
43
42
|
* credential: "STRING_VALUE",
|
|
44
43
|
* };
|
|
45
44
|
* const command = new ListVoicesCommand(input);
|
|
@@ -49,7 +48,7 @@ declare const ListVoicesCommand_base: {
|
|
|
49
48
|
* // { // Voice
|
|
50
49
|
* // uri: "STRING_VALUE", // required
|
|
51
50
|
* // name: "STRING_VALUE", // required
|
|
52
|
-
* //
|
|
51
|
+
* // metadata: "DOCUMENT_VALUE",
|
|
53
52
|
* // },
|
|
54
53
|
* // ],
|
|
55
54
|
* // };
|
|
@@ -171,6 +171,16 @@ export interface VoiceConnectParams {
|
|
|
171
171
|
* @public
|
|
172
172
|
*/
|
|
173
173
|
callId?: string | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Leg of the PBX call inside `callId` (pbx-data-engine's flow index). Kept on the session as metadata beside `callId` and `dialedNumber`; never interpreted by the runtime.
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
flowIndex?: number | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* The number the caller dialled to reach the agent. Kept on the session as metadata beside `callId` and `flowIndex`.
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
dialedNumber?: string | undefined;
|
|
174
184
|
/**
|
|
175
185
|
* BCP-47 language of the conversation, e.g. 'en-US'.
|
|
176
186
|
* @public
|
|
@@ -435,7 +445,14 @@ export interface SayCommandData {
|
|
|
435
445
|
*/
|
|
436
446
|
interruptible?: boolean | undefined;
|
|
437
447
|
/**
|
|
438
|
-
*
|
|
448
|
+
* Bare Amazon Polly voice id, e.g. 'Joanna' — NOT a URI. The PBX consumes this verbatim as the
|
|
449
|
+
* AMI `Voice=` action parameter, so it takes exactly what Polly names the voice, with the
|
|
450
|
+
* `amazon_polly://` scheme and any query parameters already stripped by whoever builds this
|
|
451
|
+
* command out of the agent's stored `VoiceUri`.
|
|
452
|
+
*
|
|
453
|
+
* Set only for a provider whose synthesis runs ON THE PBX (Amazon Polly); ElevenLabs and Google
|
|
454
|
+
* are synthesized in the cloud and streamed as PCM through `play` instead, and leave this
|
|
455
|
+
* absent.
|
|
439
456
|
* @public
|
|
440
457
|
*/
|
|
441
458
|
voice?: string | undefined;
|
|
@@ -811,7 +828,6 @@ export interface ListVoicesInput {
|
|
|
811
828
|
* @public
|
|
812
829
|
*/
|
|
813
830
|
language?: string | undefined;
|
|
814
|
-
search?: string | undefined;
|
|
815
831
|
/**
|
|
816
832
|
* A reference to the company's own provider credential, so the picker lists that account's
|
|
817
833
|
* voices including cloned ones. Absent means the platform key.
|
|
@@ -843,15 +859,15 @@ export interface Voice {
|
|
|
843
859
|
*/
|
|
844
860
|
uri: string;
|
|
845
861
|
/**
|
|
846
|
-
* Display name as the provider publishes it, e.g. 'Rachel'. A member rather than part of `
|
|
862
|
+
* Display name as the provider publishes it, e.g. 'Rachel'. A member rather than part of `metadata` because it is the one thing every provider has and every picker shows.
|
|
847
863
|
* @public
|
|
848
864
|
*/
|
|
849
865
|
name: string;
|
|
850
866
|
/**
|
|
851
|
-
* The provider's own metadata for this voice, for rendering and filtering only. See
|
|
867
|
+
* The provider's own metadata for this voice, for rendering and filtering only. See VoiceMetadata.
|
|
852
868
|
* @public
|
|
853
869
|
*/
|
|
854
|
-
|
|
870
|
+
metadata?: __DocumentType | undefined;
|
|
855
871
|
}
|
|
856
872
|
/**
|
|
857
873
|
* @public
|
|
@@ -920,7 +936,14 @@ export interface SendSayInput {
|
|
|
920
936
|
*/
|
|
921
937
|
interruptible?: boolean | undefined;
|
|
922
938
|
/**
|
|
923
|
-
*
|
|
939
|
+
* Bare Amazon Polly voice id, e.g. 'Joanna' — NOT a URI. The PBX consumes this verbatim as the
|
|
940
|
+
* AMI `Voice=` action parameter, so it takes exactly what Polly names the voice, with the
|
|
941
|
+
* `amazon_polly://` scheme and any query parameters already stripped by whoever builds this
|
|
942
|
+
* command out of the agent's stored `VoiceUri`.
|
|
943
|
+
*
|
|
944
|
+
* Set only for a provider whose synthesis runs ON THE PBX (Amazon Polly); ElevenLabs and Google
|
|
945
|
+
* are synthesized in the cloud and streamed as PCM through `play` instead, and leave this
|
|
946
|
+
* absent.
|
|
924
947
|
* @public
|
|
925
948
|
*/
|
|
926
949
|
voice?: 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.
|
|
4
|
+
"version": "0.0.32",
|
|
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",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"browser": {
|
|
57
57
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|