@kensio/yulin 1.18.2 → 1.19.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 (559) hide show
  1. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +15 -0
  2. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
  3. package/dist/sdk/wire/sim-sdk-wire-operation.js +54 -2
  4. package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
  5. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +3 -0
  6. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -1
  7. package/dist/serve/http/api/sim-aws-api-endpoint.js +10 -2
  8. package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +6 -0
  10. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
  11. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +6 -0
  12. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
  13. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
  14. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +5 -0
  15. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  16. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts +5 -4
  17. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts.map +1 -1
  18. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +5 -4
  19. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
  20. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts +13 -0
  21. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts.map +1 -1
  22. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js +30 -1
  23. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js.map +1 -1
  24. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  25. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +9 -0
  26. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  27. package/dist/service/cognito/command/auth/auth.command.d.ts +5 -0
  28. package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
  29. package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts +22 -0
  30. package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts.map +1 -0
  31. package/dist/service/cognito/command/auth/sim-cognito-answering-user.js +25 -0
  32. package/dist/service/cognito/command/auth/sim-cognito-answering-user.js.map +1 -0
  33. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -1
  34. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +9 -0
  35. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -1
  36. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +6 -0
  37. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  38. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +23 -5
  39. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  40. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +7 -3
  41. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -1
  42. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +9 -3
  43. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
  44. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts +6 -0
  45. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts.map +1 -1
  46. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js +6 -0
  47. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js.map +1 -1
  48. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts +8 -0
  49. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts.map +1 -1
  50. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js +16 -2
  51. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js.map +1 -1
  52. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts +7 -0
  53. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts.map +1 -1
  54. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js +16 -0
  55. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js.map +1 -1
  56. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts +35 -0
  57. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts.map +1 -0
  58. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js +83 -0
  59. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js.map +1 -0
  60. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts +3 -0
  61. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts.map +1 -1
  62. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js +18 -0
  63. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js.map +1 -1
  64. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts +54 -0
  65. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts.map +1 -0
  66. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js +87 -0
  67. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js.map +1 -0
  68. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts +55 -0
  69. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts.map +1 -0
  70. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js +64 -0
  71. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js.map +1 -0
  72. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js +1 -1
  73. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js.map +1 -1
  74. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts +2 -1
  75. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
  76. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +2 -2
  77. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
  78. package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts +31 -0
  79. package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts.map +1 -0
  80. package/dist/service/cognito/command/auth/sim-cognito-password-response.js +39 -0
  81. package/dist/service/cognito/command/auth/sim-cognito-password-response.js.map +1 -0
  82. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +1 -1
  83. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  84. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -1
  85. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +7 -2
  86. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
  87. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts +44 -0
  88. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts.map +1 -0
  89. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js +62 -0
  90. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js.map +1 -0
  91. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts +30 -0
  92. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts.map +1 -0
  93. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js +36 -0
  94. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js.map +1 -0
  95. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
  96. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
  97. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
  98. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
  99. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +1 -0
  100. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
  101. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +1 -0
  102. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  103. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +22 -0
  104. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
  105. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +4 -4
  106. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +4 -4
  107. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +6 -0
  108. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
  109. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +2 -1
  110. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
  111. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts +65 -0
  112. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts.map +1 -0
  113. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js +71 -0
  114. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js.map +1 -0
  115. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +16 -7
  116. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -1
  117. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +26 -7
  118. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -1
  119. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -0
  120. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  121. package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
  122. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  123. package/dist/service/cognito/command/sim-cognito-commands.js +9 -0
  124. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  125. package/dist/service/cognito/command/sim-cognito-page.d.ts +10 -0
  126. package/dist/service/cognito/command/sim-cognito-page.d.ts.map +1 -1
  127. package/dist/service/cognito/command/sim-cognito-page.js +11 -7
  128. package/dist/service/cognito/command/sim-cognito-page.js.map +1 -1
  129. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts +49 -0
  130. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts.map +1 -0
  131. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js +88 -0
  132. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js.map +1 -0
  133. package/dist/service/cognito/command/user/web-authn.command.d.ts +87 -0
  134. package/dist/service/cognito/command/user/web-authn.command.d.ts.map +1 -0
  135. package/dist/service/cognito/command/user/web-authn.command.js +2 -0
  136. package/dist/service/cognito/command/user/web-authn.command.js.map +1 -0
  137. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +4 -0
  138. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
  139. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +4 -1
  140. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
  141. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +5 -3
  142. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -1
  143. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +5 -4
  144. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -1
  145. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -0
  146. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  147. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +9 -1
  148. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  149. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +2 -3
  150. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -1
  151. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +24 -0
  152. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -1
  153. package/dist/service/cognito/error/sim-cognito-managed-login.error.js +37 -0
  154. package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -1
  155. package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts +56 -0
  156. package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts.map +1 -0
  157. package/dist/service/cognito/error/sim-cognito-web-authn.error.js +66 -0
  158. package/dist/service/cognito/error/sim-cognito-web-authn.error.js.map +1 -0
  159. package/dist/service/cognito/index.d.ts +9 -1
  160. package/dist/service/cognito/index.d.ts.map +1 -1
  161. package/dist/service/cognito/index.js +7 -0
  162. package/dist/service/cognito/index.js.map +1 -1
  163. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +2 -2
  164. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts.map +1 -1
  165. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js +4 -2
  166. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
  167. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts +11 -0
  168. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts.map +1 -0
  169. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js +28 -0
  170. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js.map +1 -0
  171. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +4 -2
  172. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -1
  173. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +9 -3
  174. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
  175. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts +23 -0
  176. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts.map +1 -0
  177. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js +36 -0
  178. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js.map +1 -0
  179. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +13 -1
  180. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -1
  181. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +24 -2
  182. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
  183. package/dist/service/cognito/sim-cognito-user-factors.d.ts +25 -0
  184. package/dist/service/cognito/sim-cognito-user-factors.d.ts.map +1 -1
  185. package/dist/service/cognito/sim-cognito-user-factors.js +37 -0
  186. package/dist/service/cognito/sim-cognito-user-factors.js.map +1 -1
  187. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +33 -2
  188. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -1
  189. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +27 -12
  190. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -1
  191. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +5 -0
  192. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
  193. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +12 -0
  194. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
  195. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +10 -0
  196. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
  197. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -0
  198. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
  199. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts +27 -0
  200. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts.map +1 -0
  201. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js +55 -0
  202. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js.map +1 -0
  203. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +6 -0
  204. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
  205. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +6 -0
  206. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
  207. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +6 -0
  208. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  209. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +7 -0
  210. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  211. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts +16 -0
  212. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts.map +1 -0
  213. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js +32 -0
  214. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js.map +1 -0
  215. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +16 -0
  216. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -1
  217. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js +29 -0
  218. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -1
  219. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts +46 -0
  220. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts.map +1 -0
  221. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js +73 -0
  222. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js.map +1 -0
  223. package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts +1 -9
  224. package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts.map +1 -1
  225. package/dist/service/cognito/user-pool/sim-cognito-password-policy.js.map +1 -1
  226. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts +60 -0
  227. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts.map +1 -0
  228. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js +100 -0
  229. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js.map +1 -0
  230. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +11 -1
  231. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  232. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +12 -1
  233. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  234. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +48 -69
  235. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  236. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +58 -73
  237. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  238. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +13 -18
  239. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  240. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +23 -24
  241. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  242. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts +73 -0
  243. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts.map +1 -0
  244. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js +113 -0
  245. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js.map +1 -0
  246. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts +22 -0
  247. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts.map +1 -0
  248. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js +53 -0
  249. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js.map +1 -0
  250. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts +15 -0
  251. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts.map +1 -0
  252. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js +68 -0
  253. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js.map +1 -0
  254. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts +33 -0
  255. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts.map +1 -0
  256. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js +67 -0
  257. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js.map +1 -0
  258. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts +24 -0
  259. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts.map +1 -0
  260. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js +45 -0
  261. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js.map +1 -0
  262. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts +28 -0
  263. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts.map +1 -0
  264. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js +41 -0
  265. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js.map +1 -0
  266. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts +69 -0
  267. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts.map +1 -0
  268. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js +69 -0
  269. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js.map +1 -0
  270. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts +39 -0
  271. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts.map +1 -0
  272. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js +90 -0
  273. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js.map +1 -0
  274. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts +111 -0
  275. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts.map +1 -0
  276. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js +2 -0
  277. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js.map +1 -0
  278. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts +37 -0
  279. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts.map +1 -0
  280. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js +39 -0
  281. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js.map +1 -0
  282. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts +21 -0
  283. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts.map +1 -0
  284. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js +45 -0
  285. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js.map +1 -0
  286. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts +52 -0
  287. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts.map +1 -0
  288. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js +98 -0
  289. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js.map +1 -0
  290. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts +5 -4
  291. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts.map +1 -1
  292. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js +17 -4
  293. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js.map +1 -1
  294. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts +8 -1
  295. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts.map +1 -1
  296. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js +10 -3
  297. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js.map +1 -1
  298. package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js +1 -1
  299. package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js.map +1 -1
  300. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts +26 -0
  301. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts.map +1 -0
  302. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js +32 -0
  303. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js.map +1 -0
  304. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts +40 -0
  305. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts.map +1 -0
  306. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js +42 -0
  307. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js.map +1 -0
  308. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts +12 -0
  309. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts.map +1 -0
  310. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js +26 -0
  311. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js.map +1 -0
  312. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts +13 -0
  313. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts.map +1 -0
  314. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js +20 -0
  315. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js.map +1 -0
  316. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts +26 -0
  317. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts.map +1 -0
  318. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js +47 -0
  319. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js.map +1 -0
  320. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts +20 -0
  321. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts.map +1 -0
  322. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js +29 -0
  323. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js.map +1 -0
  324. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts +3 -0
  325. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts.map +1 -1
  326. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js +4 -0
  327. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js.map +1 -1
  328. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
  329. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +5 -0
  330. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
  331. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +1 -0
  332. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
  333. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +8 -0
  334. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
  335. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts +35 -0
  336. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts.map +1 -0
  337. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js +73 -0
  338. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js.map +1 -0
  339. package/dist/service/lambda/command/create-function/create-function-input.d.ts +1 -0
  340. package/dist/service/lambda/command/create-function/create-function-input.d.ts.map +1 -1
  341. package/dist/service/lambda/command/create-function/create-function-input.js +2 -0
  342. package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
  343. package/dist/service/lambda/command/create-function/create-function.command.d.ts +2 -0
  344. package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
  345. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +5 -1
  346. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
  347. package/dist/service/lambda/command/delete-function/delete-function.handler.js +5 -1
  348. package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
  349. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts +24 -0
  350. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts.map +1 -0
  351. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js +5 -0
  352. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js.map +1 -0
  353. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts +24 -0
  354. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts.map +1 -0
  355. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js +27 -0
  356. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js.map +1 -0
  357. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts +29 -0
  358. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts.map +1 -0
  359. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js +39 -0
  360. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js.map +1 -0
  361. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts +32 -0
  362. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts.map +1 -0
  363. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js +62 -0
  364. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js.map +1 -0
  365. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts +49 -0
  366. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts.map +1 -0
  367. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js +44 -0
  368. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js.map +1 -0
  369. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts +49 -0
  370. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts.map +1 -0
  371. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js +49 -0
  372. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js.map +1 -0
  373. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +4 -0
  374. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  375. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  376. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts +25 -0
  377. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts.map +1 -0
  378. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js +5 -0
  379. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js.map +1 -0
  380. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts +23 -0
  381. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts.map +1 -0
  382. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js +27 -0
  383. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js.map +1 -0
  384. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts +31 -0
  385. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts.map +1 -0
  386. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js +24 -0
  387. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js.map +1 -0
  388. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts +43 -0
  389. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts.map +1 -0
  390. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js +64 -0
  391. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js.map +1 -0
  392. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts +26 -0
  393. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts.map +1 -0
  394. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js +33 -0
  395. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js.map +1 -0
  396. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts +63 -0
  397. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts.map +1 -0
  398. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js +88 -0
  399. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js.map +1 -0
  400. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +10 -3
  401. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
  402. package/dist/service/lambda/command/invoke/invoke-dispatcher.js +16 -17
  403. package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
  404. package/dist/service/lambda/command/invoke/invoke-payload.d.ts +16 -0
  405. package/dist/service/lambda/command/invoke/invoke-payload.d.ts.map +1 -1
  406. package/dist/service/lambda/command/invoke/invoke-payload.js +14 -4
  407. package/dist/service/lambda/command/invoke/invoke-payload.js.map +1 -1
  408. package/dist/service/lambda/command/invoke/invoke.handler.d.ts +4 -0
  409. package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
  410. package/dist/service/lambda/command/invoke/invoke.handler.js +6 -2
  411. package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
  412. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts +28 -0
  413. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts.map +1 -0
  414. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js +5 -0
  415. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js.map +1 -0
  416. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts +23 -0
  417. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts.map +1 -0
  418. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js +31 -0
  419. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js.map +1 -0
  420. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts +31 -0
  421. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts.map +1 -0
  422. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js +5 -0
  423. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js.map +1 -0
  424. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts +24 -0
  425. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts.map +1 -0
  426. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js +32 -0
  427. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js.map +1 -0
  428. package/dist/service/lambda/command/sim-lambda-command.types.d.ts +5 -0
  429. package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
  430. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -1
  431. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +2 -0
  432. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -1
  433. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +6 -4
  434. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -1
  435. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts +30 -0
  436. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts.map +1 -0
  437. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js +5 -0
  438. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js.map +1 -0
  439. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts +25 -0
  440. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts.map +1 -0
  441. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js +33 -0
  442. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js.map +1 -0
  443. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts +16 -0
  444. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts.map +1 -0
  445. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js +31 -0
  446. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js.map +1 -0
  447. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts +13 -0
  448. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts.map +1 -0
  449. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js +25 -0
  450. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js.map +1 -0
  451. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts +15 -0
  452. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts.map +1 -0
  453. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js +25 -0
  454. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js.map +1 -0
  455. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts +15 -0
  456. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts.map +1 -0
  457. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js +2 -0
  458. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js.map +1 -0
  459. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts +15 -0
  460. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts.map +1 -0
  461. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js +23 -0
  462. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js.map +1 -0
  463. package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts +38 -0
  464. package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts.map +1 -0
  465. package/dist/service/lambda/destination/sim-aws-lambda-destinations.js +78 -0
  466. package/dist/service/lambda/destination/sim-aws-lambda-destinations.js.map +1 -0
  467. package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts +53 -0
  468. package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts.map +1 -0
  469. package/dist/service/lambda/destination/sim-lambda-destination-arn.js +122 -0
  470. package/dist/service/lambda/destination/sim-lambda-destination-arn.js.map +1 -0
  471. package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts +53 -0
  472. package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts.map +1 -0
  473. package/dist/service/lambda/destination/sim-lambda-destination-record.js +26 -0
  474. package/dist/service/lambda/destination/sim-lambda-destination-record.js.map +1 -0
  475. package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts +49 -0
  476. package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts.map +1 -0
  477. package/dist/service/lambda/destination/sim-lambda-destination-targets.js +25 -0
  478. package/dist/service/lambda/destination/sim-lambda-destination-targets.js.map +1 -0
  479. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts +17 -0
  480. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts.map +1 -0
  481. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js +26 -0
  482. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js.map +1 -0
  483. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts +58 -0
  484. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts.map +1 -0
  485. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js +86 -0
  486. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js.map +1 -0
  487. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts +117 -0
  488. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts.map +1 -0
  489. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js +37 -0
  490. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js.map +1 -0
  491. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts +35 -0
  492. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts.map +1 -0
  493. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js +70 -0
  494. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js.map +1 -0
  495. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +3 -0
  496. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -1
  497. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts +11 -0
  498. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts.map +1 -0
  499. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js +27 -0
  500. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js.map +1 -0
  501. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +5 -0
  502. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -1
  503. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +12 -0
  504. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -1
  505. package/dist/service/lambda/function/sim-lambda-function.d.ts +2 -0
  506. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  507. package/dist/service/lambda/function/sim-lambda-function.js +7 -14
  508. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  509. package/dist/service/lambda/function/sim-lambda-function.type.d.ts +5 -0
  510. package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -1
  511. package/dist/service/lambda/index.d.ts +2 -0
  512. package/dist/service/lambda/index.d.ts.map +1 -1
  513. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts +10 -0
  514. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts.map +1 -0
  515. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js +32 -0
  516. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js.map +1 -0
  517. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
  518. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +2 -0
  519. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
  520. package/dist/service/lambda/sim-lambda-commands.d.ts +11 -0
  521. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  522. package/dist/service/lambda/sim-lambda-commands.js +17 -1
  523. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  524. package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts +23 -0
  525. package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts.map +1 -0
  526. package/dist/service/lambda/sim-lambda-event-invoke-operations.js +31 -0
  527. package/dist/service/lambda/sim-lambda-event-invoke-operations.js.map +1 -0
  528. package/dist/service/lambda/sim-lambda-inspection.d.ts +9 -0
  529. package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -1
  530. package/dist/service/lambda/sim-lambda-inspection.js +13 -0
  531. package/dist/service/lambda/sim-lambda-inspection.js.map +1 -1
  532. package/dist/service/lambda/sim-lambda-request-options.d.ts +8 -0
  533. package/dist/service/lambda/sim-lambda-request-options.d.ts.map +1 -0
  534. package/dist/service/lambda/sim-lambda-request-options.js +2 -0
  535. package/dist/service/lambda/sim-lambda-request-options.js.map +1 -0
  536. package/dist/service/lambda/sim-lambda.d.ts +6 -7
  537. package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
  538. package/dist/service/lambda/sim-lambda.js +4 -3
  539. package/dist/service/lambda/sim-lambda.js.map +1 -1
  540. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +14 -0
  541. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -1
  542. package/dist/service/s3/serve/api/sim-s3-api-object-input.js +20 -0
  543. package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -1
  544. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +14 -0
  545. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
  546. package/dist/service/s3/serve/api/sim-s3-api-object-output.js +12 -0
  547. package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
  548. package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
  549. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +23 -1
  550. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
  551. package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -1
  552. package/dist/service/s3/serve/api/sim-s3-api-output.js +7 -1
  553. package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -1
  554. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +14 -3
  555. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -1
  556. package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -1
  557. package/dist/service/s3/serve/api/sim-s3-api-routes.js +2 -1
  558. package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -1
  559. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-challenge-responses.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-challenge-responses.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AAazC;;;;;;GAMG;AACH,MAAM,OAAO,4BAA4B;IACtB,WAAW,CAAgC;IAC3C,GAAG,CAAwB;IAE5C,YAAY,UAAkD;QAC5D,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,MAAM,CACV,aAAiC,EACjC,OAA2C;QAE3C,MAAM,SAAS,GAAG,8BAA8B,CAAC,aAAa,CAAC,CAAC;QAEhE,IAAI,SAAS,KAAK,4BAA4B,EAAE,CAAC;YAC/C,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-challenge-responses.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-challenge-responses.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,E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oUserPoolClient } from "../../user-pool/client/sim-cognito-user-pool-client.js";
3
+ import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
4
+ import type { SimCognitoUser } from "../../user-pool/user/sim-cognito-user.js";
5
+ import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
6
+ /**
7
+ * The challenge a pool answers a choice-based sign-in with when the request
8
+ * named no preference.
9
+ */
10
+ export declare const simCognitoSelectChallenge = "SELECT_CHALLENGE";
11
+ interface SimCognitoFirstFactorChallengeProperties {
12
+ readonly clock: SimClock;
13
+ }
14
+ /**
15
+ * A sign-in that has found its user and has a factor left to ask for.
16
+ */
17
+ export interface SimCognitoFirstFactorRequest {
18
+ readonly pool: SimCognitoUserPool;
19
+ readonly client: SimCognitoUserPoolClient;
20
+ readonly user: SimCognitoUser;
21
+ }
22
+ /**
23
+ * The first factor a `USER_AUTH` sign-in asks for.
24
+ *
25
+ * A request naming no `PREFERRED_CHALLENGE` is answered with
26
+ * `SELECT_CHALLENGE` and the factors this user could present, and the caller
27
+ * picks one through `RespondToAuthChallenge`. A request naming one is answered
28
+ * with that challenge directly. Either way the answer carries a session, and
29
+ * `SimCognitoFirstFactorResponse` is what completes it.
30
+ */
31
+ export declare class SimCognitoFirstFactorChallenge {
32
+ private readonly clock;
33
+ constructor(properties: SimCognitoFirstFactorChallengeProperties);
34
+ /**
35
+ * Answer with the factors this user could present, and a session to come
36
+ * back with.
37
+ */
38
+ offer(request: SimCognitoFirstFactorRequest): SimCognitoAuthenticationOutput;
39
+ /**
40
+ * Answer with one named factor, or refuse one this sign-in cannot offer.
41
+ */
42
+ issue(request: SimCognitoFirstFactorRequest, challengeName: string, field: string): SimCognitoAuthenticationOutput;
43
+ /**
44
+ * Ask for a passkey, carrying the options a browser presents one against.
45
+ *
46
+ * The options live on the session as well as in the answer, because the
47
+ * challenge inside them is what the credential coming back has to sign.
48
+ */
49
+ private presentPasskey;
50
+ private answer;
51
+ private remember;
52
+ }
53
+ export {};
54
+ //# sourceMappingURL=sim-cognito-first-factor-challenge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-first-factor-challenge.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-first-factor-challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AAKvG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAQ/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,yBAAyB,qBAAqB,CAAC;AAE5D,UAAU,wCAAwC;IAChD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,qBAAa,8BAA8B;IACzC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,wCAAwC,EAE/D;IAED;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,4BAA4B,GAAG,8BAA8B,CAO3E;IAED;;OAEG;IACH,KAAK,CACH,OAAO,EAAE,4BAA4B,EACrC,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,GACZ,8BAA8B,CAchC;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IA4BtB,OAAO,CAAC,MAAM;IAcd,OAAO,CAAC,QAAQ;CAmBjB"}
@@ -0,0 +1,87 @@
1
+ import { SimCognitoAuthSession } from "../../user-pool/auth/sim-cognito-auth-session.js";
2
+ import { requireSimCognitoRelyingParty, simCognitoUserVerification, } from "../../user-pool/mfa/sim-cognito-relying-party.js";
3
+ import { simCognitoWebAuthnRequestOptions } from "../../user-pool/user/web-authn/sim-cognito-web-authn-assertion.js";
4
+ import { requireSimCognitoAvailableChallenge, simCognitoAvailableChallenges, simCognitoWebAuthnChallenge, } from "./sim-cognito-available-challenges.js";
5
+ /**
6
+ * The challenge a pool answers a choice-based sign-in with when the request
7
+ * named no preference.
8
+ */
9
+ export const simCognitoSelectChallenge = "SELECT_CHALLENGE";
10
+ /**
11
+ * The first factor a `USER_AUTH` sign-in asks for.
12
+ *
13
+ * A request naming no `PREFERRED_CHALLENGE` is answered with
14
+ * `SELECT_CHALLENGE` and the factors this user could present, and the caller
15
+ * picks one through `RespondToAuthChallenge`. A request naming one is answered
16
+ * with that challenge directly. Either way the answer carries a session, and
17
+ * `SimCognitoFirstFactorResponse` is what completes it.
18
+ */
19
+ export class SimCognitoFirstFactorChallenge {
20
+ clock;
21
+ constructor(properties) {
22
+ this.clock = properties.clock;
23
+ }
24
+ /**
25
+ * Answer with the factors this user could present, and a session to come
26
+ * back with.
27
+ */
28
+ offer(request) {
29
+ const { pool, user } = request;
30
+ return {
31
+ ...this.answer(request, simCognitoSelectChallenge),
32
+ AvailableChallenges: [...simCognitoAvailableChallenges(pool, user)],
33
+ };
34
+ }
35
+ /**
36
+ * Answer with one named factor, or refuse one this sign-in cannot offer.
37
+ */
38
+ issue(request, challengeName, field) {
39
+ const { pool, user } = request;
40
+ requireSimCognitoAvailableChallenge(challengeName, simCognitoAvailableChallenges(pool, user), field);
41
+ if (challengeName === simCognitoWebAuthnChallenge) {
42
+ return this.presentPasskey(request);
43
+ }
44
+ return this.answer(request, challengeName);
45
+ }
46
+ /**
47
+ * Ask for a passkey, carrying the options a browser presents one against.
48
+ *
49
+ * The options live on the session as well as in the answer, because the
50
+ * challenge inside them is what the credential coming back has to sign.
51
+ */
52
+ presentPasskey(request) {
53
+ const { pool, client, user } = request;
54
+ const options = simCognitoWebAuthnRequestOptions(requireSimCognitoRelyingParty(pool), simCognitoUserVerification(pool), user.webAuthn.credentials.map((each) => each.descriptor()));
55
+ const session = this.remember(pool, client, user, simCognitoWebAuthnChallenge, options);
56
+ return {
57
+ $metadata: {},
58
+ ChallengeName: simCognitoWebAuthnChallenge,
59
+ Session: session.id,
60
+ ChallengeParameters: {
61
+ USERNAME: user.username,
62
+ CREDENTIAL_REQUEST_OPTIONS: JSON.stringify(options),
63
+ },
64
+ };
65
+ }
66
+ answer(request, challengeName) {
67
+ const { pool, client, user } = request;
68
+ return {
69
+ $metadata: {},
70
+ ChallengeName: challengeName,
71
+ Session: this.remember(pool, client, user, challengeName).id,
72
+ ChallengeParameters: { USERNAME: user.username },
73
+ };
74
+ }
75
+ remember(pool, client, user, challengeName, webAuthnOptions) {
76
+ const session = new SimCognitoAuthSession({
77
+ username: user.username,
78
+ client,
79
+ challengeName,
80
+ issuedAt: this.clock.now(),
81
+ webAuthnOptions,
82
+ });
83
+ pool.auth.addSession(session);
84
+ return session;
85
+ }
86
+ }
87
+ //# sourceMappingURL=sim-cognito-first-factor-challenge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-first-factor-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-first-factor-challenge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAEzF,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,GAC3B,MAAM,kDAAkD,CAAC;AAG1D,OAAO,EAAE,gCAAgC,EAAE,MAAM,mEAAmE,CAAC;AAErH,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,uCAAuC,CAAC;AAG/C;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAe5D;;;;;;;;GAQG;AACH,MAAM,OAAO,8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O,CACR,CAAC;QAEF,OAAO;YACL,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,2BAA2B;YAC1C,OAAO,EAAE,OAAO,CAAC,EAAE;YACnB,mBAAmB,EAAE;gBACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,0BAA0B,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;aACpD;SACF,CAAC;IACJ,CAAC;IAEO,MAAM,CACZ,OAAqC,EACrC,aAAqB;QAErB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;QAEvC,OAAO;YACL,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,aAAa;YAC5B,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC,EAAE;YAC5D,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;SACjD,CAAC;IACJ,CAAC;IAEO,QAAQ,CACd,IAAwB,EACxB,MAAgC,EAChC,IAAoB,EACpB,aAAqB,EACrB,eAAkD;QAElD,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC;YACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM;YACN,aAAa;YACb,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;YAC1B,eAAe;SAChB,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE9B,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
@@ -0,0 +1,55 @@
1
+ import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
+ import type { SimCognitoAuthResolver } from "./sim-cognito-auth-resolver.js";
3
+ import { type SimCognitoFirstFactorChallenge } from "./sim-cognito-first-factor-challenge.js";
4
+ import type { SimCognitoChallengeResponseRequest } from "./sim-cognito-new-password-response.js";
5
+ import type { SimCognitoPasswordResponse } from "./sim-cognito-password-response.js";
6
+ import type { SimCognitoWebAuthnResponse } from "./sim-cognito-web-authn-response.js";
7
+ import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
8
+ interface SimCognitoFirstFactorResponseProperties {
9
+ readonly authResolver: SimCognitoAuthResolver;
10
+ readonly challenge: SimCognitoFirstFactorChallenge;
11
+ readonly password: SimCognitoPasswordResponse;
12
+ readonly webAuthn: SimCognitoWebAuthnResponse;
13
+ readonly clock: SimClock;
14
+ }
15
+ /**
16
+ * A response to one of the challenges a `USER_AUTH` sign-in issues.
17
+ */
18
+ export interface SimCognitoFirstFactorResponseRequest extends SimCognitoChallengeResponseRequest {
19
+ readonly challengeName: string;
20
+ }
21
+ /**
22
+ * Answering the first factor of a choice-based sign-in.
23
+ *
24
+ * `SELECT_CHALLENGE` is answered with an `ANSWER` naming the factor the user
25
+ * picked. Picking `WEB_AUTHN` is answered with that challenge and the options
26
+ * a passkey is presented against, and picking `PASSWORD` carries the password
27
+ * in the same request and finishes the sign-in, which is how the Cognito
28
+ * documentation shows both.
29
+ *
30
+ * `PASSWORD` and `WEB_AUTHN` are what a sign-in that named a
31
+ * `PREFERRED_CHALLENGE` is answered with, and each is completed here.
32
+ *
33
+ * A session is spent when the challenge it carries has been got past, and a
34
+ * refusal leaves it standing, so a wrong password or a passkey the person
35
+ * cancelled can be answered again. That is what real Cognito does with the
36
+ * MFA challenges, and this holds the first factors to the same rule.
37
+ */
38
+ export declare class SimCognitoFirstFactorResponse {
39
+ private readonly authResolver;
40
+ private readonly challenge;
41
+ private readonly password;
42
+ private readonly webAuthn;
43
+ private readonly clock;
44
+ constructor(properties: SimCognitoFirstFactorResponseProperties);
45
+ /**
46
+ * Answer whichever of the three challenges the request names.
47
+ */
48
+ handle(request: SimCognitoFirstFactorResponseRequest): Promise<SimCognitoAuthenticationOutput>;
49
+ /**
50
+ * Act on the factor a `SELECT_CHALLENGE` response picked.
51
+ */
52
+ private chosen;
53
+ }
54
+ export {};
55
+ //# sourceMappingURL=sim-cognito-first-factor-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-first-factor-response.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-first-factor-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAQpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,uCAAuC;IAC/C,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,8BAA8B,CAAC;IACnD,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAC9C,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,oCAAqC,SAAQ,kCAAkC;IAC9F,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyB;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,uCAAuC,EAM9D;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,oCAAoC,GAC5C,OAAO,CAAC,8BAA8B,CAAC,CAgBzC;IAED;;OAEG;YACW,MAAM;CAyBrB"}
@@ -0,0 +1,64 @@
1
+ import { requireSimCognitoAnsweringUser } from "./sim-cognito-answering-user.js";
2
+ import { simCognitoPasswordChallenge, simCognitoWebAuthnChallenge, } from "./sim-cognito-available-challenges.js";
3
+ import { simCognitoSelectChallenge, } from "./sim-cognito-first-factor-challenge.js";
4
+ /**
5
+ * Answering the first factor of a choice-based sign-in.
6
+ *
7
+ * `SELECT_CHALLENGE` is answered with an `ANSWER` naming the factor the user
8
+ * picked. Picking `WEB_AUTHN` is answered with that challenge and the options
9
+ * a passkey is presented against, and picking `PASSWORD` carries the password
10
+ * in the same request and finishes the sign-in, which is how the Cognito
11
+ * documentation shows both.
12
+ *
13
+ * `PASSWORD` and `WEB_AUTHN` are what a sign-in that named a
14
+ * `PREFERRED_CHALLENGE` is answered with, and each is completed here.
15
+ *
16
+ * A session is spent when the challenge it carries has been got past, and a
17
+ * refusal leaves it standing, so a wrong password or a passkey the person
18
+ * cancelled can be answered again. That is what real Cognito does with the
19
+ * MFA challenges, and this holds the first factors to the same rule.
20
+ */
21
+ export class SimCognitoFirstFactorResponse {
22
+ authResolver;
23
+ challenge;
24
+ password;
25
+ webAuthn;
26
+ clock;
27
+ constructor(properties) {
28
+ this.authResolver = properties.authResolver;
29
+ this.challenge = properties.challenge;
30
+ this.password = properties.password;
31
+ this.webAuthn = properties.webAuthn;
32
+ this.clock = properties.clock;
33
+ }
34
+ /**
35
+ * Answer whichever of the three challenges the request names.
36
+ */
37
+ async handle(request) {
38
+ const { session, user } = requireSimCognitoAnsweringUser(this.authResolver, request, this.clock.now());
39
+ if (request.challengeName === simCognitoWebAuthnChallenge) {
40
+ return await this.webAuthn.complete(request, session, user);
41
+ }
42
+ if (request.challengeName === simCognitoSelectChallenge) {
43
+ return await this.chosen(request, session, user);
44
+ }
45
+ return await this.password.complete(request, session, user);
46
+ }
47
+ /**
48
+ * Act on the factor a `SELECT_CHALLENGE` response picked.
49
+ */
50
+ async chosen(request, session, user) {
51
+ const answer = request.parameters.require("ANSWER");
52
+ if (answer === simCognitoPasswordChallenge) {
53
+ return await this.password.complete(request, session, user);
54
+ }
55
+ const { pool, client } = request;
56
+ const issued = this.challenge.issue({ pool, client, user }, answer, "ANSWER");
57
+ // The choice is spent once it has been made, and the factor it picked is
58
+ // what the next session is for. A choice this sign-in could not offer
59
+ // leaves it standing, so the caller can pick again.
60
+ pool.auth.removeSession(session);
61
+ return issued;
62
+ }
63
+ }
64
+ //# sourceMappingURL=sim-cognito-first-factor-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-first-factor-response.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-first-factor-response.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,yBAAyB,GAE1B,MAAM,yCAAyC,CAAC;AAqBjD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,6BAA6B;IACvB,YAAY,CAAyB;IACrC,SAAS,CAAiC;IAC1C,QAAQ,CAA6B;IACrC,QAAQ,CAA6B;IACrC,KAAK,CAAW;IAEjC,YAAY,UAAmD;QAC7D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IAC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C,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -58,7 +58,7 @@ export class SimCognitoMfaChallenge {
58
58
  const code = factor === simCognitoSmsMfa ? simCognitoMfaCode() : undefined;
59
59
  const session = new SimCognitoAuthSession({
60
60
  username: user.username,
61
- clientId: client.id,
61
+ client,
62
62
  challengeName: factor,
63
63
  code,
64
64
  issuedAt: this.clock.now(),
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-mfa-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-mfa-challenge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAIzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAEvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EACL,2BAA2B,EAC3B,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AAmBnC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,sBAAsB;IAChB,SAAS,CAA0B;IACnC,KAAK,CAAW;IAEjC,YAAY,UAA4C;QACtD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACK,MAAM,CAAC,kBAAkB,CAC/B,MAAc,EACd,IAAoB;QAEpB,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAE7D,IAAI,MAAM,KAAK,gBAAgB,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC7D,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO;YACL,6BAA6B,EAAE,KAAK;YACpC,yBAAyB,EAAE,2BAA2B,CAAC,WAAW,CAAC;SACpE,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAQ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AAC,CAAC,CAAC,SAAS,CAAC;QAC3E,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC;YACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM;YACN,aAAa,EAAE,MAAM;YACrB,IAAI;YACJ,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE9B,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBACxB,IAAI;gBACJ,MAAM;gBACN,IAAI;gBACJ,QAAQ,EAAE,gBAAgB;gBAC1B,IAAI;gBACJ,cAAc,EAAE,OAAO,CAAC,cAAc;aACvC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,MAAM;YACrB,OAAO,EAAE,OAAO,CAAC,EAAE;YACnB,mBAAmB,EAAE;gBACnB,eAAe,EAAE,IAAI,CAAC,QAAQ;gBAC9B,GAAG,sBAAsB,CAAC,kBAAkB,CAAC,MAAM,EAAE,IAAI,CAAC;aAC3D;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -1,4 +1,5 @@
1
1
  import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
+ import type { SimCognitoUserPoolClient } from "../../user-pool/client/sim-cognito-user-pool-client.js";
2
3
  import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
3
4
  import type { SimCognitoUser } from "../../user-pool/user/sim-cognito-user.js";
4
5
  import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
@@ -7,7 +8,7 @@ interface SimCognitoNewPasswordChallengeProperties {
7
8
  }
8
9
  interface SimCognitoChallengeProperties {
9
10
  readonly pool: SimCognitoUserPool;
10
- readonly clientId: string;
11
+ readonly client: SimCognitoUserPoolClient;
11
12
  readonly user: SimCognitoUser;
12
13
  }
13
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-new-password-challenge.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-new-password-challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,wCAAwC;IAChD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED,UAAU,6BAA6B;IACrC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CAC/B;AAED;;;;;GAKG;AACH,qBAAa,8BAA8B;IACzC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,wCAAwC,EAE/D;IAED;;OAEG;IACH,KAAK,CACH,UAAU,EAAE,6BAA6B,GACxC,8BAA8B,CAqBhC;CACF"}
1
+ {"version":3,"file":"sim-cognito-new-password-challenge.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-new-password-challenge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AACvG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,wCAAwC;IAChD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED,UAAU,6BAA6B;IACrC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;CAC/B;AAED;;;;;GAKG;AACH,qBAAa,8BAA8B;IACzC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,wCAAwC,EAE/D;IAED;;OAEG;IACH,KAAK,CACH,UAAU,EAAE,6BAA6B,GACxC,8BAA8B,CAqBhC;CACF"}
@@ -15,10 +15,10 @@ export class SimCognitoNewPasswordChallenge {
15
15
  * Answer with `NEW_PASSWORD_REQUIRED` and a session.
16
16
  */
17
17
  issue(properties) {
18
- const { pool, clientId, user } = properties;
18
+ const { pool, client, user } = properties;
19
19
  const session = new SimCognitoAuthSession({
20
20
  username: user.username,
21
- clientId,
21
+ client,
22
22
  challengeName: newPasswordRequiredChallenge,
23
23
  issuedAt: this.clock.now(),
24
24
  });
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-new-password-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-new-password-challenge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAGzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAa/E;;;;;GAKG;AACH,MAAM,OAAO,8BAA8B;IACxB,KAAK,CAAW;IAEjC,YAAY,UAAoD;QAC9D,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CACH,UAAyC;QAEzC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;QAC5C,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC;YACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ;YACR,aAAa,EAAE,4BAA4B;YAC3C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE9B,OAAO;YACL,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,4BAA4B;YAC3C,OAAO,EAAE,OAAO,CAAC,EAAE;YACnB,mBAAmB,EAAE;gBACnB,eAAe,EAAE,IAAI,CAAC,QAAQ;gBAC9B,kBAAkB,EAAE,IAAI;gBACxB,cAAc,EAAE,IAAI;aACrB;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-new-password-challenge.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-new-password-challenge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAIzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAa/E;;;;;GAKG;AACH,MAAM,OAAO,8BAA8B;IACxB,KAAK,CAAW;IAEjC,YAAY,UAAoD;QAC9D,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CACH,UAAyC;QAEzC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;QAC1C,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC;YACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM;YACN,aAAa,EAAE,4BAA4B;YAC3C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE9B,OAAO;YACL,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,4BAA4B;YAC3C,OAAO,EAAE,OAAO,CAAC,EAAE;YACnB,mBAAmB,EAAE;gBACnB,eAAe,EAAE,IAAI,CAAC,QAAQ;gBAC9B,kBAAkB,EAAE,IAAI;gBACxB,cAAc,EAAE,IAAI;aACrB;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,31 @@
1
+ import type { SimCognitoAuthSession } from "../../user-pool/auth/sim-cognito-auth-session.js";
2
+ import type { SimCognitoUser } from "../../user-pool/user/sim-cognito-user.js";
3
+ import type { SimCognitoFirstFactorResponseRequest } from "./sim-cognito-first-factor-response.js";
4
+ import type { SimCognitoSignInCompletion } from "./sim-cognito-sign-in-completion.js";
5
+ import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
6
+ interface SimCognitoPasswordResponseProperties {
7
+ readonly completion: SimCognitoSignInCompletion;
8
+ }
9
+ /**
10
+ * Signing in with the password a `USER_AUTH` challenge asked for.
11
+ *
12
+ * This is the same password check `USER_PASSWORD_AUTH` makes, reached the
13
+ * other way. A `PASSWORD` challenge is answered with it, and so is a
14
+ * `SELECT_CHALLENGE` whose `ANSWER` picked `PASSWORD`, which is the shape the
15
+ * Cognito documentation gives for choosing a password.
16
+ *
17
+ * A user that has registered a second factor is challenged for it afterwards,
18
+ * as it is on every other password sign-in. A wrong password leaves the
19
+ * challenge session standing, so the person can type it again.
20
+ */
21
+ export declare class SimCognitoPasswordResponse {
22
+ private readonly completion;
23
+ constructor(properties: SimCognitoPasswordResponseProperties);
24
+ /**
25
+ * Check the password and finish, or answer with the second factor the user
26
+ * still owes.
27
+ */
28
+ complete(request: SimCognitoFirstFactorResponseRequest, session: SimCognitoAuthSession, user: SimCognitoUser): Promise<SimCognitoAuthenticationOutput>;
29
+ }
30
+ export {};
31
+ //# sourceMappingURL=sim-cognito-password-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-password-response.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,oCAAoC;IAC5C,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;CACjD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA6B;IAExD,YAAY,UAAU,EAAE,oCAAoC,EAE3D;IAED;;;OAGG;IACG,QAAQ,CACZ,OAAO,EAAE,oCAAoC,EAC7C,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,8BAA8B,CAAC,CAezC;CACF"}
@@ -0,0 +1,39 @@
1
+ import { requireSimCognitoConfirmed, requireSimCognitoPasswordSet, requireSimCognitoSignIn, } from "../../user-pool/auth/sim-cognito-sign-in.js";
2
+ import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
3
+ /**
4
+ * Signing in with the password a `USER_AUTH` challenge asked for.
5
+ *
6
+ * This is the same password check `USER_PASSWORD_AUTH` makes, reached the
7
+ * other way. A `PASSWORD` challenge is answered with it, and so is a
8
+ * `SELECT_CHALLENGE` whose `ANSWER` picked `PASSWORD`, which is the shape the
9
+ * Cognito documentation gives for choosing a password.
10
+ *
11
+ * A user that has registered a second factor is challenged for it afterwards,
12
+ * as it is on every other password sign-in. A wrong password leaves the
13
+ * challenge session standing, so the person can type it again.
14
+ */
15
+ export class SimCognitoPasswordResponse {
16
+ completion;
17
+ constructor(properties) {
18
+ this.completion = properties.completion;
19
+ }
20
+ /**
21
+ * Check the password and finish, or answer with the second factor the user
22
+ * still owes.
23
+ */
24
+ async complete(request, session, user) {
25
+ requireSimCognitoSignIn(user, request.parameters.require("PASSWORD"));
26
+ requireSimCognitoConfirmed(user);
27
+ requireSimCognitoPasswordSet(user);
28
+ request.pool.auth.removeSession(session);
29
+ return await this.completion.challengeOrComplete({
30
+ pool: request.pool,
31
+ client: request.client,
32
+ user,
33
+ occasion: SimCognitoTriggerOccasion.tokenGeneration,
34
+ tokenClientMetadata: request.clientMetadata,
35
+ clientMetadata: request.clientMetadata,
36
+ });
37
+ }
38
+ }
39
+ //# sourceMappingURL=sim-cognito-password-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-password-response.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-response.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAUpG;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,UAAU,CAA6B;IAExD,YAAY,UAAgD;QAC1D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CACZ,OAA6C,EAC7C,OAA8B,EAC9B,IAAoB;QAEpB,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACtE,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACjC,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAEnC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;YAC/C,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,IAAI;YACJ,QAAQ,EAAE,yBAAyB,CAAC,eAAe;YACnD,mBAAmB,EAAE,OAAO,CAAC,cAAc;YAC3C,cAAc,EAAE,OAAO,CAAC,cAAc;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -47,7 +47,7 @@ export class SimCognitoPasswordSignIn {
47
47
  requireSimCognitoConfirmed(user);
48
48
  requireSimCognitoPasswordSet(user);
49
49
  if (user.status.mustChangePassword) {
50
- return this.challenge.issue({ pool, clientId: client.id, user });
50
+ return this.challenge.issue({ pool, client, user });
51
51
  }
52
52
  // A user that has registered a second factor is challenged for it here
53
53
  // rather than answered with tokens, which is what the pool's
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-password-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AA8BpG;;;;;;;;GAQG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAyB;IACrC,UAAU,CAA6B;IACvC,SAAS,CAAiC;IAC1C,QAAQ,CAA6B;IAEtD,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QAEjE,MAAM,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YACpC,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;SACf,CAAC,CAAC;QAEH,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QAC9D,0BAA0B,CAAC,IAAI,CAAC,CAAC;QACjC,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;YACnC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACnE,CAAC;QAED,uEAAuE;QACvE,6DAA6D;QAC7D,4BAA4B;QAC5B,EAAE;QACF,yEAAyE;QACzE,uEAAuE;QACvE,8CAA8C;QAC9C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;YAC/C,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,QAAQ,EAAE,yBAAyB,CAAC,eAAe;YACnD,cAAc;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-password-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-password-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AA8BpG;;;;;;;;GA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C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;YAC/C,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,QAAQ,EAAE,yBAAyB,CAAC,eAAe;YACnD,cAAc;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-auth-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gCAAgC,EAChC,0CAA0C,EAC1C,2BAA2B,EAC3B,qCAAqC,EACtC,MAAM,mBAAmB,CAAC;AAU3B;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IACF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAE5B;IACF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;IAC7E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAEvB;IAEF,OAAO,CAAC,MAAM,CAAC,YAAY;IAW3B;;OAEG;IACH,qBAAqB,CAAC,KAAK,EAAE,gCAAgC,GAAG,IAAI,CAYnE;IAED;;;OAGG;IACH,qBAAqB,CACnB,KAAK,EAAE,0CAA0C,GAChD,IAAI,CAON;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,2BAA2B,GAAG,IAAI,CAYzD;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,qCAAqC,GAAG,IAAI,CAOnE;CACF"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-auth-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gCAAgC,EAChC,0CAA0C,EAC1C,2BAA2B,EAC3B,qCAAqC,EACtC,MAAM,mBAAmB,CAAC;AAU3B;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gCAAgC;IAC3C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IACF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAE5B;IACF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;IAC7E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAEvB;IAEF,OAAO,CAAC,MAAM,CAAC,YAAY;IAW3B;;OAEG;IACH,qBAAqB,CAAC,KAAK,EAAE,gCAAgC,GAAG,IAAI,CAcnE;IAED;;;OAGG;IACH,qBAAqB,CACnB,KAAK,EAAE,0CAA0C,GAChD,IAAI,CAON;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,2BAA2B,GAAG,IAAI,CAezD;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,qCAAqC,GAAG,IAAI,CAOnE;CACF"}
@@ -29,7 +29,9 @@ export class SimCognitoUnsimulatedAuthOptions {
29
29
  refuseInAdminInitiate(input) {
30
30
  SimCognitoUnsimulatedAuthOptions.refuseShared(this.adminInitiation, input);
31
31
  this.adminInitiation.refuse("ContextData", input.ContextData, "threat protection, which reads the caller's device and address");
32
- this.adminInitiation.refuse("Session", input.Session, "continuing a USER_AUTH flow that offered a choice of factors");
32
+ this.adminInitiation.refuse("Session", input.Session, "carrying a sign-in already part way through into a fresh " +
33
+ "AdminInitiateAuth, where a challenge this simulation issued is " +
34
+ "answered through AdminRespondToAuthChallenge");
33
35
  }
34
36
  /**
35
37
  * Refuse an `AdminRespondToAuthChallenge` request this simulation cannot
@@ -45,7 +47,10 @@ export class SimCognitoUnsimulatedAuthOptions {
45
47
  refuseInInitiate(input) {
46
48
  SimCognitoUnsimulatedAuthOptions.refuseShared(this.initiation, input);
47
49
  this.initiation.refuse("UserContextData", input.UserContextData, "threat protection, which reads the caller's device and address");
48
- this.initiation.refuse("Session", input.Session, "signing in directly from ConfirmSignUp");
50
+ this.initiation.refuse("Session", input.Session, "signing in directly from ConfirmSignUp, and carrying a sign-in " +
51
+ "already part way through into a fresh InitiateAuth, where a " +
52
+ "challenge this simulation issued is answered through " +
53
+ "RespondToAuthChallenge");
49
54
  }
50
55
  /**
51
56
  * Refuse a `RespondToAuthChallenge` request this simulation cannot honour.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-auth-options.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAgBjF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,gCAAgC;IAC1B,eAAe,GAAG,IAAI,0BAA0B,CAC/D,mBAAmB,CACpB,CAAC;IACe,aAAa,GAAG,IAAI,0BAA0B,CAC7D,6BAA6B,CAC9B,CAAC;IACe,UAAU,GAAG,IAAI,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAC5D,QAAQ,GAAG,IAAI,0BAA0B,CACxD,wBAAwB,CACzB,CAAC;IAEM,MAAM,CAAC,YAAY,CACzB,WAAuC,EACvC,KAAqC;QAErC,WAAW,CAAC,MAAM,CAChB,mBAAmB,EACnB,KAAK,CAAC,iBAAiB,EACvB,oBAAoB,CACrB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,qBAAqB,CAAC,KAAuC;QAC3D,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QAC3E,IAAI,CAAC,eAAe,CAAC,MAAM,CACzB,aAAa,EACb,KAAK,CAAC,WAAW,EACjB,gEAAgE,CACjE,CAAC;QACF,IAAI,CAAC,eAAe,CAAC,MAAM,CACzB,SAAS,EACT,KAAK,CAAC,OAAO,EACb,8DAA8D,CAC/D,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,qBAAqB,CACnB,KAAiD;QAEjD,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACzE,IAAI,CAAC,aAAa,CAAC,MAAM,CACvB,aAAa,EACb,KAAK,CAAC,WAAW,EACjB,gEAAgE,CACjE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gBAAgB,CAAC,KAAkC;QACjD,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;QACtE,IAAI,CAAC,UAAU,CAAC,MAAM,CACpB,iBAAiB,EACjB,KAAK,CAAC,eAAe,EACrB,gEAAgE,CACjE,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,MAAM,CACpB,SAAS,EACT,KAAK,CAAC,OAAO,EACb,wCAAwC,CACzC,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gBAAgB,CAAC,KAA4C;QAC3D,gCAAgC,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACpE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAClB,iBAAiB,EACjB,KAAK,CAAC,eAAe,EACrB,gEAAgE,CACjE,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-auth-options.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAgBjF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,gCAAgC;IAC1B,eAAe,GAAG,IAAI,0BAA0B,CAC/D,mBAAmB,CACpB,CAAC;IACe,aAAa,GAAG,IAAI,0BAA0B,CAC7D,6BAA6B,CAC9B,CAAC;IACe,UAAU,GAAG,IAAI,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAC5D,QAAQ,GAAG,IAAI,0BAA0B,CACxD,wBAAwB,CACzB,CAAC;IAEM,MAAM,CAAC,YAAY,CACzB,WAAuC,EACvC,KAAqC;QAErC,WAAW,CAAC,MAAM,CAChB,mBAAmB,EACnB,KAAK,CAAC,iBAAiB,EACvB,oBAAo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{ SimCognitoUserPoolTriggers } from "../../user-pool/trigger/sim-cognito-user-pool-triggers.js";
2
+ import type { SimCognitoAuthResolver } from "./sim-cognito-auth-resolver.js";
3
+ import type { SimCognitoFirstFactorChallenge } from "./sim-cognito-first-factor-challenge.js";
4
+ import type { SimCognitoPasswordSignIn, SimCognitoAuthRequest } from "./sim-cognito-password-sign-in.js";
5
+ import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
6
+ interface SimCognitoUserAuthSignInProperties {
7
+ readonly authResolver: SimCognitoAuthResolver;
8
+ readonly challenge: SimCognitoFirstFactorChallenge;
9
+ readonly passwordSignIn: SimCognitoPasswordSignIn;
10
+ readonly triggers: SimCognitoUserPoolTriggers;
11
+ }
12
+ /**
13
+ * Choice-based sign-in, which is the `USER_AUTH` flow.
14
+ *
15
+ * The user says who it is and the pool answers with the factors it could sign
16
+ * in with, drawn from the pool's `AllowedFirstAuthFactors` and narrowed to the
17
+ * ones this user has. A request naming a `PREFERRED_CHALLENGE` is answered
18
+ * with that factor's challenge instead, and one carrying a `PASSWORD` outright
19
+ * is signed in there and then, which is what real Cognito does with all three.
20
+ * The pool's policy is what settles all three: a pool that allows no password
21
+ * first refuses one however the request sent it.
22
+ *
23
+ * This is the flow a passkey is presented through. It is also another way in
24
+ * for a password, and `USER_PASSWORD_AUTH` goes on being the direct one.
25
+ */
26
+ export declare class SimCognitoUserAuthSignIn {
27
+ private readonly authResolver;
28
+ private readonly challenge;
29
+ private readonly passwordSignIn;
30
+ private readonly triggers;
31
+ constructor(properties: SimCognitoUserAuthSignInProperties);
32
+ /**
33
+ * Offer this user its factors, ask for the one it preferred, or sign it in
34
+ * with the password it already sent.
35
+ *
36
+ * `PreAuthentication` runs once the user is known, as it does for a password
37
+ * sign-in. A request carrying a password reaches it through the password
38
+ * sign-in body, which runs the trigger itself, so this one runs the trigger
39
+ * only where it is answering with a challenge.
40
+ */
41
+ handle(request: SimCognitoAuthRequest): Promise<SimCognitoAuthenticationOutput>;
42
+ }
43
+ export {};
44
+ //# sourceMappingURL=sim-cognito-user-auth-sign-in.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-user-auth-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-user-auth-sign-in.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AAE5G,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,8BAA8B,CAAC;IACnD,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;IAClD,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;CAC/C;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyB;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAC3D,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA2B;IAC1D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD,YAAY,UAAU,EAAE,kCAAkC,EAKzD;IAED;;;;;;;;OAQG;IACG,MAAM,CACV,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,8BAA8B,CAAC,CA8BzC;CACF"}
@@ -0,0 +1,62 @@
1
+ import { requireSimCognitoReadyToSignIn, requireSimCognitoSignInUser, } from "../../user-pool/auth/sim-cognito-sign-in.js";
2
+ import { requireSimCognitoAllowedPassword } from "./sim-cognito-available-challenges.js";
3
+ /**
4
+ * Choice-based sign-in, which is the `USER_AUTH` flow.
5
+ *
6
+ * The user says who it is and the pool answers with the factors it could sign
7
+ * in with, drawn from the pool's `AllowedFirstAuthFactors` and narrowed to the
8
+ * ones this user has. A request naming a `PREFERRED_CHALLENGE` is answered
9
+ * with that factor's challenge instead, and one carrying a `PASSWORD` outright
10
+ * is signed in there and then, which is what real Cognito does with all three.
11
+ * The pool's policy is what settles all three: a pool that allows no password
12
+ * first refuses one however the request sent it.
13
+ *
14
+ * This is the flow a passkey is presented through. It is also another way in
15
+ * for a password, and `USER_PASSWORD_AUTH` goes on being the direct one.
16
+ */
17
+ export class SimCognitoUserAuthSignIn {
18
+ authResolver;
19
+ challenge;
20
+ passwordSignIn;
21
+ triggers;
22
+ constructor(properties) {
23
+ this.authResolver = properties.authResolver;
24
+ this.challenge = properties.challenge;
25
+ this.passwordSignIn = properties.passwordSignIn;
26
+ this.triggers = properties.triggers;
27
+ }
28
+ /**
29
+ * Offer this user its factors, ask for the one it preferred, or sign it in
30
+ * with the password it already sent.
31
+ *
32
+ * `PreAuthentication` runs once the user is known, as it does for a password
33
+ * sign-in. A request carrying a password reaches it through the password
34
+ * sign-in body, which runs the trigger itself, so this one runs the trigger
35
+ * only where it is answering with a challenge.
36
+ */
37
+ async handle(request) {
38
+ const { pool, client, parameters, clientMetadata } = request;
39
+ if (parameters.find("PASSWORD") !== undefined) {
40
+ // A password sent outright skips the choice, so the pool's policy is
41
+ // read here rather than out of the factors the choice would have
42
+ // offered.
43
+ requireSimCognitoAllowedPassword(pool);
44
+ return await this.passwordSignIn.handle(request);
45
+ }
46
+ const username = this.authResolver.username(client, parameters);
47
+ const user = requireSimCognitoSignInUser(pool, client, username);
48
+ await this.triggers.preAuthentication({
49
+ pool,
50
+ client,
51
+ user,
52
+ clientMetadata,
53
+ });
54
+ requireSimCognitoReadyToSignIn(user);
55
+ const preferred = parameters.find("PREFERRED_CHALLENGE");
56
+ const offer = { pool, client, user };
57
+ return preferred === undefined
58
+ ? this.challenge.offer(offer)
59
+ : this.challenge.issue(offer, preferred, "PREFERRED_CHALLENGE");
60
+ }
61
+ }
62
+ //# sourceMappingURL=sim-cognito-user-auth-sign-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-user-auth-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-user-auth-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAgBzF;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,wBAAwB;IAClB,YAAY,CAAyB;IACrC,SAAS,CAAiC;IAC1C,cAAc,CAA2B;IACzC,QAAQ,CAA6B;IAEtD,YAAY,UAA8C;QACxD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;QAChD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAE7D,IAAI,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;YAC9C,qEAAqE;YACrE,iEAAiE;YACjE,WAAW;YACX,gCAAgC,CAAC,IAAI,CAAC,CAAC;YAEvC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACnD,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC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