Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/plenty-baboons-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
17 changes: 11 additions & 6 deletions private/my-local-model-schema/src/XYZService.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// smithy-typescript generated code
import { XYZServiceClient, XYZServiceClientConfig } from "./XYZServiceClient";
import { GetNumbersCommand, GetNumbersCommandInput, GetNumbersCommandOutput } from "./commands/GetNumbersCommand";
import { createAggregatedClient } from "@smithy/smithy-client";
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

import {
type GetNumbersCommandInput,
type GetNumbersCommandOutput,
GetNumbersCommand,
} from "./commands/GetNumbersCommand";
import {
type TradeEventStreamCommandInput,
type TradeEventStreamCommandOutput,
TradeEventStreamCommand,
TradeEventStreamCommandInput,
TradeEventStreamCommandOutput,
} from "./commands/TradeEventStreamCommand";
import { createAggregatedClient } from "@smithy/smithy-client";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { XYZServiceClient } from "./XYZServiceClient";

const commands = {
GetNumbersCommand,
Expand Down
68 changes: 37 additions & 31 deletions private/my-local-model-schema/src/XYZServiceClient.ts
Original file line number Diff line number Diff line change
@@ -1,66 +1,72 @@
// smithy-typescript generated code
import {
HttpAuthSchemeInputConfig,
HttpAuthSchemeResolvedConfig,
defaultXYZServiceHttpAuthSchemeParametersProvider,
resolveHttpAuthSchemeConfig,
} from "./auth/httpAuthSchemeProvider";
import { GetNumbersCommandInput, GetNumbersCommandOutput } from "./commands/GetNumbersCommand";
import { TradeEventStreamCommandInput, TradeEventStreamCommandOutput } from "./commands/TradeEventStreamCommand";
import {
ClientInputEndpointParameters,
ClientResolvedEndpointParameters,
EndpointParameters,
resolveClientEndpointParameters,
} from "./endpoint/EndpointParameters";
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
import { RuntimeExtension, RuntimeExtensionsConfig, resolveRuntimeExtensions } from "./runtimeExtensions";
import {
DefaultIdentityProviderConfig,
getHttpAuthSchemeEndpointRuleSetPlugin,
getHttpSigningPlugin,
} from "@smithy/core";
import { getSchemaSerdePlugin } from "@smithy/core/schema";
import {
EventStreamSerdeInputConfig,
EventStreamSerdeResolvedConfig,
type EventStreamSerdeInputConfig,
type EventStreamSerdeResolvedConfig,
resolveEventStreamSerdeConfig,
} from "@smithy/eventstream-serde-config-resolver";
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import {
EndpointInputConfig,
EndpointRequiredInputConfig,
EndpointRequiredResolvedConfig,
EndpointResolvedConfig,
type EndpointInputConfig,
type EndpointRequiredInputConfig,
type EndpointRequiredResolvedConfig,
type EndpointResolvedConfig,
resolveEndpointConfig,
resolveEndpointRequiredConfig,
} from "@smithy/middleware-endpoint";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import {
type RetryInputConfig,
type RetryResolvedConfig,
getRetryPlugin,
resolveRetryConfig,
} from "@smithy/middleware-retry";
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import {
type DefaultsMode as __DefaultsMode,
type SmithyConfiguration as __SmithyConfiguration,
type SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
Client as __Client,
DefaultsMode as __DefaultsMode,
SmithyConfiguration as __SmithyConfiguration,
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@smithy/smithy-client";
import {
ClientProtocol,
HttpRequest,
HttpResponse,
import type {
BodyLengthCalculator as __BodyLengthCalculator,
CheckOptionalClientConfig as __CheckOptionalClientConfig,
ChecksumConstructor as __ChecksumConstructor,
ClientProtocol,
Decoder as __Decoder,
Encoder as __Encoder,
EventStreamSerdeProvider as __EventStreamSerdeProvider,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
HttpRequest,
HttpResponse,
Logger as __Logger,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
} from "@smithy/types";

import {
type HttpAuthSchemeInputConfig,
type HttpAuthSchemeResolvedConfig,
defaultXYZServiceHttpAuthSchemeParametersProvider,
resolveHttpAuthSchemeConfig,
} from "./auth/httpAuthSchemeProvider";
import type { GetNumbersCommandInput, GetNumbersCommandOutput } from "./commands/GetNumbersCommand";
import type { TradeEventStreamCommandInput, TradeEventStreamCommandOutput } from "./commands/TradeEventStreamCommand";
import {
type ClientInputEndpointParameters,
type ClientResolvedEndpointParameters,
type EndpointParameters,
resolveClientEndpointParameters,
} from "./endpoint/EndpointParameters";
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
import { type RuntimeExtension, type RuntimeExtensionsConfig, resolveRuntimeExtensions } from "./runtimeExtensions";

export { __Client };

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// smithy-typescript generated code
import { XYZServiceHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
import { HttpAuthScheme } from "@smithy/types";
import type { HttpAuthScheme } from "@smithy/types";

import type { XYZServiceHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// smithy-typescript generated code
import { XYZServiceClientResolvedConfig } from "../XYZServiceClient";
import {
import type {
HandlerExecutionContext,
HttpAuthOption,
HttpAuthScheme,
Expand All @@ -11,6 +10,8 @@ import {
} from "@smithy/types";
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";

import type { XYZServiceClientResolvedConfig } from "../XYZServiceClient";

/**
* @internal
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// smithy-typescript generated code
import { ServiceInputTypes, ServiceOutputTypes, XYZServiceClientResolvedConfig } from "../XYZServiceClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { GetNumbersRequest, GetNumbersResponse } from "../models/models_0";
import { GetNumbers } from "../schemas/schemas_0";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import type { GetNumbersRequest, GetNumbersResponse } from "../models/models_0";
import { GetNumbers } from "../schemas/schemas_0";
import type { ServiceInputTypes, ServiceOutputTypes, XYZServiceClientResolvedConfig } from "../XYZServiceClient";

/**
* @public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// smithy-typescript generated code
import { ServiceInputTypes, ServiceOutputTypes, XYZServiceClientResolvedConfig } from "../XYZServiceClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { TradeEventStreamRequest, TradeEventStreamResponse } from "../models/models_0";
import { TradeEventStream } from "../schemas/schemas_0";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import type { TradeEventStreamRequest, TradeEventStreamResponse } from "../models/models_0";
import { TradeEventStream } from "../schemas/schemas_0";
import type { ServiceInputTypes, ServiceOutputTypes, XYZServiceClientResolvedConfig } from "../XYZServiceClient";

/**
* @public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// smithy-typescript generated code
import { Endpoint, EndpointV2, Provider, EndpointParameters as __EndpointParameters } from "@smithy/types";
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";

/**
* @public
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// smithy-typescript generated code
import { EndpointParameters } from "./EndpointParameters";
import type { EndpointV2, Logger } from "@smithy/types";
import { type EndpointParams, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";

import type { EndpointParameters } from "./EndpointParameters";
import { ruleSet } from "./ruleset";
import { EndpointV2, Logger } from "@smithy/types";
import { EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints";

const cache = new EndpointCache({
size: 50,
Expand Down
2 changes: 1 addition & 1 deletion private/my-local-model-schema/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// smithy-typescript generated code
import { RuleSetObject } from "@smithy/types";
import type { RuleSetObject } from "@smithy/types";

export const ruleSet: RuleSetObject = {
version: "1.0",
Expand Down
7 changes: 4 additions & 3 deletions private/my-local-model-schema/src/extensionConfiguration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// smithy-typescript generated code
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
import { DefaultExtensionConfiguration } from "@smithy/types";
import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
import type { DefaultExtensionConfiguration } from "@smithy/types";

import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// smithy-typescript generated code
import {
type ServiceExceptionOptions as __ServiceExceptionOptions,
ServiceException as __ServiceException,
ServiceExceptionOptions as __ServiceExceptionOptions,
} from "@smithy/smithy-client";

export type { __ServiceExceptionOptions };
Expand Down
3 changes: 2 additions & 1 deletion private/my-local-model-schema/src/models/errors.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// smithy-typescript generated code
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";

import { XYZServiceSyntheticServiceException as __BaseException } from "./XYZServiceSyntheticServiceException";
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";

/**
* @public
Expand Down
2 changes: 1 addition & 1 deletion private/my-local-model-schema/src/models/models_0.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// smithy-typescript generated code
import { NumericValue } from "@smithy/core/serde";
import type { NumericValue } from "@smithy/core/serde";

/**
* @public
Expand Down
7 changes: 4 additions & 3 deletions private/my-local-model-schema/src/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
import { Sha256 } from "@aws-crypto/sha256-browser";
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
import { calculateBodyLength } from "@smithy/util-body-length-browser";
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
import { XYZServiceClientConfig } from "./XYZServiceClient";

import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
import type { XYZServiceClientConfig } from "./XYZServiceClient";

/**
* @internal
Expand Down
3 changes: 2 additions & 1 deletion private/my-local-model-schema/src/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// smithy-typescript generated code
import { Sha256 } from "@aws-crypto/sha256-js";
import { XYZServiceClientConfig } from "./XYZServiceClient";

import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
import type { XYZServiceClientConfig } from "./XYZServiceClient";

/**
* @internal
Expand Down
9 changes: 5 additions & 4 deletions private/my-local-model-schema/src/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// smithy-typescript generated code
import { defaultXYZServiceHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
import { NoAuthSigner } from "@smithy/core";
import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
import { NoOpLogger } from "@smithy/smithy-client";
import { IdentityProviderConfig } from "@smithy/types";
import type { IdentityProviderConfig } from "@smithy/types";
import { parseUrl } from "@smithy/url-parser";
import { fromBase64, toBase64 } from "@smithy/util-base64";
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
import { XYZServiceClientConfig } from "./XYZServiceClient";

import { defaultXYZServiceHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
import type { XYZServiceClientConfig } from "./XYZServiceClient";

/**
* @internal
Expand Down
8 changes: 4 additions & 4 deletions private/my-local-model-schema/src/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { Hash } from "@smithy/hash-node";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
import { calculateBodyLength } from "@smithy/util-body-length-node";
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
import { XYZServiceClientConfig } from "./XYZServiceClient";

import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
import type { XYZServiceClientConfig } from "./XYZServiceClient";

/**
* @internal
Expand Down
5 changes: 3 additions & 2 deletions private/my-local-model-schema/src/runtimeExtensions.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// smithy-typescript generated code
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
import { XYZServiceExtensionConfiguration } from "./extensionConfiguration";

import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
import type { XYZServiceExtensionConfiguration } from "./extensionConfiguration";

/**
* @public
Expand Down
7 changes: 4 additions & 3 deletions private/my-local-model-schema/src/schemas/schemas_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@ const _t = "timestamp";
const n0 = "org.xyz.v1";

// smithy-typescript generated code
import { XYZServiceSyntheticServiceException as __XYZServiceSyntheticServiceException } from "../models/XYZServiceSyntheticServiceException";
import { TypeRegistry } from "@smithy/core/schema";
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";

import {
CodedThrottlingError as __CodedThrottlingError,
HaltError as __HaltError,
MysteryThrottlingError as __MysteryThrottlingError,
RetryableError as __RetryableError,
XYZServiceServiceException as __XYZServiceServiceException,
} from "../models/errors";
import { TypeRegistry } from "@smithy/core/schema";
import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
import { XYZServiceSyntheticServiceException as __XYZServiceSyntheticServiceException } from "../models/XYZServiceSyntheticServiceException";

/* eslint no-var: 0 */

Expand Down
7 changes: 4 additions & 3 deletions private/my-local-model/src/XYZService.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// smithy-typescript generated code
import { XYZServiceClient, XYZServiceClientConfig } from "./XYZServiceClient";
import { createAggregatedClient } from "@smithy/smithy-client";
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

import { GetNumbersCommand, GetNumbersCommandInput, GetNumbersCommandOutput } from "./commands/GetNumbersCommand";
import {
TradeEventStreamCommand,
TradeEventStreamCommandInput,
TradeEventStreamCommandOutput,
} from "./commands/TradeEventStreamCommand";
import { createAggregatedClient } from "@smithy/smithy-client";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { XYZServiceClient } from "./XYZServiceClient";

const commands = {
GetNumbersCommand,
Expand Down
Loading