@kensio/yulin 1.18.2 → 1.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (559) hide show
  1. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +15 -0
  2. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
  3. package/dist/sdk/wire/sim-sdk-wire-operation.js +54 -2
  4. package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
  5. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts +3 -0
  6. package/dist/serve/http/api/sim-aws-api-endpoint.d.ts.map +1 -1
  7. package/dist/serve/http/api/sim-aws-api-endpoint.js +10 -2
  8. package/dist/serve/http/api/sim-aws-api-endpoint.js.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +6 -0
  10. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
  11. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +6 -0
  12. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
  13. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
  14. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +5 -0
  15. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  16. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts +5 -4
  17. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.d.ts.map +1 -1
  18. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js +5 -4
  19. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-sign-in-policy.js.map +1 -1
  20. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts +13 -0
  21. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts.map +1 -1
  22. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js +30 -1
  23. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js.map +1 -1
  24. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  25. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +9 -0
  26. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  27. package/dist/service/cognito/command/auth/auth.command.d.ts +5 -0
  28. package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
  29. package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts +22 -0
  30. package/dist/service/cognito/command/auth/sim-cognito-answering-user.d.ts.map +1 -0
  31. package/dist/service/cognito/command/auth/sim-cognito-answering-user.js +25 -0
  32. package/dist/service/cognito/command/auth/sim-cognito-answering-user.js.map +1 -0
  33. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -1
  34. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +9 -0
  35. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -1
  36. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +6 -0
  37. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  38. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +23 -5
  39. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  40. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +7 -3
  41. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -1
  42. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +9 -3
  43. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
  44. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts +6 -0
  45. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.d.ts.map +1 -1
  46. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js +6 -0
  47. package/dist/service/cognito/command/auth/sim-cognito-auth-flow.js.map +1 -1
  48. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts +8 -0
  49. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.d.ts.map +1 -1
  50. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js +16 -2
  51. package/dist/service/cognito/command/auth/sim-cognito-auth-flows.js.map +1 -1
  52. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts +7 -0
  53. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.d.ts.map +1 -1
  54. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js +16 -0
  55. package/dist/service/cognito/command/auth/sim-cognito-auth-parameters.js.map +1 -1
  56. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts +35 -0
  57. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.d.ts.map +1 -0
  58. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js +83 -0
  59. package/dist/service/cognito/command/auth/sim-cognito-available-challenges.js.map +1 -0
  60. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts +3 -0
  61. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts.map +1 -1
  62. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js +18 -0
  63. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js.map +1 -1
  64. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts +54 -0
  65. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.d.ts.map +1 -0
  66. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js +87 -0
  67. package/dist/service/cognito/command/auth/sim-cognito-first-factor-challenge.js.map +1 -0
  68. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts +55 -0
  69. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.d.ts.map +1 -0
  70. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js +64 -0
  71. package/dist/service/cognito/command/auth/sim-cognito-first-factor-response.js.map +1 -0
  72. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js +1 -1
  73. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js.map +1 -1
  74. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts +2 -1
  75. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.d.ts.map +1 -1
  76. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js +2 -2
  77. package/dist/service/cognito/command/auth/sim-cognito-new-password-challenge.js.map +1 -1
  78. package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts +31 -0
  79. package/dist/service/cognito/command/auth/sim-cognito-password-response.d.ts.map +1 -0
  80. package/dist/service/cognito/command/auth/sim-cognito-password-response.js +39 -0
  81. package/dist/service/cognito/command/auth/sim-cognito-password-response.js.map +1 -0
  82. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +1 -1
  83. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  84. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -1
  85. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +7 -2
  86. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
  87. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts +44 -0
  88. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.d.ts.map +1 -0
  89. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js +62 -0
  90. package/dist/service/cognito/command/auth/sim-cognito-user-auth-sign-in.js.map +1 -0
  91. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts +30 -0
  92. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.d.ts.map +1 -0
  93. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js +36 -0
  94. package/dist/service/cognito/command/auth/sim-cognito-web-authn-response.js.map +1 -0
  95. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
  96. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
  97. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
  98. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
  99. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +1 -0
  100. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
  101. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +1 -0
  102. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  103. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +22 -0
  104. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
  105. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +4 -4
  106. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +4 -4
  107. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts +6 -0
  108. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
  109. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +2 -1
  110. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
  111. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts +71 -0
  112. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.d.ts.map +1 -0
  113. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js +76 -0
  114. package/dist/service/cognito/command/hosted/sim-cognito-hosted-passkey-sign-in.js.map +1 -0
  115. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +16 -7
  116. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -1
  117. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +26 -7
  118. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -1
  119. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -0
  120. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  121. package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
  122. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  123. package/dist/service/cognito/command/sim-cognito-commands.js +9 -0
  124. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  125. package/dist/service/cognito/command/sim-cognito-page.d.ts +10 -0
  126. package/dist/service/cognito/command/sim-cognito-page.d.ts.map +1 -1
  127. package/dist/service/cognito/command/sim-cognito-page.js +11 -7
  128. package/dist/service/cognito/command/sim-cognito-page.js.map +1 -1
  129. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts +49 -0
  130. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.d.ts.map +1 -0
  131. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js +88 -0
  132. package/dist/service/cognito/command/user/sim-cognito-web-authn-commands.js.map +1 -0
  133. package/dist/service/cognito/command/user/web-authn.command.d.ts +87 -0
  134. package/dist/service/cognito/command/user/web-authn.command.d.ts.map +1 -0
  135. package/dist/service/cognito/command/user/web-authn.command.js +2 -0
  136. package/dist/service/cognito/command/user/web-authn.command.js.map +1 -0
  137. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +4 -0
  138. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
  139. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +4 -1
  140. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
  141. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +5 -3
  142. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -1
  143. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +5 -4
  144. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -1
  145. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -0
  146. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  147. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +9 -1
  148. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  149. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +2 -3
  150. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -1
  151. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +24 -0
  152. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -1
  153. package/dist/service/cognito/error/sim-cognito-managed-login.error.js +37 -0
  154. package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -1
  155. package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts +56 -0
  156. package/dist/service/cognito/error/sim-cognito-web-authn.error.d.ts.map +1 -0
  157. package/dist/service/cognito/error/sim-cognito-web-authn.error.js +66 -0
  158. package/dist/service/cognito/error/sim-cognito-web-authn.error.js.map +1 -0
  159. package/dist/service/cognito/index.d.ts +9 -1
  160. package/dist/service/cognito/index.d.ts.map +1 -1
  161. package/dist/service/cognito/index.js +7 -0
  162. package/dist/service/cognito/index.js.map +1 -1
  163. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts +2 -2
  164. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.d.ts.map +1 -1
  165. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js +4 -2
  166. package/dist/service/cognito/sdk/sim-cognito-sdk-command-router.js.map +1 -1
  167. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts +11 -0
  168. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.d.ts.map +1 -0
  169. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js +28 -0
  170. package/dist/service/cognito/sdk/sim-cognito-sdk-web-authn-routes.js.map +1 -0
  171. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +4 -2
  172. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -1
  173. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +9 -3
  174. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -1
  175. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts +23 -0
  176. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.d.ts.map +1 -0
  177. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js +36 -0
  178. package/dist/service/cognito/serve/page/sim-cognito-passkey-page.js.map +1 -0
  179. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +13 -1
  180. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -1
  181. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +24 -2
  182. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -1
  183. package/dist/service/cognito/sim-cognito-user-factors.d.ts +25 -0
  184. package/dist/service/cognito/sim-cognito-user-factors.d.ts.map +1 -1
  185. package/dist/service/cognito/sim-cognito-user-factors.js +37 -0
  186. package/dist/service/cognito/sim-cognito-user-factors.js.map +1 -1
  187. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +33 -2
  188. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -1
  189. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +27 -12
  190. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -1
  191. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +5 -0
  192. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
  193. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +12 -0
  194. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
  195. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +10 -0
  196. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
  197. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -0
  198. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
  199. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts +27 -0
  200. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.d.ts.map +1 -0
  201. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js +55 -0
  202. package/dist/service/cognito/user-pool/client/sim-cognito-auth-session-validity.js.map +1 -0
  203. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +6 -0
  204. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
  205. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +6 -0
  206. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
  207. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +6 -0
  208. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  209. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +7 -0
  210. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  211. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts +16 -0
  212. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.d.ts.map +1 -0
  213. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js +32 -0
  214. package/dist/service/cognito/user-pool/mfa/sim-cognito-relying-party.js.map +1 -0
  215. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +16 -0
  216. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -1
  217. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js +29 -0
  218. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -1
  219. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts +46 -0
  220. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.d.ts.map +1 -0
  221. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js +73 -0
  222. package/dist/service/cognito/user-pool/mfa/sim-cognito-web-authn-configuration.js.map +1 -0
  223. package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts +1 -9
  224. package/dist/service/cognito/user-pool/sim-cognito-password-policy.d.ts.map +1 -1
  225. package/dist/service/cognito/user-pool/sim-cognito-password-policy.js.map +1 -1
  226. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts +60 -0
  227. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.d.ts.map +1 -0
  228. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js +100 -0
  229. package/dist/service/cognito/user-pool/sim-cognito-sign-in-policy.js.map +1 -0
  230. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +11 -1
  231. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  232. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +12 -1
  233. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  234. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +48 -69
  235. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  236. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +58 -73
  237. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  238. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +13 -18
  239. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  240. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +23 -24
  241. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  242. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts +73 -0
  243. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.d.ts.map +1 -0
  244. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js +113 -0
  245. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-user-web-authn.js.map +1 -0
  246. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts +22 -0
  247. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.d.ts.map +1 -0
  248. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js +53 -0
  249. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-assertion.js.map +1 -0
  250. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts +15 -0
  251. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.d.ts.map +1 -0
  252. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js +68 -0
  253. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-attested-key.js.map +1 -0
  254. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts +33 -0
  255. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.d.ts.map +1 -0
  256. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js +67 -0
  257. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-ceremony.js.map +1 -0
  258. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts +24 -0
  259. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.d.ts.map +1 -0
  260. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js +45 -0
  261. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-client-data.js.map +1 -0
  262. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts +28 -0
  263. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.d.ts.map +1 -0
  264. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js +41 -0
  265. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-creation-options.js.map +1 -0
  266. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts +69 -0
  267. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.d.ts.map +1 -0
  268. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js +69 -0
  269. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-credential.js.map +1 -0
  270. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts +39 -0
  271. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.d.ts.map +1 -0
  272. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js +90 -0
  273. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-device.js.map +1 -0
  274. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts +111 -0
  275. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.d.ts.map +1 -0
  276. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js +2 -0
  277. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.js.map +1 -0
  278. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts +37 -0
  279. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.d.ts.map +1 -0
  280. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js +39 -0
  281. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.js.map +1 -0
  282. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts +21 -0
  283. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.d.ts.map +1 -0
  284. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js +45 -0
  285. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.js.map +1 -0
  286. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts +52 -0
  287. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.d.ts.map +1 -0
  288. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js +98 -0
  289. package/dist/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.js.map +1 -0
  290. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts +5 -4
  291. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.d.ts.map +1 -1
  292. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js +17 -4
  293. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.js.map +1 -1
  294. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts +8 -1
  295. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.d.ts.map +1 -1
  296. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js +10 -3
  297. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.js.map +1 -1
  298. package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js +1 -1
  299. package/dist/service/iam/sigv4/sim-iam-sigv4-signature-check.js.map +1 -1
  300. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts +26 -0
  301. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.d.ts.map +1 -0
  302. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js +32 -0
  303. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.js.map +1 -0
  304. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts +40 -0
  305. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.d.ts.map +1 -0
  306. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js +42 -0
  307. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.js.map +1 -0
  308. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts +12 -0
  309. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.d.ts.map +1 -0
  310. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js +26 -0
  311. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-property-rules.js.map +1 -0
  312. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts +13 -0
  313. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.d.ts.map +1 -0
  314. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js +20 -0
  315. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-remover.js.map +1 -0
  316. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts +26 -0
  317. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.d.ts.map +1 -0
  318. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js +47 -0
  319. package/dist/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-destinations.js.map +1 -0
  320. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts +20 -0
  321. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.d.ts.map +1 -0
  322. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js +29 -0
  323. package/dist/service/lambda/cfn/function/sim-cfn-lambda-dead-letter-parser.js.map +1 -0
  324. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts +3 -0
  325. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.d.ts.map +1 -1
  326. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js +4 -0
  327. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-properties-parser.js.map +1 -1
  328. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.d.ts.map +1 -1
  329. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js +5 -0
  330. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-deleter.js.map +1 -1
  331. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts +1 -0
  332. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.d.ts.map +1 -1
  333. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js +8 -0
  334. package/dist/service/lambda/cfn/sim-cfn-lambda-resource-factory.js.map +1 -1
  335. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts +35 -0
  336. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.d.ts.map +1 -0
  337. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js +73 -0
  338. package/dist/service/lambda/cfn/sim-cfn-lambda-target-arn.js.map +1 -0
  339. package/dist/service/lambda/command/create-function/create-function-input.d.ts +1 -0
  340. package/dist/service/lambda/command/create-function/create-function-input.d.ts.map +1 -1
  341. package/dist/service/lambda/command/create-function/create-function-input.js +2 -0
  342. package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
  343. package/dist/service/lambda/command/create-function/create-function.command.d.ts +2 -0
  344. package/dist/service/lambda/command/create-function/create-function.command.d.ts.map +1 -1
  345. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts +5 -1
  346. package/dist/service/lambda/command/delete-function/delete-function.handler.d.ts.map +1 -1
  347. package/dist/service/lambda/command/delete-function/delete-function.handler.js +5 -1
  348. package/dist/service/lambda/command/delete-function/delete-function.handler.js.map +1 -1
  349. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts +24 -0
  350. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.d.ts.map +1 -0
  351. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js +5 -0
  352. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.command.js.map +1 -0
  353. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts +24 -0
  354. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.d.ts.map +1 -0
  355. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js +27 -0
  356. package/dist/service/lambda/command/delete-function-event-invoke-config/delete-function-event-invoke-config.handler.js.map +1 -0
  357. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts +29 -0
  358. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.d.ts.map +1 -0
  359. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js +39 -0
  360. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-authorizer.js.map +1 -0
  361. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts +32 -0
  362. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.d.ts.map +1 -0
  363. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js +62 -0
  364. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-input.js.map +1 -0
  365. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts +49 -0
  366. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.d.ts.map +1 -0
  367. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js +44 -0
  368. package/dist/service/lambda/command/event-invoke-config/event-invoke-config-request.js.map +1 -0
  369. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts +49 -0
  370. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.d.ts.map +1 -0
  371. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js +49 -0
  372. package/dist/service/lambda/command/event-invoke-config/sim-lambda-event-invoke-config-commands.js.map +1 -0
  373. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +4 -0
  374. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  375. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  376. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts +25 -0
  377. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.d.ts.map +1 -0
  378. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js +5 -0
  379. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.command.js.map +1 -0
  380. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts +23 -0
  381. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.d.ts.map +1 -0
  382. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js +27 -0
  383. package/dist/service/lambda/command/get-function-event-invoke-config/get-function-event-invoke-config.handler.js.map +1 -0
  384. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts +31 -0
  385. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.d.ts.map +1 -0
  386. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js +24 -0
  387. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation-settings.js.map +1 -0
  388. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts +43 -0
  389. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.d.ts.map +1 -0
  390. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js +64 -0
  391. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocation.js.map +1 -0
  392. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts +26 -0
  393. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.d.ts.map +1 -0
  394. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js +33 -0
  395. package/dist/service/lambda/command/invoke/async/sim-lambda-async-invocations.js.map +1 -0
  396. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts +63 -0
  397. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.d.ts.map +1 -0
  398. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js +88 -0
  399. package/dist/service/lambda/command/invoke/async/sim-lambda-async-outcome.js.map +1 -0
  400. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts +10 -3
  401. package/dist/service/lambda/command/invoke/invoke-dispatcher.d.ts.map +1 -1
  402. package/dist/service/lambda/command/invoke/invoke-dispatcher.js +16 -17
  403. package/dist/service/lambda/command/invoke/invoke-dispatcher.js.map +1 -1
  404. package/dist/service/lambda/command/invoke/invoke-payload.d.ts +16 -0
  405. package/dist/service/lambda/command/invoke/invoke-payload.d.ts.map +1 -1
  406. package/dist/service/lambda/command/invoke/invoke-payload.js +14 -4
  407. package/dist/service/lambda/command/invoke/invoke-payload.js.map +1 -1
  408. package/dist/service/lambda/command/invoke/invoke.handler.d.ts +4 -0
  409. package/dist/service/lambda/command/invoke/invoke.handler.d.ts.map +1 -1
  410. package/dist/service/lambda/command/invoke/invoke.handler.js +6 -2
  411. package/dist/service/lambda/command/invoke/invoke.handler.js.map +1 -1
  412. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts +28 -0
  413. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.d.ts.map +1 -0
  414. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js +5 -0
  415. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.command.js.map +1 -0
  416. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts +23 -0
  417. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.d.ts.map +1 -0
  418. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js +31 -0
  419. package/dist/service/lambda/command/list-function-event-invoke-configs/list-function-event-invoke-configs.handler.js.map +1 -0
  420. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts +31 -0
  421. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.d.ts.map +1 -0
  422. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js +5 -0
  423. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.command.js.map +1 -0
  424. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts +24 -0
  425. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.d.ts.map +1 -0
  426. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js +32 -0
  427. package/dist/service/lambda/command/put-function-event-invoke-config/put-function-event-invoke-config.handler.js.map +1 -0
  428. package/dist/service/lambda/command/sim-lambda-command.types.d.ts +5 -0
  429. package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
  430. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -1
  431. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +2 -0
  432. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -1
  433. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +6 -4
  434. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -1
  435. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts +30 -0
  436. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.d.ts.map +1 -0
  437. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js +5 -0
  438. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.command.js.map +1 -0
  439. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts +25 -0
  440. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.d.ts.map +1 -0
  441. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js +33 -0
  442. package/dist/service/lambda/command/update-function-event-invoke-config/update-function-event-invoke-config.handler.js.map +1 -0
  443. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts +16 -0
  444. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.d.ts.map +1 -0
  445. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js +31 -0
  446. package/dist/service/lambda/destination/deliver/sim-lambda-destination-bus.js.map +1 -0
  447. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts +13 -0
  448. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.d.ts.map +1 -0
  449. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js +25 -0
  450. package/dist/service/lambda/destination/deliver/sim-lambda-destination-function.js.map +1 -0
  451. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts +15 -0
  452. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.d.ts.map +1 -0
  453. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js +25 -0
  454. package/dist/service/lambda/destination/deliver/sim-lambda-destination-queue.js.map +1 -0
  455. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts +15 -0
  456. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.d.ts.map +1 -0
  457. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js +2 -0
  458. package/dist/service/lambda/destination/deliver/sim-lambda-destination-send.js.map +1 -0
  459. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts +15 -0
  460. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.d.ts.map +1 -0
  461. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js +23 -0
  462. package/dist/service/lambda/destination/deliver/sim-lambda-destination-topic.js.map +1 -0
  463. package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts +38 -0
  464. package/dist/service/lambda/destination/sim-aws-lambda-destinations.d.ts.map +1 -0
  465. package/dist/service/lambda/destination/sim-aws-lambda-destinations.js +78 -0
  466. package/dist/service/lambda/destination/sim-aws-lambda-destinations.js.map +1 -0
  467. package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts +53 -0
  468. package/dist/service/lambda/destination/sim-lambda-destination-arn.d.ts.map +1 -0
  469. package/dist/service/lambda/destination/sim-lambda-destination-arn.js +122 -0
  470. package/dist/service/lambda/destination/sim-lambda-destination-arn.js.map +1 -0
  471. package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts +53 -0
  472. package/dist/service/lambda/destination/sim-lambda-destination-record.d.ts.map +1 -0
  473. package/dist/service/lambda/destination/sim-lambda-destination-record.js +26 -0
  474. package/dist/service/lambda/destination/sim-lambda-destination-record.js.map +1 -0
  475. package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts +49 -0
  476. package/dist/service/lambda/destination/sim-lambda-destination-targets.d.ts.map +1 -0
  477. package/dist/service/lambda/destination/sim-lambda-destination-targets.js +25 -0
  478. package/dist/service/lambda/destination/sim-lambda-destination-targets.js.map +1 -0
  479. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts +17 -0
  480. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.d.ts.map +1 -0
  481. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js +26 -0
  482. package/dist/service/lambda/function/event-invoke/lambda-dead-letter-target.js.map +1 -0
  483. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts +58 -0
  484. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.d.ts.map +1 -0
  485. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js +86 -0
  486. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config-store.js.map +1 -0
  487. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts +117 -0
  488. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.d.ts.map +1 -0
  489. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js +37 -0
  490. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-config.js.map +1 -0
  491. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts +35 -0
  492. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.d.ts.map +1 -0
  493. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js +70 -0
  494. package/dist/service/lambda/function/event-invoke/sim-lambda-event-invoke-settings.js.map +1 -0
  495. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts +3 -0
  496. package/dist/service/lambda/function/sim-lambda-function-configuration.d.ts.map +1 -1
  497. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts +11 -0
  498. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.d.ts.map +1 -0
  499. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js +27 -0
  500. package/dist/service/lambda/function/sim-lambda-function-configuration.factory.js.map +1 -0
  501. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +5 -0
  502. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -1
  503. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +12 -0
  504. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -1
  505. package/dist/service/lambda/function/sim-lambda-function.d.ts +2 -0
  506. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  507. package/dist/service/lambda/function/sim-lambda-function.js +7 -14
  508. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  509. package/dist/service/lambda/function/sim-lambda-function.type.d.ts +5 -0
  510. package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -1
  511. package/dist/service/lambda/index.d.ts +2 -0
  512. package/dist/service/lambda/index.d.ts.map +1 -1
  513. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts +10 -0
  514. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.d.ts.map +1 -0
  515. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js +32 -0
  516. package/dist/service/lambda/sdk/sim-lambda-event-invoke-config-routes.js.map +1 -0
  517. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
  518. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +2 -0
  519. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
  520. package/dist/service/lambda/sim-lambda-commands.d.ts +11 -0
  521. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  522. package/dist/service/lambda/sim-lambda-commands.js +17 -1
  523. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  524. package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts +23 -0
  525. package/dist/service/lambda/sim-lambda-event-invoke-operations.d.ts.map +1 -0
  526. package/dist/service/lambda/sim-lambda-event-invoke-operations.js +31 -0
  527. package/dist/service/lambda/sim-lambda-event-invoke-operations.js.map +1 -0
  528. package/dist/service/lambda/sim-lambda-inspection.d.ts +9 -0
  529. package/dist/service/lambda/sim-lambda-inspection.d.ts.map +1 -1
  530. package/dist/service/lambda/sim-lambda-inspection.js +13 -0
  531. package/dist/service/lambda/sim-lambda-inspection.js.map +1 -1
  532. package/dist/service/lambda/sim-lambda-request-options.d.ts +8 -0
  533. package/dist/service/lambda/sim-lambda-request-options.d.ts.map +1 -0
  534. package/dist/service/lambda/sim-lambda-request-options.js +2 -0
  535. package/dist/service/lambda/sim-lambda-request-options.js.map +1 -0
  536. package/dist/service/lambda/sim-lambda.d.ts +6 -7
  537. package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
  538. package/dist/service/lambda/sim-lambda.js +4 -3
  539. package/dist/service/lambda/sim-lambda.js.map +1 -1
  540. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts +14 -0
  541. package/dist/service/s3/serve/api/sim-s3-api-object-input.d.ts.map +1 -1
  542. package/dist/service/s3/serve/api/sim-s3-api-object-input.js +20 -0
  543. package/dist/service/s3/serve/api/sim-s3-api-object-input.js.map +1 -1
  544. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts +14 -0
  545. package/dist/service/s3/serve/api/sim-s3-api-object-output.d.ts.map +1 -1
  546. package/dist/service/s3/serve/api/sim-s3-api-object-output.js +12 -0
  547. package/dist/service/s3/serve/api/sim-s3-api-object-output.js.map +1 -1
  548. package/dist/service/s3/serve/api/sim-s3-api-object-routes.d.ts.map +1 -1
  549. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js +23 -1
  550. package/dist/service/s3/serve/api/sim-s3-api-object-routes.js.map +1 -1
  551. package/dist/service/s3/serve/api/sim-s3-api-output.d.ts.map +1 -1
  552. package/dist/service/s3/serve/api/sim-s3-api-output.js +7 -1
  553. package/dist/service/s3/serve/api/sim-s3-api-output.js.map +1 -1
  554. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts +14 -3
  555. package/dist/service/s3/serve/api/sim-s3-api-route.type.d.ts.map +1 -1
  556. package/dist/service/s3/serve/api/sim-s3-api-routes.d.ts.map +1 -1
  557. package/dist/service/s3/serve/api/sim-s3-api-routes.js +2 -1
  558. package/dist/service/s3/serve/api/sim-s3-api-routes.js.map +1 -1
  559. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-document.js","sourceRoot":"","sources":["../../../../../../src/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-document.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ import type { KeyObject } from "node:crypto";
2
+ /**
3
+ * One passkey as the device holds it, which is the half a pool never sees.
4
+ */
5
+ export interface SimCognitoWebAuthnStoredKey {
6
+ readonly privateKey: KeyObject;
7
+ /**
8
+ * How many times this passkey has signed, which travels in the
9
+ * authenticator data of every assertion it produces.
10
+ */
11
+ signCount: number;
12
+ }
13
+ /**
14
+ * The passkeys one stand-in authenticator is holding.
15
+ *
16
+ * A real authenticator keeps the private half of every credential it has made
17
+ * and hands out signatures. This holds the same thing for the same reason. The
18
+ * pool stores the public half, and the two have to be apart for a signature to
19
+ * mean anything.
20
+ */
21
+ export declare class SimCognitoWebAuthnKeys {
22
+ #private;
23
+ /** Keep the private key of a credential this device has just made. */
24
+ add(credentialId: string, privateKey: KeyObject): void;
25
+ /** Forget a passkey, because the pool that held its public half has. */
26
+ forget(credentialId: string): void;
27
+ /**
28
+ * The passkey this device would present, out of the ones a sign-in allows.
29
+ *
30
+ * A challenge allowing none in particular is answered with whichever this
31
+ * device holds, which is what a discoverable credential prompt does. One
32
+ * naming credentials is answered with the first of them this device has,
33
+ * which is the choice a person makes at a real prompt.
34
+ */
35
+ requireOneOf(allowed: readonly string[]): readonly [string, SimCognitoWebAuthnStoredKey];
36
+ }
37
+ //# sourceMappingURL=sim-cognito-web-authn-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-keys.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAE/B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,qBAAa,sBAAsB;;IAGjC,sEAAsE;IACtE,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,GAAG,IAAI,CAErD;IAED,wEAAwE;IACxE,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAEjC;IAED;;;;;;;OAOG;IACH,YAAY,CACV,OAAO,EAAE,SAAS,MAAM,EAAE,GACzB,SAAS,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAYhD;CACF"}
@@ -0,0 +1,39 @@
1
+ import { SimCognitoInvalidParameterException } from "../../../error/sim-cognito.error.js";
2
+ /**
3
+ * The passkeys one stand-in authenticator is holding.
4
+ *
5
+ * A real authenticator keeps the private half of every credential it has made
6
+ * and hands out signatures. This holds the same thing for the same reason. The
7
+ * pool stores the public half, and the two have to be apart for a signature to
8
+ * mean anything.
9
+ */
10
+ export class SimCognitoWebAuthnKeys {
11
+ #keys = new Map();
12
+ /** Keep the private key of a credential this device has just made. */
13
+ add(credentialId, privateKey) {
14
+ this.#keys.set(credentialId, { privateKey, signCount: 0 });
15
+ }
16
+ /** Forget a passkey, because the pool that held its public half has. */
17
+ forget(credentialId) {
18
+ this.#keys.delete(credentialId);
19
+ }
20
+ /**
21
+ * The passkey this device would present, out of the ones a sign-in allows.
22
+ *
23
+ * A challenge allowing none in particular is answered with whichever this
24
+ * device holds, which is what a discoverable credential prompt does. One
25
+ * naming credentials is answered with the first of them this device has,
26
+ * which is the choice a person makes at a real prompt.
27
+ */
28
+ requireOneOf(allowed) {
29
+ for (const [credentialId, key] of this.#keys) {
30
+ if (allowed.length === 0 || allowed.includes(credentialId)) {
31
+ return [credentialId, key];
32
+ }
33
+ }
34
+ throw new SimCognitoInvalidParameterException("This user has registered no passkey the challenge would accept: " +
35
+ "register one with StartWebAuthnRegistration and " +
36
+ "CompleteWebAuthnRegistration first");
37
+ }
38
+ }
39
+ //# sourceMappingURL=sim-cognito-web-authn-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-keys.js","sourceRoot":"","sources":["../../../../../../src/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-keys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mCAAmC,EAAE,MAAM,qCAAqC,CAAC;AAe1F;;;;;;;GAOG;AACH,MAAM,OAAO,sBAAsB;IACxB,KAAK,GAAG,IAAI,GAAG,EAAuC,CAAC;IAEhE,sEAAsE;IACtE,GAAG,CAAC,YAAoB,EAAE,UAAqB;QAC7C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,wEAAwE;IACxE,MAAM,CAAC,YAAoB;QACzB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CACV,OAA0B;QAE1B,KAAK,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC7C,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC3D,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC;QAED,MAAM,IAAI,mCAAmC,CAC3C,kEAAkE;YAChE,kDAAkD;YAClD,oCAAoC,CACvC,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import { type KeyObject } from "node:crypto";
2
+ /**
3
+ * The public key as it travels in a credential, which is base64url of its
4
+ * SubjectPublicKeyInfo.
5
+ *
6
+ * This is the encoding `PublicKeyCredential.toJSON()` uses for the `publicKey`
7
+ * a browser reports, so a credential built here carries the key in the shape a
8
+ * real one carries it.
9
+ */
10
+ export declare function simCognitoWebAuthnPublicKey(publicKey: KeyObject): string;
11
+ /**
12
+ * Read a public key back out of a credential, or nothing where the value is
13
+ * not a key this pool can use.
14
+ *
15
+ * A registration asks for ECDSA over P-256 and nothing else, so a key of
16
+ * another kind is no more usable than a value that is not a key at all. The
17
+ * algorithm a credential names is the caller's word for it, and this is the
18
+ * key itself.
19
+ */
20
+ export declare function simCognitoWebAuthnKeyFrom(encoded: string): KeyObject | undefined;
21
+ //# sourceMappingURL=sim-cognito-web-authn-public-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-public-key.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAO9D;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAIxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,GACd,SAAS,GAAG,SAAS,CAmBvB"}
@@ -0,0 +1,45 @@
1
+ import { createPublicKey } from "node:crypto";
2
+ /**
3
+ * The curve an ES256 key is over, as `node:crypto` names it.
4
+ */
5
+ const namedCurve = "prime256v1";
6
+ /**
7
+ * The public key as it travels in a credential, which is base64url of its
8
+ * SubjectPublicKeyInfo.
9
+ *
10
+ * This is the encoding `PublicKeyCredential.toJSON()` uses for the `publicKey`
11
+ * a browser reports, so a credential built here carries the key in the shape a
12
+ * real one carries it.
13
+ */
14
+ export function simCognitoWebAuthnPublicKey(publicKey) {
15
+ return publicKey
16
+ .export({ format: "der", type: "spki" })
17
+ .toString("base64url");
18
+ }
19
+ /**
20
+ * Read a public key back out of a credential, or nothing where the value is
21
+ * not a key this pool can use.
22
+ *
23
+ * A registration asks for ECDSA over P-256 and nothing else, so a key of
24
+ * another kind is no more usable than a value that is not a key at all. The
25
+ * algorithm a credential names is the caller's word for it, and this is the
26
+ * key itself.
27
+ */
28
+ export function simCognitoWebAuthnKeyFrom(encoded) {
29
+ try {
30
+ const publicKey = createPublicKey({
31
+ key: Buffer.from(encoded, "base64url"),
32
+ format: "der",
33
+ type: "spki",
34
+ });
35
+ if (publicKey.asymmetricKeyType !== "ec" ||
36
+ publicKey.asymmetricKeyDetails?.namedCurve !== namedCurve) {
37
+ return undefined;
38
+ }
39
+ return publicKey;
40
+ }
41
+ catch {
42
+ return undefined;
43
+ }
44
+ }
45
+ //# sourceMappingURL=sim-cognito-web-authn-public-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-public-key.js","sourceRoot":"","sources":["../../../../../../src/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAkB,MAAM,aAAa,CAAC;AAE9D;;GAEG;AACH,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC;;;;;;;GAOG;AACH,MAAM,UAAU,2BAA2B,CAAC,SAAoB;IAC9D,OAAO,SAAS;SACb,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACvC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC3B,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAe;IAEf,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,eAAe,CAAC;YAChC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC;YACtC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;QAEH,IACE,SAAS,CAAC,iBAAiB,KAAK,IAAI;YACpC,SAAS,CAAC,oBAAoB,EAAE,UAAU,KAAK,UAAU,EACzD,CAAC;YACD,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { type KeyObject } from "node:crypto";
2
+ /**
3
+ * The COSE algorithm identifier for ECDSA over P-256 with SHA-256, which every
4
+ * platform authenticator supports and which Cognito asks for.
5
+ */
6
+ export declare const simCognitoWebAuthnAlgorithm = -7;
7
+ /**
8
+ * A key pair standing in for the one a passkey lives as.
9
+ */
10
+ export interface SimCognitoWebAuthnKeyPair {
11
+ readonly publicKey: KeyObject;
12
+ readonly privateKey: KeyObject;
13
+ }
14
+ /**
15
+ * Issue the key pair a new passkey is made of.
16
+ *
17
+ * The private half is what an authenticator would keep and never hand over,
18
+ * and the public half is what the pool stores against the credential.
19
+ */
20
+ export declare function simCognitoWebAuthnKeyPair(): SimCognitoWebAuthnKeyPair;
21
+ /**
22
+ * A run of random bytes as base64url, which is how a challenge and a
23
+ * credential id both travel.
24
+ */
25
+ export declare function simCognitoWebAuthnChallenge(): string;
26
+ /**
27
+ * The identifier an authenticator gives a credential it has just created.
28
+ */
29
+ export declare function simCognitoWebAuthnCredentialId(): string;
30
+ /**
31
+ * The client data a browser would have collected, as the JSON bytes an
32
+ * authenticator signs over.
33
+ *
34
+ * The origin is the relying party's own, because a passkey registered against
35
+ * a domain is presented from that domain and nowhere else.
36
+ */
37
+ export declare function simCognitoWebAuthnClientData(type: "webauthn.create" | "webauthn.get", challenge: string, relyingPartyId: string): Buffer;
38
+ /**
39
+ * The authenticator data of one ceremony: the relying party the credential
40
+ * answers for, what the authenticator checked, and how many times it has
41
+ * signed.
42
+ */
43
+ export declare function simCognitoWebAuthnAuthenticatorData(relyingPartyId: string, signCount: number): Buffer;
44
+ /**
45
+ * Sign one ceremony with a passkey's private half.
46
+ */
47
+ export declare function simCognitoWebAuthnSignature(privateKey: KeyObject, authenticatorData: Buffer, clientDataJson: Buffer): string;
48
+ /**
49
+ * Whether a signature is the one this passkey would have produced.
50
+ */
51
+ export declare function simCognitoWebAuthnVerified(publicKey: KeyObject, authenticatorData: Buffer, clientDataJson: Buffer, signature: Buffer): boolean;
52
+ //# sourceMappingURL=sim-cognito-web-authn-signing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-signing.d.ts","sourceRoot":"","sources":["../../../../../../src/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAuB9C;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;CAChC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,IAAI,yBAAyB,CAErE;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAEpD;AAED;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,iBAAiB,GAAG,cAAc,EACxC,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,GACrB,MAAM,CASR;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,CACjD,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,GAChB,MAAM,CAUR;AAgBD;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,SAAS,EACrB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,GACrB,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,GAChB,OAAO,CAOT"}
@@ -0,0 +1,98 @@
1
+ import { createHash, generateKeyPairSync, randomBytes, sign, verify, } from "node:crypto";
2
+ /**
3
+ * The COSE algorithm identifier for ECDSA over P-256 with SHA-256, which every
4
+ * platform authenticator supports and which Cognito asks for.
5
+ */
6
+ export const simCognitoWebAuthnAlgorithm = -7;
7
+ /**
8
+ * How many bytes of challenge a ceremony is given.
9
+ */
10
+ const challengeBytes = 32;
11
+ /**
12
+ * How many bytes of credential id an authenticator allocates.
13
+ */
14
+ const credentialIdBytes = 16;
15
+ /**
16
+ * The authenticator data flags this simulation sets, which say the user was
17
+ * present and the authenticator verified who was holding it.
18
+ *
19
+ * Real flags also say whether attested credential data follows, which is a
20
+ * registration's own business. Nothing here reads a registration's
21
+ * authenticator data beyond the relying party it names, so the two ceremonies
22
+ * set the same flags.
23
+ */
24
+ const presentAndVerified = 0x05;
25
+ /**
26
+ * Issue the key pair a new passkey is made of.
27
+ *
28
+ * The private half is what an authenticator would keep and never hand over,
29
+ * and the public half is what the pool stores against the credential.
30
+ */
31
+ export function simCognitoWebAuthnKeyPair() {
32
+ return generateKeyPairSync("ec", { namedCurve: "P-256" });
33
+ }
34
+ /**
35
+ * A run of random bytes as base64url, which is how a challenge and a
36
+ * credential id both travel.
37
+ */
38
+ export function simCognitoWebAuthnChallenge() {
39
+ return randomBytes(challengeBytes).toString("base64url");
40
+ }
41
+ /**
42
+ * The identifier an authenticator gives a credential it has just created.
43
+ */
44
+ export function simCognitoWebAuthnCredentialId() {
45
+ return randomBytes(credentialIdBytes).toString("base64url");
46
+ }
47
+ /**
48
+ * The client data a browser would have collected, as the JSON bytes an
49
+ * authenticator signs over.
50
+ *
51
+ * The origin is the relying party's own, because a passkey registered against
52
+ * a domain is presented from that domain and nowhere else.
53
+ */
54
+ export function simCognitoWebAuthnClientData(type, challenge, relyingPartyId) {
55
+ return Buffer.from(JSON.stringify({
56
+ type,
57
+ challenge,
58
+ origin: `https://${relyingPartyId}`,
59
+ crossOrigin: false,
60
+ }));
61
+ }
62
+ /**
63
+ * The authenticator data of one ceremony: the relying party the credential
64
+ * answers for, what the authenticator checked, and how many times it has
65
+ * signed.
66
+ */
67
+ export function simCognitoWebAuthnAuthenticatorData(relyingPartyId, signCount) {
68
+ const flags = Buffer.alloc(5);
69
+ flags.writeUInt8(presentAndVerified, 0);
70
+ flags.writeUInt32BE(signCount, 1);
71
+ return Buffer.concat([
72
+ createHash("sha256").update(relyingPartyId).digest(),
73
+ flags,
74
+ ]);
75
+ }
76
+ /**
77
+ * What a passkey signs, which is the authenticator data followed by a hash of
78
+ * the client data.
79
+ */
80
+ function signedBytes(authenticatorData, clientDataJson) {
81
+ return Buffer.concat([
82
+ authenticatorData,
83
+ createHash("sha256").update(clientDataJson).digest(),
84
+ ]);
85
+ }
86
+ /**
87
+ * Sign one ceremony with a passkey's private half.
88
+ */
89
+ export function simCognitoWebAuthnSignature(privateKey, authenticatorData, clientDataJson) {
90
+ return sign("sha256", signedBytes(authenticatorData, clientDataJson), privateKey).toString("base64url");
91
+ }
92
+ /**
93
+ * Whether a signature is the one this passkey would have produced.
94
+ */
95
+ export function simCognitoWebAuthnVerified(publicKey, authenticatorData, clientDataJson, signature) {
96
+ return verify("sha256", signedBytes(authenticatorData, clientDataJson), publicKey, signature);
97
+ }
98
+ //# sourceMappingURL=sim-cognito-web-authn-signing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-web-authn-signing.js","sourceRoot":"","sources":["../../../../../../src/service/cognito/user-pool/user/web-authn/sim-cognito-web-authn-signing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,IAAI,EACJ,MAAM,GAEP,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B;;GAEG;AACH,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B;;;;;;;;GAQG;AACH,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAUhC;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO,mBAAmB,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,2BAA2B;IACzC,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,8BAA8B;IAC5C,OAAO,WAAW,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,4BAA4B,CAC1C,IAAwC,EACxC,SAAiB,EACjB,cAAsB;IAEtB,OAAO,MAAM,CAAC,IAAI,CAChB,IAAI,CAAC,SAAS,CAAC;QACb,IAAI;QACJ,SAAS;QACT,MAAM,EAAE,WAAW,cAAc,EAAE;QACnC,WAAW,EAAE,KAAK;KACnB,CAAC,CACH,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mCAAmC,CACjD,cAAsB,EACtB,SAAiB;IAEjB,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE9B,KAAK,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;IACxC,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IAElC,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE;QACpD,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,SAAS,WAAW,CAClB,iBAAyB,EACzB,cAAsB;IAEtB,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,iBAAiB;QACjB,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE;KACrD,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,UAAqB,EACrB,iBAAyB,EACzB,cAAsB;IAEtB,OAAO,IAAI,CACT,QAAQ,EACR,WAAW,CAAC,iBAAiB,EAAE,cAAc,CAAC,EAC9C,UAAU,CACX,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,SAAoB,EACpB,iBAAyB,EACzB,cAAsB,EACtB,SAAiB;IAEjB,OAAO,MAAM,CACX,QAAQ,EACR,WAAW,CAAC,iBAAiB,EAAE,cAAc,CAAC,EAC9C,SAAS,EACT,SAAS,CACV,CAAC;AACJ,CAAC"}
@@ -6,9 +6,10 @@
6
6
  * request is the first encoding, which is why a literal `/` in a path segment
7
7
  * and a separator are still distinguishable here.
8
8
  *
9
- * S3 is the exception on real AWS: it signs the path singly encoded. Only
10
- * doubly encoded services are supported for now, which is every service the
11
- * simulator serves.
9
+ * A request signed for S3 gets neither step, and is signed over the path it
10
+ * arrived with. An Object key holds any byte S3 accepts (a space, an
11
+ * ampersand, a `.` segment, a doubled slash), and the path naming it survives
12
+ * to the signature untouched.
12
13
  */
13
- export declare function simIamSigV4CanonicalPath(path: string): string;
14
+ export declare function simIamSigV4CanonicalPath(path: string, serviceName: string): string;
14
15
  //# sourceMappingURL=sim-iam-sigv4-canonical-path.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-iam-sigv4-canonical-path.d.ts","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB7D"}
1
+ {"version":3,"file":"sim-iam-sigv4-canonical-path.d.ts","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,GAClB,MAAM,CAyBR"}
@@ -1,4 +1,13 @@
1
1
  import { escapeSigV4Uri } from "../sigv4-uri-escape.js";
2
+ /**
3
+ * The signing services that sign a path encoded once, as it arrived.
4
+ *
5
+ * SigV4 encodes the canonical path a second time, and real S3 is the exception
6
+ * to that. The name comes from the credential scope the request was signed
7
+ * under. The client picked its own rule from that same scope. Any further
8
+ * exception is one more entry here.
9
+ */
10
+ const singlyEncodedServices = new Set(["s3"]);
2
11
  /**
3
12
  * Build the canonical URI of a signed request.
4
13
  *
@@ -7,11 +16,15 @@ import { escapeSigV4Uri } from "../sigv4-uri-escape.js";
7
16
  * request is the first encoding, which is why a literal `/` in a path segment
8
17
  * and a separator are still distinguishable here.
9
18
  *
10
- * S3 is the exception on real AWS: it signs the path singly encoded. Only
11
- * doubly encoded services are supported for now, which is every service the
12
- * simulator serves.
19
+ * A request signed for S3 gets neither step, and is signed over the path it
20
+ * arrived with. An Object key holds any byte S3 accepts (a space, an
21
+ * ampersand, a `.` segment, a doubled slash), and the path naming it survives
22
+ * to the signature untouched.
13
23
  */
14
- export function simIamSigV4CanonicalPath(path) {
24
+ export function simIamSigV4CanonicalPath(path, serviceName) {
25
+ if (singlyEncodedServices.has(serviceName)) {
26
+ return path.length === 0 ? "/" : path;
27
+ }
15
28
  const segments = [];
16
29
  for (const segment of path.split("/")) {
17
30
  if (segment === "" || segment === ".") {
@@ -1 +1 @@
1
- {"version":3,"file":"sim-iam-sigv4-canonical-path.js","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAY;IACnD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACtC,IAAI,OAAO,KAAK,EAAE,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YACtC,SAAS;QACX,CAAC;QAED,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,SAAS;QACX,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAED,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3E,MAAM,UAAU,GAAG,GAAG,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,EAAE,CAAC;IAE1E,OAAO,cAAc,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC3D,CAAC"}
1
+ {"version":3,"file":"sim-iam-sigv4-canonical-path.js","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,wBAAwB,CACtC,IAAY,EACZ,WAAmB;IAEnB,IAAI,qBAAqB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IACxC,CAAC;IAED,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACtC,IAAI,OAAO,KAAK,EAAE,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YACtC,SAAS;QACX,CAAC;QAED,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,SAAS;QACX,CAAC;QAED,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAED,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACrD,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3E,MAAM,UAAU,GAAG,GAAG,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,aAAa,EAAE,CAAC;IAE1E,OAAO,cAAc,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC3D,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { SimIamSigV4SignatureStatement } from "../sim-iam-sigv4-signature-statement.js";
1
2
  import type { SimIamSigV4SignedRequest } from "../sim-iam-sigv4-signed-request.js";
2
3
  import { SimIamSigV4PayloadDeclaration } from "./sim-iam-sigv4-payload-hash.js";
3
4
  /**
@@ -8,12 +9,18 @@ import { SimIamSigV4PayloadDeclaration } from "./sim-iam-sigv4-payload-hash.js";
8
9
  * out, is the whole of SigV4 verification. Anything the canonical form covers
9
10
  * cannot be altered in transit without detection, and anything it leaves out
10
11
  * can be.
12
+ *
13
+ * The statement the request carries says which headers are signed and which
14
+ * service the signature is scoped to. Both belong to the canonical form. S3
15
+ * canonicalizes its path by a rule of its own, and the client read that rule
16
+ * from the scope it signed under.
11
17
  */
12
18
  export declare class SimIamSigV4CanonicalRequest {
13
19
  private readonly canonicalHeaders;
14
20
  private readonly signedRequest;
21
+ private readonly statement;
15
22
  private readonly payload;
16
- constructor(signedRequest: SimIamSigV4SignedRequest, signedHeaderNames: readonly string[], payload?: SimIamSigV4PayloadDeclaration);
23
+ constructor(signedRequest: SimIamSigV4SignedRequest, statement: SimIamSigV4SignatureStatement, payload?: SimIamSigV4PayloadDeclaration);
17
24
  /**
18
25
  * The canonical request string, ready to be hashed into a string to sign.
19
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-iam-sigv4-canonical-request.d.ts","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAInF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;;;;GAQG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA8B;IAC/D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA2B;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;IAExD,YACE,aAAa,EAAE,wBAAwB,EACvC,iBAAiB,EAAE,SAAS,MAAM,EAAE,EACpC,OAAO,GAAE,6BAER,EASF;IAED;;OAEG;IACH,QAAQ,IAAI,MAAM,CAWjB;CACF"}
1
+ {"version":3,"file":"sim-iam-sigv4-canonical-request.d.ts","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAInF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;;;;;;;;;GAaG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA8B;IAC/D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA2B;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;IAC1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;IAExD,YACE,aAAa,EAAE,wBAAwB,EACvC,SAAS,EAAE,6BAA6B,EACxC,OAAO,GAAE,6BAER,EAUF;IAED;;OAEG;IACH,QAAQ,IAAI,MAAM,CAWjB;CACF"}
@@ -10,15 +10,22 @@ import { SimIamSigV4PayloadDeclaration } from "./sim-iam-sigv4-payload-hash.js";
10
10
  * out, is the whole of SigV4 verification. Anything the canonical form covers
11
11
  * cannot be altered in transit without detection, and anything it leaves out
12
12
  * can be.
13
+ *
14
+ * The statement the request carries says which headers are signed and which
15
+ * service the signature is scoped to. Both belong to the canonical form. S3
16
+ * canonicalizes its path by a rule of its own, and the client read that rule
17
+ * from the scope it signed under.
13
18
  */
14
19
  export class SimIamSigV4CanonicalRequest {
15
20
  canonicalHeaders;
16
21
  signedRequest;
22
+ statement;
17
23
  payload;
18
- constructor(signedRequest, signedHeaderNames, payload = SimIamSigV4PayloadDeclaration.fromHeaders(signedRequest.headers)) {
24
+ constructor(signedRequest, statement, payload = SimIamSigV4PayloadDeclaration.fromHeaders(signedRequest.headers)) {
19
25
  this.signedRequest = signedRequest;
26
+ this.statement = statement;
20
27
  this.payload = payload;
21
- this.canonicalHeaders = new SimIamSigV4CanonicalHeaders(signedRequest.headers, signedHeaderNames, signedRequest.url);
28
+ this.canonicalHeaders = new SimIamSigV4CanonicalHeaders(signedRequest.headers, statement.signedHeaderNames, signedRequest.url);
22
29
  }
23
30
  /**
24
31
  * The canonical request string, ready to be hashed into a string to sign.
@@ -27,7 +34,7 @@ export class SimIamSigV4CanonicalRequest {
27
34
  const { method, url, body } = this.signedRequest;
28
35
  return [
29
36
  method.toUpperCase(),
30
- simIamSigV4CanonicalPath(url.pathname),
37
+ simIamSigV4CanonicalPath(url.pathname, this.statement.scope.serviceName),
31
38
  simIamSigV4CanonicalQuery(url.search),
32
39
  `${this.canonicalHeaders.toString()}\n`,
33
40
  this.canonicalHeaders.signedHeaderList(),
@@ -1 +1 @@
1
- {"version":3,"file":"sim-iam-sigv4-canonical-request.js","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;;;;GAQG;AACH,MAAM,OAAO,2BAA2B;IACrB,gBAAgB,CAA8B;IAC9C,aAAa,CAA2B;IACxC,OAAO,CAAgC;IAExD,YACE,aAAuC,EACvC,iBAAoC,EACpC,OAAO,GAAkC,6BAA6B,CAAC,WAAW,CAChF,aAAa,CAAC,OAAO,CACtB;QAED,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,IAAI,2BAA2B,CACrD,aAAa,CAAC,OAAO,EACrB,iBAAiB,EACjB,aAAa,CAAC,GAAG,CAClB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC;QAEjD,OAAO;YACL,MAAM,CAAC,WAAW,EAAE;YACpB,wBAAwB,CAAC,GAAG,CAAC,QAAQ,CAAC;YACtC,yBAAyB,CAAC,GAAG,CAAC,MAAM,CAAC;YACrC,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI;YACvC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE;YACxC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;SAC3B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;CACF"}
1
+ {"version":3,"file":"sim-iam-sigv4-canonical-request.js","sourceRoot":"","sources":["../../../../../src/service/iam/sigv4/canonical/sim-iam-sigv4-canonical-request.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,2BAA2B;IACrB,gBAAgB,CAA8B;IAC9C,aAAa,CAA2B;IACxC,SAAS,CAAgC;IACzC,OAAO,CAAgC;IAExD,YACE,aAAuC,EACvC,SAAwC,EACxC,OAAO,GAAkC,6BAA6B,CAAC,WAAW,CAChF,aAAa,CAAC,OAAO,CACtB;QAED,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,IAAI,2BAA2B,CACrD,aAAa,CAAC,OAAO,EACrB,SAAS,CAAC,iBAAiB,EAC3B,aAAa,CAAC,GAAG,CAClB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC;QAEjD,OAAO;YACL,MAAM,CAAC,WAAW,EAAE;YACpB,wBAAwB,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC;YACxE,yBAAyB,CAAC,GAAG,CAAC,MAAM,CAAC;YACrC,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI;YACvC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE;YACxC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;SAC3B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;CACF"}
@@ -11,7 +11,7 @@ import { simIamSigV4Signature, simIamSigV4StringToSign, } from "./sim-iam-sigv4-
11
11
  */
12
12
  export function simIamSigV4CheckSignature(input) {
13
13
  const { signedRequest, statement, signingKey, amzDate, payload } = input;
14
- const canonicalRequest = new SimIamSigV4CanonicalRequest(signedRequest, statement.signedHeaderNames, payload).toString();
14
+ const canonicalRequest = new SimIamSigV4CanonicalRequest(signedRequest, statement, payload).toString();
15
15
  const expected = simIamSigV4Signature(signingKey, simIamSigV4StringToSign({
16
16
  amzDate,
17
17
  scope: statement.scope,
@@ -1 +1 @@
1
- {"version":3,"file":"sim-iam-sigv4-signature-check.js","sourceRoot":"","sources":["../../../../src/service/iam/sigv4/sim-iam-sigv4-signature-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAE7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AAexC;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAqC;IAErC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,gBAAgB,GAAG,IAAI,2BAA2B,CACtD,aAAa,EACb,SAAS,CAAC,iBAAiB,EAC3B,OAAO,CACR,CAAC,QAAQ,EAAE,CAAC;IAEb,MAAM,QAAQ,GAAG,oBAAoB,CACnC,UAAU,EACV,uBAAuB,CAAC;QACtB,OAAO;QACP,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,gBAAgB;KACjB,CAAC,CACH,CAAC;IAEF,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/D,MAAM,IAAI,2BAA2B,CACnC,+DAA+D;YAC7D,6BAA6B,SAAS,CAAC,WAAW,EAAE,EACtD,gBAAgB,CACjB,CAAC;IACJ,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"sim-iam-sigv4-signature-check.js","sourceRoot":"","sources":["../../../../src/service/iam/sigv4/sim-iam-sigv4-signature-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAE7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGhF,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AAexC;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAqC;IAErC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEzE,MAAM,gBAAgB,GAAG,IAAI,2BAA2B,CACtD,aAAa,EACb,SAAS,EACT,OAAO,CACR,CAAC,QAAQ,EAAE,CAAC;IAEb,MAAM,QAAQ,GAAG,oBAAoB,CACnC,UAAU,EACV,uBAAuB,CAAC;QACtB,OAAO;QACP,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,gBAAgB;KACjB,CAAC,CACH,CAAC;IAEF,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/D,MAAM,IAAI,2BAA2B,CACnC,+DAA+D;YAC7D,6BAA6B,SAAS,CAAC,WAAW,EAAE,EACtD,gBAAgB,CACjB,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
2
+ import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
3
+ import type { SimLambdaEventInvokeConfig } from "../../function/event-invoke/sim-lambda-event-invoke-config.js";
4
+ import type { SimLambda } from "../../sim-lambda.js";
5
+ interface SimCfnLambdaEventInvokeConfigCreatorProperties {
6
+ readonly lambda: SimLambda;
7
+ }
8
+ /**
9
+ * Creates simulated event invoke configs from CloudFormation Resources.
10
+ *
11
+ * This is what CDK emits for `onFailure`, `onSuccess`, `retryAttempts` and
12
+ * `maxEventAge` on a function, so a synthesized template is the usual way a
13
+ * config comes into existence outside a direct SDK call. It is written through
14
+ * the ordinary PutFunctionEventInvokeConfig command, so a template deploying
15
+ * one gets the same validation and the same authorization an SDK caller would.
16
+ */
17
+ export declare class SimCfnLambdaEventInvokeConfigCreator {
18
+ private readonly lambda;
19
+ constructor(properties: SimCfnLambdaEventInvokeConfigCreatorProperties);
20
+ /**
21
+ * Create a config from an AWS::Lambda::EventInvokeConfig Resource.
22
+ */
23
+ create(resource: SimCfnResource, properties: SimCfnTemplateValueRecord): Promise<SimLambdaEventInvokeConfig>;
24
+ }
25
+ export {};
26
+ //# sourceMappingURL=sim-cfn-lambda-event-invoke-config-creator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cfn-lambda-event-invoke-config-creator.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,UAAU,8CAA8C;IACtD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,qBAAa,oCAAoC;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IAEnC,YAAY,UAAU,EAAE,8CAA8C,EAErE;IAED;;OAEG;IACG,MAAM,CACV,QAAQ,EAAE,cAAc,EACxB,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,0BAA0B,CAAC,CAkBrC;CACF"}
@@ -0,0 +1,32 @@
1
+ import { assertDefined } from "../../../../util/type-guard/defined.js";
2
+ import { SimCfnLambdaEventInvokeConfigProperties } from "./sim-cfn-lambda-event-invoke-config-properties.js";
3
+ /**
4
+ * Creates simulated event invoke configs from CloudFormation Resources.
5
+ *
6
+ * This is what CDK emits for `onFailure`, `onSuccess`, `retryAttempts` and
7
+ * `maxEventAge` on a function, so a synthesized template is the usual way a
8
+ * config comes into existence outside a direct SDK call. It is written through
9
+ * the ordinary PutFunctionEventInvokeConfig command, so a template deploying
10
+ * one gets the same validation and the same authorization an SDK caller would.
11
+ */
12
+ export class SimCfnLambdaEventInvokeConfigCreator {
13
+ lambda;
14
+ constructor(properties) {
15
+ this.lambda = properties.lambda;
16
+ }
17
+ /**
18
+ * Create a config from an AWS::Lambda::EventInvokeConfig Resource.
19
+ */
20
+ async create(resource, properties) {
21
+ const { functionName, qualifier, input } = new SimCfnLambdaEventInvokeConfigProperties({
22
+ resource,
23
+ properties,
24
+ }).createInput();
25
+ await this.lambda.putFunctionEventInvokeConfig({ input });
26
+ const config = this.lambda.getSimEventInvokeConfig(functionName, qualifier);
27
+ assertDefined(config, `Sim Lambda event invoke config ${resource.logicalId} after ` +
28
+ "CloudFormation creation");
29
+ return config;
30
+ }
31
+ }
32
+ //# sourceMappingURL=sim-cfn-lambda-event-invoke-config-creator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cfn-lambda-event-invoke-config-creator.js","sourceRoot":"","sources":["../../../../../src/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAKvE,OAAO,EAAE,uCAAuC,EAAE,MAAM,oDAAoD,CAAC;AAM7G;;;;;;;;GAQG;AACH,MAAM,OAAO,oCAAoC;IAC9B,MAAM,CAAY;IAEnC,YAAY,UAA0D;QACpE,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,QAAwB,EACxB,UAAqC;QAErC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,EAAE,GACtC,IAAI,uCAAuC,CAAC;YAC1C,QAAQ;YACR,UAAU;SACX,CAAC,CAAC,WAAW,EAAE,CAAC;QAEnB,MAAM,IAAI,CAAC,MAAM,CAAC,4BAA4B,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAE1D,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,uBAAuB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QAE5E,aAAa,CACX,MAAM,EACN,kCAAkC,QAAQ,CAAC,SAAS,SAAS;YAC3D,yBAAyB,CAC5B,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,40 @@
1
+ import type { SimCfnResource } from "../../../cloudformation/resource/sim-cfn-resource.js";
2
+ import type { SimCfnTemplateValueRecord } from "../../../cloudformation/template/value/sim-cfn-template-value.js";
3
+ import type { SimPutFunctionEventInvokeConfigCommandInput } from "../../command/put-function-event-invoke-config/put-function-event-invoke-config.command.js";
4
+ interface SimCfnLambdaEventInvokeConfigPropertiesProperties {
5
+ readonly resource: SimCfnResource;
6
+ readonly properties: SimCfnTemplateValueRecord;
7
+ }
8
+ /**
9
+ * The PutFunctionEventInvokeConfig input, and which function it is for.
10
+ *
11
+ * The function and qualifier are carried beside the input because they are
12
+ * what the config is held under, and the creator reads the config back with
13
+ * them once the command has written it.
14
+ */
15
+ export interface SimCfnLambdaEventInvokeConfigInput {
16
+ readonly functionName: string;
17
+ readonly qualifier: string | undefined;
18
+ readonly input: SimPutFunctionEventInvokeConfigCommandInput;
19
+ }
20
+ /**
21
+ * Reads an AWS::Lambda::EventInvokeConfig Resource into the input
22
+ * PutFunctionEventInvokeConfig takes.
23
+ *
24
+ * Nothing about retry counts or event ages is decided here. The command
25
+ * refuses what real Lambda refuses, so a config a template deployed is the
26
+ * same thing an SDK caller would have got.
27
+ */
28
+ export declare class SimCfnLambdaEventInvokeConfigProperties {
29
+ private readonly resource;
30
+ private readonly properties;
31
+ private readonly parser;
32
+ private readonly destinations;
33
+ constructor(properties: SimCfnLambdaEventInvokeConfigPropertiesProperties);
34
+ /**
35
+ * The put input this Resource asks for.
36
+ */
37
+ createInput(): SimCfnLambdaEventInvokeConfigInput;
38
+ }
39
+ export {};
40
+ //# sourceMappingURL=sim-cfn-lambda-event-invoke-config-properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cfn-lambda-event-invoke-config-properties.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/cfn/event-invoke-config/sim-cfn-lambda-event-invoke-config-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAClH,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,4FAA4F,CAAC;AAM9J,UAAU,iDAAiD;IACzD,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,yBAAyB,CAAC;CAChD;AAED;;;;;;GAMG;AACH,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,2CAA2C,CAAC;CAC7D;AAED;;;;;;;GAOG;AACH,qBAAa,uCAAuC;IAClD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiB;IAC1C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4B;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAC3D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA6C;IAE1E,YAAY,UAAU,EAAE,iDAAiD,EAGxE;IAED;;OAEG;IACH,WAAW,IAAI,kCAAkC,CAsChD;CACF"}