@wildix/wim-voicebots-client 1.1.8 → 3.1.10

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 -314
  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 -308
  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 +143 -7
  68. package/dist-types/commands/DeleteVoiceBotCommand.d.ts +11 -7
  69. package/dist-types/commands/DescribeEventCommand.d.ts +35 -7
  70. package/dist-types/commands/GetTraceCommand.d.ts +33 -7
  71. package/dist-types/commands/GetVoiceBotCommand.d.ts +77 -7
  72. package/dist-types/commands/ListTracesCommand.d.ts +11 -7
  73. package/dist-types/commands/ListVoiceBotsCommand.d.ts +77 -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 +143 -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 +349 -204
  90. package/dist-types/runtimeConfig.browser.d.ts +35 -16
  91. package/dist-types/runtimeConfig.d.ts +34 -15
  92. package/dist-types/runtimeConfig.native.d.ts +36 -17
  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 +14 -40
  97. package/dist-cjs/models/index.js +0 -4
  98. package/dist-cjs/protocols/Aws_restJson1.js +0 -1030
  99. package/dist-es/models/index.js +0 -1
  100. package/dist-es/protocols/Aws_restJson1.js +0 -999
  101. package/dist-types/models/index.d.ts +0 -1
  102. package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
@@ -1,19 +1,19 @@
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { type CreateVoiceBotCommandInput, type CreateVoiceBotCommandOutput } from "./commands/CreateVoiceBotCommand";
3
+ import { type DeleteVoiceBotCommandInput, type DeleteVoiceBotCommandOutput } from "./commands/DeleteVoiceBotCommand";
4
+ import { type DescribeEventCommandInput, type DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
5
+ import { type GetTraceCommandInput, type GetTraceCommandOutput } from "./commands/GetTraceCommand";
6
+ import { type GetVoiceBotCommandInput, type GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
7
+ import { type ListTracesCommandInput, type ListTracesCommandOutput } from "./commands/ListTracesCommand";
8
+ import { type ListVoiceBotsCommandInput, type ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
9
+ import { type ListVoiceBotsNamesCommandInput, type ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
10
+ import { type SendHangupCommandInput, type SendHangupCommandOutput } from "./commands/SendHangupCommand";
11
+ import { type SendPlayCommandInput, type SendPlayCommandOutput } from "./commands/SendPlayCommand";
12
+ import { type SendSayCommandInput, type SendSayCommandOutput } from "./commands/SendSayCommand";
13
+ import { type SendStopCommandInput, type SendStopCommandOutput } from "./commands/SendStopCommand";
14
+ import { type SendTransferCommandInput, type SendTransferCommandOutput } from "./commands/SendTransferCommand";
15
+ import { type UpdateVoiceBotCommandInput, type UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
1
16
  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 { GetTraceCommandInput, GetTraceCommandOutput } from "./commands/GetTraceCommand";
6
- import { GetVoiceBotCommandInput, GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
7
- import { ListTracesCommandInput, ListTracesCommandOutput } from "./commands/ListTracesCommand";
8
- import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
9
- import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
10
- import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
11
- import { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
12
- import { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
13
- import { SendStopCommandInput, SendStopCommandOutput } from "./commands/SendStopCommand";
14
- import { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
15
- import { UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
16
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
17
17
  export interface VoiceBots {
18
18
  /**
19
19
  * @see {@link CreateVoiceBotCommand}
@@ -1,24 +1,26 @@
1
- import { CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput } from "./commands/CreateVoiceBotCommand";
2
- import { DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput } from "./commands/DeleteVoiceBotCommand";
3
- import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
4
- import { GetTraceCommandInput, GetTraceCommandOutput } from "./commands/GetTraceCommand";
5
- import { GetVoiceBotCommandInput, GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
6
- import { ListTracesCommandInput, ListTracesCommandOutput } from "./commands/ListTracesCommand";
7
- import { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
8
- import { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
9
- import { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
10
- import { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
11
- import { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
12
- import { SendStopCommandInput, SendStopCommandOutput } from "./commands/SendStopCommand";
13
- import { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
14
- import { UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
15
- import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
16
- import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
17
- import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
18
- import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
19
- import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
20
- 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";
21
- import { TokenProvider } from '@wildix/smithy-utils';
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
2
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
3
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
4
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
5
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
6
+ import type { 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";
7
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
8
+ import type { CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput } from "./commands/CreateVoiceBotCommand";
9
+ import type { DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput } from "./commands/DeleteVoiceBotCommand";
10
+ import type { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
11
+ import type { GetTraceCommandInput, GetTraceCommandOutput } from "./commands/GetTraceCommand";
12
+ import type { GetVoiceBotCommandInput, GetVoiceBotCommandOutput } from "./commands/GetVoiceBotCommand";
13
+ import type { ListTracesCommandInput, ListTracesCommandOutput } from "./commands/ListTracesCommand";
14
+ import type { ListVoiceBotsCommandInput, ListVoiceBotsCommandOutput } from "./commands/ListVoiceBotsCommand";
15
+ import type { ListVoiceBotsNamesCommandInput, ListVoiceBotsNamesCommandOutput } from "./commands/ListVoiceBotsNamesCommand";
16
+ import type { SendHangupCommandInput, SendHangupCommandOutput } from "./commands/SendHangupCommand";
17
+ import type { SendPlayCommandInput, SendPlayCommandOutput } from "./commands/SendPlayCommand";
18
+ import type { SendSayCommandInput, SendSayCommandOutput } from "./commands/SendSayCommand";
19
+ import type { SendStopCommandInput, SendStopCommandOutput } from "./commands/SendStopCommand";
20
+ import type { SendTransferCommandInput, SendTransferCommandOutput } from "./commands/SendTransferCommand";
21
+ import type { UpdateVoiceBotCommandInput, UpdateVoiceBotCommandOutput } from "./commands/UpdateVoiceBotCommand";
22
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
23
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
22
24
  export { __Client };
23
25
  /**
24
26
  * @public
@@ -87,11 +89,29 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
87
89
  * trait of an operation.
88
90
  */
89
91
  disableHostPrefix?: boolean;
92
+ /**
93
+ * Setting a client profile is similar to setting a value for the
94
+ * AWS_PROFILE environment variable. Setting a profile on a client
95
+ * in code only affects the single client instance, unlike AWS_PROFILE.
96
+ *
97
+ * When set, and only for environments where an AWS configuration
98
+ * file exists, fields configurable by this file will be retrieved
99
+ * from the specified profile within that file.
100
+ * Conflicting code configuration and environment variables will
101
+ * still have higher priority.
102
+ *
103
+ * For client credential resolution that involves checking the AWS
104
+ * configuration file, the client's profile (this value) will be
105
+ * used unless a different profile is set in the credential
106
+ * provider options.
107
+ *
108
+ */
109
+ profile?: string;
90
110
  /**
91
111
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
92
112
  * @internal
93
113
  */
94
- defaultUserAgentProvider?: Provider<__UserAgent>;
114
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
95
115
  /**
96
116
  * Value for how many times a request will be made at most in case of retry.
97
117
  */
@@ -118,20 +138,18 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
118
138
  /**
119
139
  * @public
120
140
  */
121
- export type VoiceBotsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
141
+ export type VoiceBotsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
122
142
  /**
123
143
  * @public
124
144
  *
125
145
  * The configuration interface of VoiceBotsClient class constructor that set the region, credentials and other options.
126
146
  */
127
147
  export interface VoiceBotsClientConfig extends VoiceBotsClientConfigType {
128
- env?: 'stage' | 'stable' | 'prod';
129
- token: TokenProvider;
130
148
  }
131
149
  /**
132
150
  * @public
133
151
  */
134
- export type VoiceBotsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
152
+ export type VoiceBotsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
135
153
  /**
136
154
  * @public
137
155
  *
@@ -0,0 +1,29 @@
1
+ import { type HttpAuthScheme, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
2
+ import type { VoiceBotsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: VoiceBotsHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): VoiceBotsHttpAuthSchemeProvider;
11
+ setToken(token: TokenIdentity | TokenIdentityProvider): void;
12
+ token(): TokenIdentity | TokenIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: VoiceBotsHttpAuthSchemeProvider;
20
+ token: TokenIdentity | TokenIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,81 @@
1
+ import { type HandlerExecutionContext, type HttpAuthScheme, type HttpAuthSchemeParameters, type HttpAuthSchemeParametersProvider, type HttpAuthSchemeProvider, type Provider, TokenIdentity, TokenIdentityProvider } from "@smithy/types";
2
+ import type { VoiceBotsClientResolvedConfig } from "../VoiceBotsClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface VoiceBotsHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
7
+ }
8
+ /**
9
+ * @internal
10
+ */
11
+ export interface VoiceBotsHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<VoiceBotsClientResolvedConfig, HandlerExecutionContext, VoiceBotsHttpAuthSchemeParameters, object> {
12
+ }
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare const defaultVoiceBotsHttpAuthSchemeParametersProvider: (config: VoiceBotsClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<VoiceBotsHttpAuthSchemeParameters>;
17
+ /**
18
+ * @internal
19
+ */
20
+ export interface VoiceBotsHttpAuthSchemeProvider extends HttpAuthSchemeProvider<VoiceBotsHttpAuthSchemeParameters> {
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const defaultVoiceBotsHttpAuthSchemeProvider: VoiceBotsHttpAuthSchemeProvider;
26
+ /**
27
+ * @public
28
+ */
29
+ export interface HttpAuthSchemeInputConfig {
30
+ /**
31
+ * A comma-separated list of case-sensitive auth scheme names.
32
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
33
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
34
+ * @public
35
+ */
36
+ authSchemePreference?: string[] | Provider<string[]>;
37
+ /**
38
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
39
+ * @internal
40
+ */
41
+ httpAuthSchemes?: HttpAuthScheme[];
42
+ /**
43
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
44
+ * @internal
45
+ */
46
+ httpAuthSchemeProvider?: VoiceBotsHttpAuthSchemeProvider;
47
+ /**
48
+ * The token used to authenticate requests.
49
+ */
50
+ token?: TokenIdentity | TokenIdentityProvider;
51
+ }
52
+ /**
53
+ * @internal
54
+ */
55
+ export interface HttpAuthSchemeResolvedConfig {
56
+ /**
57
+ * A comma-separated list of case-sensitive auth scheme names.
58
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
59
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
60
+ * @public
61
+ */
62
+ readonly authSchemePreference: Provider<string[]>;
63
+ /**
64
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
65
+ * @internal
66
+ */
67
+ readonly httpAuthSchemes: HttpAuthScheme[];
68
+ /**
69
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
70
+ * @internal
71
+ */
72
+ readonly httpAuthSchemeProvider: VoiceBotsHttpAuthSchemeProvider;
73
+ /**
74
+ * The token used to authenticate requests.
75
+ */
76
+ readonly token?: TokenIdentityProvider;
77
+ }
78
+ /**
79
+ * @internal
80
+ */
81
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig) => T & HttpAuthSchemeResolvedConfig;
@@ -1,7 +1,7 @@
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";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CreateVoiceBotInput, CreateVoiceBotOutput } 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 CreateVoiceBotCommandInput extends CreateVoiceBotInput {
22
22
  export interface CreateVoiceBotCommandOutput extends CreateVoiceBotOutput, __MetadataBearer {
23
23
  }
24
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;
25
+ new (input: CreateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<CreateVoiceBotCommandInput, CreateVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Creates a new voice bot with the specified configuration for the company.
@@ -33,6 +35,8 @@ declare const CreateVoiceBotCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, CreateVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, CreateVoiceBotCommand } = 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 = { // CreateVoiceBotInput
38
42
  * name: "STRING_VALUE", // required
@@ -89,6 +93,22 @@ declare const CreateVoiceBotCommand_base: {
89
93
  * type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
90
94
  * name: "STRING_VALUE", // required
91
95
  * parameters: "DOCUMENT_VALUE",
96
+ * annotations: [ // VoiceBotToolAnnotationsList
97
+ * { // VoiceBotToolAnnotation Union: only one key present
98
+ * tag: { // VoiceBotToolTagAnnotation
99
+ * value: "STRING_VALUE",
100
+ * applyOnSuccess: true || false,
101
+ * applyOnFailure: true || false,
102
+ * },
103
+ * comment: { // VoiceBotToolCommentAnnotation
104
+ * value: "STRING_VALUE",
105
+ * applyOnSuccess: true || false,
106
+ * applyOnFailure: true || false,
107
+ * },
108
+ * variables: {},
109
+ * result: {},
110
+ * },
111
+ * ],
92
112
  * },
93
113
  * ],
94
114
  * tools: [ // VoiceBotToolsList
@@ -130,6 +150,22 @@ declare const CreateVoiceBotCommand_base: {
130
150
  * },
131
151
  * },
132
152
  * },
153
+ * annotations: [
154
+ * {// Union: only one key present
155
+ * tag: {
156
+ * value: "STRING_VALUE",
157
+ * applyOnSuccess: true || false,
158
+ * applyOnFailure: true || false,
159
+ * },
160
+ * comment: {
161
+ * value: "STRING_VALUE",
162
+ * applyOnSuccess: true || false,
163
+ * applyOnFailure: true || false,
164
+ * },
165
+ * variables: {},
166
+ * result: {},
167
+ * },
168
+ * ],
133
169
  * },
134
170
  * ],
135
171
  * capabilities: [ // VoiceBotCapabilitiesList
@@ -155,10 +191,42 @@ declare const CreateVoiceBotCommand_base: {
155
191
  * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
156
192
  * instructions: "STRING_VALUE",
157
193
  * },
194
+ * annotations: [
195
+ * {// Union: only one key present
196
+ * tag: {
197
+ * value: "STRING_VALUE",
198
+ * applyOnSuccess: true || false,
199
+ * applyOnFailure: true || false,
200
+ * },
201
+ * comment: {
202
+ * value: "STRING_VALUE",
203
+ * applyOnSuccess: true || false,
204
+ * applyOnFailure: true || false,
205
+ * },
206
+ * variables: {},
207
+ * result: {},
208
+ * },
209
+ * ],
158
210
  * },
159
211
  * kb: { // VoiceBotKnowledgeBase
160
212
  * knowledgeBaseId: "STRING_VALUE",
161
213
  * instructions: "STRING_VALUE",
214
+ * annotations: [
215
+ * {// Union: only one key present
216
+ * tag: {
217
+ * value: "STRING_VALUE",
218
+ * applyOnSuccess: true || false,
219
+ * applyOnFailure: true || false,
220
+ * },
221
+ * comment: {
222
+ * value: "STRING_VALUE",
223
+ * applyOnSuccess: true || false,
224
+ * applyOnFailure: true || false,
225
+ * },
226
+ * variables: {},
227
+ * result: {},
228
+ * },
229
+ * ],
162
230
  * },
163
231
  * },
164
232
  * ],
@@ -211,10 +279,12 @@ declare const CreateVoiceBotCommand_base: {
211
279
  * type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
212
280
  * instructions: "STRING_VALUE",
213
281
  * },
282
+ * annotations: "<VoiceBotToolAnnotationsList>",
214
283
  * },
215
284
  * kb: {
216
285
  * knowledgeBaseId: "STRING_VALUE",
217
286
  * instructions: "STRING_VALUE",
287
+ * annotations: "<VoiceBotToolAnnotationsList>",
218
288
  * },
219
289
  * },
220
290
  * ],
@@ -279,6 +349,22 @@ declare const CreateVoiceBotCommand_base: {
279
349
  * // type: "HANGUP" || "TRANSFER" || "DELEGATE" || "WAIT", // required
280
350
  * // name: "STRING_VALUE", // required
281
351
  * // parameters: "DOCUMENT_VALUE",
352
+ * // annotations: [ // VoiceBotToolAnnotationsList
353
+ * // { // VoiceBotToolAnnotation Union: only one key present
354
+ * // tag: { // VoiceBotToolTagAnnotation
355
+ * // value: "STRING_VALUE",
356
+ * // applyOnSuccess: true || false,
357
+ * // applyOnFailure: true || false,
358
+ * // },
359
+ * // comment: { // VoiceBotToolCommentAnnotation
360
+ * // value: "STRING_VALUE",
361
+ * // applyOnSuccess: true || false,
362
+ * // applyOnFailure: true || false,
363
+ * // },
364
+ * // variables: {},
365
+ * // result: {},
366
+ * // },
367
+ * // ],
282
368
  * // },
283
369
  * // ],
284
370
  * // tools: [ // VoiceBotToolsList
@@ -320,6 +406,22 @@ declare const CreateVoiceBotCommand_base: {
320
406
  * // },
321
407
  * // },
322
408
  * // },
409
+ * // annotations: [
410
+ * // {// Union: only one key present
411
+ * // tag: {
412
+ * // value: "STRING_VALUE",
413
+ * // applyOnSuccess: true || false,
414
+ * // applyOnFailure: true || false,
415
+ * // },
416
+ * // comment: {
417
+ * // value: "STRING_VALUE",
418
+ * // applyOnSuccess: true || false,
419
+ * // applyOnFailure: true || false,
420
+ * // },
421
+ * // variables: {},
422
+ * // result: {},
423
+ * // },
424
+ * // ],
323
425
  * // },
324
426
  * // ],
325
427
  * // capabilities: [ // VoiceBotCapabilitiesList
@@ -345,10 +447,42 @@ declare const CreateVoiceBotCommand_base: {
345
447
  * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
346
448
  * // instructions: "STRING_VALUE",
347
449
  * // },
450
+ * // annotations: [
451
+ * // {// Union: only one key present
452
+ * // tag: {
453
+ * // value: "STRING_VALUE",
454
+ * // applyOnSuccess: true || false,
455
+ * // applyOnFailure: true || false,
456
+ * // },
457
+ * // comment: {
458
+ * // value: "STRING_VALUE",
459
+ * // applyOnSuccess: true || false,
460
+ * // applyOnFailure: true || false,
461
+ * // },
462
+ * // variables: {},
463
+ * // result: {},
464
+ * // },
465
+ * // ],
348
466
  * // },
349
467
  * // kb: { // VoiceBotKnowledgeBase
350
468
  * // knowledgeBaseId: "STRING_VALUE",
351
469
  * // instructions: "STRING_VALUE",
470
+ * // annotations: [
471
+ * // {// Union: only one key present
472
+ * // tag: {
473
+ * // value: "STRING_VALUE",
474
+ * // applyOnSuccess: true || false,
475
+ * // applyOnFailure: true || false,
476
+ * // },
477
+ * // comment: {
478
+ * // value: "STRING_VALUE",
479
+ * // applyOnSuccess: true || false,
480
+ * // applyOnFailure: true || false,
481
+ * // },
482
+ * // variables: {},
483
+ * // result: {},
484
+ * // },
485
+ * // ],
352
486
  * // },
353
487
  * // },
354
488
  * // ],
@@ -401,10 +535,12 @@ declare const CreateVoiceBotCommand_base: {
401
535
  * // type: "blocking_request" || "blocking_request_guided" || "async_request" || "async_request_guided",
402
536
  * // instructions: "STRING_VALUE",
403
537
  * // },
538
+ * // annotations: "<VoiceBotToolAnnotationsList>",
404
539
  * // },
405
540
  * // kb: {
406
541
  * // knowledgeBaseId: "STRING_VALUE",
407
542
  * // instructions: "STRING_VALUE",
543
+ * // annotations: "<VoiceBotToolAnnotationsList>",
408
544
  * // },
409
545
  * // },
410
546
  * // ],
@@ -1,7 +1,7 @@
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";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeleteVoiceBotInput, DeleteVoiceBotOutput } 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 DeleteVoiceBotCommandInput extends DeleteVoiceBotInput {
22
22
  export interface DeleteVoiceBotCommandOutput extends DeleteVoiceBotOutput, __MetadataBearer {
23
23
  }
24
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;
25
+ new (input: DeleteVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteVoiceBotCommandInput): import("@smithy/core/client").CommandImpl<DeleteVoiceBotCommandInput, DeleteVoiceBotCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Deletes an existing voice bot and all its associated data.
@@ -33,6 +35,8 @@ declare const DeleteVoiceBotCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, DeleteVoiceBotCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, DeleteVoiceBotCommand } = 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 = { // DeleteVoiceBotInput
38
42
  * company: "STRING_VALUE",
@@ -1,7 +1,7 @@
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";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DescribeEventInput, DescribeEventOutput } 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 DescribeEventCommandInput extends DescribeEventInput {
22
22
  export interface DescribeEventCommandOutput extends DescribeEventOutput, __MetadataBearer {
23
23
  }
24
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;
25
+ new (input: DescribeEventCommandInput): import("@smithy/core/client").CommandImpl<DescribeEventCommandInput, DescribeEventCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [DescribeEventCommandInput]): import("@smithy/core/client").CommandImpl<DescribeEventCommandInput, DescribeEventCommandOutput, VoiceBotsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * Utility method to describe available events for websocket and webhook events.
@@ -33,6 +35,8 @@ declare const DescribeEventCommand_base: {
33
35
  * ```javascript
34
36
  * import { VoiceBotsClient, DescribeEventCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
35
37
  * // const { VoiceBotsClient, DescribeEventCommand } = 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 = {};
38
42
  * const command = new DescribeEventCommand(input);
@@ -44,6 +48,7 @@ declare const DescribeEventCommand_base: {
44
48
  * // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
45
49
  * // id: "STRING_VALUE", // required
46
50
  * // text: "STRING_VALUE", // required
51
+ * // confidence: Number("double"),
47
52
  * // final: true || false,
48
53
  * // time: Number("long"), // required
49
54
  * // },
@@ -161,6 +166,7 @@ declare const DescribeEventCommand_base: {
161
166
  * // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
162
167
  * // id: "STRING_VALUE", // required
163
168
  * // text: "STRING_VALUE", // required
169
+ * // confidence: Number("double"),
164
170
  * // final: true || false,
165
171
  * // time: Number("long"), // required
166
172
  * // },
@@ -303,6 +309,7 @@ declare const DescribeEventCommand_base: {
303
309
  * // type: "started" || "ended" || "reply" || "audio" || "playback" || "transcription" || "interruption" || "complete", // required
304
310
  * // id: "STRING_VALUE", // required
305
311
  * // text: "STRING_VALUE", // required
312
+ * // confidence: Number("double"),
306
313
  * // final: true || false,
307
314
  * // time: Number("long"), // required
308
315
  * // },
@@ -335,6 +342,27 @@ declare const DescribeEventCommand_base: {
335
342
  * // type: "say" || "play" || "stop" || "hangup" || "transfer", // required
336
343
  * // },
337
344
  * // },
345
+ * // annotationCommand: { // TraceAnnotationCommand
346
+ * // annotation: { // Annotation
347
+ * // id: "STRING_VALUE", // required
348
+ * // time: Number("long"), // required
349
+ * // payload: { // AnnotationPayload Union: only one key present
350
+ * // tag: "STRING_VALUE",
351
+ * // text: "STRING_VALUE",
352
+ * // variables: { // AnnotationVariablesValue
353
+ * // value: "DOCUMENT_VALUE", // required
354
+ * // },
355
+ * // result: { // AnnotationResultValue
356
+ * // value: "DOCUMENT_VALUE", // required
357
+ * // },
358
+ * // },
359
+ * // source: { // AnnotationSource
360
+ * // type: "chatbot" || "voicebot" || "user" || "system", // required
361
+ * // id: "STRING_VALUE",
362
+ * // name: "STRING_VALUE",
363
+ * // },
364
+ * // },
365
+ * // },
338
366
  * // silenceTimeoutTask: { // TraceSilenceTimeoutTaskTrigger
339
367
  * // parameters: "DOCUMENT_VALUE",
340
368
  * // },