@aws-sdk/nested-clients
Advanced tools
@@ -1,2 +0,1 @@ | ||
| 'use strict'; | ||
@@ -1,20 +0,20 @@ | ||
| 'use strict'; | ||
| const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client"); | ||
| const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core"); | ||
| const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client"); | ||
| exports.$Command = Command; | ||
| exports.__Client = Client; | ||
| const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config"); | ||
| const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints"); | ||
| const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols"); | ||
| const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry"); | ||
| const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema"); | ||
| const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes"); | ||
| const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde"); | ||
| const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler"); | ||
| const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols"); | ||
| var client$1 = require('@aws-sdk/core/client'); | ||
| var core = require('@smithy/core'); | ||
| var client = require('@smithy/core/client'); | ||
| var config = require('@smithy/core/config'); | ||
| var endpoints = require('@smithy/core/endpoints'); | ||
| var protocols = require('@smithy/core/protocols'); | ||
| var retry = require('@smithy/core/retry'); | ||
| var schema = require('@smithy/core/schema'); | ||
| var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes'); | ||
| var serde = require('@smithy/core/serde'); | ||
| var nodeHttpHandler = require('@smithy/node-http-handler'); | ||
| var protocols$1 = require('@aws-sdk/core/protocols'); | ||
| const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => { | ||
| return { | ||
| operation: client.getSmithyContext(context).operation, | ||
| region: await client.normalizeProvider(config.region)() || (() => { | ||
| operation: getSmithyContext(context).operation, | ||
| region: await normalizeProvider(config.region)() || (() => { | ||
| throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); | ||
@@ -62,5 +62,5 @@ })(), | ||
| const resolveHttpAuthSchemeConfig = (config) => { | ||
| const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config); | ||
| const config_0 = resolveAwsSdkSigV4Config(config); | ||
| return Object.assign(config_0, { | ||
| authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []), | ||
| authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), | ||
| }); | ||
@@ -83,3 +83,3 @@ }; | ||
| var version = "3.997.19"; | ||
| var version = "3.997.20"; | ||
| var packageInfo = { | ||
@@ -147,5 +147,5 @@ version: version}; | ||
| ]); | ||
| const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const cache = new endpoints.EndpointCache({ | ||
| const cache = new EndpointCache({ | ||
| size: 50, | ||
@@ -155,3 +155,3 @@ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
| const defaultEndpointResolver = (endpointParams, context = {}) => { | ||
| return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, { | ||
| return cache.get(endpointParams, () => decideEndpoint(bdd, { | ||
| endpointParams: endpointParams, | ||
@@ -161,5 +161,5 @@ logger: context.logger, | ||
| }; | ||
| endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions; | ||
| customEndpointFunctions.aws = awsEndpointFunctions; | ||
| class CognitoIdentityServiceException extends client.ServiceException { | ||
| class CognitoIdentityServiceException extends ServiceException { | ||
| constructor(options) { | ||
@@ -315,6 +315,6 @@ super(options); | ||
| const n0 = "com.amazonaws.cognitoidentity"; | ||
| const _s_registry = schema.TypeRegistry.for(_s); | ||
| const _s_registry = TypeRegistry.for(_s); | ||
| var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []]; | ||
| _s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException); | ||
| const n0_registry = schema.TypeRegistry.for(n0); | ||
| const n0_registry = TypeRegistry.for(n0); | ||
| var ExternalServiceException$ = [-3, n0, _ESE, | ||
@@ -421,4 +421,4 @@ { [_e]: _c, [_hE]: 400 }, | ||
| apiVersion: "2014-06-30", | ||
| base64Decoder: config?.base64Decoder ?? serde.fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? serde.toBase64, | ||
| base64Decoder: config?.base64Decoder ?? fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? toBase64, | ||
| disableHostPrefix: config?.disableHostPrefix ?? false, | ||
@@ -432,3 +432,3 @@ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4Signer(), | ||
| signer: new AwsSdkSigV4Signer(), | ||
| }, | ||
@@ -438,7 +438,7 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
| signer: new core.NoAuthSigner(), | ||
| signer: new NoAuthSigner(), | ||
| }, | ||
| ], | ||
| logger: config?.logger ?? new client.NoOpLogger(), | ||
| protocol: config?.protocol ?? protocols$1.AwsJson1_1Protocol, | ||
| logger: config?.logger ?? new NoOpLogger(), | ||
| protocol: config?.protocol ?? AwsJson1_1Protocol, | ||
| protocolSettings: config?.protocolSettings ?? { | ||
@@ -452,16 +452,16 @@ defaultNamespace: "com.amazonaws.cognitoidentity", | ||
| serviceId: config?.serviceId ?? "Cognito Identity", | ||
| urlParser: config?.urlParser ?? protocols.parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? serde.toUtf8, | ||
| urlParser: config?.urlParser ?? parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
| }; | ||
| }; | ||
| const getRuntimeConfig = (config$1) => { | ||
| client.emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = config.resolveDefaultsModeConfig(config$1); | ||
| const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config$1); | ||
| client$1.emitWarningIfUnsupportedVersion(process.version); | ||
| const getRuntimeConfig = (config) => { | ||
| emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = resolveDefaultsModeConfig(config); | ||
| const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config); | ||
| emitWarningIfUnsupportedVersion$1(process.version); | ||
| const loaderConfig = { | ||
| profile: config$1?.profile, | ||
| profile: config?.profile, | ||
| logger: clientSharedValues.logger, | ||
@@ -471,21 +471,21 @@ }; | ||
| ...clientSharedValues, | ||
| ...config$1, | ||
| ...config, | ||
| runtime: "node", | ||
| defaultsMode, | ||
| authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength, | ||
| defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1), | ||
| region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config$1?.retryMode ?? | ||
| config.loadConfig({ | ||
| ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE, | ||
| }, config$1), | ||
| sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"), | ||
| streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector, | ||
| useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, | ||
| defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), | ||
| region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config?.retryMode ?? | ||
| loadConfig({ | ||
| ...NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, | ||
| }, config), | ||
| sha256: config?.sha256 ?? Hash.bind(null, "sha256"), | ||
| streamCollector: config?.streamCollector ?? streamCollector, | ||
| useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| }; | ||
@@ -534,8 +534,8 @@ }; | ||
| const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
| const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| }; | ||
| class CognitoIdentityClient extends client.Client { | ||
| class CognitoIdentityClient extends Client { | ||
| config; | ||
@@ -547,24 +547,24 @@ constructor(...[configuration]) { | ||
| const _config_1 = resolveClientEndpointParameters(_config_0); | ||
| const _config_2 = client$1.resolveUserAgentConfig(_config_1); | ||
| const _config_3 = retry.resolveRetryConfig(_config_2); | ||
| const _config_4 = config.resolveRegionConfig(_config_3); | ||
| const _config_5 = client$1.resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = endpoints.resolveEndpointConfig(_config_5); | ||
| const _config_2 = resolveUserAgentConfig(_config_1); | ||
| const _config_3 = resolveRetryConfig(_config_2); | ||
| const _config_4 = resolveRegionConfig(_config_3); | ||
| const _config_5 = resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = resolveEndpointConfig(_config_5); | ||
| const _config_7 = resolveHttpAuthSchemeConfig(_config_6); | ||
| const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); | ||
| this.config = _config_8; | ||
| this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(retry.getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(protocols.getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| this.middlewareStack.use(getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| httpAuthSchemeParametersProvider: defaultCognitoIdentityHttpAuthSchemeParametersProvider, | ||
| identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ | ||
| identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ | ||
| "aws.auth#sigv4": config.credentials, | ||
| }), | ||
| })); | ||
| this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpSigningPlugin(this.config)); | ||
| } | ||
@@ -576,7 +576,7 @@ destroy() { | ||
| class GetCredentialsForIdentityCommand extends client.Command | ||
| class GetCredentialsForIdentityCommand extends Command | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .m(function (Command, cs, config, o) { | ||
| return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| }) | ||
@@ -589,7 +589,7 @@ .s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}) | ||
| class GetIdCommand extends client.Command | ||
| class GetIdCommand extends Command | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .m(function (Command, cs, config, o) { | ||
| return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| }) | ||
@@ -608,6 +608,4 @@ .s("AWSCognitoIdentityService", "GetId", {}) | ||
| } | ||
| client.createAggregatedClient(commands, CognitoIdentity); | ||
| createAggregatedClient(commands, CognitoIdentity); | ||
| exports.$Command = client.Command; | ||
| exports.__Client = client.Client; | ||
| exports.CognitoIdentity = CognitoIdentity; | ||
@@ -614,0 +612,0 @@ exports.CognitoIdentityClient = CognitoIdentityClient; |
@@ -1,20 +0,20 @@ | ||
| 'use strict'; | ||
| const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client"); | ||
| const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core"); | ||
| const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client"); | ||
| exports.$Command = Command; | ||
| exports.__Client = Client; | ||
| const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config"); | ||
| const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints"); | ||
| const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols"); | ||
| const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry"); | ||
| const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema"); | ||
| const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes"); | ||
| const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde"); | ||
| const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler"); | ||
| const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols"); | ||
| var client$1 = require('@aws-sdk/core/client'); | ||
| var core = require('@smithy/core'); | ||
| var client = require('@smithy/core/client'); | ||
| var config = require('@smithy/core/config'); | ||
| var endpoints = require('@smithy/core/endpoints'); | ||
| var protocols = require('@smithy/core/protocols'); | ||
| var retry = require('@smithy/core/retry'); | ||
| var schema = require('@smithy/core/schema'); | ||
| var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes'); | ||
| var serde = require('@smithy/core/serde'); | ||
| var nodeHttpHandler = require('@smithy/node-http-handler'); | ||
| var protocols$1 = require('@aws-sdk/core/protocols'); | ||
| const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => { | ||
| return { | ||
| operation: client.getSmithyContext(context).operation, | ||
| region: await client.normalizeProvider(config.region)() || (() => { | ||
| operation: getSmithyContext(context).operation, | ||
| region: await normalizeProvider(config.region)() || (() => { | ||
| throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); | ||
@@ -58,5 +58,5 @@ })(), | ||
| const resolveHttpAuthSchemeConfig = (config) => { | ||
| const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config); | ||
| const config_0 = resolveAwsSdkSigV4Config(config); | ||
| return Object.assign(config_0, { | ||
| authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []), | ||
| authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), | ||
| }); | ||
@@ -79,36 +79,54 @@ }; | ||
| var version = "3.997.19"; | ||
| var version = "3.997.20"; | ||
| var packageInfo = { | ||
| version: version}; | ||
| const m = "ref"; | ||
| const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }]; | ||
| const p = "ref"; | ||
| const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l]; | ||
| const _data = { | ||
| conditions: [ | ||
| [c, [h]], | ||
| [c, l], | ||
| ["aws.partition", l, d], | ||
| [e, [{ [m]: "UseFIPS" }, b]], | ||
| [e, [{ [m]: "UseDualStack" }, b]], | ||
| [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]], | ||
| [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]], | ||
| [g, [j, "aws"]], | ||
| [g, [j, "aws-cn"]], | ||
| [g, [j, "aws-us-gov"]] | ||
| [c, o], | ||
| [d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]], | ||
| [c, [i]], | ||
| ["aws.partition", o, e], | ||
| [d, [{ [p]: "UseFIPS" }, b]], | ||
| [d, [{ [p]: "UseDualStack" }, b]], | ||
| [f, [j, "aws"]], | ||
| [f, [j, "aws-cn"]], | ||
| [d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]], | ||
| [f, [l, "us-gov-west-1"]], | ||
| [f, [j, "aws-us-gov"]], | ||
| [d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]], | ||
| [f, [j, "aws-iso"]], | ||
| [f, [j, "aws-iso-b"]], | ||
| [f, [j, "aws-iso-f"]], | ||
| [f, [j, "aws-iso-e"]], | ||
| [f, [j, "aws-eusc"]] | ||
| ], | ||
| results: [ | ||
| [a], | ||
| ["https://signin.{Region}.api.aws", m], | ||
| ["https://signin.{Region}.api.amazonwebservices.com.cn", m], | ||
| [h, m], | ||
| ["https://{Region}.signin.aws.amazon.com", n], | ||
| ["https://{Region}.signin.amazonaws.cn", n], | ||
| ["https://{Region}.signin.amazonaws-us-gov.com", n], | ||
| ["https://{Region}.signin.c2shome.ic.gov", n], | ||
| ["https://{Region}.signin.sc2shome.sgov.gov", n], | ||
| ["https://{Region}.signin.csphome.hci.ic.gov", n], | ||
| ["https://{Region}.signin.csphome.adc-e.uk", n], | ||
| ["https://{Region}.signin.amazonaws-eusc.eu", n], | ||
| ["https://signin-fips.amazonaws-us-gov.com", n], | ||
| ["https://{Region}.signin-fips.amazonaws-us-gov.com", n], | ||
| ["https://{Region}.signin.{PartitionResult#dnsSuffix}", n], | ||
| [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], | ||
| [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], | ||
| [h, k], | ||
| ["https://{Region}.signin.aws.amazon.com", k], | ||
| ["https://{Region}.signin.amazonaws.cn", k], | ||
| ["https://{Region}.signin.amazonaws-us-gov.com", k], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k], | ||
| [i, n], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n], | ||
| [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n], | ||
| [a, "FIPS is enabled but this partition does not support FIPS"], | ||
| ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k], | ||
| [h, n], | ||
| [a, "DualStack is enabled but this partition does not support DualStack"], | ||
| ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k], | ||
| ["https://signin.{Region}.{PartitionResult#dnsSuffix}", n], | ||
| [a, "Invalid Configuration: Missing Region"] | ||
@@ -121,26 +139,43 @@ ] | ||
| -1, 1, -1, | ||
| 0, 15, 3, | ||
| 1, 4, r + 14, | ||
| 2, 5, r + 14, | ||
| 3, 11, 6, | ||
| 4, 10, 7, | ||
| 7, r + 4, 8, | ||
| 8, r + 5, 9, | ||
| 9, r + 6, r + 13, | ||
| 5, r + 11, r + 12, | ||
| 4, 13, 12, | ||
| 6, r + 9, r + 10, | ||
| 5, 14, r + 8, | ||
| 6, r + 7, r + 8, | ||
| 3, r + 1, 16, | ||
| 4, r + 2, r + 3, | ||
| 0, 4, 3, | ||
| 2, 30, r + 25, | ||
| 1, 24, 5, | ||
| 2, 30, 6, | ||
| 3, 7, 26, | ||
| 4, 18, 8, | ||
| 5, 17, 9, | ||
| 6, r + 4, 10, | ||
| 7, r + 5, 11, | ||
| 10, r + 6, 12, | ||
| 12, r + 7, 13, | ||
| 13, r + 8, 14, | ||
| 14, r + 9, 15, | ||
| 15, r + 10, 16, | ||
| 16, r + 11, r + 14, | ||
| 8, r + 22, r + 23, | ||
| 5, 22, 19, | ||
| 9, r + 12, 20, | ||
| 10, r + 13, 21, | ||
| 11, r + 20, r + 21, | ||
| 8, 23, r + 19, | ||
| 11, r + 18, r + 19, | ||
| 2, 29, 25, | ||
| 3, 32, 26, | ||
| 4, 27, r + 25, | ||
| 5, r + 25, 28, | ||
| 9, r + 12, r + 25, | ||
| 3, 32, 30, | ||
| 4, r + 15, 31, | ||
| 5, r + 16, r + 17, | ||
| 6, r + 1, 33, | ||
| 7, r + 2, r + 3, | ||
| ]); | ||
| const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const cache = new endpoints.EndpointCache({ | ||
| const cache = new EndpointCache({ | ||
| size: 50, | ||
| params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
| params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"], | ||
| }); | ||
| const defaultEndpointResolver = (endpointParams, context = {}) => { | ||
| return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, { | ||
| return cache.get(endpointParams, () => decideEndpoint(bdd, { | ||
| endpointParams: endpointParams, | ||
@@ -150,5 +185,5 @@ logger: context.logger, | ||
| }; | ||
| endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions; | ||
| customEndpointFunctions.aws = awsEndpointFunctions; | ||
| class SigninServiceException extends client.ServiceException { | ||
| class SigninServiceException extends ServiceException { | ||
| constructor(options) { | ||
@@ -252,6 +287,6 @@ super(options); | ||
| const n0 = "com.amazonaws.signin"; | ||
| const _s_registry = schema.TypeRegistry.for(_s); | ||
| const _s_registry = TypeRegistry.for(_s); | ||
| var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []]; | ||
| _s_registry.registerError(SigninServiceException$, SigninServiceException); | ||
| const n0_registry = schema.TypeRegistry.for(n0); | ||
| const n0_registry = TypeRegistry.for(n0); | ||
| var AccessDeniedException$ = [-3, n0, _ADE, | ||
@@ -318,4 +353,4 @@ { [_e]: _c }, | ||
| apiVersion: "2023-01-01", | ||
| base64Decoder: config?.base64Decoder ?? serde.fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? serde.toBase64, | ||
| base64Decoder: config?.base64Decoder ?? fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? toBase64, | ||
| disableHostPrefix: config?.disableHostPrefix ?? false, | ||
@@ -329,3 +364,3 @@ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4Signer(), | ||
| signer: new AwsSdkSigV4Signer(), | ||
| }, | ||
@@ -335,7 +370,7 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
| signer: new core.NoAuthSigner(), | ||
| signer: new NoAuthSigner(), | ||
| }, | ||
| ], | ||
| logger: config?.logger ?? new client.NoOpLogger(), | ||
| protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol, | ||
| logger: config?.logger ?? new NoOpLogger(), | ||
| protocol: config?.protocol ?? AwsRestJsonProtocol, | ||
| protocolSettings: config?.protocolSettings ?? { | ||
@@ -348,16 +383,16 @@ defaultNamespace: "com.amazonaws.signin", | ||
| serviceId: config?.serviceId ?? "Signin", | ||
| urlParser: config?.urlParser ?? protocols.parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? serde.toUtf8, | ||
| urlParser: config?.urlParser ?? parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
| }; | ||
| }; | ||
| const getRuntimeConfig = (config$1) => { | ||
| client.emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = config.resolveDefaultsModeConfig(config$1); | ||
| const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config$1); | ||
| client$1.emitWarningIfUnsupportedVersion(process.version); | ||
| const getRuntimeConfig = (config) => { | ||
| emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = resolveDefaultsModeConfig(config); | ||
| const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config); | ||
| emitWarningIfUnsupportedVersion$1(process.version); | ||
| const loaderConfig = { | ||
| profile: config$1?.profile, | ||
| profile: config?.profile, | ||
| logger: clientSharedValues.logger, | ||
@@ -367,21 +402,21 @@ }; | ||
| ...clientSharedValues, | ||
| ...config$1, | ||
| ...config, | ||
| runtime: "node", | ||
| defaultsMode, | ||
| authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength, | ||
| defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1), | ||
| region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config$1?.retryMode ?? | ||
| config.loadConfig({ | ||
| ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE, | ||
| }, config$1), | ||
| sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"), | ||
| streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector, | ||
| useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, | ||
| defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), | ||
| region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config?.retryMode ?? | ||
| loadConfig({ | ||
| ...NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, | ||
| }, config), | ||
| sha256: config?.sha256 ?? Hash.bind(null, "sha256"), | ||
| streamCollector: config?.streamCollector ?? streamCollector, | ||
| useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| }; | ||
@@ -430,8 +465,8 @@ }; | ||
| const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
| const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| }; | ||
| class SigninClient extends client.Client { | ||
| class SigninClient extends Client { | ||
| config; | ||
@@ -443,24 +478,24 @@ constructor(...[configuration]) { | ||
| const _config_1 = resolveClientEndpointParameters(_config_0); | ||
| const _config_2 = client$1.resolveUserAgentConfig(_config_1); | ||
| const _config_3 = retry.resolveRetryConfig(_config_2); | ||
| const _config_4 = config.resolveRegionConfig(_config_3); | ||
| const _config_5 = client$1.resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = endpoints.resolveEndpointConfig(_config_5); | ||
| const _config_2 = resolveUserAgentConfig(_config_1); | ||
| const _config_3 = resolveRetryConfig(_config_2); | ||
| const _config_4 = resolveRegionConfig(_config_3); | ||
| const _config_5 = resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = resolveEndpointConfig(_config_5); | ||
| const _config_7 = resolveHttpAuthSchemeConfig(_config_6); | ||
| const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); | ||
| this.config = _config_8; | ||
| this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(retry.getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(protocols.getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| this.middlewareStack.use(getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider, | ||
| identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ | ||
| identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ | ||
| "aws.auth#sigv4": config.credentials, | ||
| }), | ||
| })); | ||
| this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpSigningPlugin(this.config)); | ||
| } | ||
@@ -472,7 +507,10 @@ destroy() { | ||
| class CreateOAuth2TokenCommand extends client.Command | ||
| class CreateOAuth2TokenCommand extends Command | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .ep({ | ||
| ...commonParams, | ||
| IsControlPlane: { type: "staticContextParams", value: false }, | ||
| }) | ||
| .m(function (Command, cs, config, o) { | ||
| return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| }) | ||
@@ -490,9 +528,12 @@ .s("Signin", "CreateOAuth2Token", {}) | ||
| } | ||
| client.createAggregatedClient(commands, Signin); | ||
| createAggregatedClient(commands, Signin); | ||
| const OAuth2ErrorCode = { | ||
| AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED", | ||
| CONFLICT: "CONFLICT", | ||
| INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS", | ||
| INVALID_REQUEST: "INVALID_REQUEST", | ||
| RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", | ||
| SERVER_ERROR: "server_error", | ||
| SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED", | ||
| TOKEN_EXPIRED: "TOKEN_EXPIRED", | ||
@@ -502,4 +543,2 @@ USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED", | ||
| exports.$Command = client.Command; | ||
| exports.__Client = client.Client; | ||
| exports.AccessDeniedException = AccessDeniedException; | ||
@@ -506,0 +545,0 @@ exports.AccessDeniedException$ = AccessDeniedException$; |
@@ -1,20 +0,20 @@ | ||
| 'use strict'; | ||
| const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client"); | ||
| const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core"); | ||
| const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client"); | ||
| exports.$Command = Command; | ||
| exports.__Client = Client; | ||
| const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config"); | ||
| const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints"); | ||
| const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols"); | ||
| const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry"); | ||
| const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema"); | ||
| const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes"); | ||
| const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde"); | ||
| const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler"); | ||
| const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols"); | ||
| var client$1 = require('@aws-sdk/core/client'); | ||
| var core = require('@smithy/core'); | ||
| var client = require('@smithy/core/client'); | ||
| var config = require('@smithy/core/config'); | ||
| var endpoints = require('@smithy/core/endpoints'); | ||
| var protocols = require('@smithy/core/protocols'); | ||
| var retry = require('@smithy/core/retry'); | ||
| var schema = require('@smithy/core/schema'); | ||
| var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes'); | ||
| var serde = require('@smithy/core/serde'); | ||
| var nodeHttpHandler = require('@smithy/node-http-handler'); | ||
| var protocols$1 = require('@aws-sdk/core/protocols'); | ||
| const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => { | ||
| return { | ||
| operation: client.getSmithyContext(context).operation, | ||
| region: await client.normalizeProvider(config.region)() || (() => { | ||
| operation: getSmithyContext(context).operation, | ||
| region: await normalizeProvider(config.region)() || (() => { | ||
| throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); | ||
@@ -58,5 +58,5 @@ })(), | ||
| const resolveHttpAuthSchemeConfig = (config) => { | ||
| const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config); | ||
| const config_0 = resolveAwsSdkSigV4Config(config); | ||
| return Object.assign(config_0, { | ||
| authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []), | ||
| authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), | ||
| }); | ||
@@ -79,3 +79,3 @@ }; | ||
| var version = "3.997.19"; | ||
| var version = "3.997.20"; | ||
| var packageInfo = { | ||
@@ -131,5 +131,5 @@ version: version}; | ||
| ]); | ||
| const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const cache = new endpoints.EndpointCache({ | ||
| const cache = new EndpointCache({ | ||
| size: 50, | ||
@@ -139,3 +139,3 @@ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
| const defaultEndpointResolver = (endpointParams, context = {}) => { | ||
| return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, { | ||
| return cache.get(endpointParams, () => decideEndpoint(bdd, { | ||
| endpointParams: endpointParams, | ||
@@ -145,5 +145,5 @@ logger: context.logger, | ||
| }; | ||
| endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions; | ||
| customEndpointFunctions.aws = awsEndpointFunctions; | ||
| class SSOOIDCServiceException extends client.ServiceException { | ||
| class SSOOIDCServiceException extends ServiceException { | ||
| constructor(options) { | ||
@@ -377,6 +377,6 @@ super(options); | ||
| const n0 = "com.amazonaws.ssooidc"; | ||
| const _s_registry = schema.TypeRegistry.for(_s); | ||
| const _s_registry = TypeRegistry.for(_s); | ||
| var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []]; | ||
| _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException); | ||
| const n0_registry = schema.TypeRegistry.for(n0); | ||
| const n0_registry = TypeRegistry.for(n0); | ||
| var AccessDeniedException$ = [-3, n0, _ADE, | ||
@@ -474,4 +474,4 @@ { [_e]: _c, [_hE]: 400 }, | ||
| apiVersion: "2019-06-10", | ||
| base64Decoder: config?.base64Decoder ?? serde.fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? serde.toBase64, | ||
| base64Decoder: config?.base64Decoder ?? fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? toBase64, | ||
| disableHostPrefix: config?.disableHostPrefix ?? false, | ||
@@ -485,3 +485,3 @@ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4Signer(), | ||
| signer: new AwsSdkSigV4Signer(), | ||
| }, | ||
@@ -491,7 +491,7 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
| signer: new core.NoAuthSigner(), | ||
| signer: new NoAuthSigner(), | ||
| }, | ||
| ], | ||
| logger: config?.logger ?? new client.NoOpLogger(), | ||
| protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol, | ||
| logger: config?.logger ?? new NoOpLogger(), | ||
| protocol: config?.protocol ?? AwsRestJsonProtocol, | ||
| protocolSettings: config?.protocolSettings ?? { | ||
@@ -504,16 +504,16 @@ defaultNamespace: "com.amazonaws.ssooidc", | ||
| serviceId: config?.serviceId ?? "SSO OIDC", | ||
| urlParser: config?.urlParser ?? protocols.parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? serde.toUtf8, | ||
| urlParser: config?.urlParser ?? parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
| }; | ||
| }; | ||
| const getRuntimeConfig = (config$1) => { | ||
| client.emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = config.resolveDefaultsModeConfig(config$1); | ||
| const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config$1); | ||
| client$1.emitWarningIfUnsupportedVersion(process.version); | ||
| const getRuntimeConfig = (config) => { | ||
| emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = resolveDefaultsModeConfig(config); | ||
| const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config); | ||
| emitWarningIfUnsupportedVersion$1(process.version); | ||
| const loaderConfig = { | ||
| profile: config$1?.profile, | ||
| profile: config?.profile, | ||
| logger: clientSharedValues.logger, | ||
@@ -523,21 +523,21 @@ }; | ||
| ...clientSharedValues, | ||
| ...config$1, | ||
| ...config, | ||
| runtime: "node", | ||
| defaultsMode, | ||
| authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength, | ||
| defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1), | ||
| region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config$1?.retryMode ?? | ||
| config.loadConfig({ | ||
| ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE, | ||
| }, config$1), | ||
| sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"), | ||
| streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector, | ||
| useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, | ||
| defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), | ||
| region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config?.retryMode ?? | ||
| loadConfig({ | ||
| ...NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, | ||
| }, config), | ||
| sha256: config?.sha256 ?? Hash.bind(null, "sha256"), | ||
| streamCollector: config?.streamCollector ?? streamCollector, | ||
| useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| }; | ||
@@ -586,8 +586,8 @@ }; | ||
| const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
| const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| }; | ||
| class SSOOIDCClient extends client.Client { | ||
| class SSOOIDCClient extends Client { | ||
| config; | ||
@@ -599,24 +599,24 @@ constructor(...[configuration]) { | ||
| const _config_1 = resolveClientEndpointParameters(_config_0); | ||
| const _config_2 = client$1.resolveUserAgentConfig(_config_1); | ||
| const _config_3 = retry.resolveRetryConfig(_config_2); | ||
| const _config_4 = config.resolveRegionConfig(_config_3); | ||
| const _config_5 = client$1.resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = endpoints.resolveEndpointConfig(_config_5); | ||
| const _config_2 = resolveUserAgentConfig(_config_1); | ||
| const _config_3 = resolveRetryConfig(_config_2); | ||
| const _config_4 = resolveRegionConfig(_config_3); | ||
| const _config_5 = resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = resolveEndpointConfig(_config_5); | ||
| const _config_7 = resolveHttpAuthSchemeConfig(_config_6); | ||
| const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); | ||
| this.config = _config_8; | ||
| this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(retry.getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(protocols.getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| this.middlewareStack.use(getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider, | ||
| identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ | ||
| identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ | ||
| "aws.auth#sigv4": config.credentials, | ||
| }), | ||
| })); | ||
| this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpSigningPlugin(this.config)); | ||
| } | ||
@@ -628,7 +628,7 @@ destroy() { | ||
| class CreateTokenCommand extends client.Command | ||
| class CreateTokenCommand extends Command | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .m(function (Command, cs, config, o) { | ||
| return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| }) | ||
@@ -646,3 +646,3 @@ .s("AWSSSOOIDCService", "CreateToken", {}) | ||
| } | ||
| client.createAggregatedClient(commands, SSOOIDC); | ||
| createAggregatedClient(commands, SSOOIDC); | ||
@@ -659,4 +659,2 @@ const AccessDeniedExceptionReason = { | ||
| exports.$Command = client.Command; | ||
| exports.__Client = client.Client; | ||
| exports.AccessDeniedException = AccessDeniedException; | ||
@@ -663,0 +661,0 @@ exports.AccessDeniedException$ = AccessDeniedException$; |
@@ -1,20 +0,20 @@ | ||
| 'use strict'; | ||
| const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client"); | ||
| const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core"); | ||
| const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client"); | ||
| exports.$Command = Command; | ||
| exports.__Client = Client; | ||
| const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config"); | ||
| const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints"); | ||
| const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols"); | ||
| const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry"); | ||
| const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema"); | ||
| const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes"); | ||
| const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde"); | ||
| const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler"); | ||
| const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols"); | ||
| var client$1 = require('@aws-sdk/core/client'); | ||
| var core = require('@smithy/core'); | ||
| var client = require('@smithy/core/client'); | ||
| var config = require('@smithy/core/config'); | ||
| var endpoints = require('@smithy/core/endpoints'); | ||
| var protocols = require('@smithy/core/protocols'); | ||
| var retry = require('@smithy/core/retry'); | ||
| var schema = require('@smithy/core/schema'); | ||
| var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes'); | ||
| var serde = require('@smithy/core/serde'); | ||
| var nodeHttpHandler = require('@smithy/node-http-handler'); | ||
| var protocols$1 = require('@aws-sdk/core/protocols'); | ||
| const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => { | ||
| return { | ||
| operation: client.getSmithyContext(context).operation, | ||
| region: await client.normalizeProvider(config.region)() || (() => { | ||
| operation: getSmithyContext(context).operation, | ||
| region: await normalizeProvider(config.region)() || (() => { | ||
| throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); | ||
@@ -58,5 +58,5 @@ })(), | ||
| const resolveHttpAuthSchemeConfig = (config) => { | ||
| const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config); | ||
| const config_0 = resolveAwsSdkSigV4Config(config); | ||
| return Object.assign(config_0, { | ||
| authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []), | ||
| authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), | ||
| }); | ||
@@ -79,3 +79,3 @@ }; | ||
| var version = "3.997.19"; | ||
| var version = "3.997.20"; | ||
| var packageInfo = { | ||
@@ -131,5 +131,5 @@ version: version}; | ||
| ]); | ||
| const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const cache = new endpoints.EndpointCache({ | ||
| const cache = new EndpointCache({ | ||
| size: 50, | ||
@@ -139,3 +139,3 @@ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
| const defaultEndpointResolver = (endpointParams, context = {}) => { | ||
| return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, { | ||
| return cache.get(endpointParams, () => decideEndpoint(bdd, { | ||
| endpointParams: endpointParams, | ||
@@ -145,5 +145,5 @@ logger: context.logger, | ||
| }; | ||
| endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions; | ||
| customEndpointFunctions.aws = awsEndpointFunctions; | ||
| class SSOServiceException extends client.ServiceException { | ||
| class SSOServiceException extends ServiceException { | ||
| constructor(options) { | ||
@@ -235,6 +235,6 @@ super(options); | ||
| const n0 = "com.amazonaws.sso"; | ||
| const _s_registry = schema.TypeRegistry.for(_s); | ||
| const _s_registry = TypeRegistry.for(_s); | ||
| var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []]; | ||
| _s_registry.registerError(SSOServiceException$, SSOServiceException); | ||
| const n0_registry = schema.TypeRegistry.for(n0); | ||
| const n0_registry = TypeRegistry.for(n0); | ||
| var InvalidRequestException$ = [-3, n0, _IRE, | ||
@@ -293,4 +293,4 @@ { [_e]: _c, [_hE]: 400 }, | ||
| apiVersion: "2019-06-10", | ||
| base64Decoder: config?.base64Decoder ?? serde.fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? serde.toBase64, | ||
| base64Decoder: config?.base64Decoder ?? fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? toBase64, | ||
| disableHostPrefix: config?.disableHostPrefix ?? false, | ||
@@ -304,3 +304,3 @@ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4Signer(), | ||
| signer: new AwsSdkSigV4Signer(), | ||
| }, | ||
@@ -310,7 +310,7 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
| signer: new core.NoAuthSigner(), | ||
| signer: new NoAuthSigner(), | ||
| }, | ||
| ], | ||
| logger: config?.logger ?? new client.NoOpLogger(), | ||
| protocol: config?.protocol ?? protocols$1.AwsRestJsonProtocol, | ||
| logger: config?.logger ?? new NoOpLogger(), | ||
| protocol: config?.protocol ?? AwsRestJsonProtocol, | ||
| protocolSettings: config?.protocolSettings ?? { | ||
@@ -323,16 +323,16 @@ defaultNamespace: "com.amazonaws.sso", | ||
| serviceId: config?.serviceId ?? "SSO", | ||
| urlParser: config?.urlParser ?? protocols.parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? serde.toUtf8, | ||
| urlParser: config?.urlParser ?? parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
| }; | ||
| }; | ||
| const getRuntimeConfig = (config$1) => { | ||
| client.emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = config.resolveDefaultsModeConfig(config$1); | ||
| const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config$1); | ||
| client$1.emitWarningIfUnsupportedVersion(process.version); | ||
| const getRuntimeConfig = (config) => { | ||
| emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = resolveDefaultsModeConfig(config); | ||
| const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config); | ||
| emitWarningIfUnsupportedVersion$1(process.version); | ||
| const loaderConfig = { | ||
| profile: config$1?.profile, | ||
| profile: config?.profile, | ||
| logger: clientSharedValues.logger, | ||
@@ -342,21 +342,21 @@ }; | ||
| ...clientSharedValues, | ||
| ...config$1, | ||
| ...config, | ||
| runtime: "node", | ||
| defaultsMode, | ||
| authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength, | ||
| defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1), | ||
| region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config$1?.retryMode ?? | ||
| config.loadConfig({ | ||
| ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE, | ||
| }, config$1), | ||
| sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"), | ||
| streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector, | ||
| useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, | ||
| defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), | ||
| region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config?.retryMode ?? | ||
| loadConfig({ | ||
| ...NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, | ||
| }, config), | ||
| sha256: config?.sha256 ?? Hash.bind(null, "sha256"), | ||
| streamCollector: config?.streamCollector ?? streamCollector, | ||
| useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| }; | ||
@@ -405,8 +405,8 @@ }; | ||
| const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
| const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| }; | ||
| class SSOClient extends client.Client { | ||
| class SSOClient extends Client { | ||
| config; | ||
@@ -418,24 +418,24 @@ constructor(...[configuration]) { | ||
| const _config_1 = resolveClientEndpointParameters(_config_0); | ||
| const _config_2 = client$1.resolveUserAgentConfig(_config_1); | ||
| const _config_3 = retry.resolveRetryConfig(_config_2); | ||
| const _config_4 = config.resolveRegionConfig(_config_3); | ||
| const _config_5 = client$1.resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = endpoints.resolveEndpointConfig(_config_5); | ||
| const _config_2 = resolveUserAgentConfig(_config_1); | ||
| const _config_3 = resolveRetryConfig(_config_2); | ||
| const _config_4 = resolveRegionConfig(_config_3); | ||
| const _config_5 = resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = resolveEndpointConfig(_config_5); | ||
| const _config_7 = resolveHttpAuthSchemeConfig(_config_6); | ||
| const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); | ||
| this.config = _config_8; | ||
| this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(retry.getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(protocols.getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| this.middlewareStack.use(getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider, | ||
| identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ | ||
| identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ | ||
| "aws.auth#sigv4": config.credentials, | ||
| }), | ||
| })); | ||
| this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpSigningPlugin(this.config)); | ||
| } | ||
@@ -447,7 +447,7 @@ destroy() { | ||
| class GetRoleCredentialsCommand extends client.Command | ||
| class GetRoleCredentialsCommand extends Command | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .m(function (Command, cs, config, o) { | ||
| return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| }) | ||
@@ -465,6 +465,4 @@ .s("SWBPortalService", "GetRoleCredentials", {}) | ||
| } | ||
| client.createAggregatedClient(commands, SSO); | ||
| createAggregatedClient(commands, SSO); | ||
| exports.$Command = client.Command; | ||
| exports.__Client = client.Client; | ||
| exports.GetRoleCredentials$ = GetRoleCredentials$; | ||
@@ -471,0 +469,0 @@ exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; |
@@ -1,17 +0,17 @@ | ||
| 'use strict'; | ||
| const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, setCredentialFeature, stsRegionDefaultResolver } = require("@aws-sdk/core/client"); | ||
| const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core"); | ||
| const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client"); | ||
| exports.$Command = Command; | ||
| exports.__Client = Client; | ||
| const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config"); | ||
| const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints"); | ||
| const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols"); | ||
| const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry"); | ||
| const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema"); | ||
| const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes"); | ||
| const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region"); | ||
| const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde"); | ||
| const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler"); | ||
| const { AwsQueryProtocol } = require("@aws-sdk/core/protocols"); | ||
| var client$1 = require('@aws-sdk/core/client'); | ||
| var core = require('@smithy/core'); | ||
| var client = require('@smithy/core/client'); | ||
| var config = require('@smithy/core/config'); | ||
| var endpoints = require('@smithy/core/endpoints'); | ||
| var protocols = require('@smithy/core/protocols'); | ||
| var retry = require('@smithy/core/retry'); | ||
| var schema = require('@smithy/core/schema'); | ||
| var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes'); | ||
| var signatureV4MultiRegion = require('@aws-sdk/signature-v4-multi-region'); | ||
| var serde = require('@smithy/core/serde'); | ||
| var nodeHttpHandler = require('@smithy/node-http-handler'); | ||
| var protocols$1 = require('@aws-sdk/core/protocols'); | ||
| const q = "ref"; | ||
@@ -100,5 +100,5 @@ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m]; | ||
| ]); | ||
| const bdd = endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); | ||
| const cache = new endpoints.EndpointCache({ | ||
| const cache = new EndpointCache({ | ||
| size: 50, | ||
@@ -108,3 +108,3 @@ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"], | ||
| const defaultEndpointResolver = (endpointParams, context = {}) => { | ||
| return cache.get(endpointParams, () => endpoints.decideEndpoint(bdd, { | ||
| return cache.get(endpointParams, () => decideEndpoint(bdd, { | ||
| endpointParams: endpointParams, | ||
@@ -114,3 +114,3 @@ logger: context.logger, | ||
| }; | ||
| endpoints.customEndpointFunctions.aws = client$1.awsEndpointFunctions; | ||
| customEndpointFunctions.aws = awsEndpointFunctions; | ||
@@ -122,3 +122,3 @@ const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => { | ||
| const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input); | ||
| const instructionsFn = client.getSmithyContext(context)?.commandInstance?.constructor | ||
| const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor | ||
| ?.getEndpointParameterInstructions; | ||
@@ -128,3 +128,3 @@ if (!instructionsFn) { | ||
| } | ||
| const endpointParameters = await endpoints.resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config); | ||
| const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config); | ||
| return Object.assign(defaultParameters, endpointParameters); | ||
@@ -134,4 +134,4 @@ }; | ||
| return { | ||
| operation: client.getSmithyContext(context).operation, | ||
| region: await client.normalizeProvider(config.region)() || (() => { | ||
| operation: getSmithyContext(context).operation, | ||
| region: await normalizeProvider(config.region)() || (() => { | ||
| throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); | ||
@@ -198,3 +198,3 @@ })(), | ||
| }); | ||
| if (signatureV4MultiRegion.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) { | ||
| if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) { | ||
| continue; | ||
@@ -243,6 +243,6 @@ } | ||
| const resolveHttpAuthSchemeConfig = (config) => { | ||
| const config_0 = httpAuthSchemes.resolveAwsSdkSigV4Config(config); | ||
| const config_1 = httpAuthSchemes.resolveAwsSdkSigV4AConfig(config_0); | ||
| const config_0 = resolveAwsSdkSigV4Config(config); | ||
| const config_1 = resolveAwsSdkSigV4AConfig(config_0); | ||
| return Object.assign(config_1, { | ||
| authSchemePreference: client.normalizeProvider(config.authSchemePreference ?? []), | ||
| authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), | ||
| }); | ||
@@ -267,7 +267,7 @@ }; | ||
| var version = "3.997.19"; | ||
| var version = "3.997.20"; | ||
| var packageInfo = { | ||
| version: version}; | ||
| class STSServiceException extends client.ServiceException { | ||
| class STSServiceException extends ServiceException { | ||
| constructor(options) { | ||
@@ -424,6 +424,6 @@ super(options); | ||
| const n0 = "com.amazonaws.sts"; | ||
| const _s_registry = schema.TypeRegistry.for(_s); | ||
| const _s_registry = TypeRegistry.for(_s); | ||
| var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; | ||
| _s_registry.registerError(STSServiceException$, STSServiceException); | ||
| const n0_registry = schema.TypeRegistry.for(n0); | ||
| const n0_registry = TypeRegistry.for(n0); | ||
| var ExpiredTokenException$ = [-3, n0, _ETE, | ||
@@ -541,4 +541,4 @@ { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, | ||
| apiVersion: "2011-06-15", | ||
| base64Decoder: config?.base64Decoder ?? serde.fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? serde.toBase64, | ||
| base64Decoder: config?.base64Decoder ?? fromBase64, | ||
| base64Encoder: config?.base64Encoder ?? toBase64, | ||
| disableHostPrefix: config?.disableHostPrefix ?? false, | ||
@@ -552,3 +552,3 @@ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4Signer(), | ||
| signer: new AwsSdkSigV4Signer(), | ||
| }, | ||
@@ -558,3 +558,3 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4ASigner(), | ||
| signer: new AwsSdkSigV4ASigner(), | ||
| }, | ||
@@ -564,7 +564,7 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
| signer: new core.NoAuthSigner(), | ||
| signer: new NoAuthSigner(), | ||
| }, | ||
| ], | ||
| logger: config?.logger ?? new client.NoOpLogger(), | ||
| protocol: config?.protocol ?? protocols$1.AwsQueryProtocol, | ||
| logger: config?.logger ?? new NoOpLogger(), | ||
| protocol: config?.protocol ?? AwsQueryProtocol, | ||
| protocolSettings: config?.protocolSettings ?? { | ||
@@ -578,17 +578,17 @@ defaultNamespace: "com.amazonaws.sts", | ||
| serviceId: config?.serviceId ?? "STS", | ||
| signerConstructor: config?.signerConstructor ?? signatureV4MultiRegion.SignatureV4MultiRegion, | ||
| urlParser: config?.urlParser ?? protocols.parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? serde.fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? serde.toUtf8, | ||
| signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, | ||
| urlParser: config?.urlParser ?? parseUrl, | ||
| utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
| utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
| }; | ||
| }; | ||
| const getRuntimeConfig = (config$1) => { | ||
| client.emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = config.resolveDefaultsModeConfig(config$1); | ||
| const defaultConfigProvider = () => defaultsMode().then(client.loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config$1); | ||
| client$1.emitWarningIfUnsupportedVersion(process.version); | ||
| const getRuntimeConfig = (config) => { | ||
| emitWarningIfUnsupportedVersion(process.version); | ||
| const defaultsMode = resolveDefaultsModeConfig(config); | ||
| const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); | ||
| const clientSharedValues = getRuntimeConfig$1(config); | ||
| emitWarningIfUnsupportedVersion$1(process.version); | ||
| const loaderConfig = { | ||
| profile: config$1?.profile, | ||
| profile: config?.profile, | ||
| logger: clientSharedValues.logger, | ||
@@ -598,13 +598,13 @@ }; | ||
| ...clientSharedValues, | ||
| ...config$1, | ||
| ...config, | ||
| runtime: "node", | ||
| defaultsMode, | ||
| authSchemePreference: config$1?.authSchemePreference ?? config.loadConfig(httpAuthSchemes.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config$1?.bodyLengthChecker ?? serde.calculateBodyLength, | ||
| defaultUserAgentProvider: config$1?.defaultUserAgentProvider ?? client$1.createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| httpAuthSchemes: config$1?.httpAuthSchemes ?? [ | ||
| authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), | ||
| bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, | ||
| defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
| httpAuthSchemes: config?.httpAuthSchemes ?? [ | ||
| { | ||
| schemeId: "aws.auth#sigv4", | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config$1.credentialDefaultProvider(idProps?.__config || {})()), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4Signer(), | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()), | ||
| signer: new AwsSdkSigV4Signer(), | ||
| }, | ||
@@ -614,3 +614,3 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), | ||
| signer: new httpAuthSchemes.AwsSdkSigV4ASigner(), | ||
| signer: new AwsSdkSigV4ASigner(), | ||
| }, | ||
@@ -620,19 +620,19 @@ { | ||
| identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
| signer: new core.NoAuthSigner(), | ||
| signer: new NoAuthSigner(), | ||
| }, | ||
| ], | ||
| maxAttempts: config$1?.maxAttempts ?? config.loadConfig(retry.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config$1), | ||
| region: config$1?.region ?? config.loadConfig(config.NODE_REGION_CONFIG_OPTIONS, { ...config.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: nodeHttpHandler.NodeHttpHandler.create(config$1?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config$1?.retryMode ?? | ||
| config.loadConfig({ | ||
| ...retry.NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || retry.DEFAULT_RETRY_MODE, | ||
| }, config$1), | ||
| sha256: config$1?.sha256 ?? serde.Hash.bind(null, "sha256"), | ||
| sigv4aSigningRegionSet: config$1?.sigv4aSigningRegionSet ?? config.loadConfig(httpAuthSchemes.NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig), | ||
| streamCollector: config$1?.streamCollector ?? nodeHttpHandler.streamCollector, | ||
| useDualstackEndpoint: config$1?.useDualstackEndpoint ?? config.loadConfig(config.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config$1?.useFipsEndpoint ?? config.loadConfig(config.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config$1?.userAgentAppId ?? config.loadConfig(client$1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), | ||
| region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), | ||
| requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), | ||
| retryMode: config?.retryMode ?? | ||
| loadConfig({ | ||
| ...NODE_RETRY_MODE_CONFIG_OPTIONS, | ||
| default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, | ||
| }, config), | ||
| sha256: config?.sha256 ?? Hash.bind(null, "sha256"), | ||
| sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig), | ||
| streamCollector: config?.streamCollector ?? streamCollector, | ||
| useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), | ||
| userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), | ||
| }; | ||
@@ -681,8 +681,8 @@ }; | ||
| const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
| const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); | ||
| extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); | ||
| }; | ||
| class STSClient extends client.Client { | ||
| class STSClient extends Client { | ||
| config; | ||
@@ -694,20 +694,20 @@ constructor(...[configuration]) { | ||
| const _config_1 = resolveClientEndpointParameters(_config_0); | ||
| const _config_2 = client$1.resolveUserAgentConfig(_config_1); | ||
| const _config_3 = retry.resolveRetryConfig(_config_2); | ||
| const _config_4 = config.resolveRegionConfig(_config_3); | ||
| const _config_5 = client$1.resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = endpoints.resolveEndpointConfig(_config_5); | ||
| const _config_2 = resolveUserAgentConfig(_config_1); | ||
| const _config_3 = resolveRetryConfig(_config_2); | ||
| const _config_4 = resolveRegionConfig(_config_3); | ||
| const _config_5 = resolveHostHeaderConfig(_config_4); | ||
| const _config_6 = resolveEndpointConfig(_config_5); | ||
| const _config_7 = resolveHttpAuthSchemeConfig(_config_6); | ||
| const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); | ||
| this.config = _config_8; | ||
| this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(retry.getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(protocols.getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| this.middlewareStack.use(getSchemaSerdePlugin(this.config)); | ||
| this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
| this.middlewareStack.use(getRetryPlugin(this.config)); | ||
| this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
| this.middlewareStack.use(getHostHeaderPlugin(this.config)); | ||
| this.middlewareStack.use(getLoggerPlugin(this.config)); | ||
| this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
| httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider, | ||
| identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ | ||
| identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ | ||
| "aws.auth#sigv4": config.credentials, | ||
@@ -717,3 +717,3 @@ "aws.auth#sigv4a": config.credentials, | ||
| })); | ||
| this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); | ||
| this.middlewareStack.use(getHttpSigningPlugin(this.config)); | ||
| } | ||
@@ -725,7 +725,7 @@ destroy() { | ||
| class AssumeRoleCommand extends client.Command | ||
| class AssumeRoleCommand extends Command | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .m(function (Command, cs, config, o) { | ||
| return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| }) | ||
@@ -738,7 +738,7 @@ .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {}) | ||
| class AssumeRoleWithWebIdentityCommand extends client.Command | ||
| class AssumeRoleWithWebIdentityCommand extends Command | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .m(function (Command, cs, config, o) { | ||
| return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; | ||
| }) | ||
@@ -757,3 +757,3 @@ .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {}) | ||
| } | ||
| client.createAggregatedClient(commands, STS); | ||
| createAggregatedClient(commands, STS); | ||
@@ -773,3 +773,3 @@ const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => { | ||
| let stsDefaultRegion = ""; | ||
| const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await client$1.stsRegionDefaultResolver(loaderConfig)()); | ||
| const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver(loaderConfig)()); | ||
| credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`); | ||
@@ -813,3 +813,3 @@ return resolvedRegion; | ||
| }; | ||
| client$1.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); | ||
| setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); | ||
| return credentials; | ||
@@ -851,5 +851,5 @@ }; | ||
| if (accountId) { | ||
| client$1.setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T"); | ||
| setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T"); | ||
| } | ||
| client$1.setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); | ||
| setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); | ||
| return credentials; | ||
@@ -883,4 +883,2 @@ }; | ||
| exports.$Command = client.Command; | ||
| exports.__Client = client.Client; | ||
| exports.AssumeRole$ = AssumeRole$; | ||
@@ -887,0 +885,0 @@ exports.AssumeRoleCommand = AssumeRoleCommand; |
@@ -8,3 +8,6 @@ import { Command as $Command } from "@smithy/core/client"; | ||
| .classBuilder() | ||
| .ep(commonParams) | ||
| .ep({ | ||
| ...commonParams, | ||
| IsControlPlane: { type: "staticContextParams", value: false }, | ||
| }) | ||
| .m(function (Command, cs, config, o) { | ||
@@ -11,0 +14,0 @@ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())]; |
| import { BinaryDecisionDiagram } from "@smithy/core/endpoints"; | ||
| const m = "ref"; | ||
| const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }]; | ||
| const p = "ref"; | ||
| const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l]; | ||
| const _data = { | ||
| conditions: [ | ||
| [c, [h]], | ||
| [c, l], | ||
| ["aws.partition", l, d], | ||
| [e, [{ [m]: "UseFIPS" }, b]], | ||
| [e, [{ [m]: "UseDualStack" }, b]], | ||
| [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]], | ||
| [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]], | ||
| [g, [j, "aws"]], | ||
| [g, [j, "aws-cn"]], | ||
| [g, [j, "aws-us-gov"]] | ||
| [c, o], | ||
| [d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]], | ||
| [c, [i]], | ||
| ["aws.partition", o, e], | ||
| [d, [{ [p]: "UseFIPS" }, b]], | ||
| [d, [{ [p]: "UseDualStack" }, b]], | ||
| [f, [j, "aws"]], | ||
| [f, [j, "aws-cn"]], | ||
| [d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]], | ||
| [f, [l, "us-gov-west-1"]], | ||
| [f, [j, "aws-us-gov"]], | ||
| [d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]], | ||
| [f, [j, "aws-iso"]], | ||
| [f, [j, "aws-iso-b"]], | ||
| [f, [j, "aws-iso-f"]], | ||
| [f, [j, "aws-iso-e"]], | ||
| [f, [j, "aws-eusc"]] | ||
| ], | ||
| results: [ | ||
| [a], | ||
| ["https://signin.{Region}.api.aws", m], | ||
| ["https://signin.{Region}.api.amazonwebservices.com.cn", m], | ||
| [h, m], | ||
| ["https://{Region}.signin.aws.amazon.com", n], | ||
| ["https://{Region}.signin.amazonaws.cn", n], | ||
| ["https://{Region}.signin.amazonaws-us-gov.com", n], | ||
| ["https://{Region}.signin.c2shome.ic.gov", n], | ||
| ["https://{Region}.signin.sc2shome.sgov.gov", n], | ||
| ["https://{Region}.signin.csphome.hci.ic.gov", n], | ||
| ["https://{Region}.signin.csphome.adc-e.uk", n], | ||
| ["https://{Region}.signin.amazonaws-eusc.eu", n], | ||
| ["https://signin-fips.amazonaws-us-gov.com", n], | ||
| ["https://{Region}.signin-fips.amazonaws-us-gov.com", n], | ||
| ["https://{Region}.signin.{PartitionResult#dnsSuffix}", n], | ||
| [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], | ||
| [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], | ||
| [h, k], | ||
| ["https://{Region}.signin.aws.amazon.com", k], | ||
| ["https://{Region}.signin.amazonaws.cn", k], | ||
| ["https://{Region}.signin.amazonaws-us-gov.com", k], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k], | ||
| [i, n], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n], | ||
| [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k], | ||
| ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n], | ||
| [a, "FIPS is enabled but this partition does not support FIPS"], | ||
| ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k], | ||
| [h, n], | ||
| [a, "DualStack is enabled but this partition does not support DualStack"], | ||
| ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k], | ||
| ["https://signin.{Region}.{PartitionResult#dnsSuffix}", n], | ||
| [a, "Invalid Configuration: Missing Region"] | ||
@@ -39,18 +57,35 @@ ] | ||
| -1, 1, -1, | ||
| 0, 15, 3, | ||
| 1, 4, r + 14, | ||
| 2, 5, r + 14, | ||
| 3, 11, 6, | ||
| 4, 10, 7, | ||
| 7, r + 4, 8, | ||
| 8, r + 5, 9, | ||
| 9, r + 6, r + 13, | ||
| 5, r + 11, r + 12, | ||
| 4, 13, 12, | ||
| 6, r + 9, r + 10, | ||
| 5, 14, r + 8, | ||
| 6, r + 7, r + 8, | ||
| 3, r + 1, 16, | ||
| 4, r + 2, r + 3, | ||
| 0, 4, 3, | ||
| 2, 30, r + 25, | ||
| 1, 24, 5, | ||
| 2, 30, 6, | ||
| 3, 7, 26, | ||
| 4, 18, 8, | ||
| 5, 17, 9, | ||
| 6, r + 4, 10, | ||
| 7, r + 5, 11, | ||
| 10, r + 6, 12, | ||
| 12, r + 7, 13, | ||
| 13, r + 8, 14, | ||
| 14, r + 9, 15, | ||
| 15, r + 10, 16, | ||
| 16, r + 11, r + 14, | ||
| 8, r + 22, r + 23, | ||
| 5, 22, 19, | ||
| 9, r + 12, 20, | ||
| 10, r + 13, 21, | ||
| 11, r + 20, r + 21, | ||
| 8, 23, r + 19, | ||
| 11, r + 18, r + 19, | ||
| 2, 29, 25, | ||
| 3, 32, 26, | ||
| 4, 27, r + 25, | ||
| 5, r + 25, 28, | ||
| 9, r + 12, r + 25, | ||
| 3, 32, 30, | ||
| 4, r + 15, 31, | ||
| 5, r + 16, r + 17, | ||
| 6, r + 1, 33, | ||
| 7, r + 2, r + 3, | ||
| ]); | ||
| export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); |
@@ -6,3 +6,3 @@ import { awsEndpointFunctions } from "@aws-sdk/core/client"; | ||
| size: 50, | ||
| params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], | ||
| params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"], | ||
| }); | ||
@@ -9,0 +9,0 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => { |
| export const OAuth2ErrorCode = { | ||
| AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED", | ||
| CONFLICT: "CONFLICT", | ||
| INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS", | ||
| INVALID_REQUEST: "INVALID_REQUEST", | ||
| RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", | ||
| SERVER_ERROR: "server_error", | ||
| SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED", | ||
| TOKEN_EXPIRED: "TOKEN_EXPIRED", | ||
| USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED", | ||
| }; |
@@ -50,2 +50,3 @@ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types"; | ||
| Region?: string | undefined; | ||
| IsControlPlane?: boolean | undefined; | ||
| } |
@@ -11,2 +11,6 @@ /** | ||
| /** | ||
| * Request conflicts with current state of the resource | ||
| */ | ||
| readonly CONFLICT: "CONFLICT"; | ||
| /** | ||
| * Insufficient permissions to perform this operation | ||
@@ -20,2 +24,6 @@ */ | ||
| /** | ||
| * Requested resource was not found | ||
| */ | ||
| readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND"; | ||
| /** | ||
| * Internal server error occurred | ||
@@ -25,2 +33,6 @@ */ | ||
| /** | ||
| * Request would cause a service quota to be exceeded | ||
| */ | ||
| readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED"; | ||
| /** | ||
| * Token has expired and needs to be refreshed | ||
@@ -27,0 +39,0 @@ */ |
@@ -51,2 +51,3 @@ import { | ||
| Region?: string | undefined; | ||
| IsControlPlane?: boolean | undefined; | ||
| } |
| export declare const OAuth2ErrorCode: { | ||
| readonly AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED"; | ||
| readonly CONFLICT: "CONFLICT"; | ||
| readonly INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS"; | ||
| readonly INVALID_REQUEST: "INVALID_REQUEST"; | ||
| readonly RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND"; | ||
| readonly SERVER_ERROR: "server_error"; | ||
| readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED"; | ||
| readonly TOKEN_EXPIRED: "TOKEN_EXPIRED"; | ||
@@ -7,0 +10,0 @@ readonly USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED"; |
+9
-8
| { | ||
| "name": "@aws-sdk/nested-clients", | ||
| "version": "3.997.20", | ||
| "version": "3.997.21", | ||
| "description": "Nested clients for AWS SDK packages.", | ||
@@ -9,10 +9,11 @@ "main": "./dist-cjs/index.js", | ||
| "scripts": { | ||
| "build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs", | ||
| "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs", | ||
| "build:cjs": "node ../../scripts/compilation/inline", | ||
| "build:es": "tsc -p tsconfig.es.json", | ||
| "build:es": "premove dist-es && tsc -p tsconfig.es.json", | ||
| "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"", | ||
| "build:types": "tsc -p tsconfig.types.json", | ||
| "build:types": "premove dist-types && tsc -p tsconfig.types.json", | ||
| "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", | ||
| "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo", | ||
| "clean": "premove dist-cjs dist-es dist-types", | ||
| "lint": "node ../../scripts/validation/submodules-linter.js", | ||
| "prebuild": "yarn lint", | ||
| "test": "yarn g:vitest run", | ||
@@ -33,5 +34,5 @@ "test:watch": "yarn g:vitest watch" | ||
| "@aws-crypto/sha256-js": "5.2.0", | ||
| "@aws-sdk/core": "^3.974.20", | ||
| "@aws-sdk/signature-v4-multi-region": "^3.996.34", | ||
| "@aws-sdk/types": "^3.973.12", | ||
| "@aws-sdk/core": "^3.974.21", | ||
| "@aws-sdk/signature-v4-multi-region": "^3.996.35", | ||
| "@aws-sdk/types": "^3.973.13", | ||
| "@smithy/core": "^3.24.6", | ||
@@ -38,0 +39,0 @@ "@smithy/fetch-http-handler": "^5.4.6", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
809804
0.94%18120
0.55%