@aws-sdk/client-cognito-identity-provider 3.693.0 → 3.699.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 +80 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +20 -0
- package/dist-cjs/index.js +983 -71
- package/dist-es/CognitoIdentityProvider.js +20 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +20 -0
- package/dist-es/commands/CompleteWebAuthnRegistrationCommand.js +23 -0
- package/dist-es/commands/ConfirmSignUpCommand.js +2 -2
- package/dist-es/commands/CreateManagedLoginBrandingCommand.js +23 -0
- package/dist-es/commands/DeleteManagedLoginBrandingCommand.js +22 -0
- package/dist-es/commands/DeleteWebAuthnCredentialCommand.js +23 -0
- package/dist-es/commands/DescribeManagedLoginBrandingByClientCommand.js +23 -0
- package/dist-es/commands/DescribeManagedLoginBrandingCommand.js +22 -0
- package/dist-es/commands/GetUserAuthFactorsCommand.js +23 -0
- package/dist-es/commands/GlobalSignOutCommand.js +1 -1
- package/dist-es/commands/InitiateAuthCommand.js +1 -1
- package/dist-es/commands/ListDevicesCommand.js +1 -1
- package/dist-es/commands/ListUserPoolClientsCommand.js +1 -1
- package/dist-es/commands/ListUsersCommand.js +1 -1
- package/dist-es/commands/ListUsersInGroupCommand.js +1 -1
- package/dist-es/commands/ListWebAuthnCredentialsCommand.js +23 -0
- package/dist-es/commands/ResendConfirmationCodeCommand.js +1 -1
- package/dist-es/commands/RespondToAuthChallengeCommand.js +1 -2
- package/dist-es/commands/SignUpCommand.js +2 -2
- package/dist-es/commands/StartWebAuthnRegistrationCommand.js +23 -0
- package/dist-es/commands/UpdateManagedLoginBrandingCommand.js +22 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +184 -50
- package/dist-es/models/models_1.js +82 -1
- package/dist-es/protocols/Aws_json1_1.js +433 -2
- package/dist-types/CognitoIdentityProvider.d.ts +71 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +12 -2
- package/dist-types/commands/AdminCreateUserCommand.d.ts +9 -4
- package/dist-types/commands/AdminGetUserCommand.d.ts +2 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +5 -4
- package/dist-types/commands/AdminListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +2 -2
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +4 -4
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +2 -2
- package/dist-types/commands/ChangePasswordCommand.d.ts +1 -1
- package/dist-types/commands/CompleteWebAuthnRegistrationCommand.d.ts +119 -0
- package/dist-types/commands/ConfirmSignUpCommand.d.ts +5 -2
- package/dist-types/commands/CreateManagedLoginBrandingCommand.d.ts +162 -0
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserPoolCommand.d.ts +22 -2
- package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +8 -1
- package/dist-types/commands/DeleteManagedLoginBrandingCommand.d.ts +113 -0
- package/dist-types/commands/DeleteWebAuthnCredentialCommand.d.ts +90 -0
- package/dist-types/commands/DescribeManagedLoginBrandingByClientCommand.d.ts +108 -0
- package/dist-types/commands/DescribeManagedLoginBrandingCommand.d.ts +108 -0
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +1 -1
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +6 -0
- package/dist-types/commands/DescribeUserPoolDomainCommand.d.ts +1 -0
- package/dist-types/commands/ForgotPasswordCommand.d.ts +2 -2
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -2
- package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +120 -0
- package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +6 -1
- package/dist-types/commands/GlobalSignOutCommand.d.ts +1 -1
- package/dist-types/commands/InitiateAuthCommand.d.ts +9 -5
- package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/ListGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceServersCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListUserImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListUserPoolClientsCommand.d.ts +1 -1
- package/dist-types/commands/ListUserPoolsCommand.d.ts +1 -1
- package/dist-types/commands/ListUsersCommand.d.ts +1 -1
- package/dist-types/commands/ListUsersInGroupCommand.d.ts +1 -1
- package/dist-types/commands/ListWebAuthnCredentialsCommand.d.ts +100 -0
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +3 -3
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +5 -6
- package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +15 -3
- package/dist-types/commands/SignUpCommand.d.ts +11 -3
- package/dist-types/commands/StartWebAuthnRegistrationCommand.d.ts +107 -0
- package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +150 -0
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +17 -2
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +6 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1609 -1660
- package/dist-types/models/models_1.d.ts +1711 -7
- package/dist-types/protocols/Aws_json1_1.d.ts +90 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +177 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/CompleteWebAuthnRegistrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ConfirmSignUpCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateManagedLoginBrandingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteManagedLoginBrandingCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteWebAuthnCredentialCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeManagedLoginBrandingByClientCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeManagedLoginBrandingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetUserAuthFactorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListWebAuthnCredentialsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/StartWebAuthnRegistrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateManagedLoginBrandingCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +248 -185
- package/dist-types/ts3.4/models/models_1.d.ts +262 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +120 -0
- package/package.json +35 -35
|
@@ -2,8 +2,8 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { CognitoIdentityProviderServiceException as __BaseException } from "../models/CognitoIdentityProviderServiceException";
|
|
5
|
-
import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DuplicateProviderException, ExpiredCodeException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TooManyFailedAttemptsException, TooManyRequestsException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, } from "../models/models_0";
|
|
6
|
-
import { EnableSoftwareTokenMFAException, UnauthorizedException, UnsupportedOperationException, UnsupportedTokenTypeException, } from "../models/models_1";
|
|
5
|
+
import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DuplicateProviderException, ExpiredCodeException, FeatureUnavailableInTierException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, ManagedLoginBrandingExistsException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TierChangeNotAllowedException, TooManyFailedAttemptsException, TooManyRequestsException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, WebAuthnChallengeNotFoundException, WebAuthnClientMismatchException, WebAuthnCredentialNotSupportedException, WebAuthnNotEnabledException, WebAuthnOriginNotAllowedException, WebAuthnRelyingPartyMismatchException, } from "../models/models_0";
|
|
6
|
+
import { EnableSoftwareTokenMFAException, UnauthorizedException, UnsupportedOperationException, UnsupportedTokenTypeException, WebAuthnConfigurationMissingException, } from "../models/models_1";
|
|
7
7
|
export const se_AddCustomAttributesCommand = async (input, context) => {
|
|
8
8
|
const headers = sharedHeaders("AddCustomAttributes");
|
|
9
9
|
let body;
|
|
@@ -178,6 +178,12 @@ export const se_ChangePasswordCommand = async (input, context) => {
|
|
|
178
178
|
body = JSON.stringify(_json(input));
|
|
179
179
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
180
|
};
|
|
181
|
+
export const se_CompleteWebAuthnRegistrationCommand = async (input, context) => {
|
|
182
|
+
const headers = sharedHeaders("CompleteWebAuthnRegistration");
|
|
183
|
+
let body;
|
|
184
|
+
body = JSON.stringify(se_CompleteWebAuthnRegistrationRequest(input, context));
|
|
185
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
+
};
|
|
181
187
|
export const se_ConfirmDeviceCommand = async (input, context) => {
|
|
182
188
|
const headers = sharedHeaders("ConfirmDevice");
|
|
183
189
|
let body;
|
|
@@ -208,6 +214,12 @@ export const se_CreateIdentityProviderCommand = async (input, context) => {
|
|
|
208
214
|
body = JSON.stringify(_json(input));
|
|
209
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
216
|
};
|
|
217
|
+
export const se_CreateManagedLoginBrandingCommand = async (input, context) => {
|
|
218
|
+
const headers = sharedHeaders("CreateManagedLoginBranding");
|
|
219
|
+
let body;
|
|
220
|
+
body = JSON.stringify(se_CreateManagedLoginBrandingRequest(input, context));
|
|
221
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
+
};
|
|
211
223
|
export const se_CreateResourceServerCommand = async (input, context) => {
|
|
212
224
|
const headers = sharedHeaders("CreateResourceServer");
|
|
213
225
|
let body;
|
|
@@ -250,6 +262,12 @@ export const se_DeleteIdentityProviderCommand = async (input, context) => {
|
|
|
250
262
|
body = JSON.stringify(_json(input));
|
|
251
263
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
264
|
};
|
|
265
|
+
export const se_DeleteManagedLoginBrandingCommand = async (input, context) => {
|
|
266
|
+
const headers = sharedHeaders("DeleteManagedLoginBranding");
|
|
267
|
+
let body;
|
|
268
|
+
body = JSON.stringify(_json(input));
|
|
269
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
|
+
};
|
|
253
271
|
export const se_DeleteResourceServerCommand = async (input, context) => {
|
|
254
272
|
const headers = sharedHeaders("DeleteResourceServer");
|
|
255
273
|
let body;
|
|
@@ -286,12 +304,30 @@ export const se_DeleteUserPoolDomainCommand = async (input, context) => {
|
|
|
286
304
|
body = JSON.stringify(_json(input));
|
|
287
305
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
306
|
};
|
|
307
|
+
export const se_DeleteWebAuthnCredentialCommand = async (input, context) => {
|
|
308
|
+
const headers = sharedHeaders("DeleteWebAuthnCredential");
|
|
309
|
+
let body;
|
|
310
|
+
body = JSON.stringify(_json(input));
|
|
311
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
+
};
|
|
289
313
|
export const se_DescribeIdentityProviderCommand = async (input, context) => {
|
|
290
314
|
const headers = sharedHeaders("DescribeIdentityProvider");
|
|
291
315
|
let body;
|
|
292
316
|
body = JSON.stringify(_json(input));
|
|
293
317
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
318
|
};
|
|
319
|
+
export const se_DescribeManagedLoginBrandingCommand = async (input, context) => {
|
|
320
|
+
const headers = sharedHeaders("DescribeManagedLoginBranding");
|
|
321
|
+
let body;
|
|
322
|
+
body = JSON.stringify(_json(input));
|
|
323
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
+
};
|
|
325
|
+
export const se_DescribeManagedLoginBrandingByClientCommand = async (input, context) => {
|
|
326
|
+
const headers = sharedHeaders("DescribeManagedLoginBrandingByClient");
|
|
327
|
+
let body;
|
|
328
|
+
body = JSON.stringify(_json(input));
|
|
329
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
+
};
|
|
295
331
|
export const se_DescribeResourceServerCommand = async (input, context) => {
|
|
296
332
|
const headers = sharedHeaders("DescribeResourceServer");
|
|
297
333
|
let body;
|
|
@@ -394,6 +430,12 @@ export const se_GetUserAttributeVerificationCodeCommand = async (input, context)
|
|
|
394
430
|
body = JSON.stringify(_json(input));
|
|
395
431
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
396
432
|
};
|
|
433
|
+
export const se_GetUserAuthFactorsCommand = async (input, context) => {
|
|
434
|
+
const headers = sharedHeaders("GetUserAuthFactors");
|
|
435
|
+
let body;
|
|
436
|
+
body = JSON.stringify(_json(input));
|
|
437
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
|
+
};
|
|
397
439
|
export const se_GetUserPoolMfaConfigCommand = async (input, context) => {
|
|
398
440
|
const headers = sharedHeaders("GetUserPoolMfaConfig");
|
|
399
441
|
let body;
|
|
@@ -472,6 +514,12 @@ export const se_ListUsersInGroupCommand = async (input, context) => {
|
|
|
472
514
|
body = JSON.stringify(_json(input));
|
|
473
515
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
474
516
|
};
|
|
517
|
+
export const se_ListWebAuthnCredentialsCommand = async (input, context) => {
|
|
518
|
+
const headers = sharedHeaders("ListWebAuthnCredentials");
|
|
519
|
+
let body;
|
|
520
|
+
body = JSON.stringify(_json(input));
|
|
521
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
522
|
+
};
|
|
475
523
|
export const se_ResendConfirmationCodeCommand = async (input, context) => {
|
|
476
524
|
const headers = sharedHeaders("ResendConfirmationCode");
|
|
477
525
|
let body;
|
|
@@ -538,6 +586,12 @@ export const se_StartUserImportJobCommand = async (input, context) => {
|
|
|
538
586
|
body = JSON.stringify(_json(input));
|
|
539
587
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
540
588
|
};
|
|
589
|
+
export const se_StartWebAuthnRegistrationCommand = async (input, context) => {
|
|
590
|
+
const headers = sharedHeaders("StartWebAuthnRegistration");
|
|
591
|
+
let body;
|
|
592
|
+
body = JSON.stringify(_json(input));
|
|
593
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
594
|
+
};
|
|
541
595
|
export const se_StopUserImportJobCommand = async (input, context) => {
|
|
542
596
|
const headers = sharedHeaders("StopUserImportJob");
|
|
543
597
|
let body;
|
|
@@ -580,6 +634,12 @@ export const se_UpdateIdentityProviderCommand = async (input, context) => {
|
|
|
580
634
|
body = JSON.stringify(_json(input));
|
|
581
635
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
582
636
|
};
|
|
637
|
+
export const se_UpdateManagedLoginBrandingCommand = async (input, context) => {
|
|
638
|
+
const headers = sharedHeaders("UpdateManagedLoginBranding");
|
|
639
|
+
let body;
|
|
640
|
+
body = JSON.stringify(se_UpdateManagedLoginBrandingRequest(input, context));
|
|
641
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
642
|
+
};
|
|
583
643
|
export const se_UpdateResourceServerCommand = async (input, context) => {
|
|
584
644
|
const headers = sharedHeaders("UpdateResourceServer");
|
|
585
645
|
let body;
|
|
@@ -987,6 +1047,19 @@ export const de_ChangePasswordCommand = async (output, context) => {
|
|
|
987
1047
|
};
|
|
988
1048
|
return response;
|
|
989
1049
|
};
|
|
1050
|
+
export const de_CompleteWebAuthnRegistrationCommand = async (output, context) => {
|
|
1051
|
+
if (output.statusCode >= 300) {
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1053
|
+
}
|
|
1054
|
+
const data = await parseBody(output.body, context);
|
|
1055
|
+
let contents = {};
|
|
1056
|
+
contents = _json(data);
|
|
1057
|
+
const response = {
|
|
1058
|
+
$metadata: deserializeMetadata(output),
|
|
1059
|
+
...contents,
|
|
1060
|
+
};
|
|
1061
|
+
return response;
|
|
1062
|
+
};
|
|
990
1063
|
export const de_ConfirmDeviceCommand = async (output, context) => {
|
|
991
1064
|
if (output.statusCode >= 300) {
|
|
992
1065
|
return de_CommandError(output, context);
|
|
@@ -1052,6 +1125,19 @@ export const de_CreateIdentityProviderCommand = async (output, context) => {
|
|
|
1052
1125
|
};
|
|
1053
1126
|
return response;
|
|
1054
1127
|
};
|
|
1128
|
+
export const de_CreateManagedLoginBrandingCommand = async (output, context) => {
|
|
1129
|
+
if (output.statusCode >= 300) {
|
|
1130
|
+
return de_CommandError(output, context);
|
|
1131
|
+
}
|
|
1132
|
+
const data = await parseBody(output.body, context);
|
|
1133
|
+
let contents = {};
|
|
1134
|
+
contents = de_CreateManagedLoginBrandingResponse(data, context);
|
|
1135
|
+
const response = {
|
|
1136
|
+
$metadata: deserializeMetadata(output),
|
|
1137
|
+
...contents,
|
|
1138
|
+
};
|
|
1139
|
+
return response;
|
|
1140
|
+
};
|
|
1055
1141
|
export const de_CreateResourceServerCommand = async (output, context) => {
|
|
1056
1142
|
if (output.statusCode >= 300) {
|
|
1057
1143
|
return de_CommandError(output, context);
|
|
@@ -1137,6 +1223,16 @@ export const de_DeleteIdentityProviderCommand = async (output, context) => {
|
|
|
1137
1223
|
};
|
|
1138
1224
|
return response;
|
|
1139
1225
|
};
|
|
1226
|
+
export const de_DeleteManagedLoginBrandingCommand = async (output, context) => {
|
|
1227
|
+
if (output.statusCode >= 300) {
|
|
1228
|
+
return de_CommandError(output, context);
|
|
1229
|
+
}
|
|
1230
|
+
await collectBody(output.body, context);
|
|
1231
|
+
const response = {
|
|
1232
|
+
$metadata: deserializeMetadata(output),
|
|
1233
|
+
};
|
|
1234
|
+
return response;
|
|
1235
|
+
};
|
|
1140
1236
|
export const de_DeleteResourceServerCommand = async (output, context) => {
|
|
1141
1237
|
if (output.statusCode >= 300) {
|
|
1142
1238
|
return de_CommandError(output, context);
|
|
@@ -1203,6 +1299,19 @@ export const de_DeleteUserPoolDomainCommand = async (output, context) => {
|
|
|
1203
1299
|
};
|
|
1204
1300
|
return response;
|
|
1205
1301
|
};
|
|
1302
|
+
export const de_DeleteWebAuthnCredentialCommand = async (output, context) => {
|
|
1303
|
+
if (output.statusCode >= 300) {
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1305
|
+
}
|
|
1306
|
+
const data = await parseBody(output.body, context);
|
|
1307
|
+
let contents = {};
|
|
1308
|
+
contents = _json(data);
|
|
1309
|
+
const response = {
|
|
1310
|
+
$metadata: deserializeMetadata(output),
|
|
1311
|
+
...contents,
|
|
1312
|
+
};
|
|
1313
|
+
return response;
|
|
1314
|
+
};
|
|
1206
1315
|
export const de_DescribeIdentityProviderCommand = async (output, context) => {
|
|
1207
1316
|
if (output.statusCode >= 300) {
|
|
1208
1317
|
return de_CommandError(output, context);
|
|
@@ -1216,6 +1325,32 @@ export const de_DescribeIdentityProviderCommand = async (output, context) => {
|
|
|
1216
1325
|
};
|
|
1217
1326
|
return response;
|
|
1218
1327
|
};
|
|
1328
|
+
export const de_DescribeManagedLoginBrandingCommand = async (output, context) => {
|
|
1329
|
+
if (output.statusCode >= 300) {
|
|
1330
|
+
return de_CommandError(output, context);
|
|
1331
|
+
}
|
|
1332
|
+
const data = await parseBody(output.body, context);
|
|
1333
|
+
let contents = {};
|
|
1334
|
+
contents = de_DescribeManagedLoginBrandingResponse(data, context);
|
|
1335
|
+
const response = {
|
|
1336
|
+
$metadata: deserializeMetadata(output),
|
|
1337
|
+
...contents,
|
|
1338
|
+
};
|
|
1339
|
+
return response;
|
|
1340
|
+
};
|
|
1341
|
+
export const de_DescribeManagedLoginBrandingByClientCommand = async (output, context) => {
|
|
1342
|
+
if (output.statusCode >= 300) {
|
|
1343
|
+
return de_CommandError(output, context);
|
|
1344
|
+
}
|
|
1345
|
+
const data = await parseBody(output.body, context);
|
|
1346
|
+
let contents = {};
|
|
1347
|
+
contents = de_DescribeManagedLoginBrandingByClientResponse(data, context);
|
|
1348
|
+
const response = {
|
|
1349
|
+
$metadata: deserializeMetadata(output),
|
|
1350
|
+
...contents,
|
|
1351
|
+
};
|
|
1352
|
+
return response;
|
|
1353
|
+
};
|
|
1219
1354
|
export const de_DescribeResourceServerCommand = async (output, context) => {
|
|
1220
1355
|
if (output.statusCode >= 300) {
|
|
1221
1356
|
return de_CommandError(output, context);
|
|
@@ -1434,6 +1569,19 @@ export const de_GetUserAttributeVerificationCodeCommand = async (output, context
|
|
|
1434
1569
|
};
|
|
1435
1570
|
return response;
|
|
1436
1571
|
};
|
|
1572
|
+
export const de_GetUserAuthFactorsCommand = async (output, context) => {
|
|
1573
|
+
if (output.statusCode >= 300) {
|
|
1574
|
+
return de_CommandError(output, context);
|
|
1575
|
+
}
|
|
1576
|
+
const data = await parseBody(output.body, context);
|
|
1577
|
+
let contents = {};
|
|
1578
|
+
contents = _json(data);
|
|
1579
|
+
const response = {
|
|
1580
|
+
$metadata: deserializeMetadata(output),
|
|
1581
|
+
...contents,
|
|
1582
|
+
};
|
|
1583
|
+
return response;
|
|
1584
|
+
};
|
|
1437
1585
|
export const de_GetUserPoolMfaConfigCommand = async (output, context) => {
|
|
1438
1586
|
if (output.statusCode >= 300) {
|
|
1439
1587
|
return de_CommandError(output, context);
|
|
@@ -1603,6 +1751,19 @@ export const de_ListUsersInGroupCommand = async (output, context) => {
|
|
|
1603
1751
|
};
|
|
1604
1752
|
return response;
|
|
1605
1753
|
};
|
|
1754
|
+
export const de_ListWebAuthnCredentialsCommand = async (output, context) => {
|
|
1755
|
+
if (output.statusCode >= 300) {
|
|
1756
|
+
return de_CommandError(output, context);
|
|
1757
|
+
}
|
|
1758
|
+
const data = await parseBody(output.body, context);
|
|
1759
|
+
let contents = {};
|
|
1760
|
+
contents = de_ListWebAuthnCredentialsResponse(data, context);
|
|
1761
|
+
const response = {
|
|
1762
|
+
$metadata: deserializeMetadata(output),
|
|
1763
|
+
...contents,
|
|
1764
|
+
};
|
|
1765
|
+
return response;
|
|
1766
|
+
};
|
|
1606
1767
|
export const de_ResendConfirmationCodeCommand = async (output, context) => {
|
|
1607
1768
|
if (output.statusCode >= 300) {
|
|
1608
1769
|
return de_CommandError(output, context);
|
|
@@ -1746,6 +1907,19 @@ export const de_StartUserImportJobCommand = async (output, context) => {
|
|
|
1746
1907
|
};
|
|
1747
1908
|
return response;
|
|
1748
1909
|
};
|
|
1910
|
+
export const de_StartWebAuthnRegistrationCommand = async (output, context) => {
|
|
1911
|
+
if (output.statusCode >= 300) {
|
|
1912
|
+
return de_CommandError(output, context);
|
|
1913
|
+
}
|
|
1914
|
+
const data = await parseBody(output.body, context);
|
|
1915
|
+
let contents = {};
|
|
1916
|
+
contents = de_StartWebAuthnRegistrationResponse(data, context);
|
|
1917
|
+
const response = {
|
|
1918
|
+
$metadata: deserializeMetadata(output),
|
|
1919
|
+
...contents,
|
|
1920
|
+
};
|
|
1921
|
+
return response;
|
|
1922
|
+
};
|
|
1749
1923
|
export const de_StopUserImportJobCommand = async (output, context) => {
|
|
1750
1924
|
if (output.statusCode >= 300) {
|
|
1751
1925
|
return de_CommandError(output, context);
|
|
@@ -1837,6 +2011,19 @@ export const de_UpdateIdentityProviderCommand = async (output, context) => {
|
|
|
1837
2011
|
};
|
|
1838
2012
|
return response;
|
|
1839
2013
|
};
|
|
2014
|
+
export const de_UpdateManagedLoginBrandingCommand = async (output, context) => {
|
|
2015
|
+
if (output.statusCode >= 300) {
|
|
2016
|
+
return de_CommandError(output, context);
|
|
2017
|
+
}
|
|
2018
|
+
const data = await parseBody(output.body, context);
|
|
2019
|
+
let contents = {};
|
|
2020
|
+
contents = de_UpdateManagedLoginBrandingResponse(data, context);
|
|
2021
|
+
const response = {
|
|
2022
|
+
$metadata: deserializeMetadata(output),
|
|
2023
|
+
...contents,
|
|
2024
|
+
};
|
|
2025
|
+
return response;
|
|
2026
|
+
};
|
|
1840
2027
|
export const de_UpdateResourceServerCommand = async (output, context) => {
|
|
1841
2028
|
if (output.statusCode >= 300) {
|
|
1842
2029
|
return de_CommandError(output, context);
|
|
@@ -2031,12 +2218,39 @@ const de_CommandError = async (output, context) => {
|
|
|
2031
2218
|
case "ForbiddenException":
|
|
2032
2219
|
case "com.amazonaws.cognitoidentityprovider#ForbiddenException":
|
|
2033
2220
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2221
|
+
case "WebAuthnChallengeNotFoundException":
|
|
2222
|
+
case "com.amazonaws.cognitoidentityprovider#WebAuthnChallengeNotFoundException":
|
|
2223
|
+
throw await de_WebAuthnChallengeNotFoundExceptionRes(parsedOutput, context);
|
|
2224
|
+
case "WebAuthnClientMismatchException":
|
|
2225
|
+
case "com.amazonaws.cognitoidentityprovider#WebAuthnClientMismatchException":
|
|
2226
|
+
throw await de_WebAuthnClientMismatchExceptionRes(parsedOutput, context);
|
|
2227
|
+
case "WebAuthnCredentialNotSupportedException":
|
|
2228
|
+
case "com.amazonaws.cognitoidentityprovider#WebAuthnCredentialNotSupportedException":
|
|
2229
|
+
throw await de_WebAuthnCredentialNotSupportedExceptionRes(parsedOutput, context);
|
|
2230
|
+
case "WebAuthnNotEnabledException":
|
|
2231
|
+
case "com.amazonaws.cognitoidentityprovider#WebAuthnNotEnabledException":
|
|
2232
|
+
throw await de_WebAuthnNotEnabledExceptionRes(parsedOutput, context);
|
|
2233
|
+
case "WebAuthnOriginNotAllowedException":
|
|
2234
|
+
case "com.amazonaws.cognitoidentityprovider#WebAuthnOriginNotAllowedException":
|
|
2235
|
+
throw await de_WebAuthnOriginNotAllowedExceptionRes(parsedOutput, context);
|
|
2236
|
+
case "WebAuthnRelyingPartyMismatchException":
|
|
2237
|
+
case "com.amazonaws.cognitoidentityprovider#WebAuthnRelyingPartyMismatchException":
|
|
2238
|
+
throw await de_WebAuthnRelyingPartyMismatchExceptionRes(parsedOutput, context);
|
|
2034
2239
|
case "GroupExistsException":
|
|
2035
2240
|
case "com.amazonaws.cognitoidentityprovider#GroupExistsException":
|
|
2036
2241
|
throw await de_GroupExistsExceptionRes(parsedOutput, context);
|
|
2037
2242
|
case "DuplicateProviderException":
|
|
2038
2243
|
case "com.amazonaws.cognitoidentityprovider#DuplicateProviderException":
|
|
2039
2244
|
throw await de_DuplicateProviderExceptionRes(parsedOutput, context);
|
|
2245
|
+
case "ManagedLoginBrandingExistsException":
|
|
2246
|
+
case "com.amazonaws.cognitoidentityprovider#ManagedLoginBrandingExistsException":
|
|
2247
|
+
throw await de_ManagedLoginBrandingExistsExceptionRes(parsedOutput, context);
|
|
2248
|
+
case "FeatureUnavailableInTierException":
|
|
2249
|
+
case "com.amazonaws.cognitoidentityprovider#FeatureUnavailableInTierException":
|
|
2250
|
+
throw await de_FeatureUnavailableInTierExceptionRes(parsedOutput, context);
|
|
2251
|
+
case "TierChangeNotAllowedException":
|
|
2252
|
+
case "com.amazonaws.cognitoidentityprovider#TierChangeNotAllowedException":
|
|
2253
|
+
throw await de_TierChangeNotAllowedExceptionRes(parsedOutput, context);
|
|
2040
2254
|
case "UserPoolTaggingException":
|
|
2041
2255
|
case "com.amazonaws.cognitoidentityprovider#UserPoolTaggingException":
|
|
2042
2256
|
throw await de_UserPoolTaggingExceptionRes(parsedOutput, context);
|
|
@@ -2058,6 +2272,9 @@ const de_CommandError = async (output, context) => {
|
|
|
2058
2272
|
case "UnsupportedTokenTypeException":
|
|
2059
2273
|
case "com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":
|
|
2060
2274
|
throw await de_UnsupportedTokenTypeExceptionRes(parsedOutput, context);
|
|
2275
|
+
case "WebAuthnConfigurationMissingException":
|
|
2276
|
+
case "com.amazonaws.cognitoidentityprovider#WebAuthnConfigurationMissingException":
|
|
2277
|
+
throw await de_WebAuthnConfigurationMissingExceptionRes(parsedOutput, context);
|
|
2061
2278
|
case "EnableSoftwareTokenMFAException":
|
|
2062
2279
|
case "com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":
|
|
2063
2280
|
throw await de_EnableSoftwareTokenMFAExceptionRes(parsedOutput, context);
|
|
@@ -2133,6 +2350,15 @@ const de_ExpiredCodeExceptionRes = async (parsedOutput, context) => {
|
|
|
2133
2350
|
});
|
|
2134
2351
|
return __decorateServiceException(exception, body);
|
|
2135
2352
|
};
|
|
2353
|
+
const de_FeatureUnavailableInTierExceptionRes = async (parsedOutput, context) => {
|
|
2354
|
+
const body = parsedOutput.body;
|
|
2355
|
+
const deserialized = _json(body);
|
|
2356
|
+
const exception = new FeatureUnavailableInTierException({
|
|
2357
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2358
|
+
...deserialized,
|
|
2359
|
+
});
|
|
2360
|
+
return __decorateServiceException(exception, body);
|
|
2361
|
+
};
|
|
2136
2362
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2137
2363
|
const body = parsedOutput.body;
|
|
2138
2364
|
const deserialized = _json(body);
|
|
@@ -2241,6 +2467,15 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2241
2467
|
});
|
|
2242
2468
|
return __decorateServiceException(exception, body);
|
|
2243
2469
|
};
|
|
2470
|
+
const de_ManagedLoginBrandingExistsExceptionRes = async (parsedOutput, context) => {
|
|
2471
|
+
const body = parsedOutput.body;
|
|
2472
|
+
const deserialized = _json(body);
|
|
2473
|
+
const exception = new ManagedLoginBrandingExistsException({
|
|
2474
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2475
|
+
...deserialized,
|
|
2476
|
+
});
|
|
2477
|
+
return __decorateServiceException(exception, body);
|
|
2478
|
+
};
|
|
2244
2479
|
const de_MFAMethodNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2245
2480
|
const body = parsedOutput.body;
|
|
2246
2481
|
const deserialized = _json(body);
|
|
@@ -2313,6 +2548,15 @@ const de_SoftwareTokenMFANotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
2313
2548
|
});
|
|
2314
2549
|
return __decorateServiceException(exception, body);
|
|
2315
2550
|
};
|
|
2551
|
+
const de_TierChangeNotAllowedExceptionRes = async (parsedOutput, context) => {
|
|
2552
|
+
const body = parsedOutput.body;
|
|
2553
|
+
const deserialized = _json(body);
|
|
2554
|
+
const exception = new TierChangeNotAllowedException({
|
|
2555
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2556
|
+
...deserialized,
|
|
2557
|
+
});
|
|
2558
|
+
return __decorateServiceException(exception, body);
|
|
2559
|
+
};
|
|
2316
2560
|
const de_TooManyFailedAttemptsExceptionRes = async (parsedOutput, context) => {
|
|
2317
2561
|
const body = parsedOutput.body;
|
|
2318
2562
|
const deserialized = _json(body);
|
|
@@ -2448,6 +2692,103 @@ const de_UserPoolTaggingExceptionRes = async (parsedOutput, context) => {
|
|
|
2448
2692
|
});
|
|
2449
2693
|
return __decorateServiceException(exception, body);
|
|
2450
2694
|
};
|
|
2695
|
+
const de_WebAuthnChallengeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2696
|
+
const body = parsedOutput.body;
|
|
2697
|
+
const deserialized = _json(body);
|
|
2698
|
+
const exception = new WebAuthnChallengeNotFoundException({
|
|
2699
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2700
|
+
...deserialized,
|
|
2701
|
+
});
|
|
2702
|
+
return __decorateServiceException(exception, body);
|
|
2703
|
+
};
|
|
2704
|
+
const de_WebAuthnClientMismatchExceptionRes = async (parsedOutput, context) => {
|
|
2705
|
+
const body = parsedOutput.body;
|
|
2706
|
+
const deserialized = _json(body);
|
|
2707
|
+
const exception = new WebAuthnClientMismatchException({
|
|
2708
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2709
|
+
...deserialized,
|
|
2710
|
+
});
|
|
2711
|
+
return __decorateServiceException(exception, body);
|
|
2712
|
+
};
|
|
2713
|
+
const de_WebAuthnConfigurationMissingExceptionRes = async (parsedOutput, context) => {
|
|
2714
|
+
const body = parsedOutput.body;
|
|
2715
|
+
const deserialized = _json(body);
|
|
2716
|
+
const exception = new WebAuthnConfigurationMissingException({
|
|
2717
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2718
|
+
...deserialized,
|
|
2719
|
+
});
|
|
2720
|
+
return __decorateServiceException(exception, body);
|
|
2721
|
+
};
|
|
2722
|
+
const de_WebAuthnCredentialNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
2723
|
+
const body = parsedOutput.body;
|
|
2724
|
+
const deserialized = _json(body);
|
|
2725
|
+
const exception = new WebAuthnCredentialNotSupportedException({
|
|
2726
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2727
|
+
...deserialized,
|
|
2728
|
+
});
|
|
2729
|
+
return __decorateServiceException(exception, body);
|
|
2730
|
+
};
|
|
2731
|
+
const de_WebAuthnNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
2732
|
+
const body = parsedOutput.body;
|
|
2733
|
+
const deserialized = _json(body);
|
|
2734
|
+
const exception = new WebAuthnNotEnabledException({
|
|
2735
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2736
|
+
...deserialized,
|
|
2737
|
+
});
|
|
2738
|
+
return __decorateServiceException(exception, body);
|
|
2739
|
+
};
|
|
2740
|
+
const de_WebAuthnOriginNotAllowedExceptionRes = async (parsedOutput, context) => {
|
|
2741
|
+
const body = parsedOutput.body;
|
|
2742
|
+
const deserialized = _json(body);
|
|
2743
|
+
const exception = new WebAuthnOriginNotAllowedException({
|
|
2744
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2745
|
+
...deserialized,
|
|
2746
|
+
});
|
|
2747
|
+
return __decorateServiceException(exception, body);
|
|
2748
|
+
};
|
|
2749
|
+
const de_WebAuthnRelyingPartyMismatchExceptionRes = async (parsedOutput, context) => {
|
|
2750
|
+
const body = parsedOutput.body;
|
|
2751
|
+
const deserialized = _json(body);
|
|
2752
|
+
const exception = new WebAuthnRelyingPartyMismatchException({
|
|
2753
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2754
|
+
...deserialized,
|
|
2755
|
+
});
|
|
2756
|
+
return __decorateServiceException(exception, body);
|
|
2757
|
+
};
|
|
2758
|
+
const se_AssetListType = (input, context) => {
|
|
2759
|
+
return input
|
|
2760
|
+
.filter((e) => e != null)
|
|
2761
|
+
.map((entry) => {
|
|
2762
|
+
return se_AssetType(entry, context);
|
|
2763
|
+
});
|
|
2764
|
+
};
|
|
2765
|
+
const se_AssetType = (input, context) => {
|
|
2766
|
+
return take(input, {
|
|
2767
|
+
Bytes: context.base64Encoder,
|
|
2768
|
+
Category: [],
|
|
2769
|
+
ColorMode: [],
|
|
2770
|
+
Extension: [],
|
|
2771
|
+
ResourceId: [],
|
|
2772
|
+
});
|
|
2773
|
+
};
|
|
2774
|
+
const se_CompleteWebAuthnRegistrationRequest = (input, context) => {
|
|
2775
|
+
return take(input, {
|
|
2776
|
+
AccessToken: [],
|
|
2777
|
+
Credential: (_) => se_Document(_, context),
|
|
2778
|
+
});
|
|
2779
|
+
};
|
|
2780
|
+
const se_CreateManagedLoginBrandingRequest = (input, context) => {
|
|
2781
|
+
return take(input, {
|
|
2782
|
+
Assets: (_) => se_AssetListType(_, context),
|
|
2783
|
+
ClientId: [],
|
|
2784
|
+
Settings: (_) => se_Document(_, context),
|
|
2785
|
+
UseCognitoProvidedValues: [],
|
|
2786
|
+
UserPoolId: [],
|
|
2787
|
+
});
|
|
2788
|
+
};
|
|
2789
|
+
const se_Document = (input, context) => {
|
|
2790
|
+
return input;
|
|
2791
|
+
};
|
|
2451
2792
|
const se_SetUICustomizationRequest = (input, context) => {
|
|
2452
2793
|
return take(input, {
|
|
2453
2794
|
CSS: [],
|
|
@@ -2456,6 +2797,15 @@ const se_SetUICustomizationRequest = (input, context) => {
|
|
|
2456
2797
|
UserPoolId: [],
|
|
2457
2798
|
});
|
|
2458
2799
|
};
|
|
2800
|
+
const se_UpdateManagedLoginBrandingRequest = (input, context) => {
|
|
2801
|
+
return take(input, {
|
|
2802
|
+
Assets: (_) => se_AssetListType(_, context),
|
|
2803
|
+
ManagedLoginBrandingId: [],
|
|
2804
|
+
Settings: (_) => se_Document(_, context),
|
|
2805
|
+
UseCognitoProvidedValues: [],
|
|
2806
|
+
UserPoolId: [],
|
|
2807
|
+
});
|
|
2808
|
+
};
|
|
2459
2809
|
const de_AdminCreateUserResponse = (output, context) => {
|
|
2460
2810
|
return take(output, {
|
|
2461
2811
|
User: (_) => de_UserType(_, context),
|
|
@@ -2497,6 +2847,23 @@ const de_AdminListUserAuthEventsResponse = (output, context) => {
|
|
|
2497
2847
|
NextToken: __expectString,
|
|
2498
2848
|
});
|
|
2499
2849
|
};
|
|
2850
|
+
const de_AssetListType = (output, context) => {
|
|
2851
|
+
const retVal = (output || [])
|
|
2852
|
+
.filter((e) => e != null)
|
|
2853
|
+
.map((entry) => {
|
|
2854
|
+
return de_AssetType(entry, context);
|
|
2855
|
+
});
|
|
2856
|
+
return retVal;
|
|
2857
|
+
};
|
|
2858
|
+
const de_AssetType = (output, context) => {
|
|
2859
|
+
return take(output, {
|
|
2860
|
+
Bytes: context.base64Decoder,
|
|
2861
|
+
Category: __expectString,
|
|
2862
|
+
ColorMode: __expectString,
|
|
2863
|
+
Extension: __expectString,
|
|
2864
|
+
ResourceId: __expectString,
|
|
2865
|
+
});
|
|
2866
|
+
};
|
|
2500
2867
|
const de_AuthEventsType = (output, context) => {
|
|
2501
2868
|
const retVal = (output || [])
|
|
2502
2869
|
.filter((e) => e != null)
|
|
@@ -2527,6 +2894,11 @@ const de_CreateIdentityProviderResponse = (output, context) => {
|
|
|
2527
2894
|
IdentityProvider: (_) => de_IdentityProviderType(_, context),
|
|
2528
2895
|
});
|
|
2529
2896
|
};
|
|
2897
|
+
const de_CreateManagedLoginBrandingResponse = (output, context) => {
|
|
2898
|
+
return take(output, {
|
|
2899
|
+
ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
|
|
2900
|
+
});
|
|
2901
|
+
};
|
|
2530
2902
|
const de_CreateUserImportJobResponse = (output, context) => {
|
|
2531
2903
|
return take(output, {
|
|
2532
2904
|
UserImportJob: (_) => de_UserImportJobType(_, context),
|
|
@@ -2547,6 +2919,16 @@ const de_DescribeIdentityProviderResponse = (output, context) => {
|
|
|
2547
2919
|
IdentityProvider: (_) => de_IdentityProviderType(_, context),
|
|
2548
2920
|
});
|
|
2549
2921
|
};
|
|
2922
|
+
const de_DescribeManagedLoginBrandingByClientResponse = (output, context) => {
|
|
2923
|
+
return take(output, {
|
|
2924
|
+
ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
|
|
2925
|
+
});
|
|
2926
|
+
};
|
|
2927
|
+
const de_DescribeManagedLoginBrandingResponse = (output, context) => {
|
|
2928
|
+
return take(output, {
|
|
2929
|
+
ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
|
|
2930
|
+
});
|
|
2931
|
+
};
|
|
2550
2932
|
const de_DescribeRiskConfigurationResponse = (output, context) => {
|
|
2551
2933
|
return take(output, {
|
|
2552
2934
|
RiskConfiguration: (_) => de_RiskConfigurationType(_, context),
|
|
@@ -2584,6 +2966,9 @@ const de_DeviceType = (output, context) => {
|
|
|
2584
2966
|
DeviceLastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2585
2967
|
});
|
|
2586
2968
|
};
|
|
2969
|
+
const de_Document = (output, context) => {
|
|
2970
|
+
return output;
|
|
2971
|
+
};
|
|
2587
2972
|
const de_EventFeedbackType = (output, context) => {
|
|
2588
2973
|
return take(output, {
|
|
2589
2974
|
FeedbackDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2684,6 +3069,23 @@ const de_ListUsersResponse = (output, context) => {
|
|
|
2684
3069
|
Users: (_) => de_UsersListType(_, context),
|
|
2685
3070
|
});
|
|
2686
3071
|
};
|
|
3072
|
+
const de_ListWebAuthnCredentialsResponse = (output, context) => {
|
|
3073
|
+
return take(output, {
|
|
3074
|
+
Credentials: (_) => de_WebAuthnCredentialDescriptionListType(_, context),
|
|
3075
|
+
NextToken: __expectString,
|
|
3076
|
+
});
|
|
3077
|
+
};
|
|
3078
|
+
const de_ManagedLoginBrandingType = (output, context) => {
|
|
3079
|
+
return take(output, {
|
|
3080
|
+
Assets: (_) => de_AssetListType(_, context),
|
|
3081
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3082
|
+
LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3083
|
+
ManagedLoginBrandingId: __expectString,
|
|
3084
|
+
Settings: (_) => de_Document(_, context),
|
|
3085
|
+
UseCognitoProvidedValues: __expectBoolean,
|
|
3086
|
+
UserPoolId: __expectString,
|
|
3087
|
+
});
|
|
3088
|
+
};
|
|
2687
3089
|
const de_ProviderDescription = (output, context) => {
|
|
2688
3090
|
return take(output, {
|
|
2689
3091
|
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2725,6 +3127,11 @@ const de_StartUserImportJobResponse = (output, context) => {
|
|
|
2725
3127
|
UserImportJob: (_) => de_UserImportJobType(_, context),
|
|
2726
3128
|
});
|
|
2727
3129
|
};
|
|
3130
|
+
const de_StartWebAuthnRegistrationResponse = (output, context) => {
|
|
3131
|
+
return take(output, {
|
|
3132
|
+
CredentialCreationOptions: (_) => de_Document(_, context),
|
|
3133
|
+
});
|
|
3134
|
+
};
|
|
2728
3135
|
const de_StopUserImportJobResponse = (output, context) => {
|
|
2729
3136
|
return take(output, {
|
|
2730
3137
|
UserImportJob: (_) => de_UserImportJobType(_, context),
|
|
@@ -2751,6 +3158,11 @@ const de_UpdateIdentityProviderResponse = (output, context) => {
|
|
|
2751
3158
|
IdentityProvider: (_) => de_IdentityProviderType(_, context),
|
|
2752
3159
|
});
|
|
2753
3160
|
};
|
|
3161
|
+
const de_UpdateManagedLoginBrandingResponse = (output, context) => {
|
|
3162
|
+
return take(output, {
|
|
3163
|
+
ManagedLoginBranding: (_) => de_ManagedLoginBrandingType(_, context),
|
|
3164
|
+
});
|
|
3165
|
+
};
|
|
2754
3166
|
const de_UpdateUserPoolClientResponse = (output, context) => {
|
|
2755
3167
|
return take(output, {
|
|
2756
3168
|
UserPoolClient: (_) => de_UserPoolClientType(_, context),
|
|
@@ -2860,6 +3272,7 @@ const de_UserPoolType = (output, context) => {
|
|
|
2860
3272
|
UserAttributeUpdateSettings: _json,
|
|
2861
3273
|
UserPoolAddOns: _json,
|
|
2862
3274
|
UserPoolTags: _json,
|
|
3275
|
+
UserPoolTier: __expectString,
|
|
2863
3276
|
UsernameAttributes: _json,
|
|
2864
3277
|
UsernameConfiguration: _json,
|
|
2865
3278
|
VerificationMessageTemplate: _json,
|
|
@@ -2884,6 +3297,24 @@ const de_UserType = (output, context) => {
|
|
|
2884
3297
|
Username: __expectString,
|
|
2885
3298
|
});
|
|
2886
3299
|
};
|
|
3300
|
+
const de_WebAuthnCredentialDescription = (output, context) => {
|
|
3301
|
+
return take(output, {
|
|
3302
|
+
AuthenticatorAttachment: __expectString,
|
|
3303
|
+
AuthenticatorTransports: _json,
|
|
3304
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3305
|
+
CredentialId: __expectString,
|
|
3306
|
+
FriendlyCredentialName: __expectString,
|
|
3307
|
+
RelyingPartyId: __expectString,
|
|
3308
|
+
});
|
|
3309
|
+
};
|
|
3310
|
+
const de_WebAuthnCredentialDescriptionListType = (output, context) => {
|
|
3311
|
+
const retVal = (output || [])
|
|
3312
|
+
.filter((e) => e != null)
|
|
3313
|
+
.map((entry) => {
|
|
3314
|
+
return de_WebAuthnCredentialDescription(entry, context);
|
|
3315
|
+
});
|
|
3316
|
+
return retVal;
|
|
3317
|
+
};
|
|
2887
3318
|
const deserializeMetadata = (output) => ({
|
|
2888
3319
|
httpStatusCode: output.statusCode,
|
|
2889
3320
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|