@wildix/wilma-voice-client 0.0.41 → 0.0.42
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/models/enums.js +5 -1
- package/dist-cjs/schemas/schemas_0.js +3 -2
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +3 -2
- package/dist-types/commands/DescribeVoiceProtocolCommand.d.ts +1 -0
- package/dist-types/models/enums.d.ts +18 -0
- package/dist-types/models/models_0.d.ts +6 -1
- package/package.json +1 -1
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaVadFrameType = exports.MediaStartFrameType = exports.MediaRunPurpose = exports.MediaAudioEncoding = exports.MediaPlaybackFrameType = exports.MediaPlaybackEvent = exports.MediaPlaybackStopCause = exports.MediaFinishFrameType = exports.MediaFinishReason = exports.MediaDtmfFrameType = exports.MediaTransferFrameType = exports.MediaTranscriptionFrameType = exports.MediaParty = exports.MediaStopFrameType = exports.MediaStartedFrameType = exports.MediaRestoreFrameType = exports.MediaLanguageFrameType = exports.MediaHangupFrameType = exports.MediaFinishedFrameType = exports.MediaErrorFrameType = exports.MediaDuckFrameType = exports.MediaAudioEndFrameType = exports.MediaAudioBeginFrameType = exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
|
|
3
|
+
exports.MediaVadFrameType = exports.MediaStartFrameType = exports.MediaRunPurpose = exports.MediaAudioEncoding = exports.MediaPlaybackFrameType = exports.MediaPlaybackEvent = exports.MediaPlaybackStopCause = exports.MediaFinishFrameType = exports.MediaFinishReason = exports.MediaDtmfFrameType = exports.MediaTransferFrameType = exports.MediaTranscriptionFrameType = exports.MediaParty = exports.MediaStopFrameType = exports.MediaStartedFrameType = exports.MediaRestoreFrameType = exports.MediaLanguageFrameType = exports.MediaHangupFrameType = exports.MediaFinishedFrameType = exports.MediaErrorFrameType = exports.MediaDuckFrameType = exports.MediaAudioEndFrameType = exports.MediaAudioBeginFrameType = exports.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceTranscriptionDropReason = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.VoiceControlAction = exports.VoiceEventType = exports.VoicePronunciationEncoding = void 0;
|
|
4
4
|
exports.VoicePronunciationEncoding = {
|
|
5
5
|
ALIAS: "alias",
|
|
6
6
|
IPA: "ipa",
|
|
@@ -34,6 +34,10 @@ exports.VoiceCallToolPhase = {
|
|
|
34
34
|
FINISHED: "finished",
|
|
35
35
|
STARTED: "started",
|
|
36
36
|
};
|
|
37
|
+
exports.VoiceTranscriptionDropReason = {
|
|
38
|
+
LOW_CONFIDENCE: "low_confidence",
|
|
39
|
+
OTHER_SPEAKER: "other_speaker",
|
|
40
|
+
};
|
|
37
41
|
exports.VoiceAudioEncoding = {
|
|
38
42
|
ALAW: "alaw",
|
|
39
43
|
MULAW: "mulaw",
|
|
@@ -164,6 +164,7 @@ const _dN = "dialedNumber";
|
|
|
164
164
|
const _dVD = "duckVolumeDb";
|
|
165
165
|
const _di = "digits";
|
|
166
166
|
const _dr = "draft";
|
|
167
|
+
const _dro = "dropped";
|
|
167
168
|
const _dt = "dtmf";
|
|
168
169
|
const _du = "duck";
|
|
169
170
|
const _e = "error";
|
|
@@ -759,8 +760,8 @@ exports.VoiceCallToolEvent$ = [3, n1, _VCTE,
|
|
|
759
760
|
];
|
|
760
761
|
exports.VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
761
762
|
0,
|
|
762
|
-
[_i, _te, _f, _l, _ti],
|
|
763
|
-
[0, 0, 2, 0, 1], 3
|
|
763
|
+
[_i, _te, _f, _l, _ti, _dro],
|
|
764
|
+
[0, 0, 2, 0, 1, 0], 3
|
|
764
765
|
];
|
|
765
766
|
exports.VoiceConnectParams$ = [3, n1, _VCP,
|
|
766
767
|
0,
|
package/dist-es/models/enums.js
CHANGED
|
@@ -31,6 +31,10 @@ export const VoiceCallToolPhase = {
|
|
|
31
31
|
FINISHED: "finished",
|
|
32
32
|
STARTED: "started",
|
|
33
33
|
};
|
|
34
|
+
export const VoiceTranscriptionDropReason = {
|
|
35
|
+
LOW_CONFIDENCE: "low_confidence",
|
|
36
|
+
OTHER_SPEAKER: "other_speaker",
|
|
37
|
+
};
|
|
34
38
|
export const VoiceAudioEncoding = {
|
|
35
39
|
ALAW: "alaw",
|
|
36
40
|
MULAW: "mulaw",
|
|
@@ -159,6 +159,7 @@ const _dN = "dialedNumber";
|
|
|
159
159
|
const _dVD = "duckVolumeDb";
|
|
160
160
|
const _di = "digits";
|
|
161
161
|
const _dr = "draft";
|
|
162
|
+
const _dro = "dropped";
|
|
162
163
|
const _dt = "dtmf";
|
|
163
164
|
const _du = "duck";
|
|
164
165
|
const _e = "error";
|
|
@@ -754,8 +755,8 @@ export var VoiceCallToolEvent$ = [3, n1, _VCTE,
|
|
|
754
755
|
];
|
|
755
756
|
export var VoiceCallTranscriptionEvent$ = [3, n1, _VCTEo,
|
|
756
757
|
0,
|
|
757
|
-
[_i, _te, _f, _l, _ti],
|
|
758
|
-
[0, 0, 2, 0, 1], 3
|
|
758
|
+
[_i, _te, _f, _l, _ti, _dro],
|
|
759
|
+
[0, 0, 2, 0, 1, 0], 3
|
|
759
760
|
];
|
|
760
761
|
export var VoiceConnectParams$ = [3, n1, _VCP,
|
|
761
762
|
0,
|
|
@@ -259,6 +259,7 @@ declare const DescribeVoiceProtocolCommand_base: {
|
|
|
259
259
|
* // final: true || false, // required
|
|
260
260
|
* // language: "STRING_VALUE",
|
|
261
261
|
* // time: Number("long"),
|
|
262
|
+
* // dropped: "low_confidence" || "other_speaker",
|
|
262
263
|
* // },
|
|
263
264
|
* // agentTranscription: { // VoiceCallAgentTranscriptionEvent
|
|
264
265
|
* // id: "STRING_VALUE", // required
|
|
@@ -86,6 +86,24 @@ export declare const VoiceCallToolPhase: {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
export type VoiceCallToolPhase = (typeof VoiceCallToolPhase)[keyof typeof VoiceCallToolPhase];
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
* @enum
|
|
92
|
+
*/
|
|
93
|
+
export declare const VoiceTranscriptionDropReason: {
|
|
94
|
+
/**
|
|
95
|
+
* The recognition confidence was below the minimum confidence of the call.
|
|
96
|
+
*/
|
|
97
|
+
readonly LOW_CONFIDENCE: "low_confidence";
|
|
98
|
+
/**
|
|
99
|
+
* The recogniser labelled the words with a speaker other than the caller.
|
|
100
|
+
*/
|
|
101
|
+
readonly OTHER_SPEAKER: "other_speaker";
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export type VoiceTranscriptionDropReason = (typeof VoiceTranscriptionDropReason)[keyof typeof VoiceTranscriptionDropReason];
|
|
89
107
|
/**
|
|
90
108
|
* @public
|
|
91
109
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { MediaAudioBeginFrameType, MediaAudioEncoding, MediaAudioEndFrameType, MediaDtmfFrameType, MediaDuckFrameType, MediaErrorFrameType, MediaFinishedFrameType, MediaFinishFrameType, MediaFinishReason, MediaHangupFrameType, MediaLanguageFrameType, MediaParty, MediaPlaybackEvent, MediaPlaybackFrameType, MediaPlaybackStopCause, MediaRestoreFrameType, MediaRunPurpose, MediaStartedFrameType, MediaStartFrameType, MediaStopFrameType, MediaTranscriptionFrameType, MediaTransferFrameType, MediaVadFrameType, VoiceAudioEncoding, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding } from "./enums";
|
|
2
|
+
import type { MediaAudioBeginFrameType, MediaAudioEncoding, MediaAudioEndFrameType, MediaDtmfFrameType, MediaDuckFrameType, MediaErrorFrameType, MediaFinishedFrameType, MediaFinishFrameType, MediaFinishReason, MediaHangupFrameType, MediaLanguageFrameType, MediaParty, MediaPlaybackEvent, MediaPlaybackFrameType, MediaPlaybackStopCause, MediaRestoreFrameType, MediaRunPurpose, MediaStartedFrameType, MediaStartFrameType, MediaStopFrameType, MediaTranscriptionFrameType, MediaTransferFrameType, MediaVadFrameType, VoiceAudioEncoding, VoiceCallEndReason, VoiceCallToolPhase, VoiceCommandType, VoiceControlAction, VoiceEventType, VoiceInputMode, VoicePronunciationEncoding, VoiceTranscriptionDropReason } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* A pronunciation rule for one phrase. Belongs to a LANGUAGE, not to the agent: 'Wildix' is
|
|
5
5
|
* respelled differently for an Italian and a German voice, so one list shared ACROSS languages
|
|
@@ -351,6 +351,11 @@ export interface VoiceCallTranscriptionEvent {
|
|
|
351
351
|
* @public
|
|
352
352
|
*/
|
|
353
353
|
time?: number | undefined;
|
|
354
|
+
/**
|
|
355
|
+
* Present on a final that did not go to the agent as a caller turn. It came while the agent spoke and the cloud took it for noise or echo, or for another speaker.
|
|
356
|
+
* @public
|
|
357
|
+
*/
|
|
358
|
+
dropped?: VoiceTranscriptionDropReason | undefined;
|
|
354
359
|
}
|
|
355
360
|
/**
|
|
356
361
|
* One event on a live call. The SSE frame's `event:` is the member name and `data:` this whole union document, so a frame reads `data: \{"say": \{...\}\}` — never the member's payload on its own.
|
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.42",
|
|
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",
|