@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,27 @@
|
|
|
1
|
+
import { VoiceBotsClient, } from "./VoiceBotsClient";
|
|
2
|
+
import { CreateVoiceBotCommand, } from "./commands/CreateVoiceBotCommand";
|
|
3
|
+
import { DeleteVoiceBotCommand, } from "./commands/DeleteVoiceBotCommand";
|
|
4
|
+
import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
|
|
5
|
+
import { GetVoiceBotCommand, } from "./commands/GetVoiceBotCommand";
|
|
6
|
+
import { ListVoiceBotsCommand, } from "./commands/ListVoiceBotsCommand";
|
|
7
|
+
import { ListVoiceBotsNamesCommand, } from "./commands/ListVoiceBotsNamesCommand";
|
|
8
|
+
import { SendHangupCommand, } from "./commands/SendHangupCommand";
|
|
9
|
+
import { SendSayCommand, } from "./commands/SendSayCommand";
|
|
10
|
+
import { SendTransferCommand, } from "./commands/SendTransferCommand";
|
|
11
|
+
import { UpdateVoiceBotCommand, } from "./commands/UpdateVoiceBotCommand";
|
|
12
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
13
|
+
const commands = {
|
|
14
|
+
CreateVoiceBotCommand,
|
|
15
|
+
DeleteVoiceBotCommand,
|
|
16
|
+
DescribeEventCommand,
|
|
17
|
+
GetVoiceBotCommand,
|
|
18
|
+
ListVoiceBotsCommand,
|
|
19
|
+
ListVoiceBotsNamesCommand,
|
|
20
|
+
SendHangupCommand,
|
|
21
|
+
SendSayCommand,
|
|
22
|
+
SendTransferCommand,
|
|
23
|
+
UpdateVoiceBotCommand,
|
|
24
|
+
};
|
|
25
|
+
export class VoiceBots extends VoiceBotsClient {
|
|
26
|
+
}
|
|
27
|
+
createAggregatedClient(commands, VoiceBots);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
|
+
import { resolveRuntimeExtensions, } from "./runtimeExtensions";
|
|
3
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
4
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
5
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
6
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
7
|
+
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
8
|
+
export { __Client };
|
|
9
|
+
export class VoiceBotsClient extends __Client {
|
|
10
|
+
constructor(...[configuration]) {
|
|
11
|
+
let _config_0 = __getRuntimeConfig(configuration || {});
|
|
12
|
+
let _config_1 = resolveUserAgentConfig(_config_0);
|
|
13
|
+
let _config_2 = resolveRetryConfig(_config_1);
|
|
14
|
+
let _config_3 = resolveRuntimeExtensions(_config_2, configuration?.extensions || []);
|
|
15
|
+
const hostname = ['stable', 'stage'].includes(configuration.env || '') ? `wim-${configuration.env}.wildix.com` : 'wim.wildix.com';
|
|
16
|
+
const endpoint = () => {
|
|
17
|
+
return {
|
|
18
|
+
hostname,
|
|
19
|
+
protocol: "https",
|
|
20
|
+
port: '443',
|
|
21
|
+
path: ''
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const config = {
|
|
25
|
+
..._config_3,
|
|
26
|
+
endpoint,
|
|
27
|
+
};
|
|
28
|
+
super(config);
|
|
29
|
+
this.config = config;
|
|
30
|
+
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
34
|
+
}
|
|
35
|
+
destroy() {
|
|
36
|
+
super.destroy();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateVoiceBotCommand, se_CreateVoiceBotCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class CreateVoiceBotCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "CreateVoiceBot", {})
|
|
12
|
+
.n("VoiceBotsClient", "CreateVoiceBotCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateVoiceBotCommand)
|
|
15
|
+
.de(de_CreateVoiceBotCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DeleteVoiceBotCommand, se_DeleteVoiceBotCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class DeleteVoiceBotCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "DeleteVoiceBot", {})
|
|
12
|
+
.n("VoiceBotsClient", "DeleteVoiceBotCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DeleteVoiceBotCommand)
|
|
15
|
+
.de(de_DeleteVoiceBotCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_DescribeEventCommand, se_DescribeEventCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class DescribeEventCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "DescribeEvent", {})
|
|
12
|
+
.n("VoiceBotsClient", "DescribeEventCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_DescribeEventCommand)
|
|
15
|
+
.de(de_DescribeEventCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetVoiceBotCommand, se_GetVoiceBotCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GetVoiceBotCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "GetVoiceBot", {})
|
|
12
|
+
.n("VoiceBotsClient", "GetVoiceBotCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetVoiceBotCommand)
|
|
15
|
+
.de(de_GetVoiceBotCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListVoiceBotsCommand, se_ListVoiceBotsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListVoiceBotsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "ListVoiceBots", {})
|
|
12
|
+
.n("VoiceBotsClient", "ListVoiceBotsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListVoiceBotsCommand)
|
|
15
|
+
.de(de_ListVoiceBotsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListVoiceBotsNamesCommand, se_ListVoiceBotsNamesCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListVoiceBotsNamesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "ListVoiceBotsNames", {})
|
|
12
|
+
.n("VoiceBotsClient", "ListVoiceBotsNamesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListVoiceBotsNamesCommand)
|
|
15
|
+
.de(de_ListVoiceBotsNamesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SendHangupCommand, se_SendHangupCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SendHangupCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "SendHangup", {})
|
|
12
|
+
.n("VoiceBotsClient", "SendHangupCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SendHangupCommand)
|
|
15
|
+
.de(de_SendHangupCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SendSayCommand, se_SendSayCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SendSayCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "SendSay", {})
|
|
12
|
+
.n("VoiceBotsClient", "SendSayCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SendSayCommand)
|
|
15
|
+
.de(de_SendSayCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SendTransferCommand, se_SendTransferCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SendTransferCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "SendTransfer", {})
|
|
12
|
+
.n("VoiceBotsClient", "SendTransferCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SendTransferCommand)
|
|
15
|
+
.de(de_SendTransferCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UpdateVoiceBotCommand, se_UpdateVoiceBotCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class UpdateVoiceBotCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("VoiceBots", "UpdateVoiceBot", {})
|
|
12
|
+
.n("VoiceBotsClient", "UpdateVoiceBotCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UpdateVoiceBotCommand)
|
|
15
|
+
.de(de_UpdateVoiceBotCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./CreateVoiceBotCommand";
|
|
2
|
+
export * from "./DeleteVoiceBotCommand";
|
|
3
|
+
export * from "./DescribeEventCommand";
|
|
4
|
+
export * from "./GetVoiceBotCommand";
|
|
5
|
+
export * from "./ListVoiceBotsCommand";
|
|
6
|
+
export * from "./ListVoiceBotsNamesCommand";
|
|
7
|
+
export * from "./SendHangupCommand";
|
|
8
|
+
export * from "./SendSayCommand";
|
|
9
|
+
export * from "./SendTransferCommand";
|
|
10
|
+
export * from "./UpdateVoiceBotCommand";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class VoiceBotsServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, VoiceBotsServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { VoiceBotsServiceException as __BaseException } from "./VoiceBotsServiceException";
|
|
2
|
+
export class ValidationException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "ValidationException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts
|
|
8
|
+
});
|
|
9
|
+
this.name = "ValidationException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ForbiddenException extends __BaseException {
|
|
15
|
+
constructor(opts) {
|
|
16
|
+
super({
|
|
17
|
+
name: "ForbiddenException",
|
|
18
|
+
$fault: "client",
|
|
19
|
+
...opts
|
|
20
|
+
});
|
|
21
|
+
this.name = "ForbiddenException";
|
|
22
|
+
this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export var BotEndpoint;
|
|
27
|
+
(function (BotEndpoint) {
|
|
28
|
+
BotEndpoint.visit = (value, visitor) => {
|
|
29
|
+
if (value.dialogflowCx !== undefined)
|
|
30
|
+
return visitor.dialogflowCx(value.dialogflowCx);
|
|
31
|
+
if (value.openAiAssistant !== undefined)
|
|
32
|
+
return visitor.openAiAssistant(value.openAiAssistant);
|
|
33
|
+
if (value.webhook !== undefined)
|
|
34
|
+
return visitor.webhook(value.webhook);
|
|
35
|
+
if (value.sqs !== undefined)
|
|
36
|
+
return visitor.sqs(value.sqs);
|
|
37
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
38
|
+
};
|
|
39
|
+
})(BotEndpoint || (BotEndpoint = {}));
|
|
40
|
+
export const VoiceBotEventType = {
|
|
41
|
+
ENDED: "ended",
|
|
42
|
+
INTERRUPTION: "interruption",
|
|
43
|
+
REPLY: "reply",
|
|
44
|
+
TRANSCRIPTION: "transcription",
|
|
45
|
+
};
|
|
46
|
+
export class VoiceBotNotFoundException extends __BaseException {
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "VoiceBotNotFoundException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts
|
|
52
|
+
});
|
|
53
|
+
this.name = "VoiceBotNotFoundException";
|
|
54
|
+
this.$fault = "client";
|
|
55
|
+
Object.setPrototypeOf(this, VoiceBotNotFoundException.prototype);
|
|
56
|
+
this.type = opts.type;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export class VoiceSessionNotFoundException extends __BaseException {
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "VoiceSessionNotFoundException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts
|
|
65
|
+
});
|
|
66
|
+
this.name = "VoiceSessionNotFoundException";
|
|
67
|
+
this.$fault = "client";
|
|
68
|
+
Object.setPrototypeOf(this, VoiceSessionNotFoundException.prototype);
|
|
69
|
+
this.type = opts.type;
|
|
70
|
+
}
|
|
71
|
+
}
|