@wildix/wim-voicebots-client 1.0.22 → 1.0.23
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 +4 -0
- package/dist-cjs/VoiceBotsClient.js +4 -5
- package/dist-cjs/commands/SendPlayCommand.js +21 -0
- package/dist-cjs/commands/SendStopCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +28 -22
- package/dist-cjs/protocols/Aws_restJson1.js +104 -85
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/VoiceBots.js +4 -0
- package/dist-es/VoiceBotsClient.js +4 -5
- package/dist-es/commands/SendPlayCommand.js +17 -0
- package/dist-es/commands/SendStopCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +16 -10
- package/dist-es/protocols/Aws_restJson1.js +68 -53
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/VoiceBots.d.ts +14 -0
- package/dist-types/VoiceBotsClient.d.ts +5 -3
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/DeleteVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +74 -23
- package/dist-types/commands/GetTraceCommand.d.ts +33 -8
- package/dist-types/commands/GetVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/ListTracesCommand.d.ts +12 -0
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +12 -0
- package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +12 -0
- package/dist-types/commands/SendHangupCommand.d.ts +12 -0
- package/dist-types/commands/SendPlayCommand.d.ts +79 -0
- package/dist-types/commands/SendSayCommand.d.ts +16 -0
- package/dist-types/commands/SendStopCommand.d.ts +76 -0
- package/dist-types/commands/SendTransferCommand.d.ts +12 -0
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +12 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +211 -109
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +3 -2
- package/dist-types/runtimeConfig.native.d.ts +3 -2
- package/package.json +37 -33
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
|
|
2
|
+
import { SendStopInput, SendStopOutput } 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 SendStopCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface SendStopCommandInput extends SendStopInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link SendStopCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface SendStopCommandOutput extends SendStopOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const SendStopCommand_base: {
|
|
25
|
+
new (input: SendStopCommandInput): import("@smithy/smithy-client").CommandImpl<SendStopCommandInput, SendStopCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: SendStopCommandInput): import("@smithy/smithy-client").CommandImpl<SendStopCommandInput, SendStopCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Stop playing and ongoing audio from the voice bot.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { VoiceBotsClient, SendStopCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
|
|
35
|
+
* // const { VoiceBotsClient, SendStopCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
|
|
36
|
+
* const client = new VoiceBotsClient(config);
|
|
37
|
+
* const input = { // SendStopInput
|
|
38
|
+
* sessionId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new SendStopCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param SendStopCommandInput - {@link SendStopCommandInput}
|
|
47
|
+
* @returns {@link SendStopCommandOutput}
|
|
48
|
+
* @see {@link SendStopCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link SendStopCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link VoiceSessionNotFoundException} (client fault)
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ValidationException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link VoiceBotsServiceException}
|
|
59
|
+
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
60
|
+
*
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export declare class SendStopCommand extends SendStopCommand_base {
|
|
65
|
+
/** @internal type navigation helper, not in runtime. */
|
|
66
|
+
protected static __types: {
|
|
67
|
+
api: {
|
|
68
|
+
input: SendStopInput;
|
|
69
|
+
output: {};
|
|
70
|
+
};
|
|
71
|
+
sdk: {
|
|
72
|
+
input: SendStopCommandInput;
|
|
73
|
+
output: SendStopCommandOutput;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -60,7 +60,19 @@ declare const SendTransferCommand_base: {
|
|
|
60
60
|
* @throws {@link VoiceBotsServiceException}
|
|
61
61
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
62
62
|
*
|
|
63
|
+
*
|
|
63
64
|
* @public
|
|
64
65
|
*/
|
|
65
66
|
export declare class SendTransferCommand extends SendTransferCommand_base {
|
|
67
|
+
/** @internal type navigation helper, not in runtime. */
|
|
68
|
+
protected static __types: {
|
|
69
|
+
api: {
|
|
70
|
+
input: SendTransferInput;
|
|
71
|
+
output: {};
|
|
72
|
+
};
|
|
73
|
+
sdk: {
|
|
74
|
+
input: SendTransferCommandInput;
|
|
75
|
+
output: SendTransferCommandOutput;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
66
78
|
}
|
|
@@ -254,6 +254,18 @@ declare const UpdateVoiceBotCommand_base: {
|
|
|
254
254
|
* @throws {@link VoiceBotsServiceException}
|
|
255
255
|
* <p>Base exception class for all service exceptions from VoiceBots service.</p>
|
|
256
256
|
*
|
|
257
|
+
*
|
|
257
258
|
*/
|
|
258
259
|
export declare class UpdateVoiceBotCommand extends UpdateVoiceBotCommand_base {
|
|
260
|
+
/** @internal type navigation helper, not in runtime. */
|
|
261
|
+
protected static __types: {
|
|
262
|
+
api: {
|
|
263
|
+
input: UpdateVoiceBotInput;
|
|
264
|
+
output: UpdateVoiceBotOutput;
|
|
265
|
+
};
|
|
266
|
+
sdk: {
|
|
267
|
+
input: UpdateVoiceBotCommandInput;
|
|
268
|
+
output: UpdateVoiceBotCommandOutput;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
259
271
|
}
|
|
@@ -7,6 +7,8 @@ export * from "./ListTracesCommand";
|
|
|
7
7
|
export * from "./ListVoiceBotsCommand";
|
|
8
8
|
export * from "./ListVoiceBotsNamesCommand";
|
|
9
9
|
export * from "./SendHangupCommand";
|
|
10
|
+
export * from "./SendPlayCommand";
|
|
10
11
|
export * from "./SendSayCommand";
|
|
12
|
+
export * from "./SendStopCommand";
|
|
11
13
|
export * from "./SendTransferCommand";
|
|
12
14
|
export * from "./UpdateVoiceBotCommand";
|