@kensio/yulin 1.18.1 → 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 (799) 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 +15 -0
  15. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  16. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts +27 -0
  17. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts.map +1 -0
  18. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js +35 -0
  19. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js.map +1 -0
  20. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts +5 -4
  21. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts.map +1 -1
  22. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +5 -4
  23. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
  24. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts +13 -0
  25. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts.map +1 -1
  26. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js +30 -1
  27. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js.map +1 -1
  28. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  29. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +9 -0
  30. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  31. package/dist/service/cognito/command/auth/auth.command.d.ts +36 -0
  32. package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
  33. package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts +22 -0
  34. package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts.map +1 -0
  35. package/dist/service/cognito/command/auth/sim-cognito-answering-user.js +25 -0
  36. package/dist/service/cognito/command/auth/sim-cognito-answering-user.js.map +1 -0
  37. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -1
  38. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +9 -0
  39. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -1
  40. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +8 -0
  41. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  42. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +35 -5
  43. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  44. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +7 -3
  45. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -1
  46. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +9 -3
  47. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
  48. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts +6 -0
  49. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts.map +1 -1
  50. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js +6 -0
  51. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js.map +1 -1
  52. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts +8 -0
  53. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts.map +1 -1
  54. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js +16 -2
  55. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js.map +1 -1
  56. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts +7 -0
  57. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts.map +1 -1
  58. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js +16 -0
  59. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js.map +1 -1
  60. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts +35 -0
  61. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts.map +1 -0
  62. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js +83 -0
  63. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js.map +1 -0
  64. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts +3 -0
  65. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts.map +1 -1
  66. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js +18 -0
  67. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js.map +1 -1
  68. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts +54 -0
  69. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts.map +1 -0
  70. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js +87 -0
  71. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js.map +1 -0
  72. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts +55 -0
  73. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts.map +1 -0
  74. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js +64 -0
  75. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js.map +1 -0
  76. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts +35 -0
  77. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts.map +1 -0
  78. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js +51 -0
  79. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js.map +1 -0
  80. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js +1 -1
  81. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js.map +1 -1
  82. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts +2 -1
  83. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
  84. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +2 -2
  85. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
  86. package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts +31 -0
  87. package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts.map +1 -0
  88. package/dist/service/cognito/command/auth/sim-cognito-password-response.js +39 -0
  89. package/dist/service/cognito/command/auth/sim-cognito-password-response.js.map +1 -0
  90. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +1 -1
  91. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  92. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts +3 -8
  93. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -1
  94. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +24 -17
  95. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
  96. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts +56 -0
  97. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts.map +1 -0
  98. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js +50 -0
  99. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js.map +1 -0
  100. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -1
  101. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +7 -2
  102. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
  103. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts +44 -0
  104. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts.map +1 -0
  105. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js +62 -0
  106. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js.map +1 -0
  107. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts +30 -0
  108. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts.map +1 -0
  109. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js +36 -0
  110. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js.map +1 -0
  111. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
  112. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -2
  113. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
  114. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +4 -3
  115. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
  116. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +6 -3
  117. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
  118. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +4 -1
  119. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  120. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +22 -0
  121. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
  122. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +4 -4
  123. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +4 -4
  124. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +6 -0
  125. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
  126. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +2 -1
  127. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
  128. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts +65 -0
  129. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts.map +1 -0
  130. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js +71 -0
  131. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js.map +1 -0
  132. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +16 -7
  133. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -1
  134. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +26 -7
  135. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -1
  136. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js +1 -1
  137. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js.map +1 -1
  138. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +3 -3
  139. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts.map +1 -1
  140. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +5 -4
  141. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js.map +1 -1
  142. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +2 -1
  143. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  144. package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
  145. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  146. package/dist/service/cognito/command/sim-cognito-commands.js +9 -0
  147. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  148. package/dist/service/cognito/command/sim-cognito-page.d.ts +10 -0
  149. package/dist/service/cognito/command/sim-cognito-page.d.ts.map +1 -1
  150. package/dist/service/cognito/command/sim-cognito-page.js +11 -7
  151. package/dist/service/cognito/command/sim-cognito-page.js.map +1 -1
  152. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts +49 -0
  153. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts.map +1 -0
  154. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js +88 -0
  155. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js.map +1 -0
  156. package/dist/service/cognito/command/user/web-authn.command.d.ts +87 -0
  157. package/dist/service/cognito/command/user/web-authn.command.d.ts.map +1 -0
  158. package/dist/service/cognito/command/user/web-authn.command.js +2 -0
  159. package/dist/service/cognito/command/user/web-authn.command.js.map +1 -0
  160. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +4 -0
  161. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
  162. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +4 -1
  163. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
  164. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +5 -3
  165. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -1
  166. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +5 -4
  167. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -1
  168. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -0
  169. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  170. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +9 -1
  171. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  172. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +2 -3
  173. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -1
  174. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +24 -0
  175. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -1
  176. package/dist/service/cognito/error/sim-cognito-managed-login.error.js +37 -0
  177. package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -1
  178. package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts +56 -0
  179. package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts.map +1 -0
  180. package/dist/service/cognito/error/sim-cognito-web-authn.error.js +66 -0
  181. package/dist/service/cognito/error/sim-cognito-web-authn.error.js.map +1 -0
  182. package/dist/service/cognito/index.d.ts +10 -1
  183. package/dist/service/cognito/index.d.ts.map +1 -1
  184. package/dist/service/cognito/index.js +8 -0
  185. package/dist/service/cognito/index.js.map +1 -1
  186. package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.d.ts.map +1 -1
  187. package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js +4 -0
  188. package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js.map +1 -1
  189. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +2 -2
  190. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts.map +1 -1
  191. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js +4 -2
  192. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
  193. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts +11 -0
  194. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts.map +1 -0
  195. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js +28 -0
  196. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js.map +1 -0
  197. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +4 -2
  198. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -1
  199. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +9 -3
  200. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
  201. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts +23 -0
  202. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts.map +1 -0
  203. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js +36 -0
  204. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js.map +1 -0
  205. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +13 -1
  206. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -1
  207. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +24 -2
  208. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
  209. package/dist/service/cognito/sim-cognito-authentication.d.ts +8 -0
  210. package/dist/service/cognito/sim-cognito-authentication.d.ts.map +1 -1
  211. package/dist/service/cognito/sim-cognito-authentication.js +11 -0
  212. package/dist/service/cognito/sim-cognito-authentication.js.map +1 -1
  213. package/dist/service/cognito/sim-cognito-user-factors.d.ts +25 -0
  214. package/dist/service/cognito/sim-cognito-user-factors.d.ts.map +1 -1
  215. package/dist/service/cognito/sim-cognito-user-factors.js +37 -0
  216. package/dist/service/cognito/sim-cognito-user-factors.js.map +1 -1
  217. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +33 -2
  218. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -1
  219. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +27 -12
  220. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -1
  221. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts +11 -1
  222. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -1
  223. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +17 -2
  224. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -1
  225. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +41 -0
  226. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
  227. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +62 -0
  228. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
  229. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +10 -0
  230. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
  231. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +19 -0
  232. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
  233. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts +11 -0
  234. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts.map +1 -0
  235. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js +17 -0
  236. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js.map +1 -0
  237. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts +61 -0
  238. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts.map +1 -0
  239. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js +80 -0
  240. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js.map +1 -0
  241. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +10 -0
  242. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
  243. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -0
  244. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
  245. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts +27 -0
  246. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts.map +1 -0
  247. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js +55 -0
  248. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js.map +1 -0
  249. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts +10 -0
  250. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts.map +1 -1
  251. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js +22 -0
  252. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js.map +1 -1
  253. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts +48 -0
  254. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts.map +1 -0
  255. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js +79 -0
  256. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js.map +1 -0
  257. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +13 -0
  258. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
  259. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +13 -0
  260. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
  261. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +12 -0
  262. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  263. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +14 -0
  264. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  265. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts +16 -0
  266. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts.map +1 -0
  267. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js +32 -0
  268. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js.map +1 -0
  269. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +16 -0
  270. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -1
  271. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js +29 -0
  272. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -1
  273. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts +46 -0
  274. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts.map +1 -0
  275. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js +73 -0
  276. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js.map +1 -0
  277. package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts +1 -9
  278. package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts.map +1 -1
  279. package/dist/service/cognito/user-pool/sim-cognito-password-policy.js.map +1 -1
  280. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts +60 -0
  281. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts.map +1 -0
  282. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js +100 -0
  283. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js.map +1 -0
  284. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +11 -1
  285. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  286. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +12 -1
  287. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  288. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +48 -69
  289. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  290. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +58 -73
  291. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  292. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +34 -0
  293. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
  294. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +40 -1
  295. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
  296. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +13 -18
  297. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  298. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +23 -24
  299. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  300. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts +73 -0
  301. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts.map +1 -0
  302. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js +113 -0
  303. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js.map +1 -0
  304. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts +22 -0
  305. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts.map +1 -0
  306. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js +53 -0
  307. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js.map +1 -0
  308. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts +15 -0
  309. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts.map +1 -0
  310. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js +68 -0
  311. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js.map +1 -0
  312. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts +33 -0
  313. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts.map +1 -0
  314. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js +67 -0
  315. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js.map +1 -0
  316. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts +24 -0
  317. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts.map +1 -0
  318. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js +45 -0
  319. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js.map +1 -0
  320. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts +28 -0
  321. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts.map +1 -0
  322. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js +41 -0
  323. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js.map +1 -0
  324. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts +69 -0
  325. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts.map +1 -0
  326. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js +69 -0
  327. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js.map +1 -0
  328. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts +39 -0
  329. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts.map +1 -0
  330. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js +90 -0
  331. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js.map +1 -0
  332. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts +111 -0
  333. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts.map +1 -0
  334. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js +2 -0
  335. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js.map +1 -0
  336. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts +37 -0
  337. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts.map +1 -0
  338. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js +39 -0
  339. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js.map +1 -0
  340. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts +21 -0
  341. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts.map +1 -0
  342. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js +45 -0
  343. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js.map +1 -0
  344. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts +52 -0
  345. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts.map +1 -0
  346. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js +98 -0
  347. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js.map +1 -0
  348. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts +5 -4
  349. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts.map +1 -1
  350. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js +17 -4
  351. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js.map +1 -1
  352. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts +8 -1
  353. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts.map +1 -1
  354. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js +10 -3
  355. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js.map +1 -1
  356. package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js +1 -1
  357. package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js.map +1 -1
  358. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts +26 -0
  359. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts.map +1 -0
  360. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js +32 -0
  361. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js.map +1 -0
  362. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts +40 -0
  363. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts.map +1 -0
  364. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js +42 -0
  365. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js.map +1 -0
  366. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts +12 -0
  367. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts.map +1 -0
  368. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js +26 -0
  369. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js.map +1 -0
  370. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts +13 -0
  371. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts.map +1 -0
  372. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js +20 -0
  373. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js.map +1 -0
  374. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts +26 -0
  375. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts.map +1 -0
  376. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js +47 -0
  377. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js.map +1 -0
  378. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts +20 -0
  379. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts.map +1 -0
  380. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js +29 -0
  381. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js.map +1 -0
  382. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts +3 -0
  383. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts.map +1 -1
  384. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js +4 -0
  385. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js.map +1 -1
  386. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
  387. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +5 -0
  388. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
  389. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +1 -0
  390. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
  391. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +8 -0
  392. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
  393. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts +35 -0
  394. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts.map +1 -0
  395. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js +73 -0
  396. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js.map +1 -0
  397. package/dist/service/lambda/command/create-function/create-function-input.d.ts +1 -0
  398. package/dist/service/lambda/command/create-function/create-function-input.d.ts.map +1 -1
  399. package/dist/service/lambda/command/create-function/create-function-input.js +3 -1
  400. package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
  401. package/dist/service/lambda/command/create-function/create-function.command.d.ts +2 -0
  402. package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
  403. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +5 -1
  404. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
  405. package/dist/service/lambda/command/delete-function/delete-function.handler.js +5 -1
  406. package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
  407. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts +24 -0
  408. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts.map +1 -0
  409. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js +5 -0
  410. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js.map +1 -0
  411. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts +24 -0
  412. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts.map +1 -0
  413. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js +27 -0
  414. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js.map +1 -0
  415. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts +29 -0
  416. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts.map +1 -0
  417. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js +39 -0
  418. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js.map +1 -0
  419. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts +32 -0
  420. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts.map +1 -0
  421. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js +62 -0
  422. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js.map +1 -0
  423. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts +49 -0
  424. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts.map +1 -0
  425. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js +44 -0
  426. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js.map +1 -0
  427. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts +49 -0
  428. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts.map +1 -0
  429. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js +49 -0
  430. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js.map +1 -0
  431. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +21 -0
  432. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  433. package/dist/service/lambda/command/function/sim-lambda-function-commands.js +43 -0
  434. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  435. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts +25 -0
  436. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts.map +1 -0
  437. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js +5 -0
  438. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js.map +1 -0
  439. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts +23 -0
  440. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts.map +1 -0
  441. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js +27 -0
  442. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js.map +1 -0
  443. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts +31 -0
  444. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts.map +1 -0
  445. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js +24 -0
  446. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js.map +1 -0
  447. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts +43 -0
  448. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts.map +1 -0
  449. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js +64 -0
  450. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js.map +1 -0
  451. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts +26 -0
  452. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts.map +1 -0
  453. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js +33 -0
  454. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js.map +1 -0
  455. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts +63 -0
  456. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts.map +1 -0
  457. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js +88 -0
  458. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js.map +1 -0
  459. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +10 -3
  460. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
  461. package/dist/service/lambda/command/invoke/invoke-dispatcher.js +16 -17
  462. package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
  463. package/dist/service/lambda/command/invoke/invoke-payload.d.ts +16 -0
  464. package/dist/service/lambda/command/invoke/invoke-payload.d.ts.map +1 -1
  465. package/dist/service/lambda/command/invoke/invoke-payload.js +14 -4
  466. package/dist/service/lambda/command/invoke/invoke-payload.js.map +1 -1
  467. package/dist/service/lambda/command/invoke/invoke.handler.d.ts +4 -0
  468. package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
  469. package/dist/service/lambda/command/invoke/invoke.handler.js +6 -2
  470. package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
  471. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts +28 -0
  472. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts.map +1 -0
  473. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js +5 -0
  474. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js.map +1 -0
  475. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts +23 -0
  476. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts.map +1 -0
  477. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js +31 -0
  478. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js.map +1 -0
  479. package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts +31 -0
  480. package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts.map +1 -0
  481. package/dist/service/lambda/command/list-functions/list-functions-authorizer.js +41 -0
  482. package/dist/service/lambda/command/list-functions/list-functions-authorizer.js.map +1 -0
  483. package/dist/service/lambda/command/list-functions/list-functions.command.d.ts +34 -0
  484. package/dist/service/lambda/command/list-functions/list-functions.command.d.ts.map +1 -0
  485. package/dist/service/lambda/command/list-functions/list-functions.command.js +5 -0
  486. package/dist/service/lambda/command/list-functions/list-functions.command.js.map +1 -0
  487. package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts +35 -0
  488. package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts.map +1 -0
  489. package/dist/service/lambda/command/list-functions/list-functions.handler.js +46 -0
  490. package/dist/service/lambda/command/list-functions/list-functions.handler.js.map +1 -0
  491. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts +31 -0
  492. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts.map +1 -0
  493. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js +5 -0
  494. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js.map +1 -0
  495. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts +24 -0
  496. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts.map +1 -0
  497. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js +32 -0
  498. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js.map +1 -0
  499. package/dist/service/lambda/command/sim-lambda-command.types.d.ts +8 -0
  500. package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
  501. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts +27 -0
  502. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts.map +1 -0
  503. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js +37 -0
  504. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js.map +1 -0
  505. package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts +16 -0
  506. package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts.map +1 -0
  507. package/dist/service/lambda/command/update-function-code/update-function-code-input.js +30 -0
  508. package/dist/service/lambda/command/update-function-code/update-function-code-input.js.map +1 -0
  509. package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts +41 -0
  510. package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts.map +1 -0
  511. package/dist/service/lambda/command/update-function-code/update-function-code.command.js +5 -0
  512. package/dist/service/lambda/command/update-function-code/update-function-code.command.js.map +1 -0
  513. package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts +52 -0
  514. package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts.map +1 -0
  515. package/dist/service/lambda/command/update-function-code/update-function-code.handler.js +72 -0
  516. package/dist/service/lambda/command/update-function-code/update-function-code.handler.js.map +1 -0
  517. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts +28 -0
  518. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts.map +1 -0
  519. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js +38 -0
  520. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js.map +1 -0
  521. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts +23 -0
  522. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -0
  523. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +31 -0
  524. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -0
  525. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +44 -0
  526. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -0
  527. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js +5 -0
  528. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js.map +1 -0
  529. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts +50 -0
  530. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts.map +1 -0
  531. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js +61 -0
  532. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js.map +1 -0
  533. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts +30 -0
  534. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts.map +1 -0
  535. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js +5 -0
  536. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js.map +1 -0
  537. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts +25 -0
  538. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts.map +1 -0
  539. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js +33 -0
  540. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js.map +1 -0
  541. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts +16 -0
  542. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts.map +1 -0
  543. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js +31 -0
  544. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js.map +1 -0
  545. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts +13 -0
  546. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts.map +1 -0
  547. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js +25 -0
  548. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js.map +1 -0
  549. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts +15 -0
  550. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts.map +1 -0
  551. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js +25 -0
  552. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js.map +1 -0
  553. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts +15 -0
  554. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts.map +1 -0
  555. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js +2 -0
  556. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js.map +1 -0
  557. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts +15 -0
  558. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts.map +1 -0
  559. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js +23 -0
  560. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js.map +1 -0
  561. package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts +38 -0
  562. package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts.map +1 -0
  563. package/dist/service/lambda/destination/sim-aws-lambda-destinations.js +78 -0
  564. package/dist/service/lambda/destination/sim-aws-lambda-destinations.js.map +1 -0
  565. package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts +53 -0
  566. package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts.map +1 -0
  567. package/dist/service/lambda/destination/sim-lambda-destination-arn.js +122 -0
  568. package/dist/service/lambda/destination/sim-lambda-destination-arn.js.map +1 -0
  569. package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts +53 -0
  570. package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts.map +1 -0
  571. package/dist/service/lambda/destination/sim-lambda-destination-record.js +26 -0
  572. package/dist/service/lambda/destination/sim-lambda-destination-record.js.map +1 -0
  573. package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts +49 -0
  574. package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts.map +1 -0
  575. package/dist/service/lambda/destination/sim-lambda-destination-targets.js +25 -0
  576. package/dist/service/lambda/destination/sim-lambda-destination-targets.js.map +1 -0
  577. package/dist/service/lambda/function/code/lambda-code-source.d.ts +15 -2
  578. package/dist/service/lambda/function/code/lambda-code-source.d.ts.map +1 -1
  579. package/dist/service/lambda/function/code/lambda-code-source.js +19 -14
  580. package/dist/service/lambda/function/code/lambda-code-source.js.map +1 -1
  581. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +6 -0
  582. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
  583. package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
  584. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +28 -0
  585. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
  586. package/dist/service/lambda/function/code/sim-lambda-executable-code.js +10 -0
  587. package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
  588. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
  589. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +2 -1
  590. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
  591. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +11 -1
  592. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
  593. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +16 -0
  594. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
  595. package/dist/service/lambda/{command/create-function/create-function-environment-names.d.ts → function/environment/lambda-environment-variable-names.d.ts} +1 -1
  596. package/dist/service/lambda/function/environment/lambda-environment-variable-names.d.ts.map +1 -0
  597. package/dist/service/lambda/{command/create-function/create-function-environment-names.js → function/environment/lambda-environment-variable-names.js} +1 -1
  598. package/dist/service/lambda/function/environment/lambda-environment-variable-names.js.map +1 -0
  599. package/dist/service/lambda/{command/create-function/create-function-environment.d.ts → function/environment/lambda-environment-variables.d.ts} +2 -2
  600. package/dist/service/lambda/function/environment/lambda-environment-variables.d.ts.map +1 -0
  601. package/dist/service/lambda/{command/create-function/create-function-environment.js → function/environment/lambda-environment-variables.js} +2 -2
  602. package/dist/service/lambda/function/environment/lambda-environment-variables.js.map +1 -0
  603. package/dist/service/lambda/function/environment/lambda-reserved-variable-names.d.ts.map +1 -0
  604. package/dist/service/lambda/function/environment/lambda-reserved-variable-names.js.map +1 -0
  605. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts +17 -0
  606. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts.map +1 -0
  607. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js +26 -0
  608. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js.map +1 -0
  609. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts +58 -0
  610. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts.map +1 -0
  611. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js +86 -0
  612. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js.map +1 -0
  613. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts +117 -0
  614. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts.map +1 -0
  615. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js +37 -0
  616. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js.map +1 -0
  617. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts +35 -0
  618. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts.map +1 -0
  619. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js +70 -0
  620. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js.map +1 -0
  621. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +3 -0
  622. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -1
  623. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts +11 -0
  624. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts.map +1 -0
  625. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js +27 -0
  626. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js.map +1 -0
  627. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +40 -0
  628. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -0
  629. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +66 -0
  630. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -0
  631. package/dist/service/lambda/function/sim-lambda-function.d.ts +36 -56
  632. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  633. package/dist/service/lambda/function/sim-lambda-function.js +50 -23
  634. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  635. package/dist/service/lambda/function/sim-lambda-function.type.d.ts +58 -0
  636. package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -0
  637. package/dist/service/lambda/function/sim-lambda-function.type.js +2 -0
  638. package/dist/service/lambda/function/sim-lambda-function.type.js.map +1 -0
  639. package/dist/service/lambda/index.d.ts +2 -0
  640. package/dist/service/lambda/index.d.ts.map +1 -1
  641. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts +10 -0
  642. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts.map +1 -0
  643. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js +32 -0
  644. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js.map +1 -0
  645. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
  646. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +14 -0
  647. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
  648. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts +27 -0
  649. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts.map +1 -0
  650. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js +76 -0
  651. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js.map +1 -0
  652. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts.map +1 -1
  653. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js +19 -58
  654. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js.map +1 -1
  655. package/dist/service/lambda/sim-lambda-commands.d.ts +11 -0
  656. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  657. package/dist/service/lambda/sim-lambda-commands.js +18 -1
  658. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  659. package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts +23 -0
  660. package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts.map +1 -0
  661. package/dist/service/lambda/sim-lambda-event-invoke-operations.js +31 -0
  662. package/dist/service/lambda/sim-lambda-event-invoke-operations.js.map +1 -0
  663. package/dist/service/lambda/sim-lambda-inspection.d.ts +9 -0
  664. package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -1
  665. package/dist/service/lambda/sim-lambda-inspection.js +13 -0
  666. package/dist/service/lambda/sim-lambda-inspection.js.map +1 -1
  667. package/dist/service/lambda/sim-lambda-request-options.d.ts +8 -0
  668. package/dist/service/lambda/sim-lambda-request-options.d.ts.map +1 -0
  669. package/dist/service/lambda/sim-lambda-request-options.js +2 -0
  670. package/dist/service/lambda/sim-lambda-request-options.js.map +1 -0
  671. package/dist/service/lambda/sim-lambda.d.ts +12 -7
  672. package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
  673. package/dist/service/lambda/sim-lambda.js +16 -3
  674. package/dist/service/lambda/sim-lambda.js.map +1 -1
  675. package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
  676. package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -1
  677. package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +7 -1
  678. package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -1
  679. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -1
  680. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +0 -1
  681. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -1
  682. package/dist/service/s3/command/copy-object/copy-object-builder.d.ts +34 -0
  683. package/dist/service/s3/command/copy-object/copy-object-builder.d.ts.map +1 -0
  684. package/dist/service/s3/command/copy-object/copy-object-builder.js +40 -0
  685. package/dist/service/s3/command/copy-object/copy-object-builder.js.map +1 -0
  686. package/dist/service/s3/command/copy-object/copy-object-source.d.ts +37 -0
  687. package/dist/service/s3/command/copy-object/copy-object-source.d.ts.map +1 -0
  688. package/dist/service/s3/command/copy-object/copy-object-source.js +80 -0
  689. package/dist/service/s3/command/copy-object/copy-object-source.js.map +1 -0
  690. package/dist/service/s3/command/copy-object/copy-object.command.d.ts +41 -0
  691. package/dist/service/s3/command/copy-object/copy-object.command.d.ts.map +1 -0
  692. package/dist/service/s3/command/copy-object/copy-object.command.js +2 -0
  693. package/dist/service/s3/command/copy-object/copy-object.command.js.map +1 -0
  694. package/dist/service/s3/command/copy-object/copy-object.handler.d.ts +43 -0
  695. package/dist/service/s3/command/copy-object/copy-object.handler.d.ts.map +1 -0
  696. package/dist/service/s3/command/copy-object/copy-object.handler.js +76 -0
  697. package/dist/service/s3/command/copy-object/copy-object.handler.js.map +1 -0
  698. package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +4 -0
  699. package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
  700. package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
  701. package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
  702. package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
  703. package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
  704. package/dist/service/s3/error/sim-s3.error.d.ts +11 -0
  705. package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
  706. package/dist/service/s3/error/sim-s3.error.js +13 -0
  707. package/dist/service/s3/error/sim-s3.error.js.map +1 -1
  708. package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
  709. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
  710. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
  711. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +14 -0
  712. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -1
  713. package/dist/service/s3/serve/api/sim-s3-api-object-input.js +20 -0
  714. package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -1
  715. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +14 -0
  716. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
  717. package/dist/service/s3/serve/api/sim-s3-api-object-output.js +12 -0
  718. package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
  719. package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
  720. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +23 -1
  721. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
  722. package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -1
  723. package/dist/service/s3/serve/api/sim-s3-api-output.js +7 -1
  724. package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -1
  725. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +14 -3
  726. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -1
  727. package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -1
  728. package/dist/service/s3/serve/api/sim-s3-api-routes.js +2 -1
  729. package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -1
  730. package/dist/service/s3/sim-s3-operations.d.ts +2 -0
  731. package/dist/service/s3/sim-s3-operations.d.ts.map +1 -1
  732. package/dist/service/s3/sim-s3-operations.js +4 -0
  733. package/dist/service/s3/sim-s3-operations.js.map +1 -1
  734. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts +2 -0
  735. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts.map +1 -1
  736. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js +3 -0
  737. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js.map +1 -1
  738. package/dist/service/wafv2/index.d.ts +1 -0
  739. package/dist/service/wafv2/index.d.ts.map +1 -1
  740. package/dist/service/wafv2/index.js.map +1 -1
  741. package/dist/service/wafv2/managed/sim-waf-managed-group-statement.d.ts.map +1 -1
  742. package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js +1 -0
  743. package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js.map +1 -1
  744. package/dist/service/wafv2/sim-wafv2-commands.d.ts.map +1 -1
  745. package/dist/service/wafv2/sim-wafv2-commands.js +3 -0
  746. package/dist/service/wafv2/sim-wafv2-commands.js.map +1 -1
  747. package/dist/service/wafv2/sim-wafv2.d.ts.map +1 -1
  748. package/dist/service/wafv2/sim-wafv2.js +1 -0
  749. package/dist/service/wafv2/sim-wafv2.js.map +1 -1
  750. package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts +49 -0
  751. package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts.map +1 -0
  752. package/dist/service/wafv2/statement/sim-waf-rate-based-input.js +94 -0
  753. package/dist/service/wafv2/statement/sim-waf-rate-based-input.js.map +1 -0
  754. package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts +22 -0
  755. package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts.map +1 -0
  756. package/dist/service/wafv2/statement/sim-waf-rate-based.js +41 -0
  757. package/dist/service/wafv2/statement/sim-waf-rate-based.js.map +1 -0
  758. package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts +18 -0
  759. package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts.map +1 -0
  760. package/dist/service/wafv2/statement/sim-waf-rate-based.type.js +2 -0
  761. package/dist/service/wafv2/statement/sim-waf-rate-based.type.js.map +1 -0
  762. package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts +29 -0
  763. package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts.map +1 -0
  764. package/dist/service/wafv2/statement/sim-waf-rate-counter.js +35 -0
  765. package/dist/service/wafv2/statement/sim-waf-rate-counter.js.map +1 -0
  766. package/dist/service/wafv2/statement/sim-waf-statement.d.ts +6 -0
  767. package/dist/service/wafv2/statement/sim-waf-statement.d.ts.map +1 -1
  768. package/dist/service/wafv2/statement/sim-waf-statement.js +4 -0
  769. package/dist/service/wafv2/statement/sim-waf-statement.js.map +1 -1
  770. package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts +2 -1
  771. package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts.map +1 -1
  772. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts +10 -0
  773. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts.map +1 -0
  774. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js +40 -0
  775. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js.map +1 -0
  776. package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.d.ts.map +1 -1
  777. package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js +0 -5
  778. package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js.map +1 -1
  779. package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.d.ts.map +1 -1
  780. package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js +25 -2
  781. package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js.map +1 -1
  782. package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts +6 -0
  783. package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts.map +1 -1
  784. package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.d.ts.map +1 -1
  785. package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js +16 -1
  786. package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js.map +1 -1
  787. package/dist/util/clock/sim-clock-control.d.ts +8 -0
  788. package/dist/util/clock/sim-clock-control.d.ts.map +1 -1
  789. package/dist/util/clock/sim-clock-control.js +10 -1
  790. package/dist/util/clock/sim-clock-control.js.map +1 -1
  791. package/package.json +1 -1
  792. package/dist/service/lambda/command/create-function/create-function-environment-names.d.ts.map +0 -1
  793. package/dist/service/lambda/command/create-function/create-function-environment-names.js.map +0 -1
  794. package/dist/service/lambda/command/create-function/create-function-environment.d.ts.map +0 -1
  795. package/dist/service/lambda/command/create-function/create-function-environment.js.map +0 -1
  796. package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.d.ts.map +0 -1
  797. package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.js.map +0 -1
  798. /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.d.ts +0 -0
  799. /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.js +0 -0
@@ -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;;;;;;;;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,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QACtD,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,9 +1,9 @@
1
1
  import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
- import type { SimCognitoTokenIssuer } from "../../user-pool/token/sim-cognito-token-issuer.js";
2
+ import type { SimCognitoRefreshedTokens } from "./sim-cognito-refreshed-tokens.js";
3
3
  import type { SimCognitoAuthRequest } from "./sim-cognito-password-sign-in.js";
4
4
  import type { SimCognitoAuthenticationOutput } from "./auth.command.js";
5
5
  interface SimCognitoRefreshSignInProperties {
6
- readonly tokenIssuer: SimCognitoTokenIssuer;
6
+ readonly refreshedTokens: SimCognitoRefreshedTokens;
7
7
  readonly clock: SimClock;
8
8
  }
9
9
  /**
@@ -13,15 +13,10 @@ interface SimCognitoRefreshSignInProperties {
13
13
  * it is, which is why one presented to another app client is refused. Nothing
14
14
  * new comes back with the tokens, because real Cognito issues no new refresh
15
15
  * token here, so a client keeps the one it has until that expires.
16
- *
17
- * The pool's `PreTokenGeneration` trigger runs for the reissued tokens, as it
18
- * does on real Cognito, so a claim it changed since the sign-in is on the token
19
- * a refresh answers with rather than being stale for the life of the session.
20
16
  */
21
17
  export declare class SimCognitoRefreshSignIn {
22
- private readonly tokenIssuer;
18
+ private readonly refreshedTokens;
23
19
  private readonly clock;
24
- private readonly result;
25
20
  constructor(properties: SimCognitoRefreshSignInProperties);
26
21
  /**
27
22
  * Refresh a session, or refuse the token it was asked for with.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-refresh-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAGpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAI/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,iCAAiC;IACzC,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwB;IACpD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwC;IAE/D,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,8BAA8B,CAAC,CAoCzC;CACF"}
1
+ {"version":3,"file":"sim-cognito-refresh-sign-in.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAIpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAExE,UAAU,iCAAiC;IACzC,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAuBD;;;;;;;GAOG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA4B;IAC5D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,8BAA8B,CAAC,CA8BzC;CACF"}
@@ -1,8 +1,22 @@
1
+ import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
1
2
  import { requireSimCognitoSecretHash } from "../../user-pool/auth/sim-cognito-secret-hash.js";
2
- import { requireSimCognitoEnabled } from "../../user-pool/auth/sim-cognito-sign-in.js";
3
- import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
4
- import { requireSimCognitoUsername } from "../../user-pool/user/sim-cognito-username.js";
5
- import { SimCognitoAuthenticationResult } from "./sim-cognito-authentication-result.js";
3
+ /**
4
+ * Refuse a refresh through an app client that rotates its refresh tokens.
5
+ *
6
+ * Rotation and `REFRESH_TOKEN_AUTH` do not go together on real Cognito, which
7
+ * is why `aws-cdk-lib` drops `ALLOW_REFRESH_TOKEN_AUTH` from a client the
8
+ * moment it is given a rotation grace period. A client that kept the flow
9
+ * anyway is told where the operation went rather than handed tokens the real
10
+ * pool would not have handed it.
11
+ */
12
+ function requireSimCognitoNoRotation(client) {
13
+ if (!client.refreshTokenRotation.enabled) {
14
+ return;
15
+ }
16
+ throw new SimCognitoInvalidParameterException(`REFRESH_TOKEN_AUTH is not available on the client ${client.id}: it ` +
17
+ `rotates its refresh tokens, so renew the session with ` +
18
+ `GetTokensFromRefreshToken instead`);
19
+ }
6
20
  /**
7
21
  * Trading a refresh token for a new access and id token.
8
22
  *
@@ -10,17 +24,12 @@ import { SimCognitoAuthenticationResult } from "./sim-cognito-authentication-res
10
24
  * it is, which is why one presented to another app client is refused. Nothing
11
25
  * new comes back with the tokens, because real Cognito issues no new refresh
12
26
  * token here, so a client keeps the one it has until that expires.
13
- *
14
- * The pool's `PreTokenGeneration` trigger runs for the reissued tokens, as it
15
- * does on real Cognito, so a claim it changed since the sign-in is on the token
16
- * a refresh answers with rather than being stale for the life of the session.
17
27
  */
18
28
  export class SimCognitoRefreshSignIn {
19
- tokenIssuer;
29
+ refreshedTokens;
20
30
  clock;
21
- result = new SimCognitoAuthenticationResult();
22
31
  constructor(properties) {
23
- this.tokenIssuer = properties.tokenIssuer;
32
+ this.refreshedTokens = properties.refreshedTokens;
24
33
  this.clock = properties.clock;
25
34
  }
26
35
  /**
@@ -28,6 +37,7 @@ export class SimCognitoRefreshSignIn {
28
37
  */
29
38
  async handle(request) {
30
39
  const { pool, client, parameters } = request;
40
+ requireSimCognitoNoRotation(client);
31
41
  const refreshToken = pool.auth.requireRefreshToken({
32
42
  value: parameters.require("REFRESH_TOKEN"),
33
43
  clientId: client.id,
@@ -36,19 +46,16 @@ export class SimCognitoRefreshSignIn {
36
46
  // The hash covers the username, and the request carries none, so the one
37
47
  // the token was issued to is what it has to have been computed with.
38
48
  requireSimCognitoSecretHash(refreshToken.username, client, parameters.find("SECRET_HASH"));
39
- const user = pool.requireUser(requireSimCognitoUsername(refreshToken.username));
40
- requireSimCognitoEnabled(user);
41
49
  // A refresh runs through `InitiateAuth`, whose `ClientMetadata` real
42
50
  // Cognito does not pass to the token trigger, so none travels with these
43
51
  // tokens.
44
52
  return {
45
53
  $metadata: {},
46
- AuthenticationResult: this.result.of(await this.tokenIssuer.reissue({
54
+ AuthenticationResult: await this.refreshedTokens.issue({
47
55
  pool,
48
56
  client,
49
- user,
50
- occasion: SimCognitoTriggerOccasion.refreshTokenGeneration,
51
- })),
57
+ refreshToken,
58
+ }),
52
59
  };
53
60
  }
54
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-refresh-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AASxF;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,uBAAuB;IACjB,WAAW,CAAwB;IACnC,KAAK,CAAW;IAChB,MAAM,GAAG,IAAI,8BAA8B,EAAE,CAAC;IAE/D,YAAY,UAA6C;QACvD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC;YACjD,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,eAAe,CAAC;YAC1C,QAAQ,EAAE,MAAM,CAAC,EAAE;YACnB,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;QAEH,yEAAyE;QACzE,qEAAqE;QACrE,2BAA2B,CACzB,YAAY,CAAC,QAAQ,EACrB,MAAM,EACN,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAC/B,CAAC;QAEF,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAC3B,yBAAyB,CAAC,YAAY,CAAC,QAAQ,CAAC,CACjD,CAAC;QAEF,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAE/B,qEAAqE;QACrE,yEAAyE;QACzE,UAAU;QACV,OAAO;YACL,SAAS,EAAE,EAAE;YACb,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAClC,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;gBAC7B,IAAI;gBACJ,MAAM;gBACN,IAAI;gBACJ,QAAQ,EAAE,yBAAyB,CAAC,sBAAsB;aAC3D,CAAC,CACH;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-refresh-sign-in.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refresh-sign-in.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAW9F;;;;;;;;GAQG;AACH,SAAS,2BAA2B,CAAC,MAAgC;IACnE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAC;QACzC,OAAO;IACT,CAAC;IAED,MAAM,IAAI,mCAAmC,CAC3C,qDAAqD,MAAM,CAAC,EAAE,OAAO;QACnE,wDAAwD;QACxD,mCAAmC,CACtC,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IACjB,eAAe,CAA4B;IAC3C,KAAK,CAAW;IAEjC,YAAY,UAA6C;QACvD,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;QAClD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAA8B;QAE9B,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAE7C,2BAA2B,CAAC,MAAM,CAAC,CAAC;QAEpC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC;YACjD,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,eAAe,CAAC;YAC1C,QAAQ,EAAE,MAAM,CAAC,EAAE;YACnB,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SACtB,CAAC,CAAC;QAEH,yEAAyE;QACzE,qEAAqE;QACrE,2BAA2B,CACzB,YAAY,CAAC,QAAQ,EACrB,MAAM,EACN,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAC/B,CAAC;QAEF,qEAAqE;QACrE,yEAAyE;QACzE,UAAU;QACV,OAAO;YACL,SAAS,EAAE,EAAE;YACb,oBAAoB,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;gBACrD,IAAI;gBACJ,MAAM;gBACN,YAAY;aACb,CAAC;SACH,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,56 @@
1
+ import type { SimCognitoIssuedToken } from "../../user-pool/auth/sim-cognito-issued-token.js";
2
+ import type { SimCognitoUserPoolClient } 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 { SimCognitoTokenIssuer } from "../../user-pool/token/sim-cognito-token-issuer.js";
5
+ import type { SimCognitoAuthenticationResultType } from "./auth.command.js";
6
+ interface SimCognitoRefreshedTokensProperties {
7
+ readonly tokenIssuer: SimCognitoTokenIssuer;
8
+ }
9
+ /**
10
+ * What a refresh has to name for tokens to come back: the pool, the app client
11
+ * it goes through, and the refresh token the pool has already accepted.
12
+ */
13
+ interface SimCognitoRefreshedTokensRequest {
14
+ readonly pool: SimCognitoUserPool;
15
+ readonly client: SimCognitoUserPoolClient;
16
+ readonly refreshToken: SimCognitoIssuedToken;
17
+ /**
18
+ * The `ClientMetadata` the request carried, which reaches the pool's token
19
+ * trigger. A `REFRESH_TOKEN_AUTH` refresh passes none, as real Cognito
20
+ * passes none from `InitiateAuth`.
21
+ */
22
+ readonly clientMetadata?: Readonly<Record<string, string>> | undefined;
23
+ }
24
+ /**
25
+ * The tokens a refresh answers with, whichever operation asked for them.
26
+ *
27
+ * `REFRESH_TOKEN_AUTH` and `GetTokensFromRefreshToken` prove the caller
28
+ * differently and reach the pool differently, and once the refresh token is
29
+ * accepted they answer the same way, so what they share is here.
30
+ *
31
+ * Which app client the refresh went through decides whether a new refresh
32
+ * token comes back. A rotating client hands one out and spends the token that
33
+ * bought it, and a client with rotation off answers with the access and id
34
+ * token alone, leaving the caller the token it already has.
35
+ *
36
+ * The pool's `PreTokenGeneration` trigger runs for the reissued tokens either
37
+ * way, as it does on real Cognito, so a claim it changed since the sign-in is
38
+ * on the token a refresh answers with rather than being stale for the life of
39
+ * the session.
40
+ */
41
+ export declare class SimCognitoRefreshedTokens {
42
+ private readonly tokenIssuer;
43
+ private readonly result;
44
+ constructor(properties: SimCognitoRefreshedTokensProperties);
45
+ /**
46
+ * Reissue a session's tokens, rotating its refresh token where the app
47
+ * client rotates.
48
+ *
49
+ * The refresh token names no user: the pool that issued it is what knows
50
+ * whose it is, which is why the user is looked up from the token rather than
51
+ * from the request.
52
+ */
53
+ issue(request: SimCognitoRefreshedTokensRequest): Promise<SimCognitoAuthenticationResultType>;
54
+ }
55
+ export {};
56
+ //# sourceMappingURL=sim-cognito-refreshed-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-refreshed-tokens.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refreshed-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wDAAwD,CAAC;AACvG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAI/F,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAC;AAE5E,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;CAC7C;AAED;;;GAGG;AACH,UAAU,gCAAgC;IACxC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;CACxE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwB;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwC;IAE/D,YAAY,UAAU,EAAE,mCAAmC,EAE1D;IAED;;;;;;;OAOG;IACG,KAAK,CACT,OAAO,EAAE,gCAAgC,GACxC,OAAO,CAAC,kCAAkC,CAAC,CAkB7C;CACF"}
@@ -0,0 +1,50 @@
1
+ import { requireSimCognitoEnabled } from "../../user-pool/auth/sim-cognito-sign-in.js";
2
+ import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
3
+ import { requireSimCognitoUsername } from "../../user-pool/user/sim-cognito-username.js";
4
+ import { SimCognitoAuthenticationResult } from "./sim-cognito-authentication-result.js";
5
+ /**
6
+ * The tokens a refresh answers with, whichever operation asked for them.
7
+ *
8
+ * `REFRESH_TOKEN_AUTH` and `GetTokensFromRefreshToken` prove the caller
9
+ * differently and reach the pool differently, and once the refresh token is
10
+ * accepted they answer the same way, so what they share is here.
11
+ *
12
+ * Which app client the refresh went through decides whether a new refresh
13
+ * token comes back. A rotating client hands one out and spends the token that
14
+ * bought it, and a client with rotation off answers with the access and id
15
+ * token alone, leaving the caller the token it already has.
16
+ *
17
+ * The pool's `PreTokenGeneration` trigger runs for the reissued tokens either
18
+ * way, as it does on real Cognito, so a claim it changed since the sign-in is
19
+ * on the token a refresh answers with rather than being stale for the life of
20
+ * the session.
21
+ */
22
+ export class SimCognitoRefreshedTokens {
23
+ tokenIssuer;
24
+ result = new SimCognitoAuthenticationResult();
25
+ constructor(properties) {
26
+ this.tokenIssuer = properties.tokenIssuer;
27
+ }
28
+ /**
29
+ * Reissue a session's tokens, rotating its refresh token where the app
30
+ * client rotates.
31
+ *
32
+ * The refresh token names no user: the pool that issued it is what knows
33
+ * whose it is, which is why the user is looked up from the token rather than
34
+ * from the request.
35
+ */
36
+ async issue(request) {
37
+ const { pool, client, refreshToken, clientMetadata } = request;
38
+ const user = pool.requireUser(requireSimCognitoUsername(refreshToken.username));
39
+ requireSimCognitoEnabled(user);
40
+ return this.result.of(await this.tokenIssuer.refresh({
41
+ pool,
42
+ client,
43
+ user,
44
+ clientMetadata,
45
+ spent: refreshToken,
46
+ occasion: SimCognitoTriggerOccasion.refreshTokenGeneration,
47
+ }));
48
+ }
49
+ }
50
+ //# sourceMappingURL=sim-cognito-refreshed-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-refreshed-tokens.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-refreshed-tokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAIvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AAwBxF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,yBAAyB;IACnB,WAAW,CAAwB;IACnC,MAAM,GAAG,IAAI,8BAA8B,EAAE,CAAC;IAE/D,YAAY,UAA+C;QACzD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAC5C,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,KAAK,CACT,OAAyC;QAEzC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAC3B,yBAAyB,CAAC,YAAY,CAAC,QAAQ,CAAC,CACjD,CAAC;QAEF,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAE/B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,CACnB,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC7B,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;YACd,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,yBAAyB,CAAC,sBAAsB;SAC3D,CAAC,CACH,CAAC;IACJ,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,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,2DAA2D;YACzD,iEAAiE;YACjE,8CAA8C,CACjD,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,iEAAiE;YAC/D,8DAA8D;YAC9D,uDAAuD;YACvD,wBAAwB,CAC3B,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"}
@@ -0,0 +1,44 @@
1
+ import type { 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,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,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAErC,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACzD,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAErC,OAAO,SAAS,KAAK,SAAS;YAC5B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,qBAAqB,CAAC,CAAC;IACpE,CAAC;CACF"}
@@ -0,0 +1,30 @@
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 SimCognitoWebAuthnResponseProperties {
7
+ readonly completion: SimCognitoSignInCompletion;
8
+ }
9
+ /**
10
+ * Answering a `WEB_AUTHN` challenge with a passkey.
11
+ *
12
+ * The credential travels as the JSON a browser serializes a
13
+ * `PublicKeyCredential` to, and it is read against the options the challenge
14
+ * issued. The signature is what settles it, checked against the public key the
15
+ * registration stored.
16
+ *
17
+ * A passkey finishes the sign-in on its own. Real Cognito counts one as having
18
+ * met the pool's MFA requirement, so a user that has registered a second
19
+ * factor is not challenged for it here, where a password sign-in would be.
20
+ */
21
+ export declare class SimCognitoWebAuthnResponse {
22
+ private readonly completion;
23
+ constructor(properties: SimCognitoWebAuthnResponseProperties);
24
+ /**
25
+ * Present the passkey, and sign the user in.
26
+ */
27
+ complete(request: SimCognitoFirstFactorResponseRequest, session: SimCognitoAuthSession, user: SimCognitoUser): Promise<SimCognitoAuthenticationOutput>;
28
+ }
29
+ export {};
30
+ //# sourceMappingURL=sim-cognito-web-authn-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-response.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-web-authn-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AAE9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/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;;OAEG;IACG,QAAQ,CACZ,OAAO,EAAE,oCAAoC,EAC7C,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,8BAA8B,CAAC,CAiBzC;CACF"}
@@ -0,0 +1,36 @@
1
+ import { SimCognitoTriggerOccasion } from "../../user-pool/trigger/sim-cognito-trigger-occasion.js";
2
+ import { requireSimCognitoWebAuthnAssertion } from "../../user-pool/user/web-authn/sim-cognito-web-authn-assertion.js";
3
+ /**
4
+ * Answering a `WEB_AUTHN` challenge with a passkey.
5
+ *
6
+ * The credential travels as the JSON a browser serializes a
7
+ * `PublicKeyCredential` to, and it is read against the options the challenge
8
+ * issued. The signature is what settles it, checked against the public key the
9
+ * registration stored.
10
+ *
11
+ * A passkey finishes the sign-in on its own. Real Cognito counts one as having
12
+ * met the pool's MFA requirement, so a user that has registered a second
13
+ * factor is not challenged for it here, where a password sign-in would be.
14
+ */
15
+ export class SimCognitoWebAuthnResponse {
16
+ completion;
17
+ constructor(properties) {
18
+ this.completion = properties.completion;
19
+ }
20
+ /**
21
+ * Present the passkey, and sign the user in.
22
+ */
23
+ async complete(request, session, user) {
24
+ requireSimCognitoWebAuthnAssertion(user.webAuthn.credentials, request.parameters.requireDocument("CREDENTIAL"), session.requireWebAuthnOptions());
25
+ request.pool.auth.removeSession(session);
26
+ return await this.completion.complete({
27
+ pool: request.pool,
28
+ client: request.client,
29
+ user,
30
+ occasion: SimCognitoTriggerOccasion.tokenGeneration,
31
+ tokenClientMetadata: request.clientMetadata,
32
+ clientMetadata: request.clientMetadata,
33
+ });
34
+ }
35
+ }
36
+ //# sourceMappingURL=sim-cognito-web-authn-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-response.js","sourceRoot":"","sources":["../../../../../src/service/cognito/command/auth/sim-cognito-web-authn-response.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AAEpG,OAAO,EAAE,kCAAkC,EAAE,MAAM,mEAAmE,CAAC;AASvH;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,UAAU,CAA6B;IAExD,YAAY,UAAgD;QAC1D,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CACZ,OAA6C,EAC7C,OAA8B,EAC9B,IAAoB;QAEpB,kCAAkC,CAChC,IAAI,CAAC,QAAQ,CAAC,WAAW,EACzB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,YAAY,CAAC,EAChD,OAAO,CAAC,sBAAsB,EAAE,CACjC,CAAC;QAEF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YACpC,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-unsimulated-client-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/client/sim-cognito-unsimulated-client-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,+BAA+B,CAAC;AAE3F;;;;;;GAMG;AACH,qBAAa,0CAA0C;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IAEzD,YAAY,SAAS,EAAE,MAAM,EAE5B;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,qCAAqC,GAAG,IAAI,CA0C3D;CACF"}
1
+ {"version":3,"file":"sim-cognito-unsimulated-client-options.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/command/client/sim-cognito-unsimulated-client-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,+BAA+B,CAAC;AAE3F;;;;;;GAMG;AACH,qBAAa,0CAA0C;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IAEzD,YAAY,SAAS,EAAE,MAAM,EAE5B;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,qCAAqC,GAAG,IAAI,CAgC3D;CACF"}