@aws-sdk/client-cognito-identity 3.511.0 → 3.514.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +68 -0
  3. package/dist-cjs/index.js +84 -63
  4. package/dist-cjs/runtimeConfig.shared.js +16 -0
  5. package/dist-es/CognitoIdentityClient.js +17 -3
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +62 -0
  8. package/dist-es/commands/CreateIdentityPoolCommand.js +0 -2
  9. package/dist-es/commands/DeleteIdentitiesCommand.js +0 -2
  10. package/dist-es/commands/DeleteIdentityPoolCommand.js +0 -2
  11. package/dist-es/commands/DescribeIdentityCommand.js +0 -2
  12. package/dist-es/commands/DescribeIdentityPoolCommand.js +0 -2
  13. package/dist-es/commands/GetIdentityPoolRolesCommand.js +0 -2
  14. package/dist-es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +0 -2
  15. package/dist-es/commands/GetPrincipalTagAttributeMapCommand.js +0 -2
  16. package/dist-es/commands/ListIdentitiesCommand.js +0 -2
  17. package/dist-es/commands/ListIdentityPoolsCommand.js +0 -2
  18. package/dist-es/commands/ListTagsForResourceCommand.js +0 -2
  19. package/dist-es/commands/LookupDeveloperIdentityCommand.js +0 -2
  20. package/dist-es/commands/MergeDeveloperIdentitiesCommand.js +0 -2
  21. package/dist-es/commands/SetIdentityPoolRolesCommand.js +0 -2
  22. package/dist-es/commands/SetPrincipalTagAttributeMapCommand.js +0 -2
  23. package/dist-es/commands/TagResourceCommand.js +0 -2
  24. package/dist-es/commands/UnlinkDeveloperIdentityCommand.js +0 -2
  25. package/dist-es/commands/UntagResourceCommand.js +0 -2
  26. package/dist-es/commands/UpdateIdentityPoolCommand.js +0 -2
  27. package/dist-es/runtimeConfig.shared.js +16 -0
  28. package/dist-es/runtimeExtensions.js +3 -0
  29. package/dist-types/CognitoIdentityClient.d.ts +13 -11
  30. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  31. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  32. package/dist-types/extensionConfiguration.d.ts +2 -1
  33. package/dist-types/runtimeConfig.browser.d.ts +13 -3
  34. package/dist-types/runtimeConfig.d.ts +12 -2
  35. package/dist-types/runtimeConfig.native.d.ts +14 -4
  36. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  37. package/dist-types/ts3.4/CognitoIdentityClient.d.ts +11 -9
  38. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  39. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  40. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  41. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +30 -5
  42. package/dist-types/ts3.4/runtimeConfig.d.ts +29 -4
  43. package/dist-types/ts3.4/runtimeConfig.native.d.ts +33 -8
  44. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  45. package/package.json +8 -8
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
21
21
  serviceId: string;
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
- region: string | import("@smithy/types").Provider<any>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
26
24
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
25
+ region: string | import("@smithy/types").Provider<any>;
26
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
27
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
29
  logger: import("@smithy/types").Logger;
@@ -35,11 +35,21 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
35
35
  }) => import("@smithy/types").EndpointV2;
36
36
  tls?: boolean | undefined;
37
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
38
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
38
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
39
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
40
+ schemeId: string;
41
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
42
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
43
+ } | {
44
+ schemeId: string;
45
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
46
+ signer: import("@smithy/core").NoAuthSigner;
47
+ })[];
48
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
49
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
39
50
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
40
51
  signingEscapePath?: boolean | undefined;
41
52
  systemClockOffset?: number | undefined;
42
53
  signingRegion?: string | undefined;
43
54
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
44
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
55
  };
@@ -1,3 +1,6 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { NoAuthSigner } from "@smithy/core";
3
+ import { IdentityProviderConfig } from "@smithy/types";
1
4
  import { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
2
5
  /**
3
6
  * @internal
@@ -11,6 +14,16 @@ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) =>
11
14
  logger?: import("@smithy/types").Logger | undefined;
12
15
  }) => import("@smithy/types").EndpointV2;
13
16
  extensions: import("./runtimeExtensions").RuntimeExtension[];
17
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
18
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
19
+ schemeId: string;
20
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
21
+ signer: AwsSdkSigV4Signer;
22
+ } | {
23
+ schemeId: string;
24
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
25
+ signer: NoAuthSigner;
26
+ })[];
14
27
  logger: import("@smithy/types").Logger;
15
28
  serviceId: string;
16
29
  urlParser: import("@smithy/types").UrlParser;
@@ -2,15 +2,10 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
- import {
6
- AwsAuthInputConfig,
7
- AwsAuthResolvedConfig,
8
- } from "@aws-sdk/middleware-signing";
9
5
  import {
10
6
  UserAgentInputConfig,
11
7
  UserAgentResolvedConfig,
12
8
  } from "@aws-sdk/middleware-user-agent";
13
- import { Credentials as __Credentials } from "@aws-sdk/types";
14
9
  import {
15
10
  RegionInputConfig,
16
11
  RegionResolvedConfig,
@@ -31,6 +26,7 @@ import {
31
26
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
27
  } from "@smithy/smithy-client";
33
28
  import {
29
+ AwsCredentialIdentityProvider,
34
30
  BodyLengthCalculator as __BodyLengthCalculator,
35
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -45,6 +41,10 @@ import {
45
41
  UrlParser as __UrlParser,
46
42
  UserAgent as __UserAgent,
47
43
  } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
48
  import {
49
49
  CreateIdentityPoolCommandInput,
50
50
  CreateIdentityPoolCommandOutput,
@@ -205,9 +205,9 @@ export interface ClientDefaults
205
205
  serviceId?: string;
206
206
  useDualstackEndpoint?: boolean | __Provider<boolean>;
207
207
  useFipsEndpoint?: boolean | __Provider<boolean>;
208
- region?: string | __Provider<string>;
209
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
210
208
  defaultUserAgentProvider?: Provider<__UserAgent>;
209
+ region?: string | __Provider<string>;
210
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
211
211
  maxAttempts?: number | __Provider<number>;
212
212
  retryMode?: string | __Provider<string>;
213
213
  logger?: __Logger;
@@ -222,8 +222,8 @@ export type CognitoIdentityClientConfigType = Partial<
222
222
  EndpointInputConfig<EndpointParameters> &
223
223
  RetryInputConfig &
224
224
  HostHeaderInputConfig &
225
- AwsAuthInputConfig &
226
225
  UserAgentInputConfig &
226
+ HttpAuthSchemeInputConfig &
227
227
  ClientInputEndpointParameters;
228
228
  export interface CognitoIdentityClientConfig
229
229
  extends CognitoIdentityClientConfigType {}
@@ -235,8 +235,8 @@ export type CognitoIdentityClientResolvedConfigType =
235
235
  EndpointResolvedConfig<EndpointParameters> &
236
236
  RetryResolvedConfig &
237
237
  HostHeaderResolvedConfig &
238
- AwsAuthResolvedConfig &
239
238
  UserAgentResolvedConfig &
239
+ HttpAuthSchemeResolvedConfig &
240
240
  ClientResolvedEndpointParameters;
241
241
  export interface CognitoIdentityClientResolvedConfig
242
242
  extends CognitoIdentityClientResolvedConfigType {}
@@ -251,4 +251,6 @@ export declare class CognitoIdentityClient extends __Client<
251
251
  ...[configuration]: __CheckOptionalClientConfig<CognitoIdentityClientConfig>
252
252
  );
253
253
  destroy(): void;
254
+ private getDefaultHttpAuthSchemeParametersProvider;
255
+ private getIdentityProviderConfigProvider;
254
256
  }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { CognitoIdentityHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): CognitoIdentityHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,44 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ } from "@smithy/types";
13
+ import { CognitoIdentityClientResolvedConfig } from "../CognitoIdentityClient";
14
+ export interface CognitoIdentityHttpAuthSchemeParameters
15
+ extends HttpAuthSchemeParameters {
16
+ region?: string;
17
+ }
18
+ export interface CognitoIdentityHttpAuthSchemeParametersProvider
19
+ extends HttpAuthSchemeParametersProvider<
20
+ CognitoIdentityClientResolvedConfig,
21
+ HandlerExecutionContext,
22
+ CognitoIdentityHttpAuthSchemeParameters,
23
+ object
24
+ > {}
25
+ export declare const defaultCognitoIdentityHttpAuthSchemeParametersProvider: (
26
+ config: CognitoIdentityClientResolvedConfig,
27
+ context: HandlerExecutionContext,
28
+ input: object
29
+ ) => Promise<CognitoIdentityHttpAuthSchemeParameters>;
30
+ export interface CognitoIdentityHttpAuthSchemeProvider
31
+ extends HttpAuthSchemeProvider<CognitoIdentityHttpAuthSchemeParameters> {}
32
+ export declare const defaultCognitoIdentityHttpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
33
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
34
+ httpAuthSchemes?: HttpAuthScheme[];
35
+ httpAuthSchemeProvider?: CognitoIdentityHttpAuthSchemeProvider;
36
+ }
37
+ export interface HttpAuthSchemeResolvedConfig
38
+ extends AwsSdkSigV4AuthResolvedConfig {
39
+ readonly httpAuthSchemes: HttpAuthScheme[];
40
+ readonly httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
41
+ }
42
+ export declare const resolveHttpAuthSchemeConfig: <T>(
43
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
44
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -1,7 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  export interface CognitoIdentityExtensionConfiguration
5
6
  extends HttpHandlerExtensionConfiguration,
6
7
  DefaultExtensionConfiguration,
7
- AwsRegionExtensionConfiguration {}
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (
10
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
11
  credentialDefaultProvider: (
12
12
  input: any
13
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
13
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
14
14
  defaultUserAgentProvider: import("@smithy/types").Provider<
15
15
  import("@smithy/types").UserAgent
16
16
  >;
@@ -74,11 +74,37 @@ export declare const getRuntimeConfig: (
74
74
  | import("@smithy/types").RetryStrategy
75
75
  | import("@smithy/types").RetryStrategyV2
76
76
  | undefined;
77
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
78
+ httpAuthSchemes:
79
+ | import("@smithy/types").HttpAuthScheme[]
80
+ | (
81
+ | {
82
+ schemeId: string;
83
+ identityProvider: (
84
+ ipc: import("@smithy/types").IdentityProviderConfig
85
+ ) =>
86
+ | import("@smithy/types").IdentityProvider<
87
+ import("@smithy/types").Identity
88
+ >
89
+ | undefined;
90
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
91
+ }
92
+ | {
93
+ schemeId: string;
94
+ identityProvider: (
95
+ ipc: import("@smithy/types").IdentityProviderConfig
96
+ ) =>
97
+ | import("@smithy/types").IdentityProvider<
98
+ import("@smithy/types").Identity
99
+ >
100
+ | (() => Promise<{}>);
101
+ signer: import("@smithy/core").NoAuthSigner;
102
+ }
103
+ )[];
104
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
77
105
  credentials?:
78
106
  | import("@smithy/types").AwsCredentialIdentity
79
- | import("@smithy/types").Provider<
80
- import("@smithy/types").AwsCredentialIdentity
81
- >
107
+ | import("@smithy/types").AwsCredentialIdentityProvider
82
108
  | undefined;
83
109
  signer?:
84
110
  | import("@smithy/types").RequestSigner
@@ -95,5 +121,4 @@ export declare const getRuntimeConfig: (
95
121
  import("@smithy/signature-v4").SignatureV4CryptoInit
96
122
  ) => import("@smithy/types").RequestSigner)
97
123
  | undefined;
98
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
99
124
  };
@@ -78,11 +78,37 @@ export declare const getRuntimeConfig: (
78
78
  | import("@smithy/types").RetryStrategy
79
79
  | import("@smithy/types").RetryStrategyV2
80
80
  | undefined;
81
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
82
+ httpAuthSchemes:
83
+ | import("@smithy/types").HttpAuthScheme[]
84
+ | (
85
+ | {
86
+ schemeId: string;
87
+ identityProvider: (
88
+ ipc: import("@smithy/types").IdentityProviderConfig
89
+ ) =>
90
+ | import("@smithy/types").IdentityProvider<
91
+ import("@smithy/types").Identity
92
+ >
93
+ | undefined;
94
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
95
+ }
96
+ | {
97
+ schemeId: string;
98
+ identityProvider: (
99
+ ipc: import("@smithy/types").IdentityProviderConfig
100
+ ) =>
101
+ | import("@smithy/types").IdentityProvider<
102
+ import("@smithy/types").Identity
103
+ >
104
+ | (() => Promise<{}>);
105
+ signer: import("@smithy/core").NoAuthSigner;
106
+ }
107
+ )[];
108
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
81
109
  credentials?:
82
110
  | import("@smithy/types").AwsCredentialIdentity
83
- | import("@smithy/types").Provider<
84
- import("@smithy/types").AwsCredentialIdentity
85
- >
111
+ | import("@smithy/types").AwsCredentialIdentityProvider
86
112
  | undefined;
87
113
  signer?:
88
114
  | import("@smithy/types").RequestSigner
@@ -99,5 +125,4 @@ export declare const getRuntimeConfig: (
99
125
  import("@smithy/signature-v4").SignatureV4CryptoInit
100
126
  ) => import("@smithy/types").RequestSigner)
101
127
  | undefined;
102
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
103
128
  };
@@ -31,13 +31,13 @@ export declare const getRuntimeConfig: (
31
31
  serviceId: string;
32
32
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
33
33
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
34
- region: string | import("@smithy/types").Provider<any>;
35
- credentialDefaultProvider: (
36
- input: any
37
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
38
34
  defaultUserAgentProvider: import("@smithy/types").Provider<
39
35
  import("@smithy/types").UserAgent
40
36
  >;
37
+ region: string | import("@smithy/types").Provider<any>;
38
+ credentialDefaultProvider: (
39
+ input: any
40
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
41
41
  maxAttempts: number | import("@smithy/types").Provider<number>;
42
42
  retryMode: string | import("@smithy/types").Provider<string>;
43
43
  logger: import("@smithy/types").Logger;
@@ -65,11 +65,37 @@ export declare const getRuntimeConfig: (
65
65
  | import("@smithy/types").RetryStrategy
66
66
  | import("@smithy/types").RetryStrategyV2
67
67
  | undefined;
68
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
69
+ httpAuthSchemes:
70
+ | import("@smithy/types").HttpAuthScheme[]
71
+ | (
72
+ | {
73
+ schemeId: string;
74
+ identityProvider: (
75
+ ipc: import("@smithy/types").IdentityProviderConfig
76
+ ) =>
77
+ | import("@smithy/types").IdentityProvider<
78
+ import("@smithy/types").Identity
79
+ >
80
+ | undefined;
81
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
82
+ }
83
+ | {
84
+ schemeId: string;
85
+ identityProvider: (
86
+ ipc: import("@smithy/types").IdentityProviderConfig
87
+ ) =>
88
+ | import("@smithy/types").IdentityProvider<
89
+ import("@smithy/types").Identity
90
+ >
91
+ | (() => Promise<{}>);
92
+ signer: import("@smithy/core").NoAuthSigner;
93
+ }
94
+ )[];
95
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
68
96
  credentials?:
69
97
  | import("@smithy/types").AwsCredentialIdentity
70
- | import("@smithy/types").Provider<
71
- import("@smithy/types").AwsCredentialIdentity
72
- >
98
+ | import("@smithy/types").AwsCredentialIdentityProvider
73
99
  | undefined;
74
100
  signer?:
75
101
  | import("@smithy/types").RequestSigner
@@ -86,5 +112,4 @@ export declare const getRuntimeConfig: (
86
112
  import("@smithy/signature-v4").SignatureV4CryptoInit
87
113
  ) => import("@smithy/types").RequestSigner)
88
114
  | undefined;
89
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
90
115
  };
@@ -1,3 +1,6 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { NoAuthSigner } from "@smithy/core";
3
+ import { IdentityProviderConfig } from "@smithy/types";
1
4
  import { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
2
5
  export declare const getRuntimeConfig: (
3
6
  config: CognitoIdentityClientConfig
@@ -13,6 +16,33 @@ export declare const getRuntimeConfig: (
13
16
  }
14
17
  ) => import("@smithy/types").EndpointV2;
15
18
  extensions: import("./runtimeExtensions").RuntimeExtension[];
19
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
20
+ httpAuthSchemes:
21
+ | import("@smithy/types").HttpAuthScheme[]
22
+ | (
23
+ | {
24
+ schemeId: string;
25
+ identityProvider: (
26
+ ipc: IdentityProviderConfig
27
+ ) =>
28
+ | import("@smithy/types").IdentityProvider<
29
+ import("@smithy/types").Identity
30
+ >
31
+ | undefined;
32
+ signer: AwsSdkSigV4Signer;
33
+ }
34
+ | {
35
+ schemeId: string;
36
+ identityProvider: (
37
+ ipc: IdentityProviderConfig
38
+ ) =>
39
+ | import("@smithy/types").IdentityProvider<
40
+ import("@smithy/types").Identity
41
+ >
42
+ | (() => Promise<{}>);
43
+ signer: NoAuthSigner;
44
+ }
45
+ )[];
16
46
  logger: import("@smithy/types").Logger;
17
47
  serviceId: string;
18
48
  urlParser: import("@smithy/types").UrlParser;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
4
- "version": "3.511.0",
4
+ "version": "3.514.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cognito-identity",
@@ -21,13 +21,12 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.511.0",
25
- "@aws-sdk/core": "3.511.0",
26
- "@aws-sdk/credential-provider-node": "3.511.0",
24
+ "@aws-sdk/client-sts": "3.513.0",
25
+ "@aws-sdk/core": "3.513.0",
26
+ "@aws-sdk/credential-provider-node": "3.514.0",
27
27
  "@aws-sdk/middleware-host-header": "3.511.0",
28
28
  "@aws-sdk/middleware-logger": "3.511.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.511.0",
30
- "@aws-sdk/middleware-signing": "3.511.0",
31
30
  "@aws-sdk/middleware-user-agent": "3.511.0",
32
31
  "@aws-sdk/region-config-resolver": "3.511.0",
33
32
  "@aws-sdk/types": "3.511.0",
@@ -35,7 +34,7 @@
35
34
  "@aws-sdk/util-user-agent-browser": "3.511.0",
36
35
  "@aws-sdk/util-user-agent-node": "3.511.0",
37
36
  "@smithy/config-resolver": "^2.1.1",
38
- "@smithy/core": "^1.3.1",
37
+ "@smithy/core": "^1.3.2",
39
38
  "@smithy/fetch-http-handler": "^2.4.1",
40
39
  "@smithy/hash-node": "^2.1.1",
41
40
  "@smithy/invalid-dependency": "^2.1.1",
@@ -54,14 +53,15 @@
54
53
  "@smithy/util-body-length-browser": "^2.1.1",
55
54
  "@smithy/util-body-length-node": "^2.2.1",
56
55
  "@smithy/util-defaults-mode-browser": "^2.1.1",
57
- "@smithy/util-defaults-mode-node": "^2.1.1",
56
+ "@smithy/util-defaults-mode-node": "^2.2.0",
58
57
  "@smithy/util-endpoints": "^1.1.1",
58
+ "@smithy/util-middleware": "^2.1.1",
59
59
  "@smithy/util-retry": "^2.1.1",
60
60
  "@smithy/util-utf8": "^2.1.1",
61
61
  "tslib": "^2.5.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@aws-sdk/client-iam": "3.511.0",
64
+ "@aws-sdk/client-iam": "3.514.0",
65
65
  "@smithy/service-client-documentation-generator": "^2.1.1",
66
66
  "@tsconfig/node14": "1.0.3",
67
67
  "@types/chai": "^4.2.11",