@wildix/wilma-voice-client 0.0.34 → 0.0.35
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.
|
@@ -185,6 +185,7 @@ const _sp = "speech";
|
|
|
185
185
|
const _st = "streaming";
|
|
186
186
|
const _sta = "started";
|
|
187
187
|
const _t = "type";
|
|
188
|
+
const _tCI = "toolCallId";
|
|
188
189
|
const _tI = "traceId";
|
|
189
190
|
const _tN = "toolName";
|
|
190
191
|
const _tWC = "transferWebsocketCommand";
|
|
@@ -539,7 +540,7 @@ exports.VoiceCallStartedEvent$ = [3, n1, _VCSEo,
|
|
|
539
540
|
];
|
|
540
541
|
exports.VoiceCallToolEvent$ = [3, n1, _VCTE,
|
|
541
542
|
0,
|
|
542
|
-
[
|
|
543
|
+
[_tCI, _tN, _ph, _sM],
|
|
543
544
|
[0, 0, 0, 0], 3
|
|
544
545
|
];
|
|
545
546
|
exports.VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
@@ -181,6 +181,7 @@ const _sp = "speech";
|
|
|
181
181
|
const _st = "streaming";
|
|
182
182
|
const _sta = "started";
|
|
183
183
|
const _t = "type";
|
|
184
|
+
const _tCI = "toolCallId";
|
|
184
185
|
const _tI = "traceId";
|
|
185
186
|
const _tN = "toolName";
|
|
186
187
|
const _tWC = "transferWebsocketCommand";
|
|
@@ -535,7 +536,7 @@ export var VoiceCallStartedEvent$ = [3, n1, _VCSEo,
|
|
|
535
536
|
];
|
|
536
537
|
export var VoiceCallToolEvent$ = [3, n1, _VCTE,
|
|
537
538
|
0,
|
|
538
|
-
[
|
|
539
|
+
[_tCI, _tN, _ph, _sM],
|
|
539
540
|
[0, 0, 0, 0], 3
|
|
540
541
|
];
|
|
541
542
|
export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
@@ -292,7 +292,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
292
292
|
* // reason: "STRING_VALUE", // required
|
|
293
293
|
* // },
|
|
294
294
|
* // tool: { // VoiceCallToolEvent
|
|
295
|
-
* //
|
|
295
|
+
* // toolCallId: "STRING_VALUE", // required
|
|
296
296
|
* // toolName: "STRING_VALUE", // required
|
|
297
297
|
* // phase: "started" || "finished", // required
|
|
298
298
|
* // startMessage: "STRING_VALUE",
|
|
@@ -165,9 +165,20 @@ export interface DescribeVoiceProtocolInput {
|
|
|
165
165
|
* @public
|
|
166
166
|
*/
|
|
167
167
|
export interface VoiceCallAgentTranscriptionEvent {
|
|
168
|
+
/**
|
|
169
|
+
* Identifier of a transcription chunk within a session.
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
168
172
|
id: string;
|
|
169
173
|
text: string;
|
|
170
174
|
final: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
177
|
+
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
178
|
+
* recogniser and changes with it, so an enumeration here would cap the set at whatever was known
|
|
179
|
+
* when the model was released.
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
171
182
|
language?: string | undefined;
|
|
172
183
|
time?: number | undefined;
|
|
173
184
|
}
|
|
@@ -188,6 +199,10 @@ export interface VoiceCallEndedEvent {
|
|
|
188
199
|
* @public
|
|
189
200
|
*/
|
|
190
201
|
export interface VoiceCallInterruptionEvent {
|
|
202
|
+
/**
|
|
203
|
+
* Correlates a caller phrase, the agent reply it produced, and the playback/interruption of that reply.
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
191
206
|
replyId?: string | undefined;
|
|
192
207
|
playedText?: string | undefined;
|
|
193
208
|
originalText?: string | undefined;
|
|
@@ -197,7 +212,21 @@ export interface VoiceCallInterruptionEvent {
|
|
|
197
212
|
* @public
|
|
198
213
|
*/
|
|
199
214
|
export interface VoiceCallLanguageEvent {
|
|
215
|
+
/**
|
|
216
|
+
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
217
|
+
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
218
|
+
* recogniser and changes with it, so an enumeration here would cap the set at whatever was known
|
|
219
|
+
* when the model was released.
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
200
222
|
from?: string | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
225
|
+
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
226
|
+
* recogniser and changes with it, so an enumeration here would cap the set at whatever was known
|
|
227
|
+
* when the model was released.
|
|
228
|
+
* @public
|
|
229
|
+
*/
|
|
201
230
|
to: string;
|
|
202
231
|
reason: string;
|
|
203
232
|
}
|
|
@@ -206,6 +235,10 @@ export interface VoiceCallLanguageEvent {
|
|
|
206
235
|
* @public
|
|
207
236
|
*/
|
|
208
237
|
export interface VoiceCallPlaybackEvent {
|
|
238
|
+
/**
|
|
239
|
+
* Correlates a caller phrase, the agent reply it produced, and the playback/interruption of that reply.
|
|
240
|
+
* @public
|
|
241
|
+
*/
|
|
209
242
|
replyId: string;
|
|
210
243
|
complete: boolean;
|
|
211
244
|
}
|
|
@@ -214,8 +247,19 @@ export interface VoiceCallPlaybackEvent {
|
|
|
214
247
|
* @public
|
|
215
248
|
*/
|
|
216
249
|
export interface VoiceCallReplyEvent {
|
|
250
|
+
/**
|
|
251
|
+
* Correlates a caller phrase, the agent reply it produced, and the playback/interruption of that reply.
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
217
254
|
id: string;
|
|
218
255
|
text: string;
|
|
256
|
+
/**
|
|
257
|
+
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
258
|
+
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
259
|
+
* recogniser and changes with it, so an enumeration here would cap the set at whatever was known
|
|
260
|
+
* when the model was released.
|
|
261
|
+
* @public
|
|
262
|
+
*/
|
|
219
263
|
language?: string | undefined;
|
|
220
264
|
}
|
|
221
265
|
/**
|
|
@@ -223,6 +267,10 @@ export interface VoiceCallReplyEvent {
|
|
|
223
267
|
* @public
|
|
224
268
|
*/
|
|
225
269
|
export interface VoiceCallSayEvent {
|
|
270
|
+
/**
|
|
271
|
+
* Correlates a caller phrase, the agent reply it produced, and the playback/interruption of that reply.
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
226
274
|
replyId: string;
|
|
227
275
|
text: string;
|
|
228
276
|
interruptible: boolean;
|
|
@@ -265,7 +313,11 @@ export interface VoiceCallStartedEvent {
|
|
|
265
313
|
* @public
|
|
266
314
|
*/
|
|
267
315
|
export interface VoiceCallToolEvent {
|
|
268
|
-
|
|
316
|
+
/**
|
|
317
|
+
* Identifies the tool call inside the turn — the model's own call id, not the PBX call this stream follows.
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
320
|
+
toolCallId: string;
|
|
269
321
|
toolName: string;
|
|
270
322
|
phase: VoiceCallToolPhase;
|
|
271
323
|
/**
|
|
@@ -279,9 +331,20 @@ export interface VoiceCallToolEvent {
|
|
|
279
331
|
* @public
|
|
280
332
|
*/
|
|
281
333
|
export interface VoiceCallTranscriptionEvent {
|
|
334
|
+
/**
|
|
335
|
+
* Identifier of a transcription chunk within a session.
|
|
336
|
+
* @public
|
|
337
|
+
*/
|
|
282
338
|
id: string;
|
|
283
339
|
text: string;
|
|
284
340
|
final: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* BCP-47 language tag, optionally with a region subtag: 'en', 'en-US', 'pt-BR'. Deliberately a
|
|
343
|
+
* constrained string rather than an enum: the offerable set is a property of the selected
|
|
344
|
+
* recogniser and changes with it, so an enumeration here would cap the set at whatever was known
|
|
345
|
+
* when the model was released.
|
|
346
|
+
* @public
|
|
347
|
+
*/
|
|
285
348
|
language?: string | undefined;
|
|
286
349
|
/**
|
|
287
350
|
* Milliseconds since the call started, as the PBX stamps it.
|
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.35",
|
|
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",
|