@wildix/wim-voicebots-client 1.1.9 → 4.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 (102) hide show
  1. package/dist-cjs/VoiceBots.js +3 -3
  2. package/dist-cjs/VoiceBotsClient.js +34 -26
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +65 -0
  5. package/dist-cjs/commands/CreateVoiceBotCommand.js +10 -11
  6. package/dist-cjs/commands/DeleteVoiceBotCommand.js +10 -11
  7. package/dist-cjs/commands/DescribeEventCommand.js +10 -11
  8. package/dist-cjs/commands/GetTraceCommand.js +10 -11
  9. package/dist-cjs/commands/GetVoiceBotCommand.js +10 -11
  10. package/dist-cjs/commands/ListTracesCommand.js +10 -11
  11. package/dist-cjs/commands/ListVoiceBotsCommand.js +10 -11
  12. package/dist-cjs/commands/ListVoiceBotsNamesCommand.js +10 -11
  13. package/dist-cjs/commands/SendHangupCommand.js +10 -11
  14. package/dist-cjs/commands/SendPlayCommand.js +10 -11
  15. package/dist-cjs/commands/SendSayCommand.js +10 -11
  16. package/dist-cjs/commands/SendStopCommand.js +10 -11
  17. package/dist-cjs/commands/SendTransferCommand.js +10 -11
  18. package/dist-cjs/commands/UpdateVoiceBotCommand.js +10 -11
  19. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  20. package/dist-cjs/endpoint/bdd.js +28 -0
  21. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  22. package/dist-cjs/index.js +4 -1
  23. package/dist-cjs/models/VoiceBotsServiceException.js +3 -3
  24. package/dist-cjs/models/enums.js +64 -0
  25. package/dist-cjs/models/errors.js +75 -0
  26. package/dist-cjs/models/models_0.js +0 -350
  27. package/dist-cjs/runtimeConfig.browser.js +11 -11
  28. package/dist-cjs/runtimeConfig.js +22 -18
  29. package/dist-cjs/runtimeConfig.shared.js +30 -10
  30. package/dist-cjs/runtimeExtensions.js +6 -5
  31. package/dist-cjs/schemas/schemas_0.js +1247 -0
  32. package/dist-es/VoiceBots.js +6 -6
  33. package/dist-es/VoiceBotsClient.js +30 -22
  34. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  35. package/dist-es/auth/httpAuthSchemeProvider.js +59 -0
  36. package/dist-es/commands/CreateVoiceBotCommand.js +9 -10
  37. package/dist-es/commands/DeleteVoiceBotCommand.js +9 -10
  38. package/dist-es/commands/DescribeEventCommand.js +9 -10
  39. package/dist-es/commands/GetTraceCommand.js +9 -10
  40. package/dist-es/commands/GetVoiceBotCommand.js +9 -10
  41. package/dist-es/commands/ListTracesCommand.js +9 -10
  42. package/dist-es/commands/ListVoiceBotsCommand.js +9 -10
  43. package/dist-es/commands/ListVoiceBotsNamesCommand.js +9 -10
  44. package/dist-es/commands/SendHangupCommand.js +9 -10
  45. package/dist-es/commands/SendPlayCommand.js +9 -10
  46. package/dist-es/commands/SendSayCommand.js +9 -10
  47. package/dist-es/commands/SendStopCommand.js +9 -10
  48. package/dist-es/commands/SendTransferCommand.js +9 -10
  49. package/dist-es/commands/UpdateVoiceBotCommand.js +9 -10
  50. package/dist-es/endpoint/EndpointParameters.js +12 -0
  51. package/dist-es/endpoint/bdd.js +25 -0
  52. package/dist-es/endpoint/endpointResolver.js +12 -0
  53. package/dist-es/index.js +4 -1
  54. package/dist-es/models/VoiceBotsServiceException.js +1 -1
  55. package/dist-es/models/enums.js +61 -0
  56. package/dist-es/models/errors.js +67 -0
  57. package/dist-es/models/models_0.js +1 -344
  58. package/dist-es/runtimeConfig.browser.js +7 -7
  59. package/dist-es/runtimeConfig.js +17 -13
  60. package/dist-es/runtimeConfig.shared.js +24 -4
  61. package/dist-es/runtimeExtensions.js +6 -5
  62. package/dist-es/schemas/schemas_0.js +1241 -0
  63. package/dist-types/VoiceBots.d.ts +15 -15
  64. package/dist-types/VoiceBotsClient.d.ts +44 -26
  65. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  66. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  67. package/dist-types/commands/CreateVoiceBotCommand.d.ts +11 -7
  68. package/dist-types/commands/DeleteVoiceBotCommand.d.ts +11 -7
  69. package/dist-types/commands/DescribeEventCommand.d.ts +11 -7
  70. package/dist-types/commands/GetTraceCommand.d.ts +11 -7
  71. package/dist-types/commands/GetVoiceBotCommand.d.ts +11 -7
  72. package/dist-types/commands/ListTracesCommand.d.ts +11 -7
  73. package/dist-types/commands/ListVoiceBotsCommand.d.ts +11 -7
  74. package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +11 -7
  75. package/dist-types/commands/SendHangupCommand.d.ts +11 -7
  76. package/dist-types/commands/SendPlayCommand.d.ts +11 -7
  77. package/dist-types/commands/SendSayCommand.d.ts +11 -7
  78. package/dist-types/commands/SendStopCommand.d.ts +11 -7
  79. package/dist-types/commands/SendTransferCommand.d.ts +11 -7
  80. package/dist-types/commands/UpdateVoiceBotCommand.d.ts +11 -7
  81. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  82. package/dist-types/endpoint/bdd.d.ts +2 -0
  83. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  84. package/dist-types/extensionConfiguration.d.ts +4 -3
  85. package/dist-types/index.d.ts +5 -1
  86. package/dist-types/models/VoiceBotsServiceException.d.ts +1 -1
  87. package/dist-types/models/enums.d.ts +141 -0
  88. package/dist-types/models/errors.d.ts +60 -0
  89. package/dist-types/models/models_0.d.ts +92 -244
  90. package/dist-types/runtimeConfig.browser.d.ts +34 -15
  91. package/dist-types/runtimeConfig.d.ts +33 -14
  92. package/dist-types/runtimeConfig.native.d.ts +35 -16
  93. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  94. package/dist-types/runtimeExtensions.d.ts +1 -1
  95. package/dist-types/schemas/schemas_0.d.ts +175 -0
  96. package/package.json +13 -39
  97. package/dist-cjs/models/index.js +0 -4
  98. package/dist-cjs/protocols/Aws_restJson1.js +0 -1106
  99. package/dist-es/models/index.js +0 -1
  100. package/dist-es/protocols/Aws_restJson1.js +0 -1075
  101. package/dist-types/models/index.d.ts +0 -1
  102. package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
@@ -1,7 +1,7 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
2
- import { SendPlayInput, SendPlayOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { SendPlayInput, SendPlayOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface SendPlayCommandInput extends SendPlayInput {
22
22
  export interface SendPlayCommandOutput extends SendPlayOutput, __MetadataBearer {
23
23
  }
24
24
  declare const SendPlayCommand_base: {
25
- new (input: SendPlayCommandInput): import("@smithy/smithy-client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: SendPlayCommandInput): import("@smithy/smithy-client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: SendPlayCommandInput): import("@smithy/core/client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: SendPlayCommandInput): import("@smithy/core/client").CommandImpl<SendPlayCommandInput, SendPlayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Plays the specified audio chunk through the audio stream of the voice session.
@@ -33,6 +35,8 @@ declare const SendPlayCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, SendPlayCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, SendPlayCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
38
+ * // import type { VoiceBotsClientConfig } from "@wildix/wim-voicebots-client";
39
+ * const config = {}; // type is VoiceBotsClientConfig
36
40
  * const client = new VoiceBotsClient(config);
37
41
  * const input = { // SendPlayInput
38
42
  * replyId: "STRING_VALUE", // required
@@ -1,7 +1,7 @@
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";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { SendSayInput, SendSayOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface SendSayCommandInput extends SendSayInput {
22
22
  export interface SendSayCommandOutput extends SendSayOutput, __MetadataBearer {
23
23
  }
24
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;
25
+ new (input: SendSayCommandInput): import("@smithy/core/client").CommandImpl<SendSayCommandInput, SendSayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: SendSayCommandInput): import("@smithy/core/client").CommandImpl<SendSayCommandInput, SendSayCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Generates and plays the specified text through the audio stream of the voice session.
@@ -33,6 +35,8 @@ declare const SendSayCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, SendSayCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, SendSayCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
38
+ * // import type { VoiceBotsClientConfig } from "@wildix/wim-voicebots-client";
39
+ * const config = {}; // type is VoiceBotsClientConfig
36
40
  * const client = new VoiceBotsClient(config);
37
41
  * const input = { // SendSayInput
38
42
  * text: "STRING_VALUE", // required
@@ -1,7 +1,7 @@
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";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { SendStopInput, SendStopOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface SendStopCommandInput extends SendStopInput {
22
22
  export interface SendStopCommandOutput extends SendStopOutput, __MetadataBearer {
23
23
  }
24
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;
25
+ new (input: SendStopCommandInput): import("@smithy/core/client").CommandImpl<SendStopCommandInput, SendStopCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: SendStopCommandInput): import("@smithy/core/client").CommandImpl<SendStopCommandInput, SendStopCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Stop playing and ongoing audio from the voice bot.
@@ -33,6 +35,8 @@ declare const SendStopCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, SendStopCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, SendStopCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
38
+ * // import type { VoiceBotsClientConfig } from "@wildix/wim-voicebots-client";
39
+ * const config = {}; // type is VoiceBotsClientConfig
36
40
  * const client = new VoiceBotsClient(config);
37
41
  * const input = { // SendStopInput
38
42
  * sessionId: "STRING_VALUE", // required
@@ -1,7 +1,7 @@
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";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { SendTransferInput, SendTransferOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface SendTransferCommandInput extends SendTransferInput {
22
22
  export interface SendTransferCommandOutput extends SendTransferOutput, __MetadataBearer {
23
23
  }
24
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;
25
+ new (input: SendTransferCommandInput): import("@smithy/core/client").CommandImpl<SendTransferCommandInput, SendTransferCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: SendTransferCommandInput): import("@smithy/core/client").CommandImpl<SendTransferCommandInput, SendTransferCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Transfers the call to the specified context and extension, and terminates the voice bot session.
@@ -33,6 +35,8 @@ declare const SendTransferCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, SendTransferCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, SendTransferCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
38
+ * // import type { VoiceBotsClientConfig } from "@wildix/wim-voicebots-client";
39
+ * const config = {}; // type is VoiceBotsClientConfig
36
40
  * const client = new VoiceBotsClient(config);
37
41
  * const input = { // SendTransferInput
38
42
  * context: "STRING_VALUE", // required
@@ -1,7 +1,7 @@
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";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UpdateVoiceBotInput, UpdateVoiceBotOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -22,9 +22,11 @@ export interface UpdateVoiceBotCommandInput extends UpdateVoiceBotInput {
22
22
  export interface UpdateVoiceBotCommandOutput extends UpdateVoiceBotOutput, __MetadataBearer {
23
23
  }
24
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;
25
+ new (input: UpdateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Updates the configuration of an existing voice bot with new settings.
@@ -33,6 +35,8 @@ declare const UpdateVoiceBotCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, UpdateVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, UpdateVoiceBotCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
38
+ * // import type { VoiceBotsClientConfig } from "@wildix/wim-voicebots-client";
39
+ * const config = {}; // type is VoiceBotsClientConfig
36
40
  * const client = new VoiceBotsClient(config);
37
41
  * const input = { // UpdateVoiceBotInput
38
42
  * name: "STRING_VALUE", // required
@@ -0,0 +1,41 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ clientContextParams?: {
7
+ env?: string | undefined | Provider<string | undefined>;
8
+ };
9
+ env?: string | undefined | Provider<string | undefined>;
10
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
11
+ }
12
+ /**
13
+ * @public
14
+ */
15
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
16
+ defaultSigningName: string;
17
+ };
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const commonParams: {
26
+ readonly env: {
27
+ readonly type: "clientContextParams";
28
+ readonly name: "env";
29
+ };
30
+ readonly endpoint: {
31
+ readonly type: "builtInParams";
32
+ readonly name: "endpoint";
33
+ };
34
+ };
35
+ /**
36
+ * @internal
37
+ */
38
+ export interface EndpointParameters extends __EndpointParameters {
39
+ env?: string | undefined;
40
+ endpoint?: string | undefined;
41
+ }
@@ -0,0 +1,2 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ export declare const bdd: BinaryDecisionDiagram;
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -1,7 +1,8 @@
1
- import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
2
- import { DefaultExtensionConfiguration } from "@smithy/types";
1
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
2
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
3
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
3
4
  /**
4
5
  * @internal
5
6
  */
6
- export interface VoiceBotsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
7
+ export interface VoiceBotsExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {
7
8
  }
@@ -1,7 +1,11 @@
1
1
  export * from "./VoiceBotsClient";
2
2
  export * from "./VoiceBots";
3
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
3
4
  export type { RuntimeExtension } from "./runtimeExtensions";
4
5
  export type { VoiceBotsExtensionConfiguration } from "./extensionConfiguration";
5
6
  export * from "./commands";
6
- export * from "./models";
7
+ export * from "./schemas/schemas_0";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
7
11
  export { VoiceBotsServiceException } from "./models/VoiceBotsServiceException";
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
2
2
  export type { __ServiceExceptionOptions };
3
3
  export { __ServiceException };
4
4
  /**
@@ -0,0 +1,141 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AnnotationSourceType: {
6
+ readonly CHATBOT: "chatbot";
7
+ readonly SYSTEM: "system";
8
+ readonly USER: "user";
9
+ readonly VOICEBOT: "voicebot";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type AnnotationSourceType = (typeof AnnotationSourceType)[keyof typeof AnnotationSourceType];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const VoiceBotEventType: {
20
+ readonly AUDIO: "audio";
21
+ readonly COMPLETE: "complete";
22
+ readonly ENDED: "ended";
23
+ readonly INTERRUPTION: "interruption";
24
+ readonly PLAYBACK: "playback";
25
+ readonly REPLY: "reply";
26
+ readonly STARTED: "started";
27
+ readonly TRANSCRIPTION: "transcription";
28
+ };
29
+ /**
30
+ * @public
31
+ */
32
+ export type VoiceBotEventType = (typeof VoiceBotEventType)[keyof typeof VoiceBotEventType];
33
+ /**
34
+ * @public
35
+ * @enum
36
+ */
37
+ export declare const VoiceBotCapabilityToolPipelineType: {
38
+ readonly ASYNC_REQUEST: "async_request";
39
+ readonly ASYNC_REQUEST_GUIDED: "async_request_guided";
40
+ readonly BLOCKING_REQUEST: "blocking_request";
41
+ readonly BLOCKING_REQUEST_GUIDED: "blocking_request_guided";
42
+ };
43
+ /**
44
+ * @public
45
+ */
46
+ export type VoiceBotCapabilityToolPipelineType = (typeof VoiceBotCapabilityToolPipelineType)[keyof typeof VoiceBotCapabilityToolPipelineType];
47
+ /**
48
+ * @public
49
+ * @enum
50
+ */
51
+ export declare const VoiceBotEmbeddedToolType: {
52
+ readonly DELEGATE: "DELEGATE";
53
+ readonly HANGUP: "HANGUP";
54
+ readonly TRANSFER: "TRANSFER";
55
+ readonly WAIT: "WAIT";
56
+ };
57
+ /**
58
+ * @public
59
+ */
60
+ export type VoiceBotEmbeddedToolType = (typeof VoiceBotEmbeddedToolType)[keyof typeof VoiceBotEmbeddedToolType];
61
+ /**
62
+ * @public
63
+ * @enum
64
+ */
65
+ export declare const VoiceBotFunctionIntegrationMethod: {
66
+ readonly DELETE: "delete";
67
+ readonly GET: "get";
68
+ readonly PATCH: "patch";
69
+ readonly POST: "post";
70
+ readonly PUT: "put";
71
+ };
72
+ /**
73
+ * @public
74
+ */
75
+ export type VoiceBotFunctionIntegrationMethod = (typeof VoiceBotFunctionIntegrationMethod)[keyof typeof VoiceBotFunctionIntegrationMethod];
76
+ /**
77
+ * @public
78
+ * @enum
79
+ */
80
+ export declare const VoiceBotToolType: {
81
+ readonly FUNCTION: "function";
82
+ };
83
+ /**
84
+ * @public
85
+ */
86
+ export type VoiceBotToolType = (typeof VoiceBotToolType)[keyof typeof VoiceBotToolType];
87
+ /**
88
+ * @public
89
+ * @enum
90
+ */
91
+ export declare const VoiceBotCommandType: {
92
+ readonly HANGUP: "hangup";
93
+ readonly PLAY: "play";
94
+ readonly SAY: "say";
95
+ readonly STOP: "stop";
96
+ readonly TRANSFER: "transfer";
97
+ };
98
+ /**
99
+ * @public
100
+ */
101
+ export type VoiceBotCommandType = (typeof VoiceBotCommandType)[keyof typeof VoiceBotCommandType];
102
+ /**
103
+ * @public
104
+ * @enum
105
+ */
106
+ export declare const TraceActivityStatus: {
107
+ readonly CANCELLED: "cancelled";
108
+ readonly COMPLETE: "complete";
109
+ readonly ERROR: "error";
110
+ readonly PENDING: "pending";
111
+ };
112
+ /**
113
+ * @public
114
+ */
115
+ export type TraceActivityStatus = (typeof TraceActivityStatus)[keyof typeof TraceActivityStatus];
116
+ /**
117
+ * @public
118
+ * @enum
119
+ */
120
+ export declare const TraceSegmentStatus: {
121
+ readonly COMPLETE: "complete";
122
+ readonly ERROR: "error";
123
+ readonly PENDING: "pending";
124
+ };
125
+ /**
126
+ * @public
127
+ */
128
+ export type TraceSegmentStatus = (typeof TraceSegmentStatus)[keyof typeof TraceSegmentStatus];
129
+ /**
130
+ * @public
131
+ * @enum
132
+ */
133
+ export declare const TraceSessionStatus: {
134
+ readonly COMPLETE: "complete";
135
+ readonly COMPLETE_WITH_ERROR: "complete_with_error";
136
+ readonly PENDING: "pending";
137
+ };
138
+ /**
139
+ * @public
140
+ */
141
+ export type TraceSessionStatus = (typeof TraceSessionStatus)[keyof typeof TraceSessionStatus];
@@ -0,0 +1,60 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
+ import { VoiceBotsServiceException as __BaseException } from "./VoiceBotsServiceException";
3
+ /**
4
+ * @public
5
+ */
6
+ export declare class ForbiddenException extends __BaseException {
7
+ readonly name: "ForbiddenException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
13
+ }
14
+ /**
15
+ * @public
16
+ */
17
+ export declare class ValidationException extends __BaseException {
18
+ readonly name: "ValidationException";
19
+ readonly $fault: "client";
20
+ /**
21
+ * @internal
22
+ */
23
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
24
+ }
25
+ /**
26
+ * @public
27
+ */
28
+ export declare class VoiceBotNonUniqueNameException extends __BaseException {
29
+ readonly name: "VoiceBotNonUniqueNameException";
30
+ readonly $fault: "client";
31
+ type?: string | undefined;
32
+ /**
33
+ * @internal
34
+ */
35
+ constructor(opts: __ExceptionOptionType<VoiceBotNonUniqueNameException, __BaseException>);
36
+ }
37
+ /**
38
+ * @public
39
+ */
40
+ export declare class VoiceBotNotFoundException extends __BaseException {
41
+ readonly name: "VoiceBotNotFoundException";
42
+ readonly $fault: "client";
43
+ type?: string | undefined;
44
+ /**
45
+ * @internal
46
+ */
47
+ constructor(opts: __ExceptionOptionType<VoiceBotNotFoundException, __BaseException>);
48
+ }
49
+ /**
50
+ * @public
51
+ */
52
+ export declare class VoiceSessionNotFoundException extends __BaseException {
53
+ readonly name: "VoiceSessionNotFoundException";
54
+ readonly $fault: "client";
55
+ type?: string | undefined;
56
+ /**
57
+ * @internal
58
+ */
59
+ constructor(opts: __ExceptionOptionType<VoiceSessionNotFoundException, __BaseException>);
60
+ }