@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,96 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { ListVoiceBotsInput, ListVoiceBotsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListVoiceBotsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListVoiceBotsCommandInput extends ListVoiceBotsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListVoiceBotsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListVoiceBotsCommandOutput extends ListVoiceBotsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListVoiceBotsCommand_base: {
|
|
25
|
+
new (input: ListVoiceBotsCommandInput): import("@smithy/smithy-client").CommandImpl<ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListVoiceBotsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { VoiceBotsClient, ListVoiceBotsCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
36
|
+
* // const { VoiceBotsClient, ListVoiceBotsCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
37
|
+
* const client = new VoiceBotsClient(config);
|
|
38
|
+
* const input = { // ListVoiceBotsInput
|
|
39
|
+
* company: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListVoiceBotsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListVoiceBotsOutput
|
|
44
|
+
* // bots: [ // VoiceBotsList // required
|
|
45
|
+
* // { // VoiceBot
|
|
46
|
+
* // name: "STRING_VALUE", // required
|
|
47
|
+
* // languageCode: "STRING_VALUE", // required
|
|
48
|
+
* // voiceId: "STRING_VALUE", // required
|
|
49
|
+
* // maximumDuration: Number("int"),
|
|
50
|
+
* // silenceTimeout: Number("int"),
|
|
51
|
+
* // endpoint: { // BotEndpoint Union: only one key present
|
|
52
|
+
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
53
|
+
* // credentials: "DOCUMENT_VALUE", // required
|
|
54
|
+
* // agent: "STRING_VALUE", // required
|
|
55
|
+
* // location: "STRING_VALUE", // required
|
|
56
|
+
* // language: "STRING_VALUE", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
59
|
+
* // key: "STRING_VALUE", // required
|
|
60
|
+
* // assistantId: "STRING_VALUE", // required
|
|
61
|
+
* // },
|
|
62
|
+
* // webhook: { // BotWebhookEndpoint
|
|
63
|
+
* // url: "STRING_VALUE", // required
|
|
64
|
+
* // secret: "STRING_VALUE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // sqs: { // BotSqsEndpoint
|
|
67
|
+
* // url: "STRING_VALUE", // required
|
|
68
|
+
* // key: "STRING_VALUE", // required
|
|
69
|
+
* // secret: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // id: "STRING_VALUE", // required
|
|
73
|
+
* // createdAt: "STRING_VALUE", // required
|
|
74
|
+
* // updatedAt: "STRING_VALUE",
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // };
|
|
78
|
+
*
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @param ListVoiceBotsCommandInput - {@link ListVoiceBotsCommandInput}
|
|
82
|
+
* @returns {@link ListVoiceBotsCommandOutput}
|
|
83
|
+
* @see {@link ListVoiceBotsCommandInput} for command's `input` shape.
|
|
84
|
+
* @see {@link ListVoiceBotsCommandOutput} for command's `response` shape.
|
|
85
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ValidationException} (client fault)
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link VoiceBotsServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
export declare class ListVoiceBotsCommand extends ListVoiceBotsCommand_base {
|
|
96
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { ListVoiceBotsNamesInput, ListVoiceBotsNamesOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListVoiceBotsNamesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListVoiceBotsNamesCommandInput extends ListVoiceBotsNamesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListVoiceBotsNamesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListVoiceBotsNamesCommandOutput extends ListVoiceBotsNamesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListVoiceBotsNamesCommand_base: {
|
|
25
|
+
new (input: ListVoiceBotsNamesCommandInput): import("@smithy/smithy-client").CommandImpl<ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListVoiceBotsNamesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { VoiceBotsClient, ListVoiceBotsNamesCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
36
|
+
* // const { VoiceBotsClient, ListVoiceBotsNamesCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
37
|
+
* const client = new VoiceBotsClient(config);
|
|
38
|
+
* const input = { // ListVoiceBotsNamesInput
|
|
39
|
+
* company: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListVoiceBotsNamesCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListVoiceBotsNamesOutput
|
|
44
|
+
* // bots: [ // VoiceBotsInfoList // required
|
|
45
|
+
* // { // VoiceBotInfo
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE", // required
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param ListVoiceBotsNamesCommandInput - {@link ListVoiceBotsNamesCommandInput}
|
|
55
|
+
* @returns {@link ListVoiceBotsNamesCommandOutput}
|
|
56
|
+
* @see {@link ListVoiceBotsNamesCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link ListVoiceBotsNamesCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ValidationException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link VoiceBotsServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class ListVoiceBotsNamesCommand extends ListVoiceBotsNamesCommand_base {
|
|
69
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { SendHangupInput, SendHangupOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendHangupCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendHangupCommandInput extends SendHangupInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendHangupCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendHangupCommandOutput extends SendHangupOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendHangupCommand_base: {
|
|
25
|
+
new (input: SendHangupCommandInput): import("@smithy/smithy-client").CommandImpl<SendHangupCommandInput, SendHangupCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendHangupCommandInput): import("@smithy/smithy-client").CommandImpl<SendHangupCommandInput, SendHangupCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { VoiceBotsClient, SendHangupCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
36
|
+
* // const { VoiceBotsClient, SendHangupCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
37
|
+
* const client = new VoiceBotsClient(config);
|
|
38
|
+
* const input = { // SendHangupInput
|
|
39
|
+
* reason: "STRING_VALUE",
|
|
40
|
+
* sessionId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new SendHangupCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param SendHangupCommandInput - {@link SendHangupCommandInput}
|
|
49
|
+
* @returns {@link SendHangupCommandOutput}
|
|
50
|
+
* @see {@link SendHangupCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link SendHangupCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link VoiceSessionNotFoundException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ValidationException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link VoiceBotsServiceException}
|
|
61
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare class SendHangupCommand extends SendHangupCommand_base {
|
|
65
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { SendSayInput, SendSayOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendSayCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendSayCommandInput extends SendSayInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendSayCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendSayCommandOutput extends SendSayOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendSayCommand_base: {
|
|
25
|
+
new (input: SendSayCommandInput): import("@smithy/smithy-client").CommandImpl<SendSayCommandInput, SendSayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendSayCommandInput): import("@smithy/smithy-client").CommandImpl<SendSayCommandInput, SendSayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { VoiceBotsClient, SendSayCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
36
|
+
* // const { VoiceBotsClient, SendSayCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
37
|
+
* const client = new VoiceBotsClient(config);
|
|
38
|
+
* const input = { // SendSayInput
|
|
39
|
+
* text: "STRING_VALUE", // required
|
|
40
|
+
* replyId: "STRING_VALUE", // required
|
|
41
|
+
* interruptible: true || false,
|
|
42
|
+
* sessionId: "STRING_VALUE", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new SendSayCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // {};
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param SendSayCommandInput - {@link SendSayCommandInput}
|
|
51
|
+
* @returns {@link SendSayCommandOutput}
|
|
52
|
+
* @see {@link SendSayCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link SendSayCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link VoiceSessionNotFoundException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ValidationException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link VoiceBotsServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export declare class SendSayCommand extends SendSayCommand_base {
|
|
67
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { SendTransferInput, SendTransferOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link SendTransferCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendTransferCommandInput extends SendTransferInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendTransferCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendTransferCommandOutput extends SendTransferOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendTransferCommand_base: {
|
|
25
|
+
new (input: SendTransferCommandInput): import("@smithy/smithy-client").CommandImpl<SendTransferCommandInput, SendTransferCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendTransferCommandInput): import("@smithy/smithy-client").CommandImpl<SendTransferCommandInput, SendTransferCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { VoiceBotsClient, SendTransferCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
36
|
+
* // const { VoiceBotsClient, SendTransferCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
37
|
+
* const client = new VoiceBotsClient(config);
|
|
38
|
+
* const input = { // SendTransferInput
|
|
39
|
+
* context: "STRING_VALUE", // required
|
|
40
|
+
* extension: "STRING_VALUE", // required
|
|
41
|
+
* sessionId: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new SendTransferCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // {};
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param SendTransferCommandInput - {@link SendTransferCommandInput}
|
|
50
|
+
* @returns {@link SendTransferCommandOutput}
|
|
51
|
+
* @see {@link SendTransferCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link SendTransferCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link VoiceSessionNotFoundException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ValidationException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link VoiceBotsServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export declare class SendTransferCommand extends SendTransferCommand_base {
|
|
66
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { UpdateVoiceBotInput, UpdateVoiceBotOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateVoiceBotCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateVoiceBotCommandInput extends UpdateVoiceBotInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateVoiceBotCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateVoiceBotCommandOutput extends UpdateVoiceBotOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateVoiceBotCommand_base: {
|
|
25
|
+
new (input: UpdateVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { VoiceBotsClient, UpdateVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
36
|
+
* // const { VoiceBotsClient, UpdateVoiceBotCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
37
|
+
* const client = new VoiceBotsClient(config);
|
|
38
|
+
* const input = { // UpdateVoiceBotInput
|
|
39
|
+
* name: "STRING_VALUE", // required
|
|
40
|
+
* languageCode: "STRING_VALUE", // required
|
|
41
|
+
* voiceId: "STRING_VALUE", // required
|
|
42
|
+
* maximumDuration: Number("int"),
|
|
43
|
+
* silenceTimeout: Number("int"),
|
|
44
|
+
* endpoint: { // BotEndpoint Union: only one key present
|
|
45
|
+
* dialogflowCx: { // BotDialogflowCxEndpoint
|
|
46
|
+
* credentials: "DOCUMENT_VALUE", // required
|
|
47
|
+
* agent: "STRING_VALUE", // required
|
|
48
|
+
* location: "STRING_VALUE", // required
|
|
49
|
+
* language: "STRING_VALUE", // required
|
|
50
|
+
* },
|
|
51
|
+
* openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
52
|
+
* key: "STRING_VALUE", // required
|
|
53
|
+
* assistantId: "STRING_VALUE", // required
|
|
54
|
+
* },
|
|
55
|
+
* webhook: { // BotWebhookEndpoint
|
|
56
|
+
* url: "STRING_VALUE", // required
|
|
57
|
+
* secret: "STRING_VALUE", // required
|
|
58
|
+
* },
|
|
59
|
+
* sqs: { // BotSqsEndpoint
|
|
60
|
+
* url: "STRING_VALUE", // required
|
|
61
|
+
* key: "STRING_VALUE", // required
|
|
62
|
+
* secret: "STRING_VALUE", // required
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* company: "STRING_VALUE",
|
|
66
|
+
* botId: "STRING_VALUE", // required
|
|
67
|
+
* };
|
|
68
|
+
* const command = new UpdateVoiceBotCommand(input);
|
|
69
|
+
* const response = await client.send(command);
|
|
70
|
+
* // { // UpdateVoiceBotOutput
|
|
71
|
+
* // bot: { // VoiceBot
|
|
72
|
+
* // name: "STRING_VALUE", // required
|
|
73
|
+
* // languageCode: "STRING_VALUE", // required
|
|
74
|
+
* // voiceId: "STRING_VALUE", // required
|
|
75
|
+
* // maximumDuration: Number("int"),
|
|
76
|
+
* // silenceTimeout: Number("int"),
|
|
77
|
+
* // endpoint: { // BotEndpoint Union: only one key present
|
|
78
|
+
* // dialogflowCx: { // BotDialogflowCxEndpoint
|
|
79
|
+
* // credentials: "DOCUMENT_VALUE", // required
|
|
80
|
+
* // agent: "STRING_VALUE", // required
|
|
81
|
+
* // location: "STRING_VALUE", // required
|
|
82
|
+
* // language: "STRING_VALUE", // required
|
|
83
|
+
* // },
|
|
84
|
+
* // openAiAssistant: { // BotOpenAiAssistantEndpoint
|
|
85
|
+
* // key: "STRING_VALUE", // required
|
|
86
|
+
* // assistantId: "STRING_VALUE", // required
|
|
87
|
+
* // },
|
|
88
|
+
* // webhook: { // BotWebhookEndpoint
|
|
89
|
+
* // url: "STRING_VALUE", // required
|
|
90
|
+
* // secret: "STRING_VALUE", // required
|
|
91
|
+
* // },
|
|
92
|
+
* // sqs: { // BotSqsEndpoint
|
|
93
|
+
* // url: "STRING_VALUE", // required
|
|
94
|
+
* // key: "STRING_VALUE", // required
|
|
95
|
+
* // secret: "STRING_VALUE", // required
|
|
96
|
+
* // },
|
|
97
|
+
* // },
|
|
98
|
+
* // id: "STRING_VALUE", // required
|
|
99
|
+
* // createdAt: "STRING_VALUE", // required
|
|
100
|
+
* // updatedAt: "STRING_VALUE",
|
|
101
|
+
* // },
|
|
102
|
+
* // };
|
|
103
|
+
*
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @param UpdateVoiceBotCommandInput - {@link UpdateVoiceBotCommandInput}
|
|
107
|
+
* @returns {@link UpdateVoiceBotCommandOutput}
|
|
108
|
+
* @see {@link UpdateVoiceBotCommandInput} for command's `input` shape.
|
|
109
|
+
* @see {@link UpdateVoiceBotCommandOutput} for command's `response` shape.
|
|
110
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link VoiceBotNotFoundException} (client fault)
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ValidationException} (client fault)
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link VoiceBotsServiceException}
|
|
119
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
export declare class UpdateVoiceBotCommand extends UpdateVoiceBotCommand_base {
|
|
123
|
+
}
|
|
@@ -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,7 @@
|
|
|
1
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
2
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface VoiceBotsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./VoiceBotsClient";
|
|
2
|
+
export * from "./VoiceBots";
|
|
3
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
4
|
+
export type { VoiceBotsExtensionConfiguration } from "./extensionConfiguration";
|
|
5
|
+
export * from "./commands";
|
|
6
|
+
export * from "./models";
|
|
7
|
+
export { VoiceBotsServiceException } from "./models/VoiceBotsServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from VoiceBots service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class VoiceBotsServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|