@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.
Files changed (398) hide show
  1. package/dist/cjs/client/apis/associateWebAuthnCredential.js +62 -0
  2. package/dist/cjs/client/apis/associateWebAuthnCredential.js.map +1 -0
  3. package/dist/cjs/client/apis/deleteWebAuthnCredential.js +22 -0
  4. package/dist/cjs/client/apis/deleteWebAuthnCredential.js.map +1 -0
  5. package/dist/cjs/client/apis/index.js +13 -0
  6. package/dist/cjs/client/apis/index.js.map +1 -0
  7. package/dist/cjs/client/apis/listWebAuthnCredentials.js +23 -0
  8. package/dist/cjs/client/apis/listWebAuthnCredentials.js.map +1 -0
  9. package/dist/cjs/client/flows/shared/handlePasswordSRP.js +79 -0
  10. package/dist/cjs/client/flows/shared/handlePasswordSRP.js.map +1 -0
  11. package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js +46 -0
  12. package/dist/cjs/client/flows/userAuth/handleSelectChallenge.js.map +1 -0
  13. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js +59 -0
  14. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPassword.js.map +1 -0
  15. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js +74 -0
  16. package/dist/cjs/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.js.map +1 -0
  17. package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js +84 -0
  18. package/dist/cjs/client/flows/userAuth/handleUserAuthFlow.js.map +1 -0
  19. package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js +88 -0
  20. package/dist/cjs/client/flows/userAuth/handleWebAuthnSignInResult.js.map +1 -0
  21. package/dist/cjs/client/utils/index.js +9 -0
  22. package/dist/cjs/client/utils/index.js.map +1 -0
  23. package/dist/cjs/client/utils/passkey/errors.js +180 -0
  24. package/dist/cjs/client/utils/passkey/errors.js.map +1 -0
  25. package/dist/cjs/client/utils/passkey/getIsPasskeySupported.js +20 -0
  26. package/dist/cjs/client/utils/passkey/getIsPasskeySupported.js.map +1 -0
  27. package/dist/cjs/client/utils/passkey/getIsPasskeySupported.native.js +12 -0
  28. package/dist/cjs/client/utils/passkey/getIsPasskeySupported.native.js.map +1 -0
  29. package/dist/cjs/client/utils/passkey/getPasskey.js +27 -0
  30. package/dist/cjs/client/utils/passkey/getPasskey.js.map +1 -0
  31. package/dist/cjs/client/utils/passkey/getPasskey.native.js +12 -0
  32. package/dist/cjs/client/utils/passkey/getPasskey.native.js.map +1 -0
  33. package/dist/cjs/client/utils/passkey/index.js +11 -0
  34. package/dist/cjs/client/utils/passkey/index.js.map +1 -0
  35. package/dist/cjs/client/utils/passkey/registerPasskey.js +32 -0
  36. package/dist/cjs/client/utils/passkey/registerPasskey.js.map +1 -0
  37. package/dist/cjs/client/utils/passkey/registerPasskey.native.js +12 -0
  38. package/dist/cjs/client/utils/passkey/registerPasskey.native.js.map +1 -0
  39. package/dist/cjs/client/utils/passkey/serde.js +106 -0
  40. package/dist/cjs/client/utils/passkey/serde.js.map +1 -0
  41. package/dist/cjs/client/utils/passkey/types/index.js +25 -0
  42. package/dist/cjs/client/utils/passkey/types/index.js.map +1 -0
  43. package/dist/cjs/client/utils/passkey/types/shared.js +18 -0
  44. package/dist/cjs/client/utils/passkey/types/shared.js.map +1 -0
  45. package/dist/cjs/client/utils/store/autoSignInStore.js +45 -0
  46. package/dist/cjs/client/utils/store/autoSignInStore.js.map +1 -0
  47. package/dist/cjs/client/utils/store/index.js +9 -0
  48. package/dist/cjs/client/utils/store/index.js.map +1 -0
  49. package/dist/cjs/client/utils/store/signInStore.js.map +1 -0
  50. package/dist/cjs/client/utils/store/types.js +6 -0
  51. package/dist/cjs/client/utils/store/types.js.map +1 -0
  52. package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js +33 -0
  53. package/dist/cjs/foundation/apis/deleteWebAuthnCredential.js.map +1 -0
  54. package/dist/cjs/foundation/apis/index.js +11 -0
  55. package/dist/cjs/foundation/apis/index.js.map +1 -0
  56. package/dist/cjs/foundation/apis/listWebAuthnCredentials.js +46 -0
  57. package/dist/cjs/foundation/apis/listWebAuthnCredentials.js.map +1 -0
  58. package/dist/cjs/foundation/convert/base64url/convertArrayBufferToBase64Url.js +21 -0
  59. package/dist/cjs/foundation/convert/base64url/convertArrayBufferToBase64Url.js.map +1 -0
  60. package/dist/cjs/foundation/convert/base64url/convertBase64UrlToArrayBuffer.js +17 -0
  61. package/dist/cjs/foundation/convert/base64url/convertBase64UrlToArrayBuffer.js.map +1 -0
  62. package/dist/cjs/foundation/convert/base64url/index.js +11 -0
  63. package/dist/cjs/foundation/convert/base64url/index.js.map +1 -0
  64. package/dist/cjs/foundation/convert/index.js +10 -0
  65. package/dist/cjs/foundation/convert/index.js.map +1 -0
  66. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.js +16 -0
  67. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.js.map +1 -0
  68. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.js +16 -0
  69. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.js.map +1 -0
  70. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.js +16 -0
  71. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.js.map +1 -0
  72. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.js +33 -4
  73. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.js.map +1 -1
  74. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.js +16 -0
  75. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.js.map +1 -0
  76. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/index.js +9 -1
  77. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/index.js.map +1 -1
  78. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js +44 -0
  79. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.js.map +1 -0
  80. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.js +3 -2
  81. package/dist/cjs/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.js.map +1 -1
  82. package/dist/cjs/foundation/types/index.js +6 -0
  83. package/dist/cjs/foundation/types/index.js.map +1 -0
  84. package/dist/cjs/foundation/types/inputs.js +6 -0
  85. package/dist/cjs/foundation/types/inputs.js.map +1 -0
  86. package/dist/cjs/foundation/types/models.js +6 -0
  87. package/dist/cjs/foundation/types/models.js.map +1 -0
  88. package/dist/cjs/foundation/types/outputs.js +6 -0
  89. package/dist/cjs/foundation/types/outputs.js.map +1 -0
  90. package/dist/cjs/index.js +6 -1
  91. package/dist/cjs/index.js.map +1 -1
  92. package/dist/cjs/providers/cognito/apis/autoSignIn.js +6 -2
  93. package/dist/cjs/providers/cognito/apis/autoSignIn.js.map +1 -1
  94. package/dist/cjs/providers/cognito/apis/confirmSignIn.js +4 -4
  95. package/dist/cjs/providers/cognito/apis/confirmSignIn.js.map +1 -1
  96. package/dist/cjs/providers/cognito/apis/confirmSignUp.js +8 -5
  97. package/dist/cjs/providers/cognito/apis/confirmSignUp.js.map +1 -1
  98. package/dist/cjs/providers/cognito/apis/signIn.js +9 -0
  99. package/dist/cjs/providers/cognito/apis/signIn.js.map +1 -1
  100. package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js +4 -4
  101. package/dist/cjs/providers/cognito/apis/signInWithCustomAuth.js.map +1 -1
  102. package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js +4 -4
  103. package/dist/cjs/providers/cognito/apis/signInWithCustomSRPAuth.js.map +1 -1
  104. package/dist/cjs/providers/cognito/apis/signInWithSRP.js +7 -4
  105. package/dist/cjs/providers/cognito/apis/signInWithSRP.js.map +1 -1
  106. package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js +102 -0
  107. package/dist/cjs/providers/cognito/apis/signInWithUserAuth.js.map +1 -0
  108. package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js +7 -4
  109. package/dist/cjs/providers/cognito/apis/signInWithUserPassword.js.map +1 -1
  110. package/dist/cjs/providers/cognito/apis/signUp.js +56 -49
  111. package/dist/cjs/providers/cognito/apis/signUp.js.map +1 -1
  112. package/dist/cjs/providers/cognito/utils/signInHelpers.js +60 -42
  113. package/dist/cjs/providers/cognito/utils/signInHelpers.js.map +1 -1
  114. package/dist/cjs/providers/cognito/utils/signUpHelpers.js +5 -31
  115. package/dist/cjs/providers/cognito/utils/signUpHelpers.js.map +1 -1
  116. package/dist/esm/client/apis/associateWebAuthnCredential.d.ts +14 -0
  117. package/dist/esm/client/apis/associateWebAuthnCredential.mjs +69 -0
  118. package/dist/esm/client/apis/associateWebAuthnCredential.mjs.map +1 -0
  119. package/dist/esm/client/apis/deleteWebAuthnCredential.d.ts +11 -0
  120. package/dist/esm/client/apis/deleteWebAuthnCredential.mjs +29 -0
  121. package/dist/esm/client/apis/deleteWebAuthnCredential.mjs.map +1 -0
  122. package/dist/esm/client/apis/index.d.ts +3 -0
  123. package/dist/esm/client/apis/index.mjs +4 -0
  124. package/dist/esm/client/apis/index.mjs.map +1 -0
  125. package/dist/esm/client/apis/listWebAuthnCredentials.d.ts +12 -0
  126. package/dist/esm/client/apis/listWebAuthnCredentials.mjs +30 -0
  127. package/dist/esm/client/apis/listWebAuthnCredentials.mjs.map +1 -0
  128. package/dist/esm/client/flows/shared/handlePasswordSRP.d.ts +31 -0
  129. package/dist/esm/client/flows/shared/handlePasswordSRP.mjs +86 -0
  130. package/dist/esm/client/flows/shared/handlePasswordSRP.mjs.map +1 -0
  131. package/dist/esm/client/flows/userAuth/handleSelectChallenge.d.ts +23 -0
  132. package/dist/esm/client/flows/userAuth/handleSelectChallenge.mjs +51 -0
  133. package/dist/esm/client/flows/userAuth/handleSelectChallenge.mjs.map +1 -0
  134. package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.d.ts +16 -0
  135. package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.mjs +64 -0
  136. package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPassword.mjs.map +1 -0
  137. package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.d.ts +18 -0
  138. package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.mjs +81 -0
  139. package/dist/esm/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.mjs.map +1 -0
  140. package/dist/esm/client/flows/userAuth/handleUserAuthFlow.d.ts +27 -0
  141. package/dist/esm/client/flows/userAuth/handleUserAuthFlow.mjs +88 -0
  142. package/dist/esm/client/flows/userAuth/handleUserAuthFlow.mjs.map +1 -0
  143. package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.d.ts +3 -0
  144. package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.mjs +93 -0
  145. package/dist/esm/client/flows/userAuth/handleWebAuthnSignInResult.mjs.map +1 -0
  146. package/dist/esm/client/utils/index.d.ts +1 -0
  147. package/dist/esm/client/utils/index.mjs +4 -0
  148. package/dist/esm/client/utils/index.mjs.map +1 -0
  149. package/dist/esm/client/utils/passkey/errors.d.ts +33 -0
  150. package/dist/esm/client/utils/passkey/errors.mjs +176 -0
  151. package/dist/esm/client/utils/passkey/errors.mjs.map +1 -0
  152. package/dist/esm/client/utils/passkey/getIsPasskeySupported.d.ts +6 -0
  153. package/dist/esm/client/utils/passkey/getIsPasskeySupported.mjs +18 -0
  154. package/dist/esm/client/utils/passkey/getIsPasskeySupported.mjs.map +1 -0
  155. package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.d.ts +1 -0
  156. package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.mjs +10 -0
  157. package/dist/esm/client/utils/passkey/getIsPasskeySupported.native.mjs.map +1 -0
  158. package/dist/esm/client/utils/passkey/getPasskey.d.ts +2 -0
  159. package/dist/esm/client/utils/passkey/getPasskey.mjs +25 -0
  160. package/dist/esm/client/utils/passkey/getPasskey.mjs.map +1 -0
  161. package/dist/esm/client/utils/passkey/getPasskey.native.d.ts +1 -0
  162. package/dist/esm/client/utils/passkey/getPasskey.native.mjs +10 -0
  163. package/dist/esm/client/utils/passkey/getPasskey.native.mjs.map +1 -0
  164. package/dist/esm/client/utils/passkey/index.d.ts +2 -0
  165. package/dist/esm/client/utils/passkey/index.mjs +3 -0
  166. package/dist/esm/client/utils/passkey/index.mjs.map +1 -0
  167. package/dist/esm/client/utils/passkey/registerPasskey.d.ts +7 -0
  168. package/dist/esm/client/utils/passkey/registerPasskey.mjs +30 -0
  169. package/dist/esm/client/utils/passkey/registerPasskey.mjs.map +1 -0
  170. package/dist/esm/client/utils/passkey/registerPasskey.native.d.ts +1 -0
  171. package/dist/esm/client/utils/passkey/registerPasskey.native.mjs +10 -0
  172. package/dist/esm/client/utils/passkey/registerPasskey.native.mjs.map +1 -0
  173. package/dist/esm/client/utils/passkey/serde.d.ts +25 -0
  174. package/dist/esm/client/utils/passkey/serde.mjs +102 -0
  175. package/dist/esm/client/utils/passkey/serde.mjs.map +1 -0
  176. package/dist/esm/client/utils/passkey/types/index.d.ts +16 -0
  177. package/dist/esm/client/utils/passkey/types/index.mjs +18 -0
  178. package/dist/esm/client/utils/passkey/types/index.mjs.map +1 -0
  179. package/dist/esm/client/utils/passkey/types/shared.d.ts +106 -0
  180. package/dist/esm/client/utils/passkey/types/shared.mjs +16 -0
  181. package/dist/esm/client/utils/passkey/types/shared.mjs.map +1 -0
  182. package/dist/esm/client/utils/store/autoSignInStore.d.ts +21 -0
  183. package/dist/esm/client/utils/store/autoSignInStore.mjs +43 -0
  184. package/dist/esm/client/utils/store/autoSignInStore.mjs.map +1 -0
  185. package/dist/esm/client/utils/store/index.d.ts +2 -0
  186. package/dist/esm/client/utils/store/index.mjs +3 -0
  187. package/dist/esm/client/utils/store/index.mjs.map +1 -0
  188. package/dist/esm/{providers/cognito/utils → client/utils/store}/signInStore.d.ts +1 -1
  189. package/dist/esm/client/utils/store/signInStore.mjs.map +1 -0
  190. package/dist/esm/client/utils/store/types.d.ts +5 -0
  191. package/dist/esm/client/utils/store/types.mjs +2 -0
  192. package/dist/esm/client/utils/store/types.mjs.map +1 -0
  193. package/dist/esm/foundation/apis/deleteWebAuthnCredential.d.ts +3 -0
  194. package/dist/esm/foundation/apis/deleteWebAuthnCredential.mjs +38 -0
  195. package/dist/esm/foundation/apis/deleteWebAuthnCredential.mjs.map +1 -0
  196. package/dist/esm/foundation/apis/index.d.ts +2 -0
  197. package/dist/esm/foundation/apis/index.mjs +3 -0
  198. package/dist/esm/foundation/apis/index.mjs.map +1 -0
  199. package/dist/esm/foundation/apis/listWebAuthnCredentials.d.ts +3 -0
  200. package/dist/esm/foundation/apis/listWebAuthnCredentials.mjs +51 -0
  201. package/dist/esm/foundation/apis/listWebAuthnCredentials.mjs.map +1 -0
  202. package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.d.ts +6 -0
  203. package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.mjs +19 -0
  204. package/dist/esm/foundation/convert/base64url/convertArrayBufferToBase64Url.mjs.map +1 -0
  205. package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.d.ts +6 -0
  206. package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.mjs +15 -0
  207. package/dist/esm/foundation/convert/base64url/convertBase64UrlToArrayBuffer.mjs.map +1 -0
  208. package/dist/esm/foundation/convert/base64url/index.d.ts +2 -0
  209. package/dist/esm/foundation/convert/base64url/index.mjs +3 -0
  210. package/dist/esm/foundation/convert/base64url/index.mjs.map +1 -0
  211. package/dist/esm/foundation/convert/index.d.ts +1 -0
  212. package/dist/esm/foundation/convert/index.mjs +3 -0
  213. package/dist/esm/foundation/convert/index.mjs.map +1 -0
  214. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.d.ts +13 -0
  215. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.mjs +17 -0
  216. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.mjs.map +1 -0
  217. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.d.ts +13 -0
  218. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.mjs +17 -0
  219. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.mjs.map +1 -0
  220. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.d.ts +13 -0
  221. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.mjs +17 -0
  222. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.mjs.map +1 -0
  223. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.d.ts +3 -1
  224. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.mjs +32 -7
  225. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.mjs.map +1 -1
  226. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.d.ts +13 -0
  227. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.mjs +17 -0
  228. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.mjs.map +1 -0
  229. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.d.ts +4 -0
  230. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.mjs +4 -0
  231. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/index.mjs.map +1 -1
  232. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.d.ts +1 -1
  233. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.d.ts +37 -0
  234. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.mjs +46 -0
  235. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.mjs.map +1 -0
  236. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.d.ts +1 -0
  237. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.mjs +1 -1
  238. package/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/types/sdk.d.ts +109 -5
  239. package/dist/esm/foundation/types/index.d.ts +3 -0
  240. package/dist/esm/foundation/types/index.mjs +2 -0
  241. package/dist/esm/foundation/types/index.mjs.map +1 -0
  242. package/dist/esm/foundation/types/inputs.d.ts +10 -0
  243. package/dist/esm/foundation/types/inputs.mjs +2 -0
  244. package/dist/esm/foundation/types/inputs.mjs.map +1 -0
  245. package/dist/esm/foundation/types/models.d.ts +11 -0
  246. package/dist/esm/foundation/types/models.mjs +2 -0
  247. package/dist/esm/foundation/types/models.mjs.map +1 -0
  248. package/dist/esm/foundation/types/outputs.d.ts +8 -0
  249. package/dist/esm/foundation/types/outputs.mjs +2 -0
  250. package/dist/esm/foundation/types/outputs.mjs.map +1 -0
  251. package/dist/esm/index.d.ts +3 -0
  252. package/dist/esm/index.mjs +3 -0
  253. package/dist/esm/index.mjs.map +1 -1
  254. package/dist/esm/providers/cognito/apis/autoSignIn.d.ts +1 -1
  255. package/dist/esm/providers/cognito/apis/autoSignIn.mjs +7 -2
  256. package/dist/esm/providers/cognito/apis/autoSignIn.mjs.map +1 -1
  257. package/dist/esm/providers/cognito/apis/confirmResetPassword.mjs +2 -0
  258. package/dist/esm/providers/cognito/apis/confirmResetPassword.mjs.map +1 -1
  259. package/dist/esm/providers/cognito/apis/confirmSignIn.mjs +2 -1
  260. package/dist/esm/providers/cognito/apis/confirmSignIn.mjs.map +1 -1
  261. package/dist/esm/providers/cognito/apis/confirmSignUp.mjs +11 -5
  262. package/dist/esm/providers/cognito/apis/confirmSignUp.mjs.map +1 -1
  263. package/dist/esm/providers/cognito/apis/confirmUserAttribute.mjs +2 -0
  264. package/dist/esm/providers/cognito/apis/confirmUserAttribute.mjs.map +1 -1
  265. package/dist/esm/providers/cognito/apis/deleteUser.mjs +3 -0
  266. package/dist/esm/providers/cognito/apis/deleteUser.mjs.map +1 -1
  267. package/dist/esm/providers/cognito/apis/deleteUserAttributes.mjs +3 -0
  268. package/dist/esm/providers/cognito/apis/deleteUserAttributes.mjs.map +1 -1
  269. package/dist/esm/providers/cognito/apis/fetchDevices.mjs +3 -0
  270. package/dist/esm/providers/cognito/apis/fetchDevices.mjs.map +1 -1
  271. package/dist/esm/providers/cognito/apis/fetchMFAPreference.mjs +3 -0
  272. package/dist/esm/providers/cognito/apis/fetchMFAPreference.mjs.map +1 -1
  273. package/dist/esm/providers/cognito/apis/forgetDevice.mjs +3 -0
  274. package/dist/esm/providers/cognito/apis/forgetDevice.mjs.map +1 -1
  275. package/dist/esm/providers/cognito/apis/internal/fetchUserAttributes.mjs +3 -0
  276. package/dist/esm/providers/cognito/apis/internal/fetchUserAttributes.mjs.map +1 -1
  277. package/dist/esm/providers/cognito/apis/rememberDevice.mjs +3 -0
  278. package/dist/esm/providers/cognito/apis/rememberDevice.mjs.map +1 -1
  279. package/dist/esm/providers/cognito/apis/resendSignUpCode.mjs +2 -0
  280. package/dist/esm/providers/cognito/apis/resendSignUpCode.mjs.map +1 -1
  281. package/dist/esm/providers/cognito/apis/resetPassword.mjs +2 -0
  282. package/dist/esm/providers/cognito/apis/resetPassword.mjs.map +1 -1
  283. package/dist/esm/providers/cognito/apis/sendUserAttributeVerificationCode.mjs +3 -0
  284. package/dist/esm/providers/cognito/apis/sendUserAttributeVerificationCode.mjs.map +1 -1
  285. package/dist/esm/providers/cognito/apis/setUpTOTP.mjs +2 -0
  286. package/dist/esm/providers/cognito/apis/setUpTOTP.mjs.map +1 -1
  287. package/dist/esm/providers/cognito/apis/signIn.mjs +9 -0
  288. package/dist/esm/providers/cognito/apis/signIn.mjs.map +1 -1
  289. package/dist/esm/providers/cognito/apis/signInWithCustomAuth.mjs +2 -1
  290. package/dist/esm/providers/cognito/apis/signInWithCustomAuth.mjs.map +1 -1
  291. package/dist/esm/providers/cognito/apis/signInWithCustomSRPAuth.mjs +2 -1
  292. package/dist/esm/providers/cognito/apis/signInWithCustomSRPAuth.mjs.map +1 -1
  293. package/dist/esm/providers/cognito/apis/signInWithSRP.mjs +5 -1
  294. package/dist/esm/providers/cognito/apis/signInWithSRP.mjs.map +1 -1
  295. package/dist/esm/providers/cognito/apis/signInWithUserAuth.d.ts +13 -0
  296. package/dist/esm/providers/cognito/apis/signInWithUserAuth.mjs +104 -0
  297. package/dist/esm/providers/cognito/apis/signInWithUserAuth.mjs.map +1 -0
  298. package/dist/esm/providers/cognito/apis/signInWithUserPassword.mjs +6 -2
  299. package/dist/esm/providers/cognito/apis/signInWithUserPassword.mjs.map +1 -1
  300. package/dist/esm/providers/cognito/apis/signOut.mjs +2 -0
  301. package/dist/esm/providers/cognito/apis/signOut.mjs.map +1 -1
  302. package/dist/esm/providers/cognito/apis/signUp.mjs +58 -50
  303. package/dist/esm/providers/cognito/apis/signUp.mjs.map +1 -1
  304. package/dist/esm/providers/cognito/apis/updateMFAPreference.mjs +3 -0
  305. package/dist/esm/providers/cognito/apis/updateMFAPreference.mjs.map +1 -1
  306. package/dist/esm/providers/cognito/apis/updatePassword.mjs +2 -0
  307. package/dist/esm/providers/cognito/apis/updatePassword.mjs.map +1 -1
  308. package/dist/esm/providers/cognito/apis/updateUserAttributes.mjs +3 -0
  309. package/dist/esm/providers/cognito/apis/updateUserAttributes.mjs.map +1 -1
  310. package/dist/esm/providers/cognito/apis/verifyTOTPSetup.mjs +2 -0
  311. package/dist/esm/providers/cognito/apis/verifyTOTPSetup.mjs.map +1 -1
  312. package/dist/esm/providers/cognito/types/index.d.ts +2 -2
  313. package/dist/esm/providers/cognito/types/inputs.d.ts +4 -0
  314. package/dist/esm/providers/cognito/types/models.d.ts +7 -1
  315. package/dist/esm/providers/cognito/types/options.d.ts +2 -1
  316. package/dist/esm/providers/cognito/types/outputs.d.ts +4 -0
  317. package/dist/esm/providers/cognito/utils/refreshAuthTokens.mjs +3 -0
  318. package/dist/esm/providers/cognito/utils/refreshAuthTokens.mjs.map +1 -1
  319. package/dist/esm/providers/cognito/utils/signInHelpers.d.ts +2 -1
  320. package/dist/esm/providers/cognito/utils/signInHelpers.mjs +56 -37
  321. package/dist/esm/providers/cognito/utils/signInHelpers.mjs.map +1 -1
  322. package/dist/esm/providers/cognito/utils/signUpHelpers.d.ts +0 -6
  323. package/dist/esm/providers/cognito/utils/signUpHelpers.mjs +5 -26
  324. package/dist/esm/providers/cognito/utils/signUpHelpers.mjs.map +1 -1
  325. package/dist/esm/types/inputs.d.ts +2 -2
  326. package/dist/esm/types/models.d.ts +9 -1
  327. package/package.json +104 -104
  328. package/src/client/apis/associateWebAuthnCredential.ts +94 -0
  329. package/src/client/apis/deleteWebAuthnCredential.ts +24 -0
  330. package/src/client/apis/index.ts +6 -0
  331. package/src/client/apis/listWebAuthnCredentials.ts +28 -0
  332. package/src/client/flows/shared/handlePasswordSRP.ts +123 -0
  333. package/src/client/flows/userAuth/handleSelectChallenge.ts +62 -0
  334. package/src/client/flows/userAuth/handleSelectChallengeWithPassword.ts +74 -0
  335. package/src/client/flows/userAuth/handleSelectChallengeWithPasswordSRP.ts +105 -0
  336. package/src/client/flows/userAuth/handleUserAuthFlow.ts +125 -0
  337. package/src/client/flows/userAuth/handleWebAuthnSignInResult.ts +130 -0
  338. package/src/client/utils/index.ts +4 -0
  339. package/src/client/utils/passkey/errors.ts +214 -0
  340. package/src/client/utils/passkey/getIsPasskeySupported.native.ts +8 -0
  341. package/src/client/utils/passkey/getIsPasskeySupported.ts +18 -0
  342. package/src/client/utils/passkey/getPasskey.native.ts +8 -0
  343. package/src/client/utils/passkey/getPasskey.ts +40 -0
  344. package/src/client/utils/passkey/index.ts +5 -0
  345. package/src/client/utils/passkey/registerPasskey.native.ts +8 -0
  346. package/src/client/utils/passkey/registerPasskey.ts +48 -0
  347. package/src/client/utils/passkey/serde.ts +151 -0
  348. package/src/client/utils/passkey/types/index.ts +61 -0
  349. package/src/client/utils/passkey/types/shared.ts +131 -0
  350. package/src/client/utils/store/autoSignInStore.ts +64 -0
  351. package/src/client/utils/store/index.ts +5 -0
  352. package/src/{providers/cognito/utils → client/utils/store}/signInStore.ts +3 -8
  353. package/src/client/utils/store/types.ts +9 -0
  354. package/src/foundation/apis/deleteWebAuthnCredential.ts +45 -0
  355. package/src/foundation/apis/index.ts +5 -0
  356. package/src/foundation/apis/listWebAuthnCredentials.ts +68 -0
  357. package/src/foundation/convert/base64url/convertArrayBufferToBase64Url.ts +18 -0
  358. package/src/foundation/convert/base64url/convertBase64UrlToArrayBuffer.ts +18 -0
  359. package/src/foundation/convert/base64url/index.ts +5 -0
  360. package/src/foundation/convert/index.ts +7 -0
  361. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createCompleteWebAuthnRegistrationClient.ts +31 -0
  362. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteWebAuthnCredentialClient.ts +31 -0
  363. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createListWebAuthnCredentialsClient.ts +31 -0
  364. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts +44 -7
  365. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/createStartWebAuthnRegistrationClient.ts +31 -0
  366. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/index.ts +4 -0
  367. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.ts +5 -1
  368. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/errors.ts +43 -0
  369. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/index.ts +2 -0
  370. package/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/sdk.ts +141 -5
  371. package/src/foundation/types/index.ts +9 -0
  372. package/src/foundation/types/inputs.ts +14 -0
  373. package/src/foundation/types/models.ts +14 -0
  374. package/src/foundation/types/outputs.ts +12 -0
  375. package/src/index.ts +14 -0
  376. package/src/providers/cognito/apis/autoSignIn.ts +6 -2
  377. package/src/providers/cognito/apis/confirmSignIn.ts +1 -1
  378. package/src/providers/cognito/apis/confirmSignUp.ts +10 -9
  379. package/src/providers/cognito/apis/signIn.ts +10 -0
  380. package/src/providers/cognito/apis/signInWithCustomAuth.ts +1 -1
  381. package/src/providers/cognito/apis/signInWithCustomSRPAuth.ts +1 -1
  382. package/src/providers/cognito/apis/signInWithSRP.ts +6 -1
  383. package/src/providers/cognito/apis/signInWithUserAuth.ts +141 -0
  384. package/src/providers/cognito/apis/signInWithUserPassword.ts +7 -2
  385. package/src/providers/cognito/apis/signUp.ts +81 -72
  386. package/src/providers/cognito/types/index.ts +2 -0
  387. package/src/providers/cognito/types/inputs.ts +5 -0
  388. package/src/providers/cognito/types/models.ts +13 -0
  389. package/src/providers/cognito/types/options.ts +7 -1
  390. package/src/providers/cognito/types/outputs.ts +5 -0
  391. package/src/providers/cognito/utils/signInHelpers.ts +77 -55
  392. package/src/providers/cognito/utils/signUpHelpers.ts +6 -31
  393. package/src/types/inputs.ts +2 -2
  394. package/src/types/models.ts +13 -0
  395. package/dist/cjs/providers/cognito/utils/signInStore.js.map +0 -1
  396. package/dist/esm/providers/cognito/utils/signInStore.mjs.map +0 -1
  397. /package/dist/cjs/{providers/cognito/utils → client/utils/store}/signInStore.js +0 -0
  398. /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,2 @@
1
+ export { listWebAuthnCredentials } from './listWebAuthnCredentials';
2
+ export { deleteWebAuthnCredential } from './deleteWebAuthnCredential';
@@ -0,0 +1,3 @@
1
+ export { listWebAuthnCredentials } from './listWebAuthnCredentials.mjs';
2
+ export { deleteWebAuthnCredential } from './deleteWebAuthnCredential.mjs';
3
+ //# sourceMappingURL=index.mjs.map
@@ -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,6 @@
1
+ /**
2
+ * Converts an ArrayBuffer to a base64url encoded string
3
+ * @param buffer - the ArrayBuffer instance of a Uint8Array
4
+ * @returns string - a base64url encoded string
5
+ */
6
+ export declare const convertArrayBufferToBase64Url: (buffer: ArrayBuffer) => string;
@@ -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,6 @@
1
+ /**
2
+ * Converts a base64url encoded string to an ArrayBuffer
3
+ * @param base64url - a base64url encoded string
4
+ * @returns ArrayBuffer
5
+ */
6
+ export declare const convertBase64UrlToArrayBuffer: (base64url: string) => ArrayBuffer;
@@ -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,2 @@
1
+ export { convertArrayBufferToBase64Url } from './convertArrayBufferToBase64Url';
2
+ export { convertBase64UrlToArrayBuffer } from './convertBase64UrlToArrayBuffer';
@@ -0,0 +1,3 @@
1
+ export { convertArrayBufferToBase64Url } from './convertArrayBufferToBase64Url.mjs';
2
+ export { convertBase64UrlToArrayBuffer } from './convertBase64UrlToArrayBuffer.mjs';
3
+ //# sourceMappingURL=index.mjs.map
@@ -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,3 @@
1
+ export { convertArrayBufferToBase64Url } from './base64url/convertArrayBufferToBase64Url.mjs';
2
+ export { convertBase64UrlToArrayBuffer } from './base64url/convertBase64UrlToArrayBuffer.mjs';
3
+ //# sourceMappingURL=index.mjs.map
@@ -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;;;;"}
@@ -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?: 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;
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;
@@ -1,17 +1,42 @@
1
1
  import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';
2
- import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';
3
- import { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';
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 { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';
6
- import '@aws-amplify/core/internals/aws-client-utils';
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 createSignUpClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('SignUp'), createUserPoolDeserializer(), {
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 { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants';\nimport { cognitoUserPoolTransferHandler } from './shared/handler';\nimport { createUserPoolDeserializer, createUserPoolSerializer, } from './shared/serde';\nexport const createSignUpClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('SignUp'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAKY,MAAC,kBAAkB,GAAG,CAAC,MAAM,KAAK,iBAAiB,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,QAAQ,CAAC,EAAE,0BAA0B,EAAE,EAAE;AAClK,IAAI,GAAG,iCAAiC;AACxC,IAAI,GAAG,MAAM;AACb,CAAC;;;;"}
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 {};
@@ -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
@@ -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;;;;"}
@@ -1,2 +1,3 @@
1
1
  export * from './sdk';
2
2
  export * from './serviceClient';
3
+ export * from './errors';
@@ -1,2 +1,2 @@
1
-
1
+ export { CompleteWebAuthnRegistrationException, DeleteWebAuthnCredentialException, ListWebAuthnCredentialsException, StartWebAuthnRegistrationException } from './errors.mjs';
2
2
  //# sourceMappingURL=index.mjs.map