From e70b1318fabb71e344b0c27d54c08272530d87c8 Mon Sep 17 00:00:00 2001 From: smilkuri Date: Fri, 5 Dec 2025 15:58:10 +0000 Subject: [PATCH 1/2] chore: codegen changes for handling conflicting params --- clients/client-s3/src/endpoint/EndpointParameters.ts | 9 +++++++++ .../client-s3/impl/initializeWithMaximalConfiguration.ts | 1 + .../weather/src/auth/httpAuthExtensionConfiguration.ts | 4 ++-- private/weather/src/auth/httpAuthSchemeProvider.ts | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/clients/client-s3/src/endpoint/EndpointParameters.ts b/clients/client-s3/src/endpoint/EndpointParameters.ts index 73589d530a0b0..a7da62dc935a9 100644 --- a/clients/client-s3/src/endpoint/EndpointParameters.ts +++ b/clients/client-s3/src/endpoint/EndpointParameters.ts @@ -5,6 +5,9 @@ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, * @public */ export interface ClientInputEndpointParameters { + clientContextParams?: { + disableS3ExpressSessionAuth?: boolean | undefined | Provider; + }; region?: string | undefined | Provider; useFipsEndpoint?: boolean | undefined | Provider; useDualstackEndpoint?: boolean | undefined | Provider; @@ -24,6 +27,11 @@ export type ClientResolvedEndpointParameters = Omit( useGlobalEndpoint: options.useGlobalEndpoint ?? false, disableMultiregionAccessPoints: options.disableMultiregionAccessPoints ?? false, defaultSigningName: "s3", + clientContextParams: options.clientContextParams ?? {}, }); }; diff --git a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts index 38ad4ec381aa4..fd3e0ce5bdbd9 100644 --- a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts +++ b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts @@ -128,6 +128,7 @@ export const initializeWithMaximalConfiguration = () => { httpAuthSchemes: [], httpAuthSchemeProvider: (() => null) as unknown as HttpAuthSchemeProvider, serviceConfiguredEndpoint: null as never, + clientContextParams: {}, // END internal options // S3 specific options below diff --git a/private/weather/src/auth/httpAuthExtensionConfiguration.ts b/private/weather/src/auth/httpAuthExtensionConfiguration.ts index b7f36cf48aace..7ecffb889668f 100644 --- a/private/weather/src/auth/httpAuthExtensionConfiguration.ts +++ b/private/weather/src/auth/httpAuthExtensionConfiguration.ts @@ -1,8 +1,8 @@ // smithy-typescript generated code import { + type ApiKeyIdentity, + type ApiKeyIdentityProvider, type HttpAuthScheme, - ApiKeyIdentity, - ApiKeyIdentityProvider, AwsCredentialIdentity, AwsCredentialIdentityProvider, TokenIdentity, diff --git a/private/weather/src/auth/httpAuthSchemeProvider.ts b/private/weather/src/auth/httpAuthSchemeProvider.ts index da1c65ffe2e6a..fbd5fa88ddfec 100644 --- a/private/weather/src/auth/httpAuthSchemeProvider.ts +++ b/private/weather/src/auth/httpAuthSchemeProvider.ts @@ -1,6 +1,8 @@ // smithy-typescript generated code import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core"; import { + type ApiKeyIdentity, + type ApiKeyIdentityProvider, type HandlerExecutionContext, type HttpAuthOption, type HttpAuthScheme, @@ -8,8 +10,6 @@ import { type HttpAuthSchemeParametersProvider, type HttpAuthSchemeProvider, type Provider, - ApiKeyIdentity, - ApiKeyIdentityProvider, AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpApiKeyAuthLocation, From fe23a9ba6103e11f33b2865f1b23227dce7baf60 Mon Sep 17 00:00:00 2001 From: smilkuri Date: Mon, 15 Dec 2025 21:12:06 +0000 Subject: [PATCH 2/2] chore(codegen): update commit hash --- scripts/generate-clients/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index 02782c1a35cc1..cf071ea44d035 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -2,8 +2,8 @@ module.exports = { // Use full commit hash as we explicitly fetch it. // Comparison link (update with previous hash): - // https://github.com/smithy-lang/smithy-typescript/compare/27f444b8aa045e37abfa811577fa3ed7d921516a...8b90f360df2a5c80c105db732b3c2f6972994854 - SMITHY_TS_COMMIT: "8b90f360df2a5c80c105db732b3c2f6972994854", + // https://github.com/smithy-lang/smithy-typescript/compare/8b90f360df2a5c80c105db732b3c2f6972994854...76d7994ef3f8373bb866a60e7ef87adca147a2f0 + SMITHY_TS_COMMIT: "76d7994ef3f8373bb866a60e7ef87adca147a2f0", }; if (module.exports.SMITHY_TS_COMMIT.length < 40) {