@aws-amplify/auth 6.7.1-unstable.ab33a03.0 → 6.8.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/dist/cjs/client/apis/associateWebAuthnCredential.js +62 -0
- package/dist/cjs/client/apis/associateWebAuthnCredential.js.map +1 -0
- package/dist/cjs/client/apis/deleteWebAuthnCredential.js +22 -0
- package/dist/cjs/client/apis/deleteWebAuthnCredential.js.map +1 -0
- package/dist/cjs/client/apis/index.js +13 -0
- package/dist/cjs/client/apis/index.js.map +1 -0
- package/dist/cjs/client/apis/listWebAuthnCredentials.js +23 -0
- package/dist/cjs/client/apis/listWebAuthnCredentials.js.map +1 -0
- package/dist/cjs/client/flows/shared/handlePasswordSRP.js +79 -0
- package/dist/cjs/client/flows/shared/handlePasswordSRP.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js +46 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js +59 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js +74 -0
- package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js +84 -0
- package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js.map +1 -0
- package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js +88 -0
- package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js.map +1 -0
- package/dist/cjs/client/utils/index.js +9 -0
- package/dist/cjs/client/utils/index.js.map +1 -0
- package/dist/cjs/client/utils/passkey/errors.js +180 -0
- package/dist/cjs/client/utils/passkey/errors.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.js +20 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.native.js +12 -0
- package/dist/cjs/client/utils/passkey/getIsPasskeySupported.native.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getPasskey.js +27 -0
- package/dist/cjs/client/utils/passkey/getPasskey.js.map +1 -0
- package/dist/cjs/client/utils/passkey/getPasskey.native.js +12 -0
- package/dist/cjs/client/utils/passkey/getPasskey.native.js.map +1 -0
- package/dist/cjs/client/utils/passkey/index.js +11 -0
- package/dist/cjs/client/utils/passkey/index.js.map +1 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.js +32 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.js.map +1 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.native.js +12 -0
- package/dist/cjs/client/utils/passkey/registerPasskey.native.js.map +1 -0
- package/dist/cjs/client/utils/passkey/serde.js +106 -0
- package/dist/cjs/client/utils/passkey/serde.js.map +1 -0
- package/dist/cjs/client/utils/passkey/types/index.js +25 -0
- package/dist/cjs/client/utils/passkey/types/index.js.map +1 -0
- package/dist/cjs/client/utils/passkey/types/shared.js +18 -0
- package/dist/cjs/client/utils/passkey/types/shared.js.map +1 -0
- package/dist/cjs/client/utils/store/autoSignInStore.js +45 -0
- package/dist/cjs/client/utils/store/autoSignInStore.js.map +1 -0
- package/dist/cjs/client/utils/store/index.js +9 -0
- package/dist/cjs/client/utils/store/index.js.map +1 -0
- package/dist/cjs/client/utils/store/signInStore.js.map +1 -0
- package/dist/cjs/client/utils/store/types.js +6 -0
- package/dist/cjs/client/utils/store/types.js.map +1 -0
- package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js +33 -0
- package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js.map +1 -0
- package/dist/cjs/foundation/apis/index.js +11 -0
- package/dist/cjs/foundation/apis/index.js.map +1 -0
- package/dist/cjs/foundation/apis/listWebAuthnCredentials.js +46 -0
- package/dist/cjs/foundation/apis/listWebAuthnCredentials.js.map +1 -0
- package/dist/cjs/foundation/convert/base64url/convertArrayBufferToBase64Url.js +21 -0
- package/dist/cjs/foundation/convert/base64url/convertArrayBufferToBase64Url.js.map +1 -0
- package/dist/cjs/foundation/convert/base64url/convertBase64UrlToArrayBuffer.js +17 -0
- package/dist/cjs/foundation/convert/base64url/convertBase64UrlToArrayBuffer.js.map +1 -0
- package/dist/cjs/foundation/convert/base64url/index.js +11 -0
- package/dist/cjs/foundation/convert/base64url/index.js.map +1 -0
- package/dist/cjs/foundation/convert/index.js +10 -0
- package/dist/cjs/foundation/convert/index.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.js +33 -4
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.js.map +1 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.js +16 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/index.js +9 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/index.js.map +1 -1
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js +44 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js.map +1 -0
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.js +3 -2
- package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.js.map +1 -1
- package/dist/cjs/foundation/types/index.js +6 -0
- package/dist/cjs/foundation/types/index.js.map +1 -0
- package/dist/cjs/foundation/types/inputs.js +6 -0
- package/dist/cjs/foundation/types/inputs.js.map +1 -0
- package/dist/cjs/foundation/types/models.js +6 -0
- package/dist/cjs/foundation/types/models.js.map +1 -0
- package/dist/cjs/foundation/types/outputs.js +6 -0
- package/dist/cjs/foundation/types/outputs.js.map +1 -0
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/autoSignIn.js +6 -2
- package/dist/cjs/providers/cognito/apis/autoSignIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmSignIn.js +4 -4
- package/dist/cjs/providers/cognito/apis/confirmSignIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/confirmSignUp.js +8 -5
- package/dist/cjs/providers/cognito/apis/confirmSignUp.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signIn.js +9 -0
- package/dist/cjs/providers/cognito/apis/signIn.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js +4 -4
- package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js +4 -4
- package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithSRP.js +7 -4
- package/dist/cjs/providers/cognito/apis/signInWithSRP.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js +102 -0
- package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js.map +1 -0
- package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js +7 -4
- package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js.map +1 -1
- package/dist/cjs/providers/cognito/apis/signUp.js +56 -49
- package/dist/cjs/providers/cognito/apis/signUp.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/signInHelpers.js +60 -42
- package/dist/cjs/providers/cognito/utils/signInHelpers.js.map +1 -1
- package/dist/cjs/providers/cognito/utils/signUpHelpers.js +5 -31
- package/dist/cjs/providers/cognito/utils/signUpHelpers.js.map +1 -1
- package/dist/esm/client/apis/associateWebAuthnCredential.d.ts +14 -0
- package/dist/esm/client/apis/associateWebAuthnCredential.mjs +69 -0
- package/dist/esm/client/apis/associateWebAuthnCredential.mjs.map +1 -0
- package/dist/esm/client/apis/deleteWebAuthnCredential.d.ts +11 -0
- package/dist/esm/client/apis/deleteWebAuthnCredential.mjs +29 -0
- package/dist/esm/client/apis/deleteWebAuthnCredential.mjs.map +1 -0
- package/dist/esm/client/apis/index.d.ts +3 -0
- package/dist/esm/client/apis/index.mjs +4 -0
- package/dist/esm/client/apis/index.mjs.map +1 -0
- package/dist/esm/client/apis/listWebAuthnCredentials.d.ts +12 -0
- package/dist/esm/client/apis/listWebAuthnCredentials.mjs +30 -0
- package/dist/esm/client/apis/listWebAuthnCredentials.mjs.map +1 -0
- package/dist/esm/client/flows/shared/handlePasswordSRP.d.ts +31 -0
- package/dist/esm/client/flows/shared/handlePasswordSRP.mjs +86 -0
- package/dist/esm/client/flows/shared/handlePasswordSRP.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallenge.d.ts +23 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallenge.mjs +51 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallenge.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.d.ts +16 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.mjs +64 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.d.ts +18 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.mjs +81 -0
- package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleUserAuthFlow.d.ts +27 -0
- package/dist/esm/client/flows/userAuth/handleUserAuthFlow.mjs +88 -0
- package/dist/esm/client/flows/userAuth/handleUserAuthFlow.mjs.map +1 -0
- package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.d.ts +3 -0
- package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.mjs +93 -0
- package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.mjs.map +1 -0
- package/dist/esm/client/utils/index.d.ts +1 -0
- package/dist/esm/client/utils/index.mjs +4 -0
- package/dist/esm/client/utils/index.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/errors.d.ts +33 -0
- package/dist/esm/client/utils/passkey/errors.mjs +176 -0
- package/dist/esm/client/utils/passkey/errors.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.d.ts +6 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.mjs +18 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.d.ts +1 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.mjs +10 -0
- package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getPasskey.d.ts +2 -0
- package/dist/esm/client/utils/passkey/getPasskey.mjs +25 -0
- package/dist/esm/client/utils/passkey/getPasskey.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/getPasskey.native.d.ts +1 -0
- package/dist/esm/client/utils/passkey/getPasskey.native.mjs +10 -0
- package/dist/esm/client/utils/passkey/getPasskey.native.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/index.d.ts +2 -0
- package/dist/esm/client/utils/passkey/index.mjs +3 -0
- package/dist/esm/client/utils/passkey/index.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/registerPasskey.d.ts +7 -0
- package/dist/esm/client/utils/passkey/registerPasskey.mjs +30 -0
- package/dist/esm/client/utils/passkey/registerPasskey.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/registerPasskey.native.d.ts +1 -0
- package/dist/esm/client/utils/passkey/registerPasskey.native.mjs +10 -0
- package/dist/esm/client/utils/passkey/registerPasskey.native.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/serde.d.ts +25 -0
- package/dist/esm/client/utils/passkey/serde.mjs +102 -0
- package/dist/esm/client/utils/passkey/serde.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/types/index.d.ts +16 -0
- package/dist/esm/client/utils/passkey/types/index.mjs +18 -0
- package/dist/esm/client/utils/passkey/types/index.mjs.map +1 -0
- package/dist/esm/client/utils/passkey/types/shared.d.ts +106 -0
- package/dist/esm/client/utils/passkey/types/shared.mjs +16 -0
- package/dist/esm/client/utils/passkey/types/shared.mjs.map +1 -0
- package/dist/esm/client/utils/store/autoSignInStore.d.ts +21 -0
- package/dist/esm/client/utils/store/autoSignInStore.mjs +43 -0
- package/dist/esm/client/utils/store/autoSignInStore.mjs.map +1 -0
- package/dist/esm/client/utils/store/index.d.ts +2 -0
- package/dist/esm/client/utils/store/index.mjs +3 -0
- package/dist/esm/client/utils/store/index.mjs.map +1 -0
- package/dist/esm/{providers/cognito/utils → client/utils/store}/signInStore.d.ts +1 -1
- package/dist/esm/client/utils/store/signInStore.mjs.map +1 -0
- package/dist/esm/client/utils/store/types.d.ts +5 -0
- package/dist/esm/client/utils/store/types.mjs +2 -0
- package/dist/esm/client/utils/store/types.mjs.map +1 -0
- package/dist/esm/foundation/apis/deleteWebAuthnCredential.d.ts +3 -0
- package/dist/esm/foundation/apis/deleteWebAuthnCredential.mjs +38 -0
- package/dist/esm/foundation/apis/deleteWebAuthnCredential.mjs.map +1 -0
- package/dist/esm/foundation/apis/index.d.ts +2 -0
- package/dist/esm/foundation/apis/index.mjs +3 -0
- package/dist/esm/foundation/apis/index.mjs.map +1 -0
- package/dist/esm/foundation/apis/listWebAuthnCredentials.d.ts +3 -0
- package/dist/esm/foundation/apis/listWebAuthnCredentials.mjs +51 -0
- package/dist/esm/foundation/apis/listWebAuthnCredentials.mjs.map +1 -0
- package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.d.ts +6 -0
- package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.mjs +19 -0
- package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.mjs.map +1 -0
- package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.d.ts +6 -0
- package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.mjs +15 -0
- package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.mjs.map +1 -0
- package/dist/esm/foundation/convert/base64url/index.d.ts +2 -0
- package/dist/esm/foundation/convert/base64url/index.mjs +3 -0
- package/dist/esm/foundation/convert/base64url/index.mjs.map +1 -0
- package/dist/esm/foundation/convert/index.d.ts +1 -0
- package/dist/esm/foundation/convert/index.mjs +3 -0
- package/dist/esm/foundation/convert/index.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.d.ts +3 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.mjs +32 -7
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.mjs.map +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.d.ts +13 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.mjs +17 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.d.ts +4 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.mjs +4 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.mjs.map +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.d.ts +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.d.ts +37 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.mjs +46 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.mjs.map +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.d.ts +1 -0
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.mjs +1 -1
- package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/sdk.d.ts +109 -5
- package/dist/esm/foundation/types/index.d.ts +3 -0
- package/dist/esm/foundation/types/index.mjs +2 -0
- package/dist/esm/foundation/types/index.mjs.map +1 -0
- package/dist/esm/foundation/types/inputs.d.ts +10 -0
- package/dist/esm/foundation/types/inputs.mjs +2 -0
- package/dist/esm/foundation/types/inputs.mjs.map +1 -0
- package/dist/esm/foundation/types/models.d.ts +11 -0
- package/dist/esm/foundation/types/models.mjs +2 -0
- package/dist/esm/foundation/types/models.mjs.map +1 -0
- package/dist/esm/foundation/types/outputs.d.ts +8 -0
- package/dist/esm/foundation/types/outputs.mjs +2 -0
- package/dist/esm/foundation/types/outputs.mjs.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/autoSignIn.d.ts +1 -1
- package/dist/esm/providers/cognito/apis/autoSignIn.mjs +7 -2
- package/dist/esm/providers/cognito/apis/autoSignIn.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmResetPassword.mjs +2 -0
- package/dist/esm/providers/cognito/apis/confirmResetPassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmSignIn.mjs +2 -1
- package/dist/esm/providers/cognito/apis/confirmSignIn.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmSignUp.mjs +11 -5
- package/dist/esm/providers/cognito/apis/confirmSignUp.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/confirmUserAttribute.mjs +2 -0
- package/dist/esm/providers/cognito/apis/confirmUserAttribute.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/deleteUser.mjs +3 -0
- package/dist/esm/providers/cognito/apis/deleteUser.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/deleteUserAttributes.mjs +3 -0
- package/dist/esm/providers/cognito/apis/deleteUserAttributes.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/fetchDevices.mjs +3 -0
- package/dist/esm/providers/cognito/apis/fetchDevices.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/fetchMFAPreference.mjs +3 -0
- package/dist/esm/providers/cognito/apis/fetchMFAPreference.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/forgetDevice.mjs +3 -0
- package/dist/esm/providers/cognito/apis/forgetDevice.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/internal/fetchUserAttributes.mjs +3 -0
- package/dist/esm/providers/cognito/apis/internal/fetchUserAttributes.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/rememberDevice.mjs +3 -0
- package/dist/esm/providers/cognito/apis/rememberDevice.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/resendSignUpCode.mjs +2 -0
- package/dist/esm/providers/cognito/apis/resendSignUpCode.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/resetPassword.mjs +2 -0
- package/dist/esm/providers/cognito/apis/resetPassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/sendUserAttributeVerificationCode.mjs +3 -0
- package/dist/esm/providers/cognito/apis/sendUserAttributeVerificationCode.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/setUpTOTP.mjs +2 -0
- package/dist/esm/providers/cognito/apis/setUpTOTP.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signIn.mjs +9 -0
- package/dist/esm/providers/cognito/apis/signIn.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomAuth.mjs +2 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomAuth.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomSRPAuth.mjs +2 -1
- package/dist/esm/providers/cognito/apis/signInWithCustomSRPAuth.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithSRP.mjs +5 -1
- package/dist/esm/providers/cognito/apis/signInWithSRP.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signInWithUserAuth.d.ts +13 -0
- package/dist/esm/providers/cognito/apis/signInWithUserAuth.mjs +104 -0
- package/dist/esm/providers/cognito/apis/signInWithUserAuth.mjs.map +1 -0
- package/dist/esm/providers/cognito/apis/signInWithUserPassword.mjs +6 -2
- package/dist/esm/providers/cognito/apis/signInWithUserPassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signOut.mjs +2 -0
- package/dist/esm/providers/cognito/apis/signOut.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/signUp.mjs +58 -50
- package/dist/esm/providers/cognito/apis/signUp.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/updateMFAPreference.mjs +3 -0
- package/dist/esm/providers/cognito/apis/updateMFAPreference.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/updatePassword.mjs +2 -0
- package/dist/esm/providers/cognito/apis/updatePassword.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/updateUserAttributes.mjs +3 -0
- package/dist/esm/providers/cognito/apis/updateUserAttributes.mjs.map +1 -1
- package/dist/esm/providers/cognito/apis/verifyTOTPSetup.mjs +2 -0
- package/dist/esm/providers/cognito/apis/verifyTOTPSetup.mjs.map +1 -1
- package/dist/esm/providers/cognito/types/index.d.ts +2 -2
- package/dist/esm/providers/cognito/types/inputs.d.ts +4 -0
- package/dist/esm/providers/cognito/types/models.d.ts +7 -1
- package/dist/esm/providers/cognito/types/options.d.ts +2 -1
- package/dist/esm/providers/cognito/types/outputs.d.ts +4 -0
- package/dist/esm/providers/cognito/utils/refreshAuthTokens.mjs +3 -0
- package/dist/esm/providers/cognito/utils/refreshAuthTokens.mjs.map +1 -1
- package/dist/esm/providers/cognito/utils/signInHelpers.d.ts +2 -1
- package/dist/esm/providers/cognito/utils/signInHelpers.mjs +56 -37
- package/dist/esm/providers/cognito/utils/signInHelpers.mjs.map +1 -1
- package/dist/esm/providers/cognito/utils/signUpHelpers.d.ts +0 -6
- package/dist/esm/providers/cognito/utils/signUpHelpers.mjs +5 -26
- package/dist/esm/providers/cognito/utils/signUpHelpers.mjs.map +1 -1
- package/dist/esm/types/inputs.d.ts +2 -2
- package/dist/esm/types/models.d.ts +9 -1
- package/package.json +104 -104
- package/src/client/apis/associateWebAuthnCredential.ts +94 -0
- package/src/client/apis/deleteWebAuthnCredential.ts +24 -0
- package/src/client/apis/index.ts +6 -0
- package/src/client/apis/listWebAuthnCredentials.ts +28 -0
- package/src/client/flows/shared/handlePasswordSRP.ts +123 -0
- package/src/client/flows/userAuth/handleSelectChallenge.ts +62 -0
- package/src/client/flows/userAuth/handleSelectChallengeWithPassword.ts +74 -0
- package/src/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.ts +105 -0
- package/src/client/flows/userAuth/handleUserAuthFlow.ts +125 -0
- package/src/client/flows/userAuth/handleWebAuthnSignInResult.ts +130 -0
- package/src/client/utils/index.ts +4 -0
- package/src/client/utils/passkey/errors.ts +214 -0
- package/src/client/utils/passkey/getIsPasskeySupported.native.ts +8 -0
- package/src/client/utils/passkey/getIsPasskeySupported.ts +18 -0
- package/src/client/utils/passkey/getPasskey.native.ts +8 -0
- package/src/client/utils/passkey/getPasskey.ts +40 -0
- package/src/client/utils/passkey/index.ts +5 -0
- package/src/client/utils/passkey/registerPasskey.native.ts +8 -0
- package/src/client/utils/passkey/registerPasskey.ts +48 -0
- package/src/client/utils/passkey/serde.ts +151 -0
- package/src/client/utils/passkey/types/index.ts +61 -0
- package/src/client/utils/passkey/types/shared.ts +131 -0
- package/src/client/utils/store/autoSignInStore.ts +64 -0
- package/src/client/utils/store/index.ts +5 -0
- package/src/{providers/cognito/utils → client/utils/store}/signInStore.ts +3 -8
- package/src/client/utils/store/types.ts +9 -0
- package/src/foundation/apis/deleteWebAuthnCredential.ts +45 -0
- package/src/foundation/apis/index.ts +5 -0
- package/src/foundation/apis/listWebAuthnCredentials.ts +68 -0
- package/src/foundation/convert/base64url/convertArrayBufferToBase64Url.ts +18 -0
- package/src/foundation/convert/base64url/convertBase64UrlToArrayBuffer.ts +18 -0
- package/src/foundation/convert/base64url/index.ts +5 -0
- package/src/foundation/convert/index.ts +7 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts +44 -7
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.ts +31 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/index.ts +4 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.ts +5 -1
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.ts +43 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.ts +2 -0
- package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/sdk.ts +141 -5
- package/src/foundation/types/index.ts +9 -0
- package/src/foundation/types/inputs.ts +14 -0
- package/src/foundation/types/models.ts +14 -0
- package/src/foundation/types/outputs.ts +12 -0
- package/src/index.ts +14 -0
- package/src/providers/cognito/apis/autoSignIn.ts +6 -2
- package/src/providers/cognito/apis/confirmSignIn.ts +1 -1
- package/src/providers/cognito/apis/confirmSignUp.ts +10 -9
- package/src/providers/cognito/apis/signIn.ts +10 -0
- package/src/providers/cognito/apis/signInWithCustomAuth.ts +1 -1
- package/src/providers/cognito/apis/signInWithCustomSRPAuth.ts +1 -1
- package/src/providers/cognito/apis/signInWithSRP.ts +6 -1
- package/src/providers/cognito/apis/signInWithUserAuth.ts +141 -0
- package/src/providers/cognito/apis/signInWithUserPassword.ts +7 -2
- package/src/providers/cognito/apis/signUp.ts +81 -72
- package/src/providers/cognito/types/index.ts +2 -0
- package/src/providers/cognito/types/inputs.ts +5 -0
- package/src/providers/cognito/types/models.ts +13 -0
- package/src/providers/cognito/types/options.ts +7 -1
- package/src/providers/cognito/types/outputs.ts +5 -0
- package/src/providers/cognito/utils/signInHelpers.ts +77 -55
- package/src/providers/cognito/utils/signUpHelpers.ts +6 -31
- package/src/types/inputs.ts +2 -2
- package/src/types/models.ts +13 -0
- package/dist/cjs/providers/cognito/utils/signInStore.js.map +0 -1
- package/dist/esm/providers/cognito/utils/signInStore.mjs.map +0 -1
- /package/dist/cjs/{providers/cognito/utils → client/utils/store}/signInStore.js +0 -0
- /package/dist/esm/{providers/cognito/utils → client/utils/store}/signInStore.mjs +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteWebAuthnCredential.mjs","sources":["../../../../src/foundation/apis/deleteWebAuthnCredential.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { AuthAction, assertTokenProviderConfig, } from '@aws-amplify/core/internals/utils';\nimport { assertAuthTokens } from '../../providers/cognito/utils/types';\nimport { createCognitoUserPoolEndpointResolver } from '../../providers/cognito/factories';\nimport { getRegionFromUserPoolId } from '../parsers';\nimport { getAuthUserAgentValue } from '../../utils';\nimport { createDeleteWebAuthnCredentialClient } from '../factories/serviceClients/cognitoIdentityProvider';\nexport async function deleteWebAuthnCredential(amplify, input) {\n const authConfig = amplify.getConfig().Auth?.Cognito;\n assertTokenProviderConfig(authConfig);\n const { userPoolEndpoint, userPoolId } = authConfig;\n const { tokens } = await amplify.Auth.fetchAuthSession();\n assertAuthTokens(tokens);\n const deleteWebAuthnCredentialResult = createDeleteWebAuthnCredentialClient({\n endpointResolver: createCognitoUserPoolEndpointResolver({\n endpointOverride: userPoolEndpoint,\n }),\n });\n await deleteWebAuthnCredentialResult({\n region: getRegionFromUserPoolId(userPoolId),\n userAgentValue: getAuthUserAgentValue(AuthAction.DeleteWebAuthnCredential),\n }, {\n AccessToken: tokens.accessToken.toString(),\n CredentialId: input.credentialId,\n });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AAOO,eAAe,wBAAwB,CAAC,OAAO,EAAE,KAAK,EAAE;AAC/D,IAAI,MAAM,UAAU,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC;AACzD,IAAI,yBAAyB,CAAC,UAAU,CAAC,CAAC;AAC1C,IAAI,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;AACxD,IAAI,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;AAC7D,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7B,IAAI,MAAM,8BAA8B,GAAG,oCAAoC,CAAC;AAChF,QAAQ,gBAAgB,EAAE,qCAAqC,CAAC;AAChE,YAAY,gBAAgB,EAAE,gBAAgB;AAC9C,SAAS,CAAC;AACV,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,8BAA8B,CAAC;AACzC,QAAQ,MAAM,EAAE,uBAAuB,CAAC,UAAU,CAAC;AACnD,QAAQ,cAAc,EAAE,qBAAqB,CAAC,UAAU,CAAC,wBAAwB,CAAC;AAClF,KAAK,EAAE;AACP,QAAQ,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE;AAClD,QAAQ,YAAY,EAAE,KAAK,CAAC,YAAY;AACxC,KAAK,CAAC,CAAC;AACP;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AmplifyClassV6 } from '@aws-amplify/core';
|
|
2
|
+
import { ListWebAuthnCredentialsInput, ListWebAuthnCredentialsOutput } from '../types';
|
|
3
|
+
export declare function listWebAuthnCredentials(amplify: AmplifyClassV6, input?: ListWebAuthnCredentialsInput): Promise<ListWebAuthnCredentialsOutput>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { assertTokenProviderConfig, AuthAction } from '@aws-amplify/core/internals/utils';
|
|
2
|
+
import { assertAuthTokens } from '../../providers/cognito/utils/types.mjs';
|
|
3
|
+
import { createCognitoUserPoolEndpointResolver } from '../../providers/cognito/factories/createCognitoUserPoolEndpointResolver.mjs';
|
|
4
|
+
import { getRegionFromUserPoolId } from '../parsers/regionParsers.mjs';
|
|
5
|
+
import { getAuthUserAgentValue } from '../../utils/getAuthUserAgentValue.mjs';
|
|
6
|
+
import '@aws-amplify/core/internals/aws-client-utils/composers';
|
|
7
|
+
import '@aws-amplify/core/internals/aws-client-utils';
|
|
8
|
+
import '../factories/serviceClients/cognitoIdentityProvider/shared/handler/cognitoUserPoolTransferHandler.mjs';
|
|
9
|
+
import '../factories/serviceClients/cognitoIdentityProvider/constants.mjs';
|
|
10
|
+
import '../../common/AuthErrorStrings.mjs';
|
|
11
|
+
import '../../errors/types/validation.mjs';
|
|
12
|
+
import '../../providers/cognito/types/errors.mjs';
|
|
13
|
+
import { createListWebAuthnCredentialsClient } from '../factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.mjs';
|
|
14
|
+
|
|
15
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
async function listWebAuthnCredentials(amplify, input) {
|
|
18
|
+
const authConfig = amplify.getConfig().Auth?.Cognito;
|
|
19
|
+
assertTokenProviderConfig(authConfig);
|
|
20
|
+
const { userPoolEndpoint, userPoolId } = authConfig;
|
|
21
|
+
const { tokens } = await amplify.Auth.fetchAuthSession();
|
|
22
|
+
assertAuthTokens(tokens);
|
|
23
|
+
const listWebAuthnCredentialsResult = createListWebAuthnCredentialsClient({
|
|
24
|
+
endpointResolver: createCognitoUserPoolEndpointResolver({
|
|
25
|
+
endpointOverride: userPoolEndpoint,
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
const { Credentials: commandCredentials = [], NextToken: nextToken } = await listWebAuthnCredentialsResult({
|
|
29
|
+
region: getRegionFromUserPoolId(userPoolId),
|
|
30
|
+
userAgentValue: getAuthUserAgentValue(AuthAction.ListWebAuthnCredentials),
|
|
31
|
+
}, {
|
|
32
|
+
AccessToken: tokens.accessToken.toString(),
|
|
33
|
+
MaxResults: input?.pageSize,
|
|
34
|
+
NextToken: input?.nextToken,
|
|
35
|
+
});
|
|
36
|
+
const credentials = commandCredentials.map(item => ({
|
|
37
|
+
credentialId: item.CredentialId,
|
|
38
|
+
friendlyCredentialName: item.FriendlyCredentialName,
|
|
39
|
+
relyingPartyId: item.RelyingPartyId,
|
|
40
|
+
authenticatorAttachment: item.AuthenticatorAttachment,
|
|
41
|
+
authenticatorTransports: item.AuthenticatorTransports,
|
|
42
|
+
createdAt: item.CreatedAt ? new Date(item.CreatedAt * 1000) : undefined,
|
|
43
|
+
}));
|
|
44
|
+
return {
|
|
45
|
+
credentials,
|
|
46
|
+
nextToken,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { listWebAuthnCredentials };
|
|
51
|
+
//# sourceMappingURL=listWebAuthnCredentials.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listWebAuthnCredentials.mjs","sources":["../../../../src/foundation/apis/listWebAuthnCredentials.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { AuthAction, assertTokenProviderConfig, } from '@aws-amplify/core/internals/utils';\nimport { assertAuthTokens } from '../../providers/cognito/utils/types';\nimport { createCognitoUserPoolEndpointResolver } from '../../providers/cognito/factories';\nimport { getRegionFromUserPoolId } from '../parsers';\nimport { getAuthUserAgentValue } from '../../utils';\nimport { createListWebAuthnCredentialsClient } from '../factories/serviceClients/cognitoIdentityProvider';\nexport async function listWebAuthnCredentials(amplify, input) {\n const authConfig = amplify.getConfig().Auth?.Cognito;\n assertTokenProviderConfig(authConfig);\n const { userPoolEndpoint, userPoolId } = authConfig;\n const { tokens } = await amplify.Auth.fetchAuthSession();\n assertAuthTokens(tokens);\n const listWebAuthnCredentialsResult = createListWebAuthnCredentialsClient({\n endpointResolver: createCognitoUserPoolEndpointResolver({\n endpointOverride: userPoolEndpoint,\n }),\n });\n const { Credentials: commandCredentials = [], NextToken: nextToken } = await listWebAuthnCredentialsResult({\n region: getRegionFromUserPoolId(userPoolId),\n userAgentValue: getAuthUserAgentValue(AuthAction.ListWebAuthnCredentials),\n }, {\n AccessToken: tokens.accessToken.toString(),\n MaxResults: input?.pageSize,\n NextToken: input?.nextToken,\n });\n const credentials = commandCredentials.map(item => ({\n credentialId: item.CredentialId,\n friendlyCredentialName: item.FriendlyCredentialName,\n relyingPartyId: item.RelyingPartyId,\n authenticatorAttachment: item.AuthenticatorAttachment,\n authenticatorTransports: item.AuthenticatorTransports,\n createdAt: item.CreatedAt ? new Date(item.CreatedAt * 1000) : undefined,\n }));\n return {\n credentials,\n nextToken,\n };\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AAOO,eAAe,uBAAuB,CAAC,OAAO,EAAE,KAAK,EAAE;AAC9D,IAAI,MAAM,UAAU,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC;AACzD,IAAI,yBAAyB,CAAC,UAAU,CAAC,CAAC;AAC1C,IAAI,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;AACxD,IAAI,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;AAC7D,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7B,IAAI,MAAM,6BAA6B,GAAG,mCAAmC,CAAC;AAC9E,QAAQ,gBAAgB,EAAE,qCAAqC,CAAC;AAChE,YAAY,gBAAgB,EAAE,gBAAgB;AAC9C,SAAS,CAAC;AACV,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,EAAE,WAAW,EAAE,kBAAkB,GAAG,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,MAAM,6BAA6B,CAAC;AAC/G,QAAQ,MAAM,EAAE,uBAAuB,CAAC,UAAU,CAAC;AACnD,QAAQ,cAAc,EAAE,qBAAqB,CAAC,UAAU,CAAC,uBAAuB,CAAC;AACjF,KAAK,EAAE;AACP,QAAQ,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE;AAClD,QAAQ,UAAU,EAAE,KAAK,EAAE,QAAQ;AACnC,QAAQ,SAAS,EAAE,KAAK,EAAE,SAAS;AACnC,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,WAAW,GAAG,kBAAkB,CAAC,GAAG,CAAC,IAAI,KAAK;AACxD,QAAQ,YAAY,EAAE,IAAI,CAAC,YAAY;AACvC,QAAQ,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;AAC3D,QAAQ,cAAc,EAAE,IAAI,CAAC,cAAc;AAC3C,QAAQ,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;AAC7D,QAAQ,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;AAC7D,QAAQ,SAAS,EAAE,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS;AAC/E,KAAK,CAAC,CAAC,CAAC;AACR,IAAI,OAAO;AACX,QAAQ,WAAW;AACnB,QAAQ,SAAS;AACjB,KAAK,CAAC;AACN;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { base64Encoder } from '@aws-amplify/core/internals/utils';
|
|
2
|
+
|
|
3
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
// https://datatracker.ietf.org/doc/html/rfc4648#page-7
|
|
6
|
+
/**
|
|
7
|
+
* Converts an ArrayBuffer to a base64url encoded string
|
|
8
|
+
* @param buffer - the ArrayBuffer instance of a Uint8Array
|
|
9
|
+
* @returns string - a base64url encoded string
|
|
10
|
+
*/
|
|
11
|
+
const convertArrayBufferToBase64Url = (buffer) => {
|
|
12
|
+
return base64Encoder.convert(new Uint8Array(buffer), {
|
|
13
|
+
urlSafe: true,
|
|
14
|
+
skipPadding: true,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { convertArrayBufferToBase64Url };
|
|
19
|
+
//# sourceMappingURL=convertArrayBufferToBase64Url.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertArrayBufferToBase64Url.mjs","sources":["../../../../../src/foundation/convert/base64url/convertArrayBufferToBase64Url.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { base64Encoder } from '@aws-amplify/core/internals/utils';\n// https://datatracker.ietf.org/doc/html/rfc4648#page-7\n/**\n * Converts an ArrayBuffer to a base64url encoded string\n * @param buffer - the ArrayBuffer instance of a Uint8Array\n * @returns string - a base64url encoded string\n */\nexport const convertArrayBufferToBase64Url = (buffer) => {\n return base64Encoder.convert(new Uint8Array(buffer), {\n urlSafe: true,\n skipPadding: true,\n });\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,6BAA6B,GAAG,CAAC,MAAM,KAAK;AACzD,IAAI,OAAO,aAAa,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE;AACzD,QAAQ,OAAO,EAAE,IAAI;AACrB,QAAQ,WAAW,EAAE,IAAI;AACzB,KAAK,CAAC,CAAC;AACP;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { base64Decoder } from '@aws-amplify/core/internals/utils';
|
|
2
|
+
|
|
3
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
/**
|
|
6
|
+
* Converts a base64url encoded string to an ArrayBuffer
|
|
7
|
+
* @param base64url - a base64url encoded string
|
|
8
|
+
* @returns ArrayBuffer
|
|
9
|
+
*/
|
|
10
|
+
const convertBase64UrlToArrayBuffer = (base64url) => {
|
|
11
|
+
return Uint8Array.from(base64Decoder.convert(base64url, { urlSafe: true }), x => x.charCodeAt(0)).buffer;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { convertBase64UrlToArrayBuffer };
|
|
15
|
+
//# sourceMappingURL=convertBase64UrlToArrayBuffer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convertBase64UrlToArrayBuffer.mjs","sources":["../../../../../src/foundation/convert/base64url/convertBase64UrlToArrayBuffer.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { base64Decoder } from '@aws-amplify/core/internals/utils';\n/**\n * Converts a base64url encoded string to an ArrayBuffer\n * @param base64url - a base64url encoded string\n * @returns ArrayBuffer\n */\nexport const convertBase64UrlToArrayBuffer = (base64url) => {\n return Uint8Array.from(base64Decoder.convert(base64url, { urlSafe: true }), x => x.charCodeAt(0)).buffer;\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACY,MAAC,6BAA6B,GAAG,CAAC,SAAS,KAAK;AAC5D,IAAI,OAAO,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAC7G;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { convertArrayBufferToBase64Url, convertBase64UrlToArrayBuffer, } from './base64url';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CompleteWebAuthnRegistrationCommandOutput, ServiceClientFactoryInput } from './types';
|
|
2
|
+
export declare const createCompleteWebAuthnRegistrationClient: (config: ServiceClientFactoryInput) => (config: {
|
|
3
|
+
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => import("@aws-amplify/core/internals/aws-client-utils").Endpoint) & ((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions) => {
|
|
4
|
+
url: URL;
|
|
5
|
+
})) | undefined;
|
|
6
|
+
service?: string | undefined;
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
|
+
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
|
+
userAgentValue?: string | undefined;
|
|
10
|
+
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
}, input: import("./types").CompleteWebAuthnRegistrationRequest) => Promise<CompleteWebAuthnRegistrationCommandOutput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';
|
|
2
|
+
import { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';
|
|
3
|
+
import { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';
|
|
4
|
+
import { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';
|
|
5
|
+
import '@aws-amplify/core/internals/aws-client-utils';
|
|
6
|
+
import '@aws-amplify/core/internals/utils';
|
|
7
|
+
import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
|
|
8
|
+
|
|
9
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
const createCompleteWebAuthnRegistrationClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('CompleteWebAuthnRegistration'), createUserPoolDeserializer(), {
|
|
12
|
+
...DEFAULT_SERVICE_CLIENT_API_CONFIG,
|
|
13
|
+
...config,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { createCompleteWebAuthnRegistrationClient };
|
|
17
|
+
//# sourceMappingURL=createCompleteWebAuthnRegistrationClient.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCompleteWebAuthnRegistrationClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { cognitoUserPoolTransferHandler } from './shared/handler';\nimport { createUserPoolDeserializer, createUserPoolSerializer, } from './shared/serde';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nexport const createCompleteWebAuthnRegistrationClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('CompleteWebAuthnRegistration'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAKY,MAAC,wCAAwC,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,8BAA8B,CAAC,EAAE,0BAA0B,EAAE,EAAE;AAC9M,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,CAAC;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeleteWebAuthnCredentialCommandOutput, ServiceClientFactoryInput } from './types';
|
|
2
|
+
export declare const createDeleteWebAuthnCredentialClient: (config: ServiceClientFactoryInput) => (config: {
|
|
3
|
+
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => import("@aws-amplify/core/internals/aws-client-utils").Endpoint) & ((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions) => {
|
|
4
|
+
url: URL;
|
|
5
|
+
})) | undefined;
|
|
6
|
+
service?: string | undefined;
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
|
+
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
|
+
userAgentValue?: string | undefined;
|
|
10
|
+
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
}, input: import("./types").DeleteWebAuthnCredentialInput) => Promise<DeleteWebAuthnCredentialCommandOutput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';
|
|
2
|
+
import { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';
|
|
3
|
+
import { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';
|
|
4
|
+
import { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';
|
|
5
|
+
import '@aws-amplify/core/internals/aws-client-utils';
|
|
6
|
+
import '@aws-amplify/core/internals/utils';
|
|
7
|
+
import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
|
|
8
|
+
|
|
9
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
const createDeleteWebAuthnCredentialClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('DeleteWebAuthnCredential'), createUserPoolDeserializer(), {
|
|
12
|
+
...DEFAULT_SERVICE_CLIENT_API_CONFIG,
|
|
13
|
+
...config,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { createDeleteWebAuthnCredentialClient };
|
|
17
|
+
//# sourceMappingURL=createDeleteWebAuthnCredentialClient.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDeleteWebAuthnCredentialClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { cognitoUserPoolTransferHandler } from './shared/handler';\nimport { createUserPoolDeserializer, createUserPoolSerializer, } from './shared/serde';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nexport const createDeleteWebAuthnCredentialClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('DeleteWebAuthnCredential'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAKY,MAAC,oCAAoC,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,0BAA0B,CAAC,EAAE,0BAA0B,EAAE,EAAE;AACtM,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,CAAC;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ListWebAuthnCredentialsCommandOutput, ServiceClientFactoryInput } from './types';
|
|
2
|
+
export declare const createListWebAuthnCredentialsClient: (config: ServiceClientFactoryInput) => (config: {
|
|
3
|
+
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => import("@aws-amplify/core/internals/aws-client-utils").Endpoint) & ((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions) => {
|
|
4
|
+
url: URL;
|
|
5
|
+
})) | undefined;
|
|
6
|
+
service?: string | undefined;
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
|
+
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
|
+
userAgentValue?: string | undefined;
|
|
10
|
+
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
}, input: import("./types").ListWebAuthnCredentialsInput) => Promise<ListWebAuthnCredentialsCommandOutput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';
|
|
2
|
+
import { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';
|
|
3
|
+
import { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';
|
|
4
|
+
import { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';
|
|
5
|
+
import '@aws-amplify/core/internals/aws-client-utils';
|
|
6
|
+
import '@aws-amplify/core/internals/utils';
|
|
7
|
+
import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
|
|
8
|
+
|
|
9
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
const createListWebAuthnCredentialsClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('ListWebAuthnCredentials'), createUserPoolDeserializer(), {
|
|
12
|
+
...DEFAULT_SERVICE_CLIENT_API_CONFIG,
|
|
13
|
+
...config,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { createListWebAuthnCredentialsClient };
|
|
17
|
+
//# sourceMappingURL=createListWebAuthnCredentialsClient.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createListWebAuthnCredentialsClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { cognitoUserPoolTransferHandler } from './shared/handler';\nimport { createUserPoolDeserializer, createUserPoolSerializer, } from './shared/serde';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nexport const createListWebAuthnCredentialsClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('ListWebAuthnCredentials'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAKY,MAAC,mCAAmC,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,yBAAyB,CAAC,EAAE,0BAA0B,EAAE,EAAE;AACpM,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,CAAC;;;;"}
|
package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { HttpResponse } from '@aws-amplify/core/internals/aws-client-utils';
|
|
1
2
|
import { ServiceClientFactoryInput, SignUpCommandOutput } from './types';
|
|
3
|
+
export declare const createSignUpClientDeserializer: () => (response: HttpResponse) => Promise<SignUpCommandOutput>;
|
|
2
4
|
export declare const createSignUpClient: (config: ServiceClientFactoryInput) => (config: {
|
|
3
5
|
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => import("@aws-amplify/core/internals/aws-client-utils").Endpoint) & ((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions) => {
|
|
4
6
|
url: URL;
|
|
5
7
|
})) | undefined;
|
|
6
8
|
service?: string | undefined;
|
|
7
|
-
retryDecider?: (((response?:
|
|
9
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
10
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
11
|
userAgentValue?: string | undefined;
|
|
10
12
|
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.mjs
CHANGED
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { parseJsonError, parseJsonBody } from '@aws-amplify/core/internals/aws-client-utils';
|
|
3
|
+
import { validationErrorMap } from '../../../../common/AuthErrorStrings.mjs';
|
|
4
|
+
import { AuthError } from '../../../../errors/AuthError.mjs';
|
|
5
|
+
import { AuthValidationErrorCode } from '../../../../errors/types/validation.mjs';
|
|
6
|
+
import { assertServiceError } from '../../../../errors/utils/assertServiceError.mjs';
|
|
7
|
+
import { SignUpException } from '../../../../providers/cognito/types/errors.mjs';
|
|
4
8
|
import { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';
|
|
5
|
-
import {
|
|
6
|
-
import '
|
|
7
|
-
import '@aws-amplify/core/internals/utils';
|
|
9
|
+
import { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';
|
|
10
|
+
import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
|
|
8
11
|
|
|
9
12
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
10
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
-
const
|
|
14
|
+
const createSignUpClientDeserializer = () => async (response) => {
|
|
15
|
+
if (response.statusCode >= 300) {
|
|
16
|
+
const error = await parseJsonError(response);
|
|
17
|
+
assertServiceError(error);
|
|
18
|
+
if (
|
|
19
|
+
// Missing Password Error
|
|
20
|
+
// 1 validation error detected: Value at 'password'failed to satisfy constraint: Member must not be null
|
|
21
|
+
error.name === SignUpException.InvalidParameterException &&
|
|
22
|
+
/'password'/.test(error.message) &&
|
|
23
|
+
/Member must not be null/.test(error.message)) {
|
|
24
|
+
const name = AuthValidationErrorCode.EmptySignUpPassword;
|
|
25
|
+
const { message, recoverySuggestion } = validationErrorMap[name];
|
|
26
|
+
throw new AuthError({
|
|
27
|
+
name,
|
|
28
|
+
message,
|
|
29
|
+
recoverySuggestion,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
throw new AuthError({ name: error.name, message: error.message });
|
|
33
|
+
}
|
|
34
|
+
return parseJsonBody(response);
|
|
35
|
+
};
|
|
36
|
+
const createSignUpClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('SignUp'), createSignUpClientDeserializer(), {
|
|
12
37
|
...DEFAULT_SERVICE_CLIENT_API_CONFIG,
|
|
13
38
|
...config,
|
|
14
39
|
});
|
|
15
40
|
|
|
16
|
-
export { createSignUpClient };
|
|
41
|
+
export { createSignUpClient, createSignUpClientDeserializer };
|
|
17
42
|
//# sourceMappingURL=createSignUpClient.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSignUpClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport {
|
|
1
|
+
{"version":3,"file":"createSignUpClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { parseJsonBody, parseJsonError, } from '@aws-amplify/core/internals/aws-client-utils';\nimport { validationErrorMap } from '../../../../common/AuthErrorStrings';\nimport { AuthError } from '../../../../errors/AuthError';\nimport { AuthValidationErrorCode } from '../../../../errors/types/validation';\nimport { assertServiceError } from '../../../../errors/utils/assertServiceError';\nimport { SignUpException } from '../../../../providers/cognito/types/errors';\nimport { createUserPoolSerializer } from './shared/serde';\nimport { cognitoUserPoolTransferHandler } from './shared/handler';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nexport const createSignUpClientDeserializer = () => async (response) => {\n if (response.statusCode >= 300) {\n const error = await parseJsonError(response);\n assertServiceError(error);\n if (\n // Missing Password Error\n // 1 validation error detected: Value at 'password'failed to satisfy constraint: Member must not be null\n error.name === SignUpException.InvalidParameterException &&\n /'password'/.test(error.message) &&\n /Member must not be null/.test(error.message)) {\n const name = AuthValidationErrorCode.EmptySignUpPassword;\n const { message, recoverySuggestion } = validationErrorMap[name];\n throw new AuthError({\n name,\n message,\n recoverySuggestion,\n });\n }\n throw new AuthError({ name: error.name, message: error.message });\n }\n return parseJsonBody(response);\n};\nexport const createSignUpClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('SignUp'), createSignUpClientDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;AAWY,MAAC,8BAA8B,GAAG,MAAM,OAAO,QAAQ,KAAK;AACxE,IAAI,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;AACpC,QAAQ,MAAM,KAAK,GAAG,MAAM,cAAc,CAAC,QAAQ,CAAC,CAAC;AACrD,QAAQ,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAClC,QAAQ;AACR;AACA;AACA,QAAQ,KAAK,CAAC,IAAI,KAAK,eAAe,CAAC,yBAAyB;AAChE,YAAY,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;AAC5C,YAAY,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;AAC3D,YAAY,MAAM,IAAI,GAAG,uBAAuB,CAAC,mBAAmB,CAAC;AACrE,YAAY,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC7E,YAAY,MAAM,IAAI,SAAS,CAAC;AAChC,gBAAgB,IAAI;AACpB,gBAAgB,OAAO;AACvB,gBAAgB,kBAAkB;AAClC,aAAa,CAAC,CAAC;AACf,SAAS;AACT,QAAQ,MAAM,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1E,KAAK;AACL,IAAI,OAAO,aAAa,CAAC,QAAQ,CAAC,CAAC;AACnC,EAAE;AACU,MAAC,kBAAkB,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,QAAQ,CAAC,EAAE,8BAA8B,EAAE,EAAE;AACtK,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,CAAC;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceClientFactoryInput, StartWebAuthnRegistrationCommandOutput } from './types';
|
|
2
|
+
export declare const createStartWebAuthnRegistrationClient: (config: ServiceClientFactoryInput) => (config: {
|
|
3
|
+
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => import("@aws-amplify/core/internals/aws-client-utils").Endpoint) & ((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions) => {
|
|
4
|
+
url: URL;
|
|
5
|
+
})) | undefined;
|
|
6
|
+
service?: string | undefined;
|
|
7
|
+
retryDecider?: (((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext | undefined) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & ((response?: import("@aws-amplify/core/internals/aws-client-utils").HttpResponse | undefined, error?: unknown) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>)) | undefined;
|
|
8
|
+
computeDelay?: ((attempt: number) => number) | undefined;
|
|
9
|
+
userAgentValue?: string | undefined;
|
|
10
|
+
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
}, input: import("./types").StartWebAuthnRegistrationRequest) => Promise<StartWebAuthnRegistrationCommandOutput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';
|
|
2
|
+
import { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';
|
|
3
|
+
import { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';
|
|
4
|
+
import { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';
|
|
5
|
+
import '@aws-amplify/core/internals/aws-client-utils';
|
|
6
|
+
import '@aws-amplify/core/internals/utils';
|
|
7
|
+
import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
|
|
8
|
+
|
|
9
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
10
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
+
const createStartWebAuthnRegistrationClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('StartWebAuthnRegistration'), createUserPoolDeserializer(), {
|
|
12
|
+
...DEFAULT_SERVICE_CLIENT_API_CONFIG,
|
|
13
|
+
...config,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { createStartWebAuthnRegistrationClient };
|
|
17
|
+
//# sourceMappingURL=createStartWebAuthnRegistrationClient.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStartWebAuthnRegistrationClient.mjs","sources":["../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { cognitoUserPoolTransferHandler } from './shared/handler';\nimport { createUserPoolDeserializer, createUserPoolSerializer, } from './shared/serde';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nexport const createStartWebAuthnRegistrationClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('StartWebAuthnRegistration'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAKY,MAAC,qCAAqC,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,2BAA2B,CAAC,EAAE,0BAA0B,EAAE,EAAE;AACxM,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,CAAC;;;;"}
|
|
@@ -21,3 +21,7 @@ export { createVerifyUserAttributeClient } from './createVerifyUserAttributeClie
|
|
|
21
21
|
export { createUpdateDeviceStatusClient } from './createUpdateDeviceStatusClient';
|
|
22
22
|
export { createListDevicesClient } from './createListDevicesClient';
|
|
23
23
|
export { createDeleteUserAttributesClient } from './createDeleteUserAttributesClient';
|
|
24
|
+
export { createStartWebAuthnRegistrationClient } from './createStartWebAuthnRegistrationClient';
|
|
25
|
+
export { createCompleteWebAuthnRegistrationClient } from './createCompleteWebAuthnRegistrationClient';
|
|
26
|
+
export { createListWebAuthnCredentialsClient } from './createListWebAuthnCredentialsClient';
|
|
27
|
+
export { createDeleteWebAuthnCredentialClient } from './createDeleteWebAuthnCredentialClient';
|
|
@@ -21,4 +21,8 @@ export { createVerifyUserAttributeClient } from './createVerifyUserAttributeClie
|
|
|
21
21
|
export { createUpdateDeviceStatusClient } from './createUpdateDeviceStatusClient.mjs';
|
|
22
22
|
export { createListDevicesClient } from './createListDevicesClient.mjs';
|
|
23
23
|
export { createDeleteUserAttributesClient } from './createDeleteUserAttributesClient.mjs';
|
|
24
|
+
export { createStartWebAuthnRegistrationClient } from './createStartWebAuthnRegistrationClient.mjs';
|
|
25
|
+
export { createCompleteWebAuthnRegistrationClient } from './createCompleteWebAuthnRegistrationClient.mjs';
|
|
26
|
+
export { createListWebAuthnCredentialsClient } from './createListWebAuthnCredentialsClient.mjs';
|
|
27
|
+
export { createDeleteWebAuthnCredentialClient } from './createDeleteWebAuthnCredentialClient.mjs';
|
|
24
28
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Endpoint, HttpRequest } from '@aws-amplify/core/internals/aws-client-utils';
|
|
2
|
-
type ClientOperation = 'SignUp' | 'ConfirmSignUp' | 'ForgotPassword' | 'ConfirmForgotPassword' | 'InitiateAuth' | 'RespondToAuthChallenge' | 'ResendConfirmationCode' | 'VerifySoftwareToken' | 'AssociateSoftwareToken' | 'SetUserMFAPreference' | 'GetUser' | 'ChangePassword' | 'ConfirmDevice' | 'ForgetDevice' | 'DeleteUser' | 'GetUserAttributeVerificationCode' | 'GlobalSignOut' | 'UpdateUserAttributes' | 'VerifyUserAttribute' | 'DeleteUserAttributes' | 'UpdateDeviceStatus' | 'ListDevices' | 'RevokeToken';
|
|
2
|
+
type ClientOperation = 'SignUp' | 'ConfirmSignUp' | 'ForgotPassword' | 'ConfirmForgotPassword' | 'InitiateAuth' | 'RespondToAuthChallenge' | 'ResendConfirmationCode' | 'VerifySoftwareToken' | 'AssociateSoftwareToken' | 'SetUserMFAPreference' | 'GetUser' | 'ChangePassword' | 'ConfirmDevice' | 'ForgetDevice' | 'DeleteUser' | 'GetUserAttributeVerificationCode' | 'GlobalSignOut' | 'UpdateUserAttributes' | 'VerifyUserAttribute' | 'DeleteUserAttributes' | 'UpdateDeviceStatus' | 'ListDevices' | 'RevokeToken' | 'StartWebAuthnRegistration' | 'CompleteWebAuthnRegistration' | 'ListWebAuthnCredentials' | 'DeleteWebAuthnCredential';
|
|
3
3
|
export declare const createUserPoolSerializer: <Input>(operation: ClientOperation) => (input: Input, endpoint: Endpoint) => HttpRequest;
|
|
4
4
|
export {};
|
package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare enum StartWebAuthnRegistrationException {
|
|
2
|
+
ForbiddenException = "ForbiddenException",
|
|
3
|
+
InternalErrorException = "InternalErrorException",
|
|
4
|
+
InvalidParameterException = "InvalidParameterException",
|
|
5
|
+
LimitExceededException = "LimitExceededException",
|
|
6
|
+
NotAuthorizedException = "NotAuthorizedException",
|
|
7
|
+
TooManyRequestsException = "TooManyRequestsException",
|
|
8
|
+
WebAuthnNotEnabledException = "WebAuthnNotEnabledException",
|
|
9
|
+
WebAuthnConfigurationMissingException = "WebAuthnConfigurationMissingException"
|
|
10
|
+
}
|
|
11
|
+
export declare enum CompleteWebAuthnRegistrationException {
|
|
12
|
+
ForbiddenException = "ForbiddenException",
|
|
13
|
+
InternalErrorException = "InternalErrorException",
|
|
14
|
+
InvalidParameterException = "InvalidParameterException",
|
|
15
|
+
LimitExceededException = "LimitExceededException",
|
|
16
|
+
NotAuthorizedException = "NotAuthorizedException",
|
|
17
|
+
TooManyRequestsException = "TooManyRequestsException",
|
|
18
|
+
WebAuthnNotEnabledException = "WebAuthnNotEnabledException",
|
|
19
|
+
WebAuthnChallengeNotFoundException = "WebAuthnChallengeNotFoundException",
|
|
20
|
+
WebAuthnRelyingPartyMismatchException = "WebAuthnRelyingPartyMismatchException",
|
|
21
|
+
WebAuthnClientMismatchException = "WebAuthnClientMismatchException",
|
|
22
|
+
WebAuthnOriginNotAllowedException = "WebAuthnOriginNotAllowedException",
|
|
23
|
+
WebAuthnCredentialNotSupportedException = "WebAuthnCredentialNotSupportedException"
|
|
24
|
+
}
|
|
25
|
+
export declare enum ListWebAuthnCredentialsException {
|
|
26
|
+
ForbiddenException = "ForbiddenException",
|
|
27
|
+
InternalErrorException = "InternalErrorException",
|
|
28
|
+
InvalidParameterException = "InvalidParameterException",
|
|
29
|
+
NotAuthorizedException = "NotAuthorizedException"
|
|
30
|
+
}
|
|
31
|
+
export declare enum DeleteWebAuthnCredentialException {
|
|
32
|
+
ForbiddenException = "ForbiddenException",
|
|
33
|
+
InternalErrorException = "InternalErrorException",
|
|
34
|
+
InvalidParameterException = "InvalidParameterException",
|
|
35
|
+
NotAuthorizedException = "NotAuthorizedException",
|
|
36
|
+
ResourceNotFoundException = "ResourceNotFoundException"
|
|
37
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
var StartWebAuthnRegistrationException;
|
|
4
|
+
(function (StartWebAuthnRegistrationException) {
|
|
5
|
+
StartWebAuthnRegistrationException["ForbiddenException"] = "ForbiddenException";
|
|
6
|
+
StartWebAuthnRegistrationException["InternalErrorException"] = "InternalErrorException";
|
|
7
|
+
StartWebAuthnRegistrationException["InvalidParameterException"] = "InvalidParameterException";
|
|
8
|
+
StartWebAuthnRegistrationException["LimitExceededException"] = "LimitExceededException";
|
|
9
|
+
StartWebAuthnRegistrationException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
10
|
+
StartWebAuthnRegistrationException["TooManyRequestsException"] = "TooManyRequestsException";
|
|
11
|
+
StartWebAuthnRegistrationException["WebAuthnNotEnabledException"] = "WebAuthnNotEnabledException";
|
|
12
|
+
StartWebAuthnRegistrationException["WebAuthnConfigurationMissingException"] = "WebAuthnConfigurationMissingException";
|
|
13
|
+
})(StartWebAuthnRegistrationException || (StartWebAuthnRegistrationException = {}));
|
|
14
|
+
var CompleteWebAuthnRegistrationException;
|
|
15
|
+
(function (CompleteWebAuthnRegistrationException) {
|
|
16
|
+
CompleteWebAuthnRegistrationException["ForbiddenException"] = "ForbiddenException";
|
|
17
|
+
CompleteWebAuthnRegistrationException["InternalErrorException"] = "InternalErrorException";
|
|
18
|
+
CompleteWebAuthnRegistrationException["InvalidParameterException"] = "InvalidParameterException";
|
|
19
|
+
CompleteWebAuthnRegistrationException["LimitExceededException"] = "LimitExceededException";
|
|
20
|
+
CompleteWebAuthnRegistrationException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
21
|
+
CompleteWebAuthnRegistrationException["TooManyRequestsException"] = "TooManyRequestsException";
|
|
22
|
+
CompleteWebAuthnRegistrationException["WebAuthnNotEnabledException"] = "WebAuthnNotEnabledException";
|
|
23
|
+
CompleteWebAuthnRegistrationException["WebAuthnChallengeNotFoundException"] = "WebAuthnChallengeNotFoundException";
|
|
24
|
+
CompleteWebAuthnRegistrationException["WebAuthnRelyingPartyMismatchException"] = "WebAuthnRelyingPartyMismatchException";
|
|
25
|
+
CompleteWebAuthnRegistrationException["WebAuthnClientMismatchException"] = "WebAuthnClientMismatchException";
|
|
26
|
+
CompleteWebAuthnRegistrationException["WebAuthnOriginNotAllowedException"] = "WebAuthnOriginNotAllowedException";
|
|
27
|
+
CompleteWebAuthnRegistrationException["WebAuthnCredentialNotSupportedException"] = "WebAuthnCredentialNotSupportedException";
|
|
28
|
+
})(CompleteWebAuthnRegistrationException || (CompleteWebAuthnRegistrationException = {}));
|
|
29
|
+
var ListWebAuthnCredentialsException;
|
|
30
|
+
(function (ListWebAuthnCredentialsException) {
|
|
31
|
+
ListWebAuthnCredentialsException["ForbiddenException"] = "ForbiddenException";
|
|
32
|
+
ListWebAuthnCredentialsException["InternalErrorException"] = "InternalErrorException";
|
|
33
|
+
ListWebAuthnCredentialsException["InvalidParameterException"] = "InvalidParameterException";
|
|
34
|
+
ListWebAuthnCredentialsException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
35
|
+
})(ListWebAuthnCredentialsException || (ListWebAuthnCredentialsException = {}));
|
|
36
|
+
var DeleteWebAuthnCredentialException;
|
|
37
|
+
(function (DeleteWebAuthnCredentialException) {
|
|
38
|
+
DeleteWebAuthnCredentialException["ForbiddenException"] = "ForbiddenException";
|
|
39
|
+
DeleteWebAuthnCredentialException["InternalErrorException"] = "InternalErrorException";
|
|
40
|
+
DeleteWebAuthnCredentialException["InvalidParameterException"] = "InvalidParameterException";
|
|
41
|
+
DeleteWebAuthnCredentialException["NotAuthorizedException"] = "NotAuthorizedException";
|
|
42
|
+
DeleteWebAuthnCredentialException["ResourceNotFoundException"] = "ResourceNotFoundException";
|
|
43
|
+
})(DeleteWebAuthnCredentialException || (DeleteWebAuthnCredentialException = {}));
|
|
44
|
+
|
|
45
|
+
export { CompleteWebAuthnRegistrationException, DeleteWebAuthnCredentialException, ListWebAuthnCredentialsException, StartWebAuthnRegistrationException };
|
|
46
|
+
//# sourceMappingURL=errors.mjs.map
|
package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.mjs","sources":["../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport var StartWebAuthnRegistrationException;\n(function (StartWebAuthnRegistrationException) {\n StartWebAuthnRegistrationException[\"ForbiddenException\"] = \"ForbiddenException\";\n StartWebAuthnRegistrationException[\"InternalErrorException\"] = \"InternalErrorException\";\n StartWebAuthnRegistrationException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n StartWebAuthnRegistrationException[\"LimitExceededException\"] = \"LimitExceededException\";\n StartWebAuthnRegistrationException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n StartWebAuthnRegistrationException[\"TooManyRequestsException\"] = \"TooManyRequestsException\";\n StartWebAuthnRegistrationException[\"WebAuthnNotEnabledException\"] = \"WebAuthnNotEnabledException\";\n StartWebAuthnRegistrationException[\"WebAuthnConfigurationMissingException\"] = \"WebAuthnConfigurationMissingException\";\n})(StartWebAuthnRegistrationException || (StartWebAuthnRegistrationException = {}));\nexport var CompleteWebAuthnRegistrationException;\n(function (CompleteWebAuthnRegistrationException) {\n CompleteWebAuthnRegistrationException[\"ForbiddenException\"] = \"ForbiddenException\";\n CompleteWebAuthnRegistrationException[\"InternalErrorException\"] = \"InternalErrorException\";\n CompleteWebAuthnRegistrationException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n CompleteWebAuthnRegistrationException[\"LimitExceededException\"] = \"LimitExceededException\";\n CompleteWebAuthnRegistrationException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n CompleteWebAuthnRegistrationException[\"TooManyRequestsException\"] = \"TooManyRequestsException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnNotEnabledException\"] = \"WebAuthnNotEnabledException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnChallengeNotFoundException\"] = \"WebAuthnChallengeNotFoundException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnRelyingPartyMismatchException\"] = \"WebAuthnRelyingPartyMismatchException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnClientMismatchException\"] = \"WebAuthnClientMismatchException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnOriginNotAllowedException\"] = \"WebAuthnOriginNotAllowedException\";\n CompleteWebAuthnRegistrationException[\"WebAuthnCredentialNotSupportedException\"] = \"WebAuthnCredentialNotSupportedException\";\n})(CompleteWebAuthnRegistrationException || (CompleteWebAuthnRegistrationException = {}));\nexport var ListWebAuthnCredentialsException;\n(function (ListWebAuthnCredentialsException) {\n ListWebAuthnCredentialsException[\"ForbiddenException\"] = \"ForbiddenException\";\n ListWebAuthnCredentialsException[\"InternalErrorException\"] = \"InternalErrorException\";\n ListWebAuthnCredentialsException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n ListWebAuthnCredentialsException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n})(ListWebAuthnCredentialsException || (ListWebAuthnCredentialsException = {}));\nexport var DeleteWebAuthnCredentialException;\n(function (DeleteWebAuthnCredentialException) {\n DeleteWebAuthnCredentialException[\"ForbiddenException\"] = \"ForbiddenException\";\n DeleteWebAuthnCredentialException[\"InternalErrorException\"] = \"InternalErrorException\";\n DeleteWebAuthnCredentialException[\"InvalidParameterException\"] = \"InvalidParameterException\";\n DeleteWebAuthnCredentialException[\"NotAuthorizedException\"] = \"NotAuthorizedException\";\n DeleteWebAuthnCredentialException[\"ResourceNotFoundException\"] = \"ResourceNotFoundException\";\n})(DeleteWebAuthnCredentialException || (DeleteWebAuthnCredentialException = {}));\n"],"names":[],"mappings":"AAAA;AACA;AACU,IAAC,mCAAmC;AAC9C,CAAC,UAAU,kCAAkC,EAAE;AAC/C,IAAI,kCAAkC,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AACpF,IAAI,kCAAkC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC5F,IAAI,kCAAkC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AAClG,IAAI,kCAAkC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC5F,IAAI,kCAAkC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC5F,IAAI,kCAAkC,CAAC,0BAA0B,CAAC,GAAG,0BAA0B,CAAC;AAChG,IAAI,kCAAkC,CAAC,6BAA6B,CAAC,GAAG,6BAA6B,CAAC;AACtG,IAAI,kCAAkC,CAAC,uCAAuC,CAAC,GAAG,uCAAuC,CAAC;AAC1H,CAAC,EAAE,kCAAkC,KAAK,kCAAkC,GAAG,EAAE,CAAC,CAAC,CAAC;AAC1E,IAAC,sCAAsC;AACjD,CAAC,UAAU,qCAAqC,EAAE;AAClD,IAAI,qCAAqC,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AACvF,IAAI,qCAAqC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC/F,IAAI,qCAAqC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AACrG,IAAI,qCAAqC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC/F,IAAI,qCAAqC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC/F,IAAI,qCAAqC,CAAC,0BAA0B,CAAC,GAAG,0BAA0B,CAAC;AACnG,IAAI,qCAAqC,CAAC,6BAA6B,CAAC,GAAG,6BAA6B,CAAC;AACzG,IAAI,qCAAqC,CAAC,oCAAoC,CAAC,GAAG,oCAAoC,CAAC;AACvH,IAAI,qCAAqC,CAAC,uCAAuC,CAAC,GAAG,uCAAuC,CAAC;AAC7H,IAAI,qCAAqC,CAAC,iCAAiC,CAAC,GAAG,iCAAiC,CAAC;AACjH,IAAI,qCAAqC,CAAC,mCAAmC,CAAC,GAAG,mCAAmC,CAAC;AACrH,IAAI,qCAAqC,CAAC,yCAAyC,CAAC,GAAG,yCAAyC,CAAC;AACjI,CAAC,EAAE,qCAAqC,KAAK,qCAAqC,GAAG,EAAE,CAAC,CAAC,CAAC;AAChF,IAAC,iCAAiC;AAC5C,CAAC,UAAU,gCAAgC,EAAE;AAC7C,IAAI,gCAAgC,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AAClF,IAAI,gCAAgC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC1F,IAAI,gCAAgC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AAChG,IAAI,gCAAgC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC1F,CAAC,EAAE,gCAAgC,KAAK,gCAAgC,GAAG,EAAE,CAAC,CAAC,CAAC;AACtE,IAAC,kCAAkC;AAC7C,CAAC,UAAU,iCAAiC,EAAE;AAC9C,IAAI,iCAAiC,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC;AACnF,IAAI,iCAAiC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC3F,IAAI,iCAAiC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AACjG,IAAI,iCAAiC,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC;AAC3F,IAAI,iCAAiC,CAAC,2BAA2B,CAAC,GAAG,2BAA2B,CAAC;AACjG,CAAC,EAAE,iCAAiC,KAAK,iCAAiC,GAAG,EAAE,CAAC,CAAC;;;;"}
|
package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { CompleteWebAuthnRegistrationException, DeleteWebAuthnCredentialException, ListWebAuthnCredentialsException, StartWebAuthnRegistrationException } from './errors.mjs';
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|