@aws-sdk/client-cognito-identity-provider 3.511.0 → 3.513.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 (103) hide show
  1. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +156 -0
  3. package/dist-cjs/index.js +142 -237
  4. package/dist-cjs/runtimeConfig.shared.js +16 -0
  5. package/dist-es/CognitoIdentityProviderClient.js +17 -3
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +150 -0
  8. package/dist-es/commands/AddCustomAttributesCommand.js +0 -2
  9. package/dist-es/commands/AdminAddUserToGroupCommand.js +0 -2
  10. package/dist-es/commands/AdminConfirmSignUpCommand.js +0 -2
  11. package/dist-es/commands/AdminCreateUserCommand.js +0 -2
  12. package/dist-es/commands/AdminDeleteUserAttributesCommand.js +0 -2
  13. package/dist-es/commands/AdminDeleteUserCommand.js +0 -2
  14. package/dist-es/commands/AdminDisableProviderForUserCommand.js +0 -2
  15. package/dist-es/commands/AdminDisableUserCommand.js +0 -2
  16. package/dist-es/commands/AdminEnableUserCommand.js +0 -2
  17. package/dist-es/commands/AdminForgetDeviceCommand.js +0 -2
  18. package/dist-es/commands/AdminGetDeviceCommand.js +0 -2
  19. package/dist-es/commands/AdminGetUserCommand.js +0 -2
  20. package/dist-es/commands/AdminInitiateAuthCommand.js +0 -2
  21. package/dist-es/commands/AdminLinkProviderForUserCommand.js +0 -2
  22. package/dist-es/commands/AdminListDevicesCommand.js +0 -2
  23. package/dist-es/commands/AdminListGroupsForUserCommand.js +0 -2
  24. package/dist-es/commands/AdminListUserAuthEventsCommand.js +0 -2
  25. package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +0 -2
  26. package/dist-es/commands/AdminResetUserPasswordCommand.js +0 -2
  27. package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +0 -2
  28. package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +0 -2
  29. package/dist-es/commands/AdminSetUserPasswordCommand.js +0 -2
  30. package/dist-es/commands/AdminSetUserSettingsCommand.js +0 -2
  31. package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +0 -2
  32. package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +0 -2
  33. package/dist-es/commands/AdminUpdateUserAttributesCommand.js +0 -2
  34. package/dist-es/commands/AdminUserGlobalSignOutCommand.js +0 -2
  35. package/dist-es/commands/CreateGroupCommand.js +0 -2
  36. package/dist-es/commands/CreateIdentityProviderCommand.js +0 -2
  37. package/dist-es/commands/CreateResourceServerCommand.js +0 -2
  38. package/dist-es/commands/CreateUserImportJobCommand.js +0 -2
  39. package/dist-es/commands/CreateUserPoolClientCommand.js +0 -2
  40. package/dist-es/commands/CreateUserPoolCommand.js +0 -2
  41. package/dist-es/commands/CreateUserPoolDomainCommand.js +0 -2
  42. package/dist-es/commands/DeleteGroupCommand.js +0 -2
  43. package/dist-es/commands/DeleteIdentityProviderCommand.js +0 -2
  44. package/dist-es/commands/DeleteResourceServerCommand.js +0 -2
  45. package/dist-es/commands/DeleteUserPoolClientCommand.js +0 -2
  46. package/dist-es/commands/DeleteUserPoolCommand.js +0 -2
  47. package/dist-es/commands/DeleteUserPoolDomainCommand.js +0 -2
  48. package/dist-es/commands/DescribeIdentityProviderCommand.js +0 -2
  49. package/dist-es/commands/DescribeResourceServerCommand.js +0 -2
  50. package/dist-es/commands/DescribeRiskConfigurationCommand.js +0 -2
  51. package/dist-es/commands/DescribeUserImportJobCommand.js +0 -2
  52. package/dist-es/commands/DescribeUserPoolClientCommand.js +0 -2
  53. package/dist-es/commands/DescribeUserPoolCommand.js +0 -2
  54. package/dist-es/commands/DescribeUserPoolDomainCommand.js +0 -2
  55. package/dist-es/commands/GetCSVHeaderCommand.js +0 -2
  56. package/dist-es/commands/GetGroupCommand.js +0 -2
  57. package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +0 -2
  58. package/dist-es/commands/GetLogDeliveryConfigurationCommand.js +0 -2
  59. package/dist-es/commands/GetSigningCertificateCommand.js +0 -2
  60. package/dist-es/commands/GetUICustomizationCommand.js +0 -2
  61. package/dist-es/commands/GetUserPoolMfaConfigCommand.js +0 -2
  62. package/dist-es/commands/ListGroupsCommand.js +0 -2
  63. package/dist-es/commands/ListIdentityProvidersCommand.js +0 -2
  64. package/dist-es/commands/ListResourceServersCommand.js +0 -2
  65. package/dist-es/commands/ListTagsForResourceCommand.js +0 -2
  66. package/dist-es/commands/ListUserImportJobsCommand.js +0 -2
  67. package/dist-es/commands/ListUserPoolClientsCommand.js +0 -2
  68. package/dist-es/commands/ListUserPoolsCommand.js +0 -2
  69. package/dist-es/commands/ListUsersCommand.js +0 -2
  70. package/dist-es/commands/ListUsersInGroupCommand.js +0 -2
  71. package/dist-es/commands/SetLogDeliveryConfigurationCommand.js +0 -2
  72. package/dist-es/commands/SetRiskConfigurationCommand.js +0 -2
  73. package/dist-es/commands/SetUICustomizationCommand.js +0 -2
  74. package/dist-es/commands/SetUserPoolMfaConfigCommand.js +0 -2
  75. package/dist-es/commands/StartUserImportJobCommand.js +0 -2
  76. package/dist-es/commands/StopUserImportJobCommand.js +0 -2
  77. package/dist-es/commands/TagResourceCommand.js +0 -2
  78. package/dist-es/commands/UntagResourceCommand.js +0 -2
  79. package/dist-es/commands/UpdateGroupCommand.js +0 -2
  80. package/dist-es/commands/UpdateIdentityProviderCommand.js +0 -2
  81. package/dist-es/commands/UpdateResourceServerCommand.js +0 -2
  82. package/dist-es/commands/UpdateUserPoolClientCommand.js +0 -2
  83. package/dist-es/commands/UpdateUserPoolCommand.js +0 -2
  84. package/dist-es/commands/UpdateUserPoolDomainCommand.js +0 -2
  85. package/dist-es/runtimeConfig.shared.js +16 -0
  86. package/dist-es/runtimeExtensions.js +3 -0
  87. package/dist-types/CognitoIdentityProviderClient.d.ts +13 -11
  88. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  89. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  90. package/dist-types/extensionConfiguration.d.ts +2 -1
  91. package/dist-types/runtimeConfig.browser.d.ts +13 -3
  92. package/dist-types/runtimeConfig.d.ts +12 -2
  93. package/dist-types/runtimeConfig.native.d.ts +14 -4
  94. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  95. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +11 -9
  96. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  97. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  98. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  99. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +30 -5
  100. package/dist-types/ts3.4/runtimeConfig.d.ts +29 -4
  101. package/dist-types/ts3.4/runtimeConfig.native.d.ts +33 -8
  102. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  103. package/package.json +7 -7
@@ -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").CognitoIdentityProviderHttpAuthSchemeProvider;
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").CognitoIdentityProviderHttpAuthSchemeProvider;
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 { CognitoIdentityProviderClientConfig } from "./CognitoIdentityProviderClient";
2
5
  export declare const getRuntimeConfig: (
3
6
  config: CognitoIdentityProviderClientConfig
@@ -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").CognitoIdentityProviderHttpAuthSchemeProvider;
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-provider",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
4
- "version": "3.511.0",
4
+ "version": "3.513.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-provider",
@@ -20,13 +20,12 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.511.0",
24
- "@aws-sdk/core": "3.511.0",
25
- "@aws-sdk/credential-provider-node": "3.511.0",
23
+ "@aws-sdk/client-sts": "3.513.0",
24
+ "@aws-sdk/core": "3.513.0",
25
+ "@aws-sdk/credential-provider-node": "3.513.0",
26
26
  "@aws-sdk/middleware-host-header": "3.511.0",
27
27
  "@aws-sdk/middleware-logger": "3.511.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.511.0",
29
- "@aws-sdk/middleware-signing": "3.511.0",
30
29
  "@aws-sdk/middleware-user-agent": "3.511.0",
31
30
  "@aws-sdk/region-config-resolver": "3.511.0",
32
31
  "@aws-sdk/types": "3.511.0",
@@ -34,7 +33,7 @@
34
33
  "@aws-sdk/util-user-agent-browser": "3.511.0",
35
34
  "@aws-sdk/util-user-agent-node": "3.511.0",
36
35
  "@smithy/config-resolver": "^2.1.1",
37
- "@smithy/core": "^1.3.1",
36
+ "@smithy/core": "^1.3.2",
38
37
  "@smithy/fetch-http-handler": "^2.4.1",
39
38
  "@smithy/hash-node": "^2.1.1",
40
39
  "@smithy/invalid-dependency": "^2.1.1",
@@ -53,8 +52,9 @@
53
52
  "@smithy/util-body-length-browser": "^2.1.1",
54
53
  "@smithy/util-body-length-node": "^2.2.1",
55
54
  "@smithy/util-defaults-mode-browser": "^2.1.1",
56
- "@smithy/util-defaults-mode-node": "^2.1.1",
55
+ "@smithy/util-defaults-mode-node": "^2.2.0",
57
56
  "@smithy/util-endpoints": "^1.1.1",
57
+ "@smithy/util-middleware": "^2.1.1",
58
58
  "@smithy/util-retry": "^2.1.1",
59
59
  "@smithy/util-utf8": "^2.1.1",
60
60
  "tslib": "^2.5.0"