@wildix/wim-voicebots-client 1.0.1
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/VoiceBots.js +31 -0
- package/dist-cjs/VoiceBotsClient.js +42 -0
- package/dist-cjs/commands/CreateVoiceBotCommand.js +21 -0
- package/dist-cjs/commands/DeleteVoiceBotCommand.js +21 -0
- package/dist-cjs/commands/DescribeEventCommand.js +21 -0
- package/dist-cjs/commands/GetVoiceBotCommand.js +21 -0
- package/dist-cjs/commands/ListVoiceBotsCommand.js +21 -0
- package/dist-cjs/commands/ListVoiceBotsNamesCommand.js +21 -0
- package/dist-cjs/commands/SendHangupCommand.js +21 -0
- package/dist-cjs/commands/SendSayCommand.js +21 -0
- package/dist-cjs/commands/SendTransferCommand.js +21 -0
- package/dist-cjs/commands/UpdateVoiceBotCommand.js +21 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/VoiceBotsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +78 -0
- package/dist-cjs/protocols/Aws_restJson1.js +539 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +36 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/VoiceBots.js +27 -0
- package/dist-es/VoiceBotsClient.js +38 -0
- package/dist-es/commands/CreateVoiceBotCommand.js +17 -0
- package/dist-es/commands/DeleteVoiceBotCommand.js +17 -0
- package/dist-es/commands/DescribeEventCommand.js +17 -0
- package/dist-es/commands/GetVoiceBotCommand.js +17 -0
- package/dist-es/commands/ListVoiceBotsCommand.js +17 -0
- package/dist-es/commands/ListVoiceBotsNamesCommand.js +17 -0
- package/dist-es/commands/SendHangupCommand.js +17 -0
- package/dist-es/commands/SendSayCommand.js +17 -0
- package/dist-es/commands/SendTransferCommand.js +17 -0
- package/dist-es/commands/UpdateVoiceBotCommand.js +17 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/VoiceBotsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +71 -0
- package/dist-es/protocols/Aws_restJson1.js +516 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +31 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/VoiceBots.d.ts +82 -0
- package/dist-types/VoiceBotsClient.d.ts +153 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +120 -0
- package/dist-types/commands/DeleteVoiceBotCommand.d.ts +63 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +141 -0
- package/dist-types/commands/GetVoiceBotCommand.d.ts +97 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +96 -0
- package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +69 -0
- package/dist-types/commands/SendHangupCommand.d.ts +65 -0
- package/dist-types/commands/SendSayCommand.d.ts +67 -0
- package/dist-types/commands/SendTransferCommand.d.ts +66 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +123 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/models/VoiceBotsServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +492 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/runtimeConfig.browser.d.ts +29 -0
- package/dist-types/runtimeConfig.d.ts +29 -0
- package/dist-types/runtimeConfig.native.d.ts +28 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +79 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceBots = void 0;
|
|
4
|
+
const VoiceBotsClient_1 = require("./VoiceBotsClient");
|
|
5
|
+
const CreateVoiceBotCommand_1 = require("./commands/CreateVoiceBotCommand");
|
|
6
|
+
const DeleteVoiceBotCommand_1 = require("./commands/DeleteVoiceBotCommand");
|
|
7
|
+
const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
|
|
8
|
+
const GetVoiceBotCommand_1 = require("./commands/GetVoiceBotCommand");
|
|
9
|
+
const ListVoiceBotsCommand_1 = require("./commands/ListVoiceBotsCommand");
|
|
10
|
+
const ListVoiceBotsNamesCommand_1 = require("./commands/ListVoiceBotsNamesCommand");
|
|
11
|
+
const SendHangupCommand_1 = require("./commands/SendHangupCommand");
|
|
12
|
+
const SendSayCommand_1 = require("./commands/SendSayCommand");
|
|
13
|
+
const SendTransferCommand_1 = require("./commands/SendTransferCommand");
|
|
14
|
+
const UpdateVoiceBotCommand_1 = require("./commands/UpdateVoiceBotCommand");
|
|
15
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
16
|
+
const commands = {
|
|
17
|
+
CreateVoiceBotCommand: CreateVoiceBotCommand_1.CreateVoiceBotCommand,
|
|
18
|
+
DeleteVoiceBotCommand: DeleteVoiceBotCommand_1.DeleteVoiceBotCommand,
|
|
19
|
+
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
20
|
+
GetVoiceBotCommand: GetVoiceBotCommand_1.GetVoiceBotCommand,
|
|
21
|
+
ListVoiceBotsCommand: ListVoiceBotsCommand_1.ListVoiceBotsCommand,
|
|
22
|
+
ListVoiceBotsNamesCommand: ListVoiceBotsNamesCommand_1.ListVoiceBotsNamesCommand,
|
|
23
|
+
SendHangupCommand: SendHangupCommand_1.SendHangupCommand,
|
|
24
|
+
SendSayCommand: SendSayCommand_1.SendSayCommand,
|
|
25
|
+
SendTransferCommand: SendTransferCommand_1.SendTransferCommand,
|
|
26
|
+
UpdateVoiceBotCommand: UpdateVoiceBotCommand_1.UpdateVoiceBotCommand,
|
|
27
|
+
};
|
|
28
|
+
class VoiceBots extends VoiceBotsClient_1.VoiceBotsClient {
|
|
29
|
+
}
|
|
30
|
+
exports.VoiceBots = VoiceBots;
|
|
31
|
+
(0, smithy_client_1.createAggregatedClient)(commands, VoiceBots);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceBotsClient = exports.__Client = void 0;
|
|
4
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
|
+
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
6
|
+
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
7
|
+
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
8
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
9
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
10
|
+
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
11
|
+
const smithy_utils_1 = require("@wildix/smithy-utils");
|
|
12
|
+
class VoiceBotsClient extends smithy_client_1.Client {
|
|
13
|
+
constructor(...[configuration]) {
|
|
14
|
+
let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
15
|
+
let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
|
|
16
|
+
let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
|
|
17
|
+
let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
|
|
18
|
+
const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `wim-${configuration.env}.wildix.com` : 'wim.wildix.com';
|
|
19
|
+
const endpoint = () => {
|
|
20
|
+
return {
|
|
21
|
+
hostname,
|
|
22
|
+
protocol: "https",
|
|
23
|
+
port: '443',
|
|
24
|
+
path: ''
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
const config = {
|
|
28
|
+
..._config_3,
|
|
29
|
+
endpoint,
|
|
30
|
+
};
|
|
31
|
+
super(config);
|
|
32
|
+
this.config = config;
|
|
33
|
+
this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
34
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
35
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
36
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
37
|
+
}
|
|
38
|
+
destroy() {
|
|
39
|
+
super.destroy();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.VoiceBotsClient = VoiceBotsClient;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVoiceBotCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CreateVoiceBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "CreateVoiceBot", {})
|
|
15
|
+
.n("VoiceBotsClient", "CreateVoiceBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateVoiceBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateVoiceBotCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateVoiceBotCommand = CreateVoiceBotCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteVoiceBotCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class DeleteVoiceBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "DeleteVoiceBot", {})
|
|
15
|
+
.n("VoiceBotsClient", "DeleteVoiceBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_DeleteVoiceBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DeleteVoiceBotCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.DeleteVoiceBotCommand = DeleteVoiceBotCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeEventCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class DescribeEventCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "DescribeEvent", {})
|
|
15
|
+
.n("VoiceBotsClient", "DescribeEventCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_DescribeEventCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_DescribeEventCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.DescribeEventCommand = DescribeEventCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetVoiceBotCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetVoiceBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "GetVoiceBot", {})
|
|
15
|
+
.n("VoiceBotsClient", "GetVoiceBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetVoiceBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetVoiceBotCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetVoiceBotCommand = GetVoiceBotCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListVoiceBotsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListVoiceBotsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "ListVoiceBots", {})
|
|
15
|
+
.n("VoiceBotsClient", "ListVoiceBotsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListVoiceBotsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListVoiceBotsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListVoiceBotsCommand = ListVoiceBotsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListVoiceBotsNamesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListVoiceBotsNamesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "ListVoiceBotsNames", {})
|
|
15
|
+
.n("VoiceBotsClient", "ListVoiceBotsNamesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListVoiceBotsNamesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListVoiceBotsNamesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListVoiceBotsNamesCommand = ListVoiceBotsNamesCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendHangupCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class SendHangupCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "SendHangup", {})
|
|
15
|
+
.n("VoiceBotsClient", "SendHangupCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SendHangupCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SendHangupCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.SendHangupCommand = SendHangupCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendSayCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class SendSayCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "SendSay", {})
|
|
15
|
+
.n("VoiceBotsClient", "SendSayCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SendSayCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SendSayCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.SendSayCommand = SendSayCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendTransferCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class SendTransferCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "SendTransfer", {})
|
|
15
|
+
.n("VoiceBotsClient", "SendTransferCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SendTransferCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SendTransferCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.SendTransferCommand = SendTransferCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVoiceBotCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class UpdateVoiceBotCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("VoiceBots", "UpdateVoiceBot", {})
|
|
15
|
+
.n("VoiceBotsClient", "UpdateVoiceBotCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_UpdateVoiceBotCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_UpdateVoiceBotCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateVoiceBotCommand = UpdateVoiceBotCommand;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateVoiceBotCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DeleteVoiceBotCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./GetVoiceBotCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListVoiceBotsCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListVoiceBotsNamesCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./SendHangupCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./SendSayCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./SendTransferCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./UpdateVoiceBotCommand"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceBotsServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./VoiceBotsClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./VoiceBots"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var VoiceBotsServiceException_1 = require("./models/VoiceBotsServiceException");
|
|
10
|
+
Object.defineProperty(exports, "VoiceBotsServiceException", { enumerable: true, get: function () { return VoiceBotsServiceException_1.VoiceBotsServiceException; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceBotsServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class VoiceBotsServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, VoiceBotsServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.VoiceBotsServiceException = VoiceBotsServiceException;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoiceSessionNotFoundException = exports.VoiceBotNotFoundException = exports.VoiceBotEventType = exports.BotEndpoint = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
|
+
const VoiceBotsServiceException_1 = require("./VoiceBotsServiceException");
|
|
5
|
+
class ValidationException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "ValidationException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts
|
|
11
|
+
});
|
|
12
|
+
this.name = "ValidationException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ValidationException = ValidationException;
|
|
18
|
+
class ForbiddenException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
super({
|
|
21
|
+
name: "ForbiddenException",
|
|
22
|
+
$fault: "client",
|
|
23
|
+
...opts
|
|
24
|
+
});
|
|
25
|
+
this.name = "ForbiddenException";
|
|
26
|
+
this.$fault = "client";
|
|
27
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ForbiddenException = ForbiddenException;
|
|
31
|
+
var BotEndpoint;
|
|
32
|
+
(function (BotEndpoint) {
|
|
33
|
+
BotEndpoint.visit = (value, visitor) => {
|
|
34
|
+
if (value.dialogflowCx !== undefined)
|
|
35
|
+
return visitor.dialogflowCx(value.dialogflowCx);
|
|
36
|
+
if (value.openAiAssistant !== undefined)
|
|
37
|
+
return visitor.openAiAssistant(value.openAiAssistant);
|
|
38
|
+
if (value.webhook !== undefined)
|
|
39
|
+
return visitor.webhook(value.webhook);
|
|
40
|
+
if (value.sqs !== undefined)
|
|
41
|
+
return visitor.sqs(value.sqs);
|
|
42
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
43
|
+
};
|
|
44
|
+
})(BotEndpoint = exports.BotEndpoint || (exports.BotEndpoint = {}));
|
|
45
|
+
exports.VoiceBotEventType = {
|
|
46
|
+
ENDED: "ended",
|
|
47
|
+
INTERRUPTION: "interruption",
|
|
48
|
+
REPLY: "reply",
|
|
49
|
+
TRANSCRIPTION: "transcription",
|
|
50
|
+
};
|
|
51
|
+
class VoiceBotNotFoundException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
52
|
+
constructor(opts) {
|
|
53
|
+
super({
|
|
54
|
+
name: "VoiceBotNotFoundException",
|
|
55
|
+
$fault: "client",
|
|
56
|
+
...opts
|
|
57
|
+
});
|
|
58
|
+
this.name = "VoiceBotNotFoundException";
|
|
59
|
+
this.$fault = "client";
|
|
60
|
+
Object.setPrototypeOf(this, VoiceBotNotFoundException.prototype);
|
|
61
|
+
this.type = opts.type;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.VoiceBotNotFoundException = VoiceBotNotFoundException;
|
|
65
|
+
class VoiceSessionNotFoundException extends VoiceBotsServiceException_1.VoiceBotsServiceException {
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "VoiceSessionNotFoundException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts
|
|
71
|
+
});
|
|
72
|
+
this.name = "VoiceSessionNotFoundException";
|
|
73
|
+
this.$fault = "client";
|
|
74
|
+
Object.setPrototypeOf(this, VoiceSessionNotFoundException.prototype);
|
|
75
|
+
this.type = opts.type;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.VoiceSessionNotFoundException = VoiceSessionNotFoundException;
|