@aws-sdk/client-cognito-identity
Advanced tools
Comparing version 3.511.0 to 3.513.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getRuntimeConfig = void 0; | ||
const core_1 = require("@aws-sdk/core"); | ||
const core_2 = require("@smithy/core"); | ||
const smithy_client_1 = require("@smithy/smithy-client"); | ||
@@ -8,2 +10,3 @@ const url_parser_1 = require("@smithy/url-parser"); | ||
const util_utf8_1 = require("@smithy/util-utf8"); | ||
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider"); | ||
const endpointResolver_1 = require("./endpoint/endpointResolver"); | ||
@@ -18,2 +21,15 @@ const getRuntimeConfig = (config) => { | ||
extensions: config?.extensions ?? [], | ||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCognitoIdentityHttpAuthSchemeProvider, | ||
httpAuthSchemes: config?.httpAuthSchemes ?? [ | ||
{ | ||
schemeId: "aws.auth#sigv4", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
signer: new core_1.AwsSdkSigV4Signer(), | ||
}, | ||
{ | ||
schemeId: "smithy.api#noAuth", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
signer: new core_2.NoAuthSigner(), | ||
}, | ||
], | ||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(), | ||
@@ -20,0 +36,0 @@ serviceId: config?.serviceId ?? "Cognito Identity", |
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header"; | ||
import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; | ||
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; | ||
import { resolveAwsAuthConfig } from "@aws-sdk/middleware-signing"; | ||
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent"; | ||
import { resolveRegionConfig } from "@smithy/config-resolver"; | ||
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core"; | ||
import { getContentLengthPlugin } from "@smithy/middleware-content-length"; | ||
@@ -11,2 +11,3 @@ import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; | ||
import { Client as __Client, } from "@smithy/smithy-client"; | ||
import { defaultCognitoIdentityHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider"; | ||
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"; | ||
@@ -24,4 +25,4 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; | ||
const _config_5 = resolveHostHeaderConfig(_config_4); | ||
const _config_6 = resolveAwsAuthConfig(_config_5); | ||
const _config_7 = resolveUserAgentConfig(_config_6); | ||
const _config_6 = resolveUserAgentConfig(_config_5); | ||
const _config_7 = resolveHttpAuthSchemeConfig(_config_6); | ||
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); | ||
@@ -36,2 +37,7 @@ super(_config_8); | ||
this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { | ||
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(), | ||
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(), | ||
})); | ||
this.middlewareStack.use(getHttpSigningPlugin(this.config)); | ||
} | ||
@@ -41,2 +47,10 @@ destroy() { | ||
} | ||
getDefaultHttpAuthSchemeParametersProvider() { | ||
return defaultCognitoIdentityHttpAuthSchemeParametersProvider; | ||
} | ||
getIdentityProviderConfigProvider() { | ||
return async (config) => new DefaultIdentityProviderConfig({ | ||
"aws.auth#sigv4": config.credentials, | ||
}); | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
@@ -17,3 +16,2 @@ import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getAwsAuthPlugin(config), | ||
]; | ||
@@ -20,0 +18,0 @@ }) |
@@ -0,1 +1,3 @@ | ||
import { AwsSdkSigV4Signer } from "@aws-sdk/core"; | ||
import { NoAuthSigner } from "@smithy/core"; | ||
import { NoOpLogger } from "@smithy/smithy-client"; | ||
@@ -5,2 +7,3 @@ import { parseUrl } from "@smithy/url-parser"; | ||
import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; | ||
import { defaultCognitoIdentityHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider"; | ||
import { defaultEndpointResolver } from "./endpoint/endpointResolver"; | ||
@@ -15,2 +18,15 @@ export const getRuntimeConfig = (config) => { | ||
extensions: config?.extensions ?? [], | ||
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCognitoIdentityHttpAuthSchemeProvider, | ||
httpAuthSchemes: config?.httpAuthSchemes ?? [ | ||
{ | ||
schemeId: "aws.auth#sigv4", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), | ||
signer: new AwsSdkSigV4Signer(), | ||
}, | ||
{ | ||
schemeId: "smithy.api#noAuth", | ||
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), | ||
signer: new NoAuthSigner(), | ||
}, | ||
], | ||
logger: config?.logger ?? new NoOpLogger(), | ||
@@ -17,0 +33,0 @@ serviceId: config?.serviceId ?? "Cognito Identity", |
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver"; | ||
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; | ||
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; | ||
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration"; | ||
const asPartial = (t) => t; | ||
@@ -10,2 +11,3 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => { | ||
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), | ||
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)), | ||
}; | ||
@@ -18,3 +20,4 @@ extensions.forEach((extension) => extension.configure(extensionConfiguration)); | ||
...resolveHttpHandlerRuntimeConfig(extensionConfiguration), | ||
...resolveHttpAuthRuntimeConfig(extensionConfiguration), | ||
}; | ||
}; |
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; | ||
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing"; | ||
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent"; | ||
import { Credentials as __Credentials } from "@aws-sdk/types"; | ||
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver"; | ||
@@ -10,3 +8,4 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint"; | ||
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client"; | ||
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; | ||
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; | ||
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider"; | ||
import { CreateIdentityPoolCommandInput, CreateIdentityPoolCommandOutput } from "./commands/CreateIdentityPoolCommand"; | ||
@@ -119,2 +118,7 @@ import { DeleteIdentitiesCommandInput, DeleteIdentitiesCommandOutput } from "./commands/DeleteIdentitiesCommand"; | ||
/** | ||
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header | ||
* @internal | ||
*/ | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
/** | ||
* The AWS region to which this client will send requests | ||
@@ -125,11 +129,7 @@ */ | ||
* Default credentials provider; Not available in browser runtime. | ||
* @deprecated | ||
* @internal | ||
*/ | ||
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; | ||
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider; | ||
/** | ||
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header | ||
* @internal | ||
*/ | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
/** | ||
* Value for how many times a request will be made at most in case of retry. | ||
@@ -160,3 +160,3 @@ */ | ||
*/ | ||
export type CognitoIdentityClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters; | ||
export type CognitoIdentityClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters; | ||
/** | ||
@@ -172,3 +172,3 @@ * @public | ||
*/ | ||
export type CognitoIdentityClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters; | ||
export type CognitoIdentityClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters; | ||
/** | ||
@@ -210,2 +210,4 @@ * @public | ||
destroy(): void; | ||
private getDefaultHttpAuthSchemeParametersProvider; | ||
private getIdentityProviderConfigProvider; | ||
} |
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; | ||
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; | ||
import { DefaultExtensionConfiguration } from "@smithy/types"; | ||
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration"; | ||
/** | ||
* @internal | ||
*/ | ||
export interface CognitoIdentityExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration { | ||
export interface CognitoIdentityExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration { | ||
} |
@@ -10,3 +10,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; | ||
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>; | ||
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider; | ||
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>; | ||
@@ -40,3 +40,14 @@ maxAttempts: number | import("@smithy/types").Provider<number>; | ||
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
})[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined; | ||
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined; | ||
@@ -47,3 +58,2 @@ signingEscapePath?: boolean | undefined; | ||
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
}; |
@@ -39,3 +39,14 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
})[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined; | ||
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined; | ||
@@ -46,3 +57,2 @@ signingEscapePath?: boolean | undefined; | ||
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
}; |
@@ -24,5 +24,5 @@ import { CognitoIdentityClientConfig } from "./CognitoIdentityClient"; | ||
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>; | ||
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>; | ||
region: string | import("@smithy/types").Provider<any>; | ||
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>; | ||
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>; | ||
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider; | ||
maxAttempts: number | import("@smithy/types").Provider<number>; | ||
@@ -39,3 +39,14 @@ retryMode: string | import("@smithy/types").Provider<string>; | ||
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
})[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined; | ||
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined; | ||
@@ -46,3 +57,2 @@ signingEscapePath?: boolean | undefined; | ||
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
}; |
@@ -0,1 +1,4 @@ | ||
import { AwsSdkSigV4Signer } from "@aws-sdk/core"; | ||
import { NoAuthSigner } from "@smithy/core"; | ||
import { IdentityProviderConfig } from "@smithy/types"; | ||
import { CognitoIdentityClientConfig } from "./CognitoIdentityClient"; | ||
@@ -14,2 +17,12 @@ /** | ||
extensions: import("./runtimeExtensions").RuntimeExtension[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
schemeId: string; | ||
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined; | ||
signer: AwsSdkSigV4Signer; | ||
} | { | ||
schemeId: string; | ||
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>); | ||
signer: NoAuthSigner; | ||
})[]; | ||
logger: import("@smithy/types").Logger; | ||
@@ -16,0 +29,0 @@ serviceId: string; |
@@ -6,10 +6,5 @@ import { | ||
import { | ||
AwsAuthInputConfig, | ||
AwsAuthResolvedConfig, | ||
} from "@aws-sdk/middleware-signing"; | ||
import { | ||
UserAgentInputConfig, | ||
UserAgentResolvedConfig, | ||
} from "@aws-sdk/middleware-user-agent"; | ||
import { Credentials as __Credentials } from "@aws-sdk/types"; | ||
import { | ||
@@ -35,2 +30,3 @@ RegionInputConfig, | ||
import { | ||
AwsCredentialIdentityProvider, | ||
BodyLengthCalculator as __BodyLengthCalculator, | ||
@@ -51,2 +47,6 @@ CheckOptionalClientConfig as __CheckOptionalClientConfig, | ||
import { | ||
HttpAuthSchemeInputConfig, | ||
HttpAuthSchemeResolvedConfig, | ||
} from "./auth/httpAuthSchemeProvider"; | ||
import { | ||
CreateIdentityPoolCommandInput, | ||
@@ -211,5 +211,5 @@ CreateIdentityPoolCommandOutput, | ||
useFipsEndpoint?: boolean | __Provider<boolean>; | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
region?: string | __Provider<string>; | ||
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; | ||
defaultUserAgentProvider?: Provider<__UserAgent>; | ||
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider; | ||
maxAttempts?: number | __Provider<number>; | ||
@@ -229,4 +229,4 @@ retryMode?: string | __Provider<string>; | ||
HostHeaderInputConfig & | ||
AwsAuthInputConfig & | ||
UserAgentInputConfig & | ||
HttpAuthSchemeInputConfig & | ||
ClientInputEndpointParameters; | ||
@@ -243,4 +243,4 @@ export interface CognitoIdentityClientConfig | ||
HostHeaderResolvedConfig & | ||
AwsAuthResolvedConfig & | ||
UserAgentResolvedConfig & | ||
HttpAuthSchemeResolvedConfig & | ||
ClientResolvedEndpointParameters; | ||
@@ -260,2 +260,4 @@ export interface CognitoIdentityClientResolvedConfig | ||
destroy(): void; | ||
private getDefaultHttpAuthSchemeParametersProvider; | ||
private getIdentityProviderConfigProvider; | ||
} |
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; | ||
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; | ||
import { DefaultExtensionConfiguration } from "@smithy/types"; | ||
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration"; | ||
export interface CognitoIdentityExtensionConfiguration | ||
extends HttpHandlerExtensionConfiguration, | ||
DefaultExtensionConfiguration, | ||
AwsRegionExtensionConfiguration {} | ||
AwsRegionExtensionConfiguration, | ||
HttpAuthExtensionConfiguration {} |
@@ -13,3 +13,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
input: any | ||
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>; | ||
) => import("@smithy/types").AwsCredentialIdentityProvider; | ||
defaultUserAgentProvider: import("@smithy/types").Provider< | ||
@@ -78,7 +78,33 @@ import("@smithy/types").UserAgent | ||
| undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
} | ||
)[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
credentials?: | ||
| import("@smithy/types").AwsCredentialIdentity | ||
| import("@smithy/types").Provider< | ||
import("@smithy/types").AwsCredentialIdentity | ||
> | ||
| import("@smithy/types").AwsCredentialIdentityProvider | ||
| undefined; | ||
@@ -100,3 +126,2 @@ signer?: | ||
| undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
}; |
@@ -81,7 +81,33 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
| undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
} | ||
)[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
credentials?: | ||
| import("@smithy/types").AwsCredentialIdentity | ||
| import("@smithy/types").Provider< | ||
import("@smithy/types").AwsCredentialIdentity | ||
> | ||
| import("@smithy/types").AwsCredentialIdentityProvider | ||
| undefined; | ||
@@ -103,3 +129,2 @@ signer?: | ||
| undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
}; |
@@ -34,9 +34,9 @@ import { CognitoIdentityClientConfig } from "./CognitoIdentityClient"; | ||
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>; | ||
defaultUserAgentProvider: import("@smithy/types").Provider< | ||
import("@smithy/types").UserAgent | ||
>; | ||
region: string | import("@smithy/types").Provider<any>; | ||
credentialDefaultProvider: ( | ||
input: any | ||
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>; | ||
defaultUserAgentProvider: import("@smithy/types").Provider< | ||
import("@smithy/types").UserAgent | ||
>; | ||
) => import("@smithy/types").AwsCredentialIdentityProvider; | ||
maxAttempts: number | import("@smithy/types").Provider<number>; | ||
@@ -69,7 +69,33 @@ retryMode: string | import("@smithy/types").Provider<string>; | ||
| undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: import("@aws-sdk/core").AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: import("@smithy/types").IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: import("@smithy/core").NoAuthSigner; | ||
} | ||
)[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
credentials?: | ||
| import("@smithy/types").AwsCredentialIdentity | ||
| import("@smithy/types").Provider< | ||
import("@smithy/types").AwsCredentialIdentity | ||
> | ||
| import("@smithy/types").AwsCredentialIdentityProvider | ||
| undefined; | ||
@@ -91,3 +117,2 @@ signer?: | ||
| undefined; | ||
customUserAgent?: string | import("@smithy/types").UserAgent | undefined; | ||
}; |
@@ -0,1 +1,4 @@ | ||
import { AwsSdkSigV4Signer } from "@aws-sdk/core"; | ||
import { NoAuthSigner } from "@smithy/core"; | ||
import { IdentityProviderConfig } from "@smithy/types"; | ||
import { CognitoIdentityClientConfig } from "./CognitoIdentityClient"; | ||
@@ -16,2 +19,29 @@ export declare const getRuntimeConfig: ( | ||
extensions: import("./runtimeExtensions").RuntimeExtension[]; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider; | ||
httpAuthSchemes: | ||
| import("@smithy/types").HttpAuthScheme[] | ||
| ( | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| undefined; | ||
signer: AwsSdkSigV4Signer; | ||
} | ||
| { | ||
schemeId: string; | ||
identityProvider: ( | ||
ipc: IdentityProviderConfig | ||
) => | ||
| import("@smithy/types").IdentityProvider< | ||
import("@smithy/types").Identity | ||
> | ||
| (() => Promise<{}>); | ||
signer: NoAuthSigner; | ||
} | ||
)[]; | ||
logger: import("@smithy/types").Logger; | ||
@@ -18,0 +48,0 @@ serviceId: string; |
{ | ||
"name": "@aws-sdk/client-cognito-identity", | ||
"description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native", | ||
"version": "3.511.0", | ||
"version": "3.513.0", | ||
"scripts": { | ||
@@ -24,9 +24,8 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/client-sts": "3.511.0", | ||
"@aws-sdk/core": "3.511.0", | ||
"@aws-sdk/credential-provider-node": "3.511.0", | ||
"@aws-sdk/client-sts": "3.513.0", | ||
"@aws-sdk/core": "3.513.0", | ||
"@aws-sdk/credential-provider-node": "3.513.0", | ||
"@aws-sdk/middleware-host-header": "3.511.0", | ||
"@aws-sdk/middleware-logger": "3.511.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.511.0", | ||
"@aws-sdk/middleware-signing": "3.511.0", | ||
"@aws-sdk/middleware-user-agent": "3.511.0", | ||
@@ -39,3 +38,3 @@ "@aws-sdk/region-config-resolver": "3.511.0", | ||
"@smithy/config-resolver": "^2.1.1", | ||
"@smithy/core": "^1.3.1", | ||
"@smithy/core": "^1.3.2", | ||
"@smithy/fetch-http-handler": "^2.4.1", | ||
@@ -59,4 +58,5 @@ "@smithy/hash-node": "^2.1.1", | ||
"@smithy/util-defaults-mode-browser": "^2.1.1", | ||
"@smithy/util-defaults-mode-node": "^2.1.1", | ||
"@smithy/util-defaults-mode-node": "^2.2.0", | ||
"@smithy/util-endpoints": "^1.1.1", | ||
"@smithy/util-middleware": "^2.1.1", | ||
"@smithy/util-retry": "^2.1.1", | ||
@@ -67,3 +67,3 @@ "@smithy/util-utf8": "^2.1.1", | ||
"devDependencies": { | ||
"@aws-sdk/client-iam": "3.511.0", | ||
"@aws-sdk/client-iam": "3.513.0", | ||
"@smithy/service-client-documentation-generator": "^2.1.1", | ||
@@ -70,0 +70,0 @@ "@tsconfig/node14": "1.0.3", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
485852
183
10473
+ Added@aws-sdk/client-sso@3.513.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.513.0(transitive)
+ Added@aws-sdk/client-sts@3.513.0(transitive)
+ Added@aws-sdk/core@3.513.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.513.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.513.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.513.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.513.0(transitive)
+ Added@aws-sdk/token-providers@3.513.0(transitive)
- Removed@aws-sdk/middleware-signing@3.511.0
- Removed@aws-sdk/client-sso@3.511.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.511.0(transitive)
- Removed@aws-sdk/client-sts@3.511.0(transitive)
- Removed@aws-sdk/core@3.511.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.511.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.511.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.511.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.511.0(transitive)
- Removed@aws-sdk/middleware-signing@3.511.0(transitive)
- Removed@aws-sdk/token-providers@3.511.0(transitive)
Updated@aws-sdk/client-sts@3.513.0
Updated@aws-sdk/core@3.513.0
Updated@smithy/core@^1.3.2