@aws-sdk/client-cognito-identity-provider 3.865.0 → 3.872.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.
- package/README.md +40 -0
- package/dist-cjs/index.js +361 -58
- package/dist-es/CognitoIdentityProvider.js +10 -0
- package/dist-es/commands/CreateTermsCommand.js +23 -0
- package/dist-es/commands/DeleteTermsCommand.js +22 -0
- package/dist-es/commands/DescribeTermsCommand.js +23 -0
- package/dist-es/commands/GetTokensFromRefreshTokenCommand.js +2 -1
- package/dist-es/commands/GetUICustomizationCommand.js +1 -1
- package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +1 -1
- package/dist-es/commands/GetUserCommand.js +1 -1
- package/dist-es/commands/ListTermsCommand.js +22 -0
- package/dist-es/commands/UpdateTermsCommand.js +23 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +34 -45
- package/dist-es/models/models_1.js +50 -1
- package/dist-es/protocols/Aws_json1_1.js +157 -2
- package/dist-types/CognitoIdentityProvider.d.ts +35 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +7 -2
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +6 -2
- package/dist-types/commands/CreateManagedLoginBrandingCommand.d.ts +1 -1
- package/dist-types/commands/CreateTermsCommand.d.ts +151 -0
- package/dist-types/commands/DeleteTermsCommand.d.ts +113 -0
- package/dist-types/commands/DescribeTermsCommand.d.ts +123 -0
- package/dist-types/commands/ForgotPasswordCommand.d.ts +6 -3
- package/dist-types/commands/GetTokensFromRefreshTokenCommand.d.ts +2 -1
- package/dist-types/commands/GetUICustomizationCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/commands/ListTermsCommand.d.ts +121 -0
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTermsCommand.d.ts +147 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +485 -366
- package/dist-types/models/models_1.d.ts +600 -119
- package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +85 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteTermsCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/DescribeTermsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetTokensFromRefreshTokenCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -65
- package/dist-types/ts3.4/models/models_1.d.ts +98 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +2 -2
|
@@ -37,6 +37,7 @@ import { CreateGroupCommand } from "./commands/CreateGroupCommand";
|
|
|
37
37
|
import { CreateIdentityProviderCommand, } from "./commands/CreateIdentityProviderCommand";
|
|
38
38
|
import { CreateManagedLoginBrandingCommand, } from "./commands/CreateManagedLoginBrandingCommand";
|
|
39
39
|
import { CreateResourceServerCommand, } from "./commands/CreateResourceServerCommand";
|
|
40
|
+
import { CreateTermsCommand } from "./commands/CreateTermsCommand";
|
|
40
41
|
import { CreateUserImportJobCommand, } from "./commands/CreateUserImportJobCommand";
|
|
41
42
|
import { CreateUserPoolClientCommand, } from "./commands/CreateUserPoolClientCommand";
|
|
42
43
|
import { CreateUserPoolCommand, } from "./commands/CreateUserPoolCommand";
|
|
@@ -45,6 +46,7 @@ import { DeleteGroupCommand } from "./commands/DeleteGroupCommand";
|
|
|
45
46
|
import { DeleteIdentityProviderCommand, } from "./commands/DeleteIdentityProviderCommand";
|
|
46
47
|
import { DeleteManagedLoginBrandingCommand, } from "./commands/DeleteManagedLoginBrandingCommand";
|
|
47
48
|
import { DeleteResourceServerCommand, } from "./commands/DeleteResourceServerCommand";
|
|
49
|
+
import { DeleteTermsCommand } from "./commands/DeleteTermsCommand";
|
|
48
50
|
import { DeleteUserAttributesCommand, } from "./commands/DeleteUserAttributesCommand";
|
|
49
51
|
import { DeleteUserCommand } from "./commands/DeleteUserCommand";
|
|
50
52
|
import { DeleteUserPoolClientCommand, } from "./commands/DeleteUserPoolClientCommand";
|
|
@@ -56,6 +58,7 @@ import { DescribeManagedLoginBrandingByClientCommand, } from "./commands/Describ
|
|
|
56
58
|
import { DescribeManagedLoginBrandingCommand, } from "./commands/DescribeManagedLoginBrandingCommand";
|
|
57
59
|
import { DescribeResourceServerCommand, } from "./commands/DescribeResourceServerCommand";
|
|
58
60
|
import { DescribeRiskConfigurationCommand, } from "./commands/DescribeRiskConfigurationCommand";
|
|
61
|
+
import { DescribeTermsCommand, } from "./commands/DescribeTermsCommand";
|
|
59
62
|
import { DescribeUserImportJobCommand, } from "./commands/DescribeUserImportJobCommand";
|
|
60
63
|
import { DescribeUserPoolClientCommand, } from "./commands/DescribeUserPoolClientCommand";
|
|
61
64
|
import { DescribeUserPoolCommand, } from "./commands/DescribeUserPoolCommand";
|
|
@@ -81,6 +84,7 @@ import { ListGroupsCommand } from "./commands/ListGroupsCommand";
|
|
|
81
84
|
import { ListIdentityProvidersCommand, } from "./commands/ListIdentityProvidersCommand";
|
|
82
85
|
import { ListResourceServersCommand, } from "./commands/ListResourceServersCommand";
|
|
83
86
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
87
|
+
import { ListTermsCommand } from "./commands/ListTermsCommand";
|
|
84
88
|
import { ListUserImportJobsCommand, } from "./commands/ListUserImportJobsCommand";
|
|
85
89
|
import { ListUserPoolClientsCommand, } from "./commands/ListUserPoolClientsCommand";
|
|
86
90
|
import { ListUserPoolsCommand, } from "./commands/ListUserPoolsCommand";
|
|
@@ -108,6 +112,7 @@ import { UpdateGroupCommand } from "./commands/UpdateGroupCommand";
|
|
|
108
112
|
import { UpdateIdentityProviderCommand, } from "./commands/UpdateIdentityProviderCommand";
|
|
109
113
|
import { UpdateManagedLoginBrandingCommand, } from "./commands/UpdateManagedLoginBrandingCommand";
|
|
110
114
|
import { UpdateResourceServerCommand, } from "./commands/UpdateResourceServerCommand";
|
|
115
|
+
import { UpdateTermsCommand } from "./commands/UpdateTermsCommand";
|
|
111
116
|
import { UpdateUserAttributesCommand, } from "./commands/UpdateUserAttributesCommand";
|
|
112
117
|
import { UpdateUserPoolClientCommand, } from "./commands/UpdateUserPoolClientCommand";
|
|
113
118
|
import { UpdateUserPoolCommand, } from "./commands/UpdateUserPoolCommand";
|
|
@@ -152,6 +157,7 @@ const commands = {
|
|
|
152
157
|
CreateIdentityProviderCommand,
|
|
153
158
|
CreateManagedLoginBrandingCommand,
|
|
154
159
|
CreateResourceServerCommand,
|
|
160
|
+
CreateTermsCommand,
|
|
155
161
|
CreateUserImportJobCommand,
|
|
156
162
|
CreateUserPoolCommand,
|
|
157
163
|
CreateUserPoolClientCommand,
|
|
@@ -160,6 +166,7 @@ const commands = {
|
|
|
160
166
|
DeleteIdentityProviderCommand,
|
|
161
167
|
DeleteManagedLoginBrandingCommand,
|
|
162
168
|
DeleteResourceServerCommand,
|
|
169
|
+
DeleteTermsCommand,
|
|
163
170
|
DeleteUserCommand,
|
|
164
171
|
DeleteUserAttributesCommand,
|
|
165
172
|
DeleteUserPoolCommand,
|
|
@@ -171,6 +178,7 @@ const commands = {
|
|
|
171
178
|
DescribeManagedLoginBrandingByClientCommand,
|
|
172
179
|
DescribeResourceServerCommand,
|
|
173
180
|
DescribeRiskConfigurationCommand,
|
|
181
|
+
DescribeTermsCommand,
|
|
174
182
|
DescribeUserImportJobCommand,
|
|
175
183
|
DescribeUserPoolCommand,
|
|
176
184
|
DescribeUserPoolClientCommand,
|
|
@@ -196,6 +204,7 @@ const commands = {
|
|
|
196
204
|
ListIdentityProvidersCommand,
|
|
197
205
|
ListResourceServersCommand,
|
|
198
206
|
ListTagsForResourceCommand,
|
|
207
|
+
ListTermsCommand,
|
|
199
208
|
ListUserImportJobsCommand,
|
|
200
209
|
ListUserPoolClientsCommand,
|
|
201
210
|
ListUserPoolsCommand,
|
|
@@ -223,6 +232,7 @@ const commands = {
|
|
|
223
232
|
UpdateIdentityProviderCommand,
|
|
224
233
|
UpdateManagedLoginBrandingCommand,
|
|
225
234
|
UpdateResourceServerCommand,
|
|
235
|
+
UpdateTermsCommand,
|
|
226
236
|
UpdateUserAttributesCommand,
|
|
227
237
|
UpdateUserPoolCommand,
|
|
228
238
|
UpdateUserPoolClientCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { CreateTermsRequestFilterSensitiveLog, CreateTermsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_CreateTermsCommand, se_CreateTermsCommand } from "../protocols/Aws_json1_1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class CreateTermsCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AWSCognitoIdentityProviderService", "CreateTerms", {})
|
|
18
|
+
.n("CognitoIdentityProviderClient", "CreateTermsCommand")
|
|
19
|
+
.f(CreateTermsRequestFilterSensitiveLog, CreateTermsResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_CreateTermsCommand)
|
|
21
|
+
.de(de_CreateTermsCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteTermsCommand, se_DeleteTermsCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteTermsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSCognitoIdentityProviderService", "DeleteTerms", {})
|
|
17
|
+
.n("CognitoIdentityProviderClient", "DeleteTermsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DeleteTermsCommand)
|
|
20
|
+
.de(de_DeleteTermsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { DescribeTermsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_DescribeTermsCommand, se_DescribeTermsCommand } from "../protocols/Aws_json1_1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class DescribeTermsCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AWSCognitoIdentityProviderService", "DescribeTerms", {})
|
|
18
|
+
.n("CognitoIdentityProviderClient", "DescribeTermsCommand")
|
|
19
|
+
.f(void 0, DescribeTermsResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_DescribeTermsCommand)
|
|
21
|
+
.de(de_DescribeTermsCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -2,7 +2,8 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { GetTokensFromRefreshTokenRequestFilterSensitiveLog,
|
|
5
|
+
import { GetTokensFromRefreshTokenRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { GetTokensFromRefreshTokenResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
7
|
import { de_GetTokensFromRefreshTokenCommand, se_GetTokensFromRefreshTokenCommand } from "../protocols/Aws_json1_1";
|
|
7
8
|
export { $Command };
|
|
8
9
|
export class GetTokensFromRefreshTokenCommand extends $Command
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { GetUICustomizationRequestFilterSensitiveLog, GetUICustomizationResponseFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { GetUICustomizationRequestFilterSensitiveLog, GetUICustomizationResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_GetUICustomizationCommand, se_GetUICustomizationCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class GetUICustomizationCommand extends $Command
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { GetUserAttributeVerificationCodeRequestFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { GetUserAttributeVerificationCodeRequestFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_GetUserAttributeVerificationCodeCommand, se_GetUserAttributeVerificationCodeCommand, } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class GetUserAttributeVerificationCodeCommand extends $Command
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import { GetUserRequestFilterSensitiveLog, GetUserResponseFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { GetUserRequestFilterSensitiveLog, GetUserResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_GetUserCommand, se_GetUserCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class GetUserCommand extends $Command
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListTermsCommand, se_ListTermsCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListTermsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AWSCognitoIdentityProviderService", "ListTerms", {})
|
|
17
|
+
.n("CognitoIdentityProviderClient", "ListTermsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListTermsCommand)
|
|
20
|
+
.de(de_ListTermsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { UpdateTermsResponseFilterSensitiveLog } from "../models/models_1";
|
|
6
|
+
import { de_UpdateTermsCommand, se_UpdateTermsCommand } from "../protocols/Aws_json1_1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class UpdateTermsCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AWSCognitoIdentityProviderService", "UpdateTerms", {})
|
|
18
|
+
.n("CognitoIdentityProviderClient", "UpdateTermsCommand")
|
|
19
|
+
.f(void 0, UpdateTermsResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_UpdateTermsCommand)
|
|
21
|
+
.de(de_UpdateTermsCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -35,6 +35,7 @@ export * from "./CreateGroupCommand";
|
|
|
35
35
|
export * from "./CreateIdentityProviderCommand";
|
|
36
36
|
export * from "./CreateManagedLoginBrandingCommand";
|
|
37
37
|
export * from "./CreateResourceServerCommand";
|
|
38
|
+
export * from "./CreateTermsCommand";
|
|
38
39
|
export * from "./CreateUserImportJobCommand";
|
|
39
40
|
export * from "./CreateUserPoolClientCommand";
|
|
40
41
|
export * from "./CreateUserPoolCommand";
|
|
@@ -43,6 +44,7 @@ export * from "./DeleteGroupCommand";
|
|
|
43
44
|
export * from "./DeleteIdentityProviderCommand";
|
|
44
45
|
export * from "./DeleteManagedLoginBrandingCommand";
|
|
45
46
|
export * from "./DeleteResourceServerCommand";
|
|
47
|
+
export * from "./DeleteTermsCommand";
|
|
46
48
|
export * from "./DeleteUserAttributesCommand";
|
|
47
49
|
export * from "./DeleteUserCommand";
|
|
48
50
|
export * from "./DeleteUserPoolClientCommand";
|
|
@@ -54,6 +56,7 @@ export * from "./DescribeManagedLoginBrandingByClientCommand";
|
|
|
54
56
|
export * from "./DescribeManagedLoginBrandingCommand";
|
|
55
57
|
export * from "./DescribeResourceServerCommand";
|
|
56
58
|
export * from "./DescribeRiskConfigurationCommand";
|
|
59
|
+
export * from "./DescribeTermsCommand";
|
|
57
60
|
export * from "./DescribeUserImportJobCommand";
|
|
58
61
|
export * from "./DescribeUserPoolClientCommand";
|
|
59
62
|
export * from "./DescribeUserPoolCommand";
|
|
@@ -79,6 +82,7 @@ export * from "./ListGroupsCommand";
|
|
|
79
82
|
export * from "./ListIdentityProvidersCommand";
|
|
80
83
|
export * from "./ListResourceServersCommand";
|
|
81
84
|
export * from "./ListTagsForResourceCommand";
|
|
85
|
+
export * from "./ListTermsCommand";
|
|
82
86
|
export * from "./ListUserImportJobsCommand";
|
|
83
87
|
export * from "./ListUserPoolClientsCommand";
|
|
84
88
|
export * from "./ListUserPoolsCommand";
|
|
@@ -106,6 +110,7 @@ export * from "./UpdateGroupCommand";
|
|
|
106
110
|
export * from "./UpdateIdentityProviderCommand";
|
|
107
111
|
export * from "./UpdateManagedLoginBrandingCommand";
|
|
108
112
|
export * from "./UpdateResourceServerCommand";
|
|
113
|
+
export * from "./UpdateTermsCommand";
|
|
109
114
|
export * from "./UpdateUserAttributesCommand";
|
|
110
115
|
export * from "./UpdateUserPoolClientCommand";
|
|
111
116
|
export * from "./UpdateUserPoolCommand";
|
|
@@ -680,6 +680,24 @@ export class ManagedLoginBrandingExistsException extends __BaseException {
|
|
|
680
680
|
Object.setPrototypeOf(this, ManagedLoginBrandingExistsException.prototype);
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
+
export const TermsEnforcementType = {
|
|
684
|
+
NONE: "NONE",
|
|
685
|
+
};
|
|
686
|
+
export const TermsSourceType = {
|
|
687
|
+
LINK: "LINK",
|
|
688
|
+
};
|
|
689
|
+
export class TermsExistsException extends __BaseException {
|
|
690
|
+
name = "TermsExistsException";
|
|
691
|
+
$fault = "client";
|
|
692
|
+
constructor(opts) {
|
|
693
|
+
super({
|
|
694
|
+
name: "TermsExistsException",
|
|
695
|
+
$fault: "client",
|
|
696
|
+
...opts,
|
|
697
|
+
});
|
|
698
|
+
Object.setPrototypeOf(this, TermsExistsException.prototype);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
683
701
|
export const UserImportJobStatusType = {
|
|
684
702
|
Created: "Created",
|
|
685
703
|
Expired: "Expired",
|
|
@@ -857,18 +875,6 @@ export const LogLevel = {
|
|
|
857
875
|
ERROR: "ERROR",
|
|
858
876
|
INFO: "INFO",
|
|
859
877
|
};
|
|
860
|
-
export class RefreshTokenReuseException extends __BaseException {
|
|
861
|
-
name = "RefreshTokenReuseException";
|
|
862
|
-
$fault = "client";
|
|
863
|
-
constructor(opts) {
|
|
864
|
-
super({
|
|
865
|
-
name: "RefreshTokenReuseException",
|
|
866
|
-
$fault: "client",
|
|
867
|
-
...opts,
|
|
868
|
-
});
|
|
869
|
-
Object.setPrototypeOf(this, RefreshTokenReuseException.prototype);
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
878
|
export const AdminAddUserToGroupRequestFilterSensitiveLog = (obj) => ({
|
|
873
879
|
...obj,
|
|
874
880
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
@@ -1084,6 +1090,18 @@ export const CreateManagedLoginBrandingRequestFilterSensitiveLog = (obj) => ({
|
|
|
1084
1090
|
...obj,
|
|
1085
1091
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1086
1092
|
});
|
|
1093
|
+
export const CreateTermsRequestFilterSensitiveLog = (obj) => ({
|
|
1094
|
+
...obj,
|
|
1095
|
+
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1096
|
+
});
|
|
1097
|
+
export const TermsTypeFilterSensitiveLog = (obj) => ({
|
|
1098
|
+
...obj,
|
|
1099
|
+
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1100
|
+
});
|
|
1101
|
+
export const CreateTermsResponseFilterSensitiveLog = (obj) => ({
|
|
1102
|
+
...obj,
|
|
1103
|
+
...(obj.Terms && { Terms: TermsTypeFilterSensitiveLog(obj.Terms) }),
|
|
1104
|
+
});
|
|
1087
1105
|
export const UserPoolClientTypeFilterSensitiveLog = (obj) => ({
|
|
1088
1106
|
...obj,
|
|
1089
1107
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
@@ -1125,6 +1143,10 @@ export const DescribeRiskConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
|
1125
1143
|
...obj,
|
|
1126
1144
|
...(obj.RiskConfiguration && { RiskConfiguration: RiskConfigurationTypeFilterSensitiveLog(obj.RiskConfiguration) }),
|
|
1127
1145
|
});
|
|
1146
|
+
export const DescribeTermsResponseFilterSensitiveLog = (obj) => ({
|
|
1147
|
+
...obj,
|
|
1148
|
+
...(obj.Terms && { Terms: TermsTypeFilterSensitiveLog(obj.Terms) }),
|
|
1149
|
+
});
|
|
1128
1150
|
export const DescribeUserPoolClientRequestFilterSensitiveLog = (obj) => ({
|
|
1129
1151
|
...obj,
|
|
1130
1152
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
@@ -1158,36 +1180,3 @@ export const GetTokensFromRefreshTokenRequestFilterSensitiveLog = (obj) => ({
|
|
|
1158
1180
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1159
1181
|
...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
|
|
1160
1182
|
});
|
|
1161
|
-
export const GetTokensFromRefreshTokenResponseFilterSensitiveLog = (obj) => ({
|
|
1162
|
-
...obj,
|
|
1163
|
-
...(obj.AuthenticationResult && {
|
|
1164
|
-
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
1165
|
-
}),
|
|
1166
|
-
});
|
|
1167
|
-
export const GetUICustomizationRequestFilterSensitiveLog = (obj) => ({
|
|
1168
|
-
...obj,
|
|
1169
|
-
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1170
|
-
});
|
|
1171
|
-
export const UICustomizationTypeFilterSensitiveLog = (obj) => ({
|
|
1172
|
-
...obj,
|
|
1173
|
-
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1174
|
-
});
|
|
1175
|
-
export const GetUICustomizationResponseFilterSensitiveLog = (obj) => ({
|
|
1176
|
-
...obj,
|
|
1177
|
-
...(obj.UICustomization && { UICustomization: UICustomizationTypeFilterSensitiveLog(obj.UICustomization) }),
|
|
1178
|
-
});
|
|
1179
|
-
export const GetUserRequestFilterSensitiveLog = (obj) => ({
|
|
1180
|
-
...obj,
|
|
1181
|
-
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
1182
|
-
});
|
|
1183
|
-
export const GetUserResponseFilterSensitiveLog = (obj) => ({
|
|
1184
|
-
...obj,
|
|
1185
|
-
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
1186
|
-
...(obj.UserAttributes && {
|
|
1187
|
-
UserAttributes: obj.UserAttributes.map((item) => AttributeTypeFilterSensitiveLog(item)),
|
|
1188
|
-
}),
|
|
1189
|
-
});
|
|
1190
|
-
export const GetUserAttributeVerificationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
1191
|
-
...obj,
|
|
1192
|
-
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
1193
|
-
});
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
3
|
-
import { AttributeTypeFilterSensitiveLog, AuthenticationResultTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog,
|
|
3
|
+
import { AttributeTypeFilterSensitiveLog, AuthenticationResultTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, TermsTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, UserTypeFilterSensitiveLog, } from "./models_0";
|
|
4
|
+
export class RefreshTokenReuseException extends __BaseException {
|
|
5
|
+
name = "RefreshTokenReuseException";
|
|
6
|
+
$fault = "client";
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
super({
|
|
9
|
+
name: "RefreshTokenReuseException",
|
|
10
|
+
$fault: "client",
|
|
11
|
+
...opts,
|
|
12
|
+
});
|
|
13
|
+
Object.setPrototypeOf(this, RefreshTokenReuseException.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
4
16
|
export const UserVerificationType = {
|
|
5
17
|
PREFERRED: "preferred",
|
|
6
18
|
REQUIRED: "required",
|
|
@@ -57,6 +69,39 @@ export const VerifySoftwareTokenResponseType = {
|
|
|
57
69
|
ERROR: "ERROR",
|
|
58
70
|
SUCCESS: "SUCCESS",
|
|
59
71
|
};
|
|
72
|
+
export const GetTokensFromRefreshTokenResponseFilterSensitiveLog = (obj) => ({
|
|
73
|
+
...obj,
|
|
74
|
+
...(obj.AuthenticationResult && {
|
|
75
|
+
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
76
|
+
}),
|
|
77
|
+
});
|
|
78
|
+
export const GetUICustomizationRequestFilterSensitiveLog = (obj) => ({
|
|
79
|
+
...obj,
|
|
80
|
+
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
81
|
+
});
|
|
82
|
+
export const UICustomizationTypeFilterSensitiveLog = (obj) => ({
|
|
83
|
+
...obj,
|
|
84
|
+
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
85
|
+
});
|
|
86
|
+
export const GetUICustomizationResponseFilterSensitiveLog = (obj) => ({
|
|
87
|
+
...obj,
|
|
88
|
+
...(obj.UICustomization && { UICustomization: UICustomizationTypeFilterSensitiveLog(obj.UICustomization) }),
|
|
89
|
+
});
|
|
90
|
+
export const GetUserRequestFilterSensitiveLog = (obj) => ({
|
|
91
|
+
...obj,
|
|
92
|
+
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
93
|
+
});
|
|
94
|
+
export const GetUserResponseFilterSensitiveLog = (obj) => ({
|
|
95
|
+
...obj,
|
|
96
|
+
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
97
|
+
...(obj.UserAttributes && {
|
|
98
|
+
UserAttributes: obj.UserAttributes.map((item) => AttributeTypeFilterSensitiveLog(item)),
|
|
99
|
+
}),
|
|
100
|
+
});
|
|
101
|
+
export const GetUserAttributeVerificationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
102
|
+
...obj,
|
|
103
|
+
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
104
|
+
});
|
|
60
105
|
export const GetUserAuthFactorsRequestFilterSensitiveLog = (obj) => ({
|
|
61
106
|
...obj,
|
|
62
107
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
@@ -194,6 +239,10 @@ export const UpdateDeviceStatusRequestFilterSensitiveLog = (obj) => ({
|
|
|
194
239
|
...obj,
|
|
195
240
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
196
241
|
});
|
|
242
|
+
export const UpdateTermsResponseFilterSensitiveLog = (obj) => ({
|
|
243
|
+
...obj,
|
|
244
|
+
...(obj.Terms && { Terms: TermsTypeFilterSensitiveLog(obj.Terms) }),
|
|
245
|
+
});
|
|
197
246
|
export const UpdateUserAttributesRequestFilterSensitiveLog = (obj) => ({
|
|
198
247
|
...obj,
|
|
199
248
|
...(obj.UserAttributes && {
|