11// smithy-typescript generated code
2- import {
3- HttpAuthSchemeInputConfig ,
4- HttpAuthSchemeResolvedConfig ,
5- defaultXYZServiceHttpAuthSchemeParametersProvider ,
6- resolveHttpAuthSchemeConfig ,
7- } from "./auth/httpAuthSchemeProvider" ;
8- import { GetNumbersCommandInput , GetNumbersCommandOutput } from "./commands/GetNumbersCommand" ;
9- import { TradeEventStreamCommandInput , TradeEventStreamCommandOutput } from "./commands/TradeEventStreamCommand" ;
10- import {
11- ClientInputEndpointParameters ,
12- ClientResolvedEndpointParameters ,
13- EndpointParameters ,
14- resolveClientEndpointParameters ,
15- } from "./endpoint/EndpointParameters" ;
16- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig" ;
17- import { RuntimeExtension , RuntimeExtensionsConfig , resolveRuntimeExtensions } from "./runtimeExtensions" ;
182import {
193 DefaultIdentityProviderConfig ,
204 getHttpAuthSchemeEndpointRuleSetPlugin ,
215 getHttpSigningPlugin ,
226} from "@smithy/core" ;
237import { getSchemaSerdePlugin } from "@smithy/core/schema" ;
248import {
25- EventStreamSerdeInputConfig ,
26- EventStreamSerdeResolvedConfig ,
9+ type EventStreamSerdeInputConfig ,
10+ type EventStreamSerdeResolvedConfig ,
2711 resolveEventStreamSerdeConfig ,
2812} from "@smithy/eventstream-serde-config-resolver" ;
2913import { getContentLengthPlugin } from "@smithy/middleware-content-length" ;
3014import {
31- EndpointInputConfig ,
32- EndpointRequiredInputConfig ,
33- EndpointRequiredResolvedConfig ,
34- EndpointResolvedConfig ,
15+ type EndpointInputConfig ,
16+ type EndpointRequiredInputConfig ,
17+ type EndpointRequiredResolvedConfig ,
18+ type EndpointResolvedConfig ,
3519 resolveEndpointConfig ,
3620 resolveEndpointRequiredConfig ,
3721} from "@smithy/middleware-endpoint" ;
38- import { RetryInputConfig , RetryResolvedConfig , getRetryPlugin , resolveRetryConfig } from "@smithy/middleware-retry" ;
39- import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http" ;
4022import {
23+ type RetryInputConfig ,
24+ type RetryResolvedConfig ,
25+ getRetryPlugin ,
26+ resolveRetryConfig ,
27+ } from "@smithy/middleware-retry" ;
28+ import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http" ;
29+ import {
30+ type DefaultsMode as __DefaultsMode ,
31+ type SmithyConfiguration as __SmithyConfiguration ,
32+ type SmithyResolvedConfiguration as __SmithyResolvedConfiguration ,
4133 Client as __Client ,
42- DefaultsMode as __DefaultsMode ,
43- SmithyConfiguration as __SmithyConfiguration ,
44- SmithyResolvedConfiguration as __SmithyResolvedConfiguration ,
4534} from "@smithy/smithy-client" ;
46- import {
47- ClientProtocol ,
48- HttpRequest ,
49- HttpResponse ,
35+ import type {
5036 BodyLengthCalculator as __BodyLengthCalculator ,
5137 CheckOptionalClientConfig as __CheckOptionalClientConfig ,
5238 ChecksumConstructor as __ChecksumConstructor ,
39+ ClientProtocol ,
5340 Decoder as __Decoder ,
5441 Encoder as __Encoder ,
5542 EventStreamSerdeProvider as __EventStreamSerdeProvider ,
5643 HashConstructor as __HashConstructor ,
5744 HttpHandlerOptions as __HttpHandlerOptions ,
45+ HttpRequest ,
46+ HttpResponse ,
5847 Logger as __Logger ,
5948 Provider as __Provider ,
6049 StreamCollector as __StreamCollector ,
6150 UrlParser as __UrlParser ,
6251} from "@smithy/types" ;
6352
64- export { __Client } ;
53+ import {
54+ type HttpAuthSchemeInputConfig ,
55+ type HttpAuthSchemeResolvedConfig ,
56+ defaultXYZServiceHttpAuthSchemeParametersProvider ,
57+ resolveHttpAuthSchemeConfig ,
58+ } from "./auth/httpAuthSchemeProvider" ;
59+ import type { GetNumbersCommandInput , GetNumbersCommandOutput } from "./commands/GetNumbersCommand" ;
60+ import type { TradeEventStreamCommandInput , TradeEventStreamCommandOutput } from "./commands/TradeEventStreamCommand" ;
61+ import {
62+ type ClientInputEndpointParameters ,
63+ type ClientResolvedEndpointParameters ,
64+ type EndpointParameters ,
65+ resolveClientEndpointParameters ,
66+ } from "./endpoint/EndpointParameters" ;
67+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig" ;
68+ import {
69+ type RuntimeExtension ,
70+ type RuntimeExtensionsConfig ,
71+ resolveRuntimeExtensions ,
72+ } from "./runtimeExtensions" ;
73+
74+ export { __Client }
6575
6676/**
6777 * @public
6878 */
69- export type ServiceInputTypes = GetNumbersCommandInput | TradeEventStreamCommandInput ;
79+ export type ServiceInputTypes =
80+ | GetNumbersCommandInput
81+ | TradeEventStreamCommandInput ;
7082
7183/**
7284 * @public
7385 */
74- export type ServiceOutputTypes = GetNumbersCommandOutput | TradeEventStreamCommandOutput ;
86+ export type ServiceOutputTypes =
87+ | GetNumbersCommandOutput
88+ | TradeEventStreamCommandOutput ;
7589
7690/**
7791 * @public
7892 */
79- export interface ClientDefaults extends Partial < __SmithyConfiguration < __HttpHandlerOptions > > {
93+ export interface ClientDefaults
94+ extends Partial < __SmithyConfiguration < __HttpHandlerOptions > > {
8095 /**
8196 * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
8297 */
@@ -184,19 +199,20 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
184199 * The {@link @smithy/smithy-client#DefaultsMode } that will be used to determine how certain default configuration options are resolved in the SDK.
185200 */
186201 defaultsMode ?: __DefaultsMode | __Provider < __DefaultsMode > ;
202+
187203}
188204
189205/**
190206 * @public
191207 */
192- export type XYZServiceClientConfigType = Partial < __SmithyConfiguration < __HttpHandlerOptions > > &
193- ClientDefaults &
194- RetryInputConfig &
195- EndpointInputConfig < EndpointParameters > &
196- EndpointRequiredInputConfig &
197- EventStreamSerdeInputConfig &
198- HttpAuthSchemeInputConfig &
199- ClientInputEndpointParameters ;
208+ export type XYZServiceClientConfigType = Partial < __SmithyConfiguration < __HttpHandlerOptions > >
209+ & ClientDefaults
210+ & RetryInputConfig
211+ & EndpointInputConfig < EndpointParameters >
212+ & EndpointRequiredInputConfig
213+ & EventStreamSerdeInputConfig
214+ & HttpAuthSchemeInputConfig
215+ & ClientInputEndpointParameters
200216/**
201217 * @public
202218 *
@@ -207,15 +223,15 @@ export interface XYZServiceClientConfig extends XYZServiceClientConfigType {}
207223/**
208224 * @public
209225 */
210- export type XYZServiceClientResolvedConfigType = __SmithyResolvedConfiguration < __HttpHandlerOptions > &
211- Required < ClientDefaults > &
212- RuntimeExtensionsConfig &
213- RetryResolvedConfig &
214- EndpointResolvedConfig < EndpointParameters > &
215- EndpointRequiredResolvedConfig &
216- EventStreamSerdeResolvedConfig &
217- HttpAuthSchemeResolvedConfig &
218- ClientResolvedEndpointParameters ;
226+ export type XYZServiceClientResolvedConfigType = __SmithyResolvedConfiguration < __HttpHandlerOptions >
227+ & Required < ClientDefaults >
228+ & RuntimeExtensionsConfig
229+ & RetryResolvedConfig
230+ & EndpointResolvedConfig < EndpointParameters >
231+ & EndpointRequiredResolvedConfig
232+ & EventStreamSerdeResolvedConfig
233+ & HttpAuthSchemeResolvedConfig
234+ & ClientResolvedEndpointParameters
219235/**
220236 * @public
221237 *
@@ -239,27 +255,26 @@ export class XYZServiceClient extends __Client<
239255 readonly config : XYZServiceClientResolvedConfig ;
240256
241257 constructor ( ...[ configuration ] : __CheckOptionalClientConfig < XYZServiceClientConfig > ) {
242- let _config_0 = __getRuntimeConfig ( configuration || { } ) ;
258+ const _config_0 = __getRuntimeConfig ( configuration || { } ) ;
243259 super ( _config_0 as any ) ;
244260 this . initConfig = _config_0 ;
245- let _config_1 = resolveClientEndpointParameters ( _config_0 ) ;
246- let _config_2 = resolveRetryConfig ( _config_1 ) ;
247- let _config_3 = resolveEndpointConfig ( _config_2 ) ;
248- let _config_4 = resolveEndpointRequiredConfig ( _config_3 ) ;
249- let _config_5 = resolveEventStreamSerdeConfig ( _config_4 ) ;
250- let _config_6 = resolveHttpAuthSchemeConfig ( _config_5 ) ;
251- let _config_7 = resolveRuntimeExtensions ( _config_6 , configuration ?. extensions || [ ] ) ;
261+ const _config_1 = resolveClientEndpointParameters ( _config_0 ) ;
262+ const _config_2 = resolveRetryConfig ( _config_1 ) ;
263+ const _config_3 = resolveEndpointConfig ( _config_2 ) ;
264+ const _config_4 = resolveEndpointRequiredConfig ( _config_3 ) ;
265+ const _config_5 = resolveEventStreamSerdeConfig ( _config_4 ) ;
266+ const _config_6 = resolveHttpAuthSchemeConfig ( _config_5 ) ;
267+ const _config_7 = resolveRuntimeExtensions ( _config_6 , configuration ?. extensions || [ ] ) ;
252268 this . config = _config_7 ;
253269 this . middlewareStack . use ( getSchemaSerdePlugin ( this . config ) ) ;
254270 this . middlewareStack . use ( getRetryPlugin ( this . config ) ) ;
255271 this . middlewareStack . use ( getContentLengthPlugin ( this . config ) ) ;
256- this . middlewareStack . use (
257- getHttpAuthSchemeEndpointRuleSetPlugin ( this . config , {
272+ this . middlewareStack . use ( getHttpAuthSchemeEndpointRuleSetPlugin ( this . config ,
273+ {
258274 httpAuthSchemeParametersProvider : defaultXYZServiceHttpAuthSchemeParametersProvider ,
259- identityProviderConfigProvider : async ( config : XYZServiceClientResolvedConfig ) =>
260- new DefaultIdentityProviderConfig ( { } ) ,
261- } )
262- ) ;
275+ identityProviderConfigProvider : async ( config : XYZServiceClientResolvedConfig ) => new DefaultIdentityProviderConfig ( { } ) ,
276+ }
277+ ) ) ;
263278 this . middlewareStack . use ( getHttpSigningPlugin ( this . config ) ) ;
264279 }
265280
0 commit comments