@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
package/dist-cjs/WilmaVoice.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WilmaVoice = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
const DescribeVoiceProtocolCommand_1 = require("./commands/DescribeVoiceProtocolCommand");
|
|
6
|
+
const GetVoiceDefaultsCommand_1 = require("./commands/GetVoiceDefaultsCommand");
|
|
6
7
|
const ListVoicesCommand_1 = require("./commands/ListVoicesCommand");
|
|
7
8
|
const SendHangupCommand_1 = require("./commands/SendHangupCommand");
|
|
8
9
|
const SendPlayCommand_1 = require("./commands/SendPlayCommand");
|
|
@@ -14,6 +15,7 @@ const TextToSpeechCommand_1 = require("./commands/TextToSpeechCommand");
|
|
|
14
15
|
const WilmaVoiceClient_1 = require("./WilmaVoiceClient");
|
|
15
16
|
const commands = {
|
|
16
17
|
DescribeVoiceProtocolCommand: DescribeVoiceProtocolCommand_1.DescribeVoiceProtocolCommand,
|
|
18
|
+
GetVoiceDefaultsCommand: GetVoiceDefaultsCommand_1.GetVoiceDefaultsCommand,
|
|
17
19
|
ListVoicesCommand: ListVoicesCommand_1.ListVoicesCommand,
|
|
18
20
|
SendHangupCommand: SendHangupCommand_1.SendHangupCommand,
|
|
19
21
|
SendPlayCommand: SendPlayCommand_1.SendPlayCommand,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetVoiceDefaultsCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class GetVoiceDefaultsCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("WilmaVoice", "GetVoiceDefaults", {})
|
|
16
|
+
.n("WilmaVoiceClient", "GetVoiceDefaultsCommand")
|
|
17
|
+
.sc(schemas_0_1.GetVoiceDefaults$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.GetVoiceDefaultsCommand = GetVoiceDefaultsCommand;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeVoiceProtocolCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./GetVoiceDefaultsCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListVoicesCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./SendHangupCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./SendPlayCommand"), exports);
|
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.VoiceCommandType = exports.VoiceInputMode = exports.VoiceAudioEncoding = exports.VoiceCallToolPhase = exports.VoiceCallEndReason = exports.
|
|
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;
|
|
4
4
|
exports.VoicePronunciationEncoding = {
|
|
5
5
|
ALIAS: "alias",
|
|
6
6
|
IPA: "ipa",
|
|
@@ -23,10 +23,6 @@ exports.VoiceControlAction = {
|
|
|
23
23
|
END_OF_TURN: "end_of_turn",
|
|
24
24
|
KEEPALIVE: "keepalive",
|
|
25
25
|
};
|
|
26
|
-
exports.VoiceCallBackendTransport = {
|
|
27
|
-
SQS: "sqs",
|
|
28
|
-
WEBHOOK: "webhook",
|
|
29
|
-
};
|
|
30
26
|
exports.VoiceCallEndReason = {
|
|
31
27
|
COMPLETE: "complete",
|
|
32
28
|
ERROR: "error",
|
|
@@ -55,3 +51,82 @@ exports.VoiceCommandType = {
|
|
|
55
51
|
STOP: "stop",
|
|
56
52
|
TRANSFER: "transfer",
|
|
57
53
|
};
|
|
54
|
+
exports.MediaAudioBeginFrameType = {
|
|
55
|
+
AUDIO_BEGIN: "audio.begin",
|
|
56
|
+
};
|
|
57
|
+
exports.MediaAudioEndFrameType = {
|
|
58
|
+
AUDIO_END: "audio.end",
|
|
59
|
+
};
|
|
60
|
+
exports.MediaDuckFrameType = {
|
|
61
|
+
DUCK: "duck",
|
|
62
|
+
};
|
|
63
|
+
exports.MediaErrorFrameType = {
|
|
64
|
+
ERROR: "error",
|
|
65
|
+
};
|
|
66
|
+
exports.MediaFinishedFrameType = {
|
|
67
|
+
FINISHED: "finished",
|
|
68
|
+
};
|
|
69
|
+
exports.MediaHangupFrameType = {
|
|
70
|
+
HANGUP: "hangup",
|
|
71
|
+
};
|
|
72
|
+
exports.MediaLanguageFrameType = {
|
|
73
|
+
LANGUAGE: "language",
|
|
74
|
+
};
|
|
75
|
+
exports.MediaRestoreFrameType = {
|
|
76
|
+
RESTORE: "restore",
|
|
77
|
+
};
|
|
78
|
+
exports.MediaStartedFrameType = {
|
|
79
|
+
STARTED: "started",
|
|
80
|
+
};
|
|
81
|
+
exports.MediaStopFrameType = {
|
|
82
|
+
STOP: "stop",
|
|
83
|
+
};
|
|
84
|
+
exports.MediaParty = {
|
|
85
|
+
CALLEE: "callee",
|
|
86
|
+
CALLER: "caller",
|
|
87
|
+
};
|
|
88
|
+
exports.MediaTranscriptionFrameType = {
|
|
89
|
+
TRANSCRIPTION: "transcription",
|
|
90
|
+
};
|
|
91
|
+
exports.MediaTransferFrameType = {
|
|
92
|
+
TRANSFER: "transfer",
|
|
93
|
+
};
|
|
94
|
+
exports.MediaDtmfFrameType = {
|
|
95
|
+
DTMF: "dtmf",
|
|
96
|
+
};
|
|
97
|
+
exports.MediaFinishReason = {
|
|
98
|
+
AGENT_HANGUP: "agent-hangup",
|
|
99
|
+
AGENT_TRANSFER: "agent-transfer",
|
|
100
|
+
CALLEE_HANGUP: "callee-hangup",
|
|
101
|
+
CALLER_HANGUP: "caller-hangup",
|
|
102
|
+
TIMEOUT: "timeout",
|
|
103
|
+
};
|
|
104
|
+
exports.MediaFinishFrameType = {
|
|
105
|
+
FINISH: "finish",
|
|
106
|
+
};
|
|
107
|
+
exports.MediaPlaybackStopCause = {
|
|
108
|
+
CALLER: "caller",
|
|
109
|
+
CLOUD: "cloud",
|
|
110
|
+
DROP: "drop",
|
|
111
|
+
};
|
|
112
|
+
exports.MediaPlaybackEvent = {
|
|
113
|
+
FINISHED: "finished",
|
|
114
|
+
STARTED: "started",
|
|
115
|
+
STOPPED: "stopped",
|
|
116
|
+
};
|
|
117
|
+
exports.MediaPlaybackFrameType = {
|
|
118
|
+
PLAYBACK: "playback",
|
|
119
|
+
};
|
|
120
|
+
exports.MediaAudioEncoding = {
|
|
121
|
+
PCM_S16LE: "pcm_s16le",
|
|
122
|
+
};
|
|
123
|
+
exports.MediaRunPurpose = {
|
|
124
|
+
AGENT: "agent",
|
|
125
|
+
TRANSCRIPTION: "transcription",
|
|
126
|
+
};
|
|
127
|
+
exports.MediaStartFrameType = {
|
|
128
|
+
START: "start",
|
|
129
|
+
};
|
|
130
|
+
exports.MediaVadFrameType = {
|
|
131
|
+
VAD: "vad",
|
|
132
|
+
};
|