@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.
Files changed (73) hide show
  1. package/dist-cjs/VoiceBots.js +31 -0
  2. package/dist-cjs/VoiceBotsClient.js +42 -0
  3. package/dist-cjs/commands/CreateVoiceBotCommand.js +21 -0
  4. package/dist-cjs/commands/DeleteVoiceBotCommand.js +21 -0
  5. package/dist-cjs/commands/DescribeEventCommand.js +21 -0
  6. package/dist-cjs/commands/GetVoiceBotCommand.js +21 -0
  7. package/dist-cjs/commands/ListVoiceBotsCommand.js +21 -0
  8. package/dist-cjs/commands/ListVoiceBotsNamesCommand.js +21 -0
  9. package/dist-cjs/commands/SendHangupCommand.js +21 -0
  10. package/dist-cjs/commands/SendSayCommand.js +21 -0
  11. package/dist-cjs/commands/SendTransferCommand.js +21 -0
  12. package/dist-cjs/commands/UpdateVoiceBotCommand.js +21 -0
  13. package/dist-cjs/commands/index.js +13 -0
  14. package/dist-cjs/extensionConfiguration.js +2 -0
  15. package/dist-cjs/index.js +10 -0
  16. package/dist-cjs/models/VoiceBotsServiceException.js +12 -0
  17. package/dist-cjs/models/index.js +4 -0
  18. package/dist-cjs/models/models_0.js +78 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +539 -0
  20. package/dist-cjs/runtimeConfig.browser.js +32 -0
  21. package/dist-cjs/runtimeConfig.js +36 -0
  22. package/dist-cjs/runtimeConfig.native.js +15 -0
  23. package/dist-cjs/runtimeConfig.shared.js +21 -0
  24. package/dist-cjs/runtimeExtensions.js +19 -0
  25. package/dist-es/VoiceBots.js +27 -0
  26. package/dist-es/VoiceBotsClient.js +38 -0
  27. package/dist-es/commands/CreateVoiceBotCommand.js +17 -0
  28. package/dist-es/commands/DeleteVoiceBotCommand.js +17 -0
  29. package/dist-es/commands/DescribeEventCommand.js +17 -0
  30. package/dist-es/commands/GetVoiceBotCommand.js +17 -0
  31. package/dist-es/commands/ListVoiceBotsCommand.js +17 -0
  32. package/dist-es/commands/ListVoiceBotsNamesCommand.js +17 -0
  33. package/dist-es/commands/SendHangupCommand.js +17 -0
  34. package/dist-es/commands/SendSayCommand.js +17 -0
  35. package/dist-es/commands/SendTransferCommand.js +17 -0
  36. package/dist-es/commands/UpdateVoiceBotCommand.js +17 -0
  37. package/dist-es/commands/index.js +10 -0
  38. package/dist-es/extensionConfiguration.js +1 -0
  39. package/dist-es/index.js +5 -0
  40. package/dist-es/models/VoiceBotsServiceException.js +8 -0
  41. package/dist-es/models/index.js +1 -0
  42. package/dist-es/models/models_0.js +71 -0
  43. package/dist-es/protocols/Aws_restJson1.js +516 -0
  44. package/dist-es/runtimeConfig.browser.js +27 -0
  45. package/dist-es/runtimeConfig.js +31 -0
  46. package/dist-es/runtimeConfig.native.js +11 -0
  47. package/dist-es/runtimeConfig.shared.js +17 -0
  48. package/dist-es/runtimeExtensions.js +15 -0
  49. package/dist-types/VoiceBots.d.ts +82 -0
  50. package/dist-types/VoiceBotsClient.d.ts +153 -0
  51. package/dist-types/commands/CreateVoiceBotCommand.d.ts +120 -0
  52. package/dist-types/commands/DeleteVoiceBotCommand.d.ts +63 -0
  53. package/dist-types/commands/DescribeEventCommand.d.ts +141 -0
  54. package/dist-types/commands/GetVoiceBotCommand.d.ts +97 -0
  55. package/dist-types/commands/ListVoiceBotsCommand.d.ts +96 -0
  56. package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +69 -0
  57. package/dist-types/commands/SendHangupCommand.d.ts +65 -0
  58. package/dist-types/commands/SendSayCommand.d.ts +67 -0
  59. package/dist-types/commands/SendTransferCommand.d.ts +66 -0
  60. package/dist-types/commands/UpdateVoiceBotCommand.d.ts +123 -0
  61. package/dist-types/commands/index.d.ts +10 -0
  62. package/dist-types/extensionConfiguration.d.ts +7 -0
  63. package/dist-types/index.d.ts +7 -0
  64. package/dist-types/models/VoiceBotsServiceException.d.ts +14 -0
  65. package/dist-types/models/index.d.ts +1 -0
  66. package/dist-types/models/models_0.d.ts +492 -0
  67. package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
  68. package/dist-types/runtimeConfig.browser.d.ts +29 -0
  69. package/dist-types/runtimeConfig.d.ts +29 -0
  70. package/dist-types/runtimeConfig.native.d.ts +28 -0
  71. package/dist-types/runtimeConfig.shared.d.ts +15 -0
  72. package/dist-types/runtimeExtensions.d.ts +17 -0
  73. package/package.json +79 -0
@@ -0,0 +1,82 @@
1
+ import { VoiceBotsClient } from "./VoiceBotsClient";
2
+ import { CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput } from "./commands/CreateVoiceBotCommand";
3
+ import { DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput } from "./commands/DeleteVoiceBotCommand";
4
+ import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
5
+ import { GetVoiceBotCommandInput, GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
6
+ import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
7
+ import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
8
+ import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
9
+ import { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
10
+ import { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
11
+ import { UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
12
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
13
+ export interface VoiceBots {
14
+ /**
15
+ * @see {@link CreateVoiceBotCommand}
16
+ */
17
+ createVoiceBot(args: CreateVoiceBotCommandInput, options?: __HttpHandlerOptions): Promise<CreateVoiceBotCommandOutput>;
18
+ createVoiceBot(args: CreateVoiceBotCommandInput, cb: (err: any, data?: CreateVoiceBotCommandOutput) => void): void;
19
+ createVoiceBot(args: CreateVoiceBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateVoiceBotCommandOutput) => void): void;
20
+ /**
21
+ * @see {@link DeleteVoiceBotCommand}
22
+ */
23
+ deleteVoiceBot(args: DeleteVoiceBotCommandInput, options?: __HttpHandlerOptions): Promise<DeleteVoiceBotCommandOutput>;
24
+ deleteVoiceBot(args: DeleteVoiceBotCommandInput, cb: (err: any, data?: DeleteVoiceBotCommandOutput) => void): void;
25
+ deleteVoiceBot(args: DeleteVoiceBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteVoiceBotCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link DescribeEventCommand}
28
+ */
29
+ describeEvent(): Promise<DescribeEventCommandOutput>;
30
+ describeEvent(args: DescribeEventCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCommandOutput>;
31
+ describeEvent(args: DescribeEventCommandInput, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
32
+ describeEvent(args: DescribeEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link GetVoiceBotCommand}
35
+ */
36
+ getVoiceBot(args: GetVoiceBotCommandInput, options?: __HttpHandlerOptions): Promise<GetVoiceBotCommandOutput>;
37
+ getVoiceBot(args: GetVoiceBotCommandInput, cb: (err: any, data?: GetVoiceBotCommandOutput) => void): void;
38
+ getVoiceBot(args: GetVoiceBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetVoiceBotCommandOutput) => void): void;
39
+ /**
40
+ * @see {@link ListVoiceBotsCommand}
41
+ */
42
+ listVoiceBots(): Promise<ListVoiceBotsCommandOutput>;
43
+ listVoiceBots(args: ListVoiceBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListVoiceBotsCommandOutput>;
44
+ listVoiceBots(args: ListVoiceBotsCommandInput, cb: (err: any, data?: ListVoiceBotsCommandOutput) => void): void;
45
+ listVoiceBots(args: ListVoiceBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListVoiceBotsCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link ListVoiceBotsNamesCommand}
48
+ */
49
+ listVoiceBotsNames(): Promise<ListVoiceBotsNamesCommandOutput>;
50
+ listVoiceBotsNames(args: ListVoiceBotsNamesCommandInput, options?: __HttpHandlerOptions): Promise<ListVoiceBotsNamesCommandOutput>;
51
+ listVoiceBotsNames(args: ListVoiceBotsNamesCommandInput, cb: (err: any, data?: ListVoiceBotsNamesCommandOutput) => void): void;
52
+ listVoiceBotsNames(args: ListVoiceBotsNamesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListVoiceBotsNamesCommandOutput) => void): void;
53
+ /**
54
+ * @see {@link SendHangupCommand}
55
+ */
56
+ sendHangup(args: SendHangupCommandInput, options?: __HttpHandlerOptions): Promise<SendHangupCommandOutput>;
57
+ sendHangup(args: SendHangupCommandInput, cb: (err: any, data?: SendHangupCommandOutput) => void): void;
58
+ sendHangup(args: SendHangupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendHangupCommandOutput) => void): void;
59
+ /**
60
+ * @see {@link SendSayCommand}
61
+ */
62
+ sendSay(args: SendSayCommandInput, options?: __HttpHandlerOptions): Promise<SendSayCommandOutput>;
63
+ sendSay(args: SendSayCommandInput, cb: (err: any, data?: SendSayCommandOutput) => void): void;
64
+ sendSay(args: SendSayCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSayCommandOutput) => void): void;
65
+ /**
66
+ * @see {@link SendTransferCommand}
67
+ */
68
+ sendTransfer(args: SendTransferCommandInput, options?: __HttpHandlerOptions): Promise<SendTransferCommandOutput>;
69
+ sendTransfer(args: SendTransferCommandInput, cb: (err: any, data?: SendTransferCommandOutput) => void): void;
70
+ sendTransfer(args: SendTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTransferCommandOutput) => void): void;
71
+ /**
72
+ * @see {@link UpdateVoiceBotCommand}
73
+ */
74
+ updateVoiceBot(args: UpdateVoiceBotCommandInput, options?: __HttpHandlerOptions): Promise<UpdateVoiceBotCommandOutput>;
75
+ updateVoiceBot(args: UpdateVoiceBotCommandInput, cb: (err: any, data?: UpdateVoiceBotCommandOutput) => void): void;
76
+ updateVoiceBot(args: UpdateVoiceBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateVoiceBotCommandOutput) => void): void;
77
+ }
78
+ /**
79
+ * @public
80
+ */
81
+ export declare class VoiceBots extends VoiceBotsClient implements VoiceBots {
82
+ }
@@ -0,0 +1,153 @@
1
+ import { CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput } from "./commands/CreateVoiceBotCommand";
2
+ import { DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput } from "./commands/DeleteVoiceBotCommand";
3
+ import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
4
+ import { GetVoiceBotCommandInput, GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
5
+ import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
6
+ import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
7
+ import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
8
+ import { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
9
+ import { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
10
+ import { UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
11
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
12
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
13
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
14
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
15
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
16
+ import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
17
+ import { TokenProvider } from '@wildix/smithy-utils';
18
+ export { __Client };
19
+ /**
20
+ * @public
21
+ */
22
+ export type ServiceInputTypes = CreateVoiceBotCommandInput | DeleteVoiceBotCommandInput | DescribeEventCommandInput | GetVoiceBotCommandInput | ListVoiceBotsCommandInput | ListVoiceBotsNamesCommandInput | SendHangupCommandInput | SendSayCommandInput | SendTransferCommandInput | UpdateVoiceBotCommandInput;
23
+ /**
24
+ * @public
25
+ */
26
+ export type ServiceOutputTypes = CreateVoiceBotCommandOutput | DeleteVoiceBotCommandOutput | DescribeEventCommandOutput | GetVoiceBotCommandOutput | ListVoiceBotsCommandOutput | ListVoiceBotsNamesCommandOutput | SendHangupCommandOutput | SendSayCommandOutput | SendTransferCommandOutput | UpdateVoiceBotCommandOutput;
27
+ /**
28
+ * @public
29
+ */
30
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
31
+ /**
32
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
33
+ */
34
+ requestHandler?: __HttpHandlerUserInput;
35
+ /**
36
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
37
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
38
+ * @internal
39
+ */
40
+ sha256?: __ChecksumConstructor | __HashConstructor;
41
+ /**
42
+ * The function that will be used to convert strings into HTTP endpoints.
43
+ * @internal
44
+ */
45
+ urlParser?: __UrlParser;
46
+ /**
47
+ * A function that can calculate the length of a request body.
48
+ * @internal
49
+ */
50
+ bodyLengthChecker?: __BodyLengthCalculator;
51
+ /**
52
+ * A function that converts a stream into an array of bytes.
53
+ * @internal
54
+ */
55
+ streamCollector?: __StreamCollector;
56
+ /**
57
+ * The function that will be used to convert a base64-encoded string to a byte array.
58
+ * @internal
59
+ */
60
+ base64Decoder?: __Decoder;
61
+ /**
62
+ * The function that will be used to convert binary data to a base64-encoded string.
63
+ * @internal
64
+ */
65
+ base64Encoder?: __Encoder;
66
+ /**
67
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
68
+ * @internal
69
+ */
70
+ utf8Decoder?: __Decoder;
71
+ /**
72
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
73
+ * @internal
74
+ */
75
+ utf8Encoder?: __Encoder;
76
+ /**
77
+ * The runtime environment.
78
+ * @internal
79
+ */
80
+ runtime?: string;
81
+ /**
82
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
83
+ * trait of an operation.
84
+ */
85
+ disableHostPrefix?: boolean;
86
+ /**
87
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
88
+ * @internal
89
+ */
90
+ defaultUserAgentProvider?: Provider<__UserAgent>;
91
+ /**
92
+ * Value for how many times a request will be made at most in case of retry.
93
+ */
94
+ maxAttempts?: number | __Provider<number>;
95
+ /**
96
+ * Specifies which retry algorithm to use.
97
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
98
+ *
99
+ */
100
+ retryMode?: string | __Provider<string>;
101
+ /**
102
+ * Optional logger for logging debug/info/warn/error.
103
+ */
104
+ logger?: __Logger;
105
+ /**
106
+ * Optional extensions
107
+ */
108
+ extensions?: RuntimeExtension[];
109
+ /**
110
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
111
+ */
112
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
113
+ }
114
+ /**
115
+ * @public
116
+ */
117
+ export type VoiceBotsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
118
+ /**
119
+ * @public
120
+ *
121
+ * The configuration interface of VoiceBotsClient class constructor that set the region, credentials and other options.
122
+ */
123
+ export interface VoiceBotsClientConfig extends VoiceBotsClientConfigType {
124
+ env: 'stage' | 'stable' | 'prod';
125
+ token: TokenProvider;
126
+ }
127
+ /**
128
+ * @public
129
+ */
130
+ export type VoiceBotsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
131
+ /**
132
+ * @public
133
+ *
134
+ * The resolved configuration interface of VoiceBotsClient class. This is resolved and normalized from the {@link VoiceBotsClientConfig | constructor configuration interface}.
135
+ */
136
+ export interface VoiceBotsClientResolvedConfig extends VoiceBotsClientResolvedConfigType {
137
+ }
138
+ /**
139
+ * @public
140
+ */
141
+ export declare class VoiceBotsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig> {
142
+ /**
143
+ * The resolved configuration of VoiceBotsClient class. This is resolved and normalized from the {@link VoiceBotsClientConfig | constructor configuration interface}.
144
+ */
145
+ readonly config: VoiceBotsClientResolvedConfig;
146
+ constructor(...[configuration]: __CheckOptionalClientConfig<VoiceBotsClientConfig>);
147
+ /**
148
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
149
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
150
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
151
+ */
152
+ destroy(): void;
153
+ }
@@ -0,0 +1,120 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
2
+ import { CreateVoiceBotInput, CreateVoiceBotOutput } 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 CreateVoiceBotCommand}.
14
+ */
15
+ export interface CreateVoiceBotCommandInput extends CreateVoiceBotInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateVoiceBotCommand}.
21
+ */
22
+ export interface CreateVoiceBotCommandOutput extends CreateVoiceBotOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateVoiceBotCommand_base: {
25
+ new (input: CreateVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput, 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, CreateVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
36
+ * // const { VoiceBotsClient, CreateVoiceBotCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
37
+ * const client = new VoiceBotsClient(config);
38
+ * const input = { // CreateVoiceBotInput
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
+ * };
67
+ * const command = new CreateVoiceBotCommand(input);
68
+ * const response = await client.send(command);
69
+ * // { // CreateVoiceBotOutput
70
+ * // bot: { // VoiceBot
71
+ * // name: "STRING_VALUE", // required
72
+ * // languageCode: "STRING_VALUE", // required
73
+ * // voiceId: "STRING_VALUE", // required
74
+ * // maximumDuration: Number("int"),
75
+ * // silenceTimeout: Number("int"),
76
+ * // endpoint: { // BotEndpoint Union: only one key present
77
+ * // dialogflowCx: { // BotDialogflowCxEndpoint
78
+ * // credentials: "DOCUMENT_VALUE", // required
79
+ * // agent: "STRING_VALUE", // required
80
+ * // location: "STRING_VALUE", // required
81
+ * // language: "STRING_VALUE", // required
82
+ * // },
83
+ * // openAiAssistant: { // BotOpenAiAssistantEndpoint
84
+ * // key: "STRING_VALUE", // required
85
+ * // assistantId: "STRING_VALUE", // required
86
+ * // },
87
+ * // webhook: { // BotWebhookEndpoint
88
+ * // url: "STRING_VALUE", // required
89
+ * // secret: "STRING_VALUE", // required
90
+ * // },
91
+ * // sqs: { // BotSqsEndpoint
92
+ * // url: "STRING_VALUE", // required
93
+ * // key: "STRING_VALUE", // required
94
+ * // secret: "STRING_VALUE", // required
95
+ * // },
96
+ * // },
97
+ * // id: "STRING_VALUE", // required
98
+ * // createdAt: "STRING_VALUE", // required
99
+ * // updatedAt: "STRING_VALUE",
100
+ * // },
101
+ * // };
102
+ *
103
+ * ```
104
+ *
105
+ * @param CreateVoiceBotCommandInput - {@link CreateVoiceBotCommandInput}
106
+ * @returns {@link CreateVoiceBotCommandOutput}
107
+ * @see {@link CreateVoiceBotCommandInput} for command's `input` shape.
108
+ * @see {@link CreateVoiceBotCommandOutput} for command's `response` shape.
109
+ * @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
110
+ *
111
+ * @throws {@link ValidationException} (client fault)
112
+ *
113
+ * @throws {@link ForbiddenException} (client fault)
114
+ *
115
+ * @throws {@link VoiceBotsServiceException}
116
+ * <p>Base exception class for all service exceptions from VoiceBots service.</p>
117
+ *
118
+ */
119
+ export declare class CreateVoiceBotCommand extends CreateVoiceBotCommand_base {
120
+ }
@@ -0,0 +1,63 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
2
+ import { DeleteVoiceBotInput, DeleteVoiceBotOutput } 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 DeleteVoiceBotCommand}.
14
+ */
15
+ export interface DeleteVoiceBotCommandInput extends DeleteVoiceBotInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteVoiceBotCommand}.
21
+ */
22
+ export interface DeleteVoiceBotCommandOutput extends DeleteVoiceBotOutput, __MetadataBearer {
23
+ }
24
+ declare const DeleteVoiceBotCommand_base: {
25
+ new (input: DeleteVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput, 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, DeleteVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
36
+ * // const { VoiceBotsClient, DeleteVoiceBotCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
37
+ * const client = new VoiceBotsClient(config);
38
+ * const input = { // DeleteVoiceBotInput
39
+ * company: "STRING_VALUE",
40
+ * botId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteVoiceBotCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteVoiceBotCommandInput - {@link DeleteVoiceBotCommandInput}
49
+ * @returns {@link DeleteVoiceBotCommandOutput}
50
+ * @see {@link DeleteVoiceBotCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteVoiceBotCommandOutput} for command's `response` shape.
52
+ * @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
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
+ export declare class DeleteVoiceBotCommand extends DeleteVoiceBotCommand_base {
63
+ }
@@ -0,0 +1,141 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
2
+ import { DescribeEventInput, DescribeEventOutput } 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 DescribeEventCommand}.
14
+ */
15
+ export interface DescribeEventCommandInput extends DescribeEventInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeEventCommand}.
21
+ */
22
+ export interface DescribeEventCommandOutput extends DescribeEventOutput, __MetadataBearer {
23
+ }
24
+ declare const DescribeEventCommand_base: {
25
+ new (input: DescribeEventCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeEventCommandInput, DescribeEventCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [DescribeEventCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeEventCommandInput, DescribeEventCommandOutput, 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, DescribeEventCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
36
+ * // const { VoiceBotsClient, DescribeEventCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
37
+ * const client = new VoiceBotsClient(config);
38
+ * const input = {};
39
+ * const command = new DescribeEventCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // DescribeEventOutput
42
+ * // VoiceBotTranscriptionWebsocketEvent: { // VoiceBotTranscriptionWebsocketEvent
43
+ * // type: "STRING_VALUE", // required
44
+ * // event: { // VoiceBotTranscriptionEvent
45
+ * // type: "ended" || "reply" || "transcription" || "interruption", // required
46
+ * // id: "STRING_VALUE", // required
47
+ * // text: "STRING_VALUE", // required
48
+ * // time: Number("long"), // required
49
+ * // },
50
+ * // },
51
+ * // VoiceBotReplyWebsocketEvent: { // VoiceBotReplyWebsocketEvent
52
+ * // type: "STRING_VALUE", // required
53
+ * // event: { // VoiceBotReplyEvent
54
+ * // type: "ended" || "reply" || "transcription" || "interruption", // required
55
+ * // id: "STRING_VALUE", // required
56
+ * // text: "STRING_VALUE", // required
57
+ * // startTime: Number("long"), // required
58
+ * // endTime: Number("long"), // required
59
+ * // },
60
+ * // },
61
+ * // VoiceBotInterruptionWebsocketEvent: { // VoiceBotInterruptionWebsocketEvent
62
+ * // type: "STRING_VALUE", // required
63
+ * // event: { // VoiceBotInterruptionEvent
64
+ * // type: "ended" || "reply" || "transcription" || "interruption", // required
65
+ * // replyId: "STRING_VALUE", // required
66
+ * // playedText: "STRING_VALUE", // required
67
+ * // originalText: "STRING_VALUE", // required
68
+ * // time: Number("long"), // required
69
+ * // },
70
+ * // },
71
+ * // VoiceBotSessionEndedWebsocketEvent: { // VoiceBotSessionEndedWebsocketEvent
72
+ * // type: "STRING_VALUE", // required
73
+ * // event: { // VoiceBotSessionEndedEvent
74
+ * // type: "ended" || "reply" || "transcription" || "interruption", // required
75
+ * // time: Number("long"), // required
76
+ * // },
77
+ * // },
78
+ * // VoiceBotTranscriptionWebhookEvent: { // VoiceBotTranscriptionWebhookEvent
79
+ * // sessionId: "STRING_VALUE", // required
80
+ * // botId: "STRING_VALUE", // required
81
+ * // callId: "STRING_VALUE", // required
82
+ * // flowIndex: Number("int"), // required
83
+ * // event: {
84
+ * // type: "ended" || "reply" || "transcription" || "interruption", // required
85
+ * // id: "STRING_VALUE", // required
86
+ * // text: "STRING_VALUE", // required
87
+ * // time: Number("long"), // required
88
+ * // },
89
+ * // },
90
+ * // VoiceBotReplyWebhookEvent: { // VoiceBotReplyWebhookEvent
91
+ * // sessionId: "STRING_VALUE", // required
92
+ * // botId: "STRING_VALUE", // required
93
+ * // callId: "STRING_VALUE", // required
94
+ * // flowIndex: Number("int"), // required
95
+ * // event: {
96
+ * // type: "ended" || "reply" || "transcription" || "interruption", // required
97
+ * // id: "STRING_VALUE", // required
98
+ * // text: "STRING_VALUE", // required
99
+ * // startTime: Number("long"), // required
100
+ * // endTime: Number("long"), // required
101
+ * // },
102
+ * // },
103
+ * // VoiceBotInterruptionWebhookEvent: { // VoiceBotInterruptionWebhookEvent
104
+ * // sessionId: "STRING_VALUE", // required
105
+ * // botId: "STRING_VALUE", // required
106
+ * // callId: "STRING_VALUE", // required
107
+ * // flowIndex: Number("int"), // required
108
+ * // event: {
109
+ * // type: "ended" || "reply" || "transcription" || "interruption", // required
110
+ * // replyId: "STRING_VALUE", // required
111
+ * // playedText: "STRING_VALUE", // required
112
+ * // originalText: "STRING_VALUE", // required
113
+ * // time: Number("long"), // required
114
+ * // },
115
+ * // },
116
+ * // VoiceBotSessionEndedWebhookEvent: { // VoiceBotSessionEndedWebhookEvent
117
+ * // sessionId: "STRING_VALUE", // required
118
+ * // botId: "STRING_VALUE", // required
119
+ * // callId: "STRING_VALUE", // required
120
+ * // flowIndex: Number("int"), // required
121
+ * // },
122
+ * // };
123
+ *
124
+ * ```
125
+ *
126
+ * @param DescribeEventCommandInput - {@link DescribeEventCommandInput}
127
+ * @returns {@link DescribeEventCommandOutput}
128
+ * @see {@link DescribeEventCommandInput} for command's `input` shape.
129
+ * @see {@link DescribeEventCommandOutput} for command's `response` shape.
130
+ * @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
131
+ *
132
+ * @throws {@link ValidationException} (client fault)
133
+ *
134
+ * @throws {@link ForbiddenException} (client fault)
135
+ *
136
+ * @throws {@link VoiceBotsServiceException}
137
+ * <p>Base exception class for all service exceptions from VoiceBots service.</p>
138
+ *
139
+ */
140
+ export declare class DescribeEventCommand extends DescribeEventCommand_base {
141
+ }
@@ -0,0 +1,97 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
2
+ import { GetVoiceBotInput, GetVoiceBotOutput } 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 GetVoiceBotCommand}.
14
+ */
15
+ export interface GetVoiceBotCommandInput extends GetVoiceBotInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetVoiceBotCommand}.
21
+ */
22
+ export interface GetVoiceBotCommandOutput extends GetVoiceBotOutput, __MetadataBearer {
23
+ }
24
+ declare const GetVoiceBotCommand_base: {
25
+ new (input: GetVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<GetVoiceBotCommandInput, GetVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetVoiceBotCommandInput): import("@smithy/smithy-client").CommandImpl<GetVoiceBotCommandInput, GetVoiceBotCommandOutput, 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, GetVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
36
+ * // const { VoiceBotsClient, GetVoiceBotCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
37
+ * const client = new VoiceBotsClient(config);
38
+ * const input = { // GetVoiceBotInput
39
+ * company: "STRING_VALUE",
40
+ * botId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetVoiceBotCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetVoiceBotOutput
45
+ * // bot: { // 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
+ * @param GetVoiceBotCommandInput - {@link GetVoiceBotCommandInput}
81
+ * @returns {@link GetVoiceBotCommandOutput}
82
+ * @see {@link GetVoiceBotCommandInput} for command's `input` shape.
83
+ * @see {@link GetVoiceBotCommandOutput} for command's `response` shape.
84
+ * @see {@link VoiceBotsClientResolvedConfig | config} for VoiceBotsClient's `config` shape.
85
+ *
86
+ * @throws {@link VoiceBotNotFoundException} (client fault)
87
+ *
88
+ * @throws {@link ValidationException} (client fault)
89
+ *
90
+ * @throws {@link ForbiddenException} (client fault)
91
+ *
92
+ * @throws {@link VoiceBotsServiceException}
93
+ * <p>Base exception class for all service exceptions from VoiceBots service.</p>
94
+ *
95
+ */
96
+ export declare class GetVoiceBotCommand extends GetVoiceBotCommand_base {
97
+ }