@wildix/wim-voicebots-client 1.0.22 → 1.0.24

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.
Files changed (43) hide show
  1. package/dist-cjs/VoiceBots.js +4 -0
  2. package/dist-cjs/VoiceBotsClient.js +4 -5
  3. package/dist-cjs/commands/SendPlayCommand.js +21 -0
  4. package/dist-cjs/commands/SendStopCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +28 -22
  7. package/dist-cjs/protocols/Aws_restJson1.js +108 -85
  8. package/dist-cjs/runtimeConfig.browser.js +1 -1
  9. package/dist-cjs/runtimeConfig.js +4 -3
  10. package/dist-cjs/runtimeExtensions.js +2 -10
  11. package/dist-es/VoiceBots.js +4 -0
  12. package/dist-es/VoiceBotsClient.js +4 -5
  13. package/dist-es/commands/SendPlayCommand.js +17 -0
  14. package/dist-es/commands/SendStopCommand.js +17 -0
  15. package/dist-es/commands/index.js +2 -0
  16. package/dist-es/models/models_0.js +16 -10
  17. package/dist-es/protocols/Aws_restJson1.js +72 -53
  18. package/dist-es/runtimeConfig.browser.js +2 -2
  19. package/dist-es/runtimeConfig.js +5 -4
  20. package/dist-es/runtimeExtensions.js +2 -10
  21. package/dist-types/VoiceBots.d.ts +14 -0
  22. package/dist-types/VoiceBotsClient.d.ts +5 -3
  23. package/dist-types/commands/CreateVoiceBotCommand.d.ts +16 -0
  24. package/dist-types/commands/DeleteVoiceBotCommand.d.ts +12 -0
  25. package/dist-types/commands/DescribeEventCommand.d.ts +74 -23
  26. package/dist-types/commands/GetTraceCommand.d.ts +33 -8
  27. package/dist-types/commands/GetVoiceBotCommand.d.ts +14 -0
  28. package/dist-types/commands/ListTracesCommand.d.ts +12 -0
  29. package/dist-types/commands/ListVoiceBotsCommand.d.ts +14 -0
  30. package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +12 -0
  31. package/dist-types/commands/SendHangupCommand.d.ts +12 -0
  32. package/dist-types/commands/SendPlayCommand.d.ts +79 -0
  33. package/dist-types/commands/SendSayCommand.d.ts +16 -0
  34. package/dist-types/commands/SendStopCommand.d.ts +76 -0
  35. package/dist-types/commands/SendTransferCommand.d.ts +12 -0
  36. package/dist-types/commands/UpdateVoiceBotCommand.d.ts +16 -0
  37. package/dist-types/commands/index.d.ts +2 -0
  38. package/dist-types/models/models_0.d.ts +221 -109
  39. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  41. package/dist-types/runtimeConfig.d.ts +3 -2
  42. package/dist-types/runtimeConfig.native.d.ts +3 -2
  43. package/package.json +38 -34
@@ -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
  }
@@ -102,6 +102,8 @@ declare const UpdateVoiceBotCommand_base: {
102
102
  * value: "STRING_VALUE", // required
103
103
  * },
104
104
  * ],
105
+ * timeout: Number("int"),
106
+ * startMessage: "STRING_VALUE",
105
107
  * parameters: "DOCUMENT_VALUE",
106
108
  * },
107
109
  * },
@@ -202,6 +204,8 @@ declare const UpdateVoiceBotCommand_base: {
202
204
  * // value: "STRING_VALUE", // required
203
205
  * // },
204
206
  * // ],
207
+ * // timeout: Number("int"),
208
+ * // startMessage: "STRING_VALUE",
205
209
  * // parameters: "DOCUMENT_VALUE",
206
210
  * // },
207
211
  * // },
@@ -254,6 +258,18 @@ declare const UpdateVoiceBotCommand_base: {
254
258
  * @throws {@link VoiceBotsServiceException}
255
259
  * <p>Base exception class for all service exceptions from VoiceBots service.</p>
256
260
  *
261
+ *
257
262
  */
258
263
  export declare class UpdateVoiceBotCommand extends UpdateVoiceBotCommand_base {
264
+ /** @internal type navigation helper, not in runtime. */
265
+ protected static __types: {
266
+ api: {
267
+ input: UpdateVoiceBotInput;
268
+ output: UpdateVoiceBotOutput;
269
+ };
270
+ sdk: {
271
+ input: UpdateVoiceBotCommandInput;
272
+ output: UpdateVoiceBotCommandOutput;
273
+ };
274
+ };
259
275
  }
@@ -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";