@kensio/yulin 1.16.0 → 1.16.2

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 (396) hide show
  1. package/README.md +44 -46
  2. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +12 -2
  3. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -1
  4. package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -1
  5. package/dist/sdk/wire/sim-sdk-wire.types.d.ts +0 -4
  6. package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -1
  7. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +2 -2
  8. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +8 -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 +13 -0
  12. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
  13. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +3 -2
  14. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
  15. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
  16. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts +5 -2
  17. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts.map +1 -1
  18. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js +38 -2
  19. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js.map +1 -1
  20. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.d.ts.map +1 -1
  21. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js +5 -2
  22. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js.map +1 -1
  23. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
  24. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +2 -1
  25. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  26. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +10 -0
  27. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
  28. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +14 -13
  29. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts.map +1 -1
  30. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +14 -18
  31. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js.map +1 -1
  32. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts +15 -6
  33. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts.map +1 -1
  34. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js +26 -19
  35. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js.map +1 -1
  36. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
  37. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +5 -1
  38. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
  39. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts +41 -0
  40. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -0
  41. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +72 -0
  42. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -0
  43. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +32 -0
  44. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -0
  45. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +36 -0
  46. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -0
  47. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -0
  48. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  49. package/dist/service/cognito/command/sim-cognito-commands.d.ts +2 -0
  50. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  51. package/dist/service/cognito/command/sim-cognito-commands.js +8 -0
  52. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  53. package/dist/service/cognito/command/user/password-reset.command.d.ts +80 -0
  54. package/dist/service/cognito/command/user/password-reset.command.d.ts.map +1 -0
  55. package/dist/service/cognito/command/user/password-reset.command.js +2 -0
  56. package/dist/service/cognito/command/user/password-reset.command.js.map +1 -0
  57. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts +74 -0
  58. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.d.ts.map +1 -0
  59. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js +121 -0
  60. package/dist/service/cognito/command/user/sim-cognito-password-reset-commands.js.map +1 -0
  61. package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts +34 -0
  62. package/dist/service/cognito/command/user/sim-cognito-resetting-user.d.ts.map +1 -0
  63. package/dist/service/cognito/command/user/sim-cognito-resetting-user.js +54 -0
  64. package/dist/service/cognito/command/user/sim-cognito-resetting-user.js.map +1 -0
  65. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
  66. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +3 -3
  67. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
  68. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts +29 -0
  69. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.d.ts.map +1 -0
  70. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js +36 -0
  71. package/dist/service/cognito/command/user/sim-cognito-unsimulated-password-reset-options.js.map +1 -0
  72. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +22 -0
  73. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -0
  74. package/dist/service/cognito/error/sim-cognito-managed-login.error.js +32 -0
  75. package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -0
  76. package/dist/service/cognito/error/sim-cognito.error.d.ts +23 -0
  77. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  78. package/dist/service/cognito/error/sim-cognito.error.js +27 -0
  79. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  80. package/dist/service/cognito/index.d.ts +2 -1
  81. package/dist/service/cognito/index.d.ts.map +1 -1
  82. package/dist/service/cognito/index.js +2 -1
  83. package/dist/service/cognito/index.js.map +1 -1
  84. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -5
  85. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
  86. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +18 -5
  87. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
  88. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts +29 -0
  89. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts.map +1 -0
  90. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js +90 -0
  91. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js.map +1 -0
  92. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts +26 -0
  93. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.d.ts.map +1 -0
  94. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js +57 -0
  95. package/dist/service/cognito/serve/page/sim-cognito-forgot-password-page.js.map +1 -0
  96. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +41 -0
  97. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -0
  98. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +77 -0
  99. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -0
  100. package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts +47 -0
  101. package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts.map +1 -0
  102. package/dist/service/cognito/serve/page/sim-cognito-page-form.js +76 -0
  103. package/dist/service/cognito/serve/page/sim-cognito-page-form.js.map +1 -0
  104. package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts +69 -0
  105. package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts.map +1 -0
  106. package/dist/service/cognito/serve/page/sim-cognito-page-markup.js +111 -0
  107. package/dist/service/cognito/serve/page/sim-cognito-page-markup.js.map +1 -0
  108. package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +57 -0
  109. package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -0
  110. package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +82 -0
  111. package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -0
  112. package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts +22 -0
  113. package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts.map +1 -0
  114. package/dist/service/cognito/serve/page/sim-cognito-page-request.js +30 -0
  115. package/dist/service/cognito/serve/page/sim-cognito-page-request.js.map +1 -0
  116. package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts +12 -0
  117. package/dist/service/cognito/serve/page/sim-cognito-provider-links.d.ts.map +1 -0
  118. package/dist/service/cognito/serve/page/sim-cognito-provider-links.js +18 -0
  119. package/dist/service/cognito/serve/page/sim-cognito-provider-links.js.map +1 -0
  120. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts +27 -0
  121. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.d.ts.map +1 -0
  122. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js +65 -0
  123. package/dist/service/cognito/serve/page/sim-cognito-reset-password-page.js.map +1 -0
  124. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +20 -0
  125. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -0
  126. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +40 -0
  127. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -0
  128. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts +35 -0
  129. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts.map +1 -0
  130. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js +85 -0
  131. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js.map +1 -0
  132. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts +20 -23
  133. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts.map +1 -1
  134. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js +40 -19
  135. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js.map +1 -1
  136. package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts +14 -0
  137. package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts.map +1 -0
  138. package/dist/service/cognito/serve/sim-cognito-domain-request.js +2 -0
  139. package/dist/service/cognito/serve/sim-cognito-domain-request.js.map +1 -0
  140. package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
  141. package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
  142. package/dist/service/cognito/sim-cognito-user-directory.js +25 -0
  143. package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
  144. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
  145. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
  146. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
  147. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
  148. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts +10 -0
  149. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.d.ts.map +1 -1
  150. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js +11 -0
  151. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-identity.js.map +1 -1
  152. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts +44 -0
  153. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.d.ts.map +1 -0
  154. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js +78 -0
  155. package/dist/service/cognito/user-pool/message/sim-cognito-code-delivery.js.map +1 -0
  156. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +10 -6
  157. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
  158. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +5 -2
  159. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -1
  160. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +5 -2
  161. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -1
  162. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +15 -0
  163. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -1
  164. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +18 -0
  165. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -1
  166. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +4 -1
  167. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -1
  168. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +5 -2
  169. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -1
  170. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +14 -6
  171. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -1
  172. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +20 -9
  173. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -1
  174. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts +62 -0
  175. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.d.ts.map +1 -0
  176. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js +65 -0
  177. package/dist/service/cognito/user-pool/user/sim-cognito-user-password-reset.js.map +1 -0
  178. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +55 -11
  179. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
  180. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +67 -10
  181. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
  182. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +15 -12
  183. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  184. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +31 -20
  185. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  186. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts +8 -0
  187. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts.map +1 -1
  188. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js +14 -6
  189. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js.map +1 -1
  190. package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
  191. package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
  192. package/dist/service/lambda/command/create-function/create-function.handler.js +5 -1
  193. package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
  194. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -0
  195. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  196. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  197. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +7 -0
  198. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
  199. package/dist/service/lambda/function/code/sim-lambda-code-resolver.js +1 -0
  200. package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
  201. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts +3 -0
  202. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
  203. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +3 -0
  204. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
  205. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +6 -9
  206. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
  207. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +3 -3
  208. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
  209. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +11 -3
  210. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
  211. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +13 -8
  212. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
  213. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts +21 -2
  214. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts.map +1 -1
  215. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js +18 -2
  216. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js.map +1 -1
  217. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts +26 -0
  218. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.d.ts.map +1 -0
  219. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js +17 -0
  220. package/dist/service/lambda/function/invoke/sim-lambda-host-scope.js.map +1 -0
  221. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts +17 -0
  222. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.d.ts.map +1 -0
  223. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js +43 -0
  224. package/dist/service/lambda/function/invoke/sim-lambda-outbound-clients.js.map +1 -0
  225. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts +44 -0
  226. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.d.ts.map +1 -0
  227. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js +83 -0
  228. package/dist/service/lambda/function/invoke/sim-lambda-process-outbound.js.map +1 -0
  229. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts +50 -0
  230. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.d.ts.map +1 -0
  231. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js +83 -0
  232. package/dist/service/lambda/function/outbound/sim-lambda-aws-api-outbound.js.map +1 -0
  233. package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts +42 -0
  234. package/dist/service/lambda/function/outbound/sim-lambda-http-module.d.ts.map +1 -0
  235. package/dist/service/lambda/function/outbound/sim-lambda-http-module.js +88 -0
  236. package/dist/service/lambda/function/outbound/sim-lambda-http-module.js.map +1 -0
  237. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.d.ts → outbound/sim-lambda-http-request.d.ts} +20 -7
  238. package/dist/service/lambda/function/outbound/sim-lambda-http-request.d.ts.map +1 -0
  239. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-wire-request.js → outbound/sim-lambda-http-request.js} +27 -29
  240. package/dist/service/lambda/function/outbound/sim-lambda-http-request.js.map +1 -0
  241. package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts +18 -0
  242. package/dist/service/lambda/function/outbound/sim-lambda-http-response.d.ts.map +1 -0
  243. package/dist/service/lambda/function/outbound/sim-lambda-http-response.js +23 -0
  244. package/dist/service/lambda/function/outbound/sim-lambda-http-response.js.map +1 -0
  245. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.d.ts → outbound/sim-lambda-http-target.d.ts} +9 -7
  246. package/dist/service/lambda/function/outbound/sim-lambda-http-target.d.ts.map +1 -0
  247. package/dist/service/lambda/function/{code/vm/http/sim-lambda-vm-http-target.js → outbound/sim-lambda-http-target.js} +4 -38
  248. package/dist/service/lambda/function/outbound/sim-lambda-http-target.js.map +1 -0
  249. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts +15 -0
  250. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.d.ts.map +1 -0
  251. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js +38 -0
  252. package/dist/service/lambda/function/outbound/sim-lambda-outbound-fetch.js.map +1 -0
  253. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts +27 -0
  254. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.d.ts.map +1 -0
  255. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts +13 -0
  256. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.d.ts.map +1 -0
  257. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js +107 -0
  258. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.factory.js.map +1 -0
  259. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js +2 -0
  260. package/dist/service/lambda/function/outbound/sim-lambda-outbound-http.js.map +1 -0
  261. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts +16 -0
  262. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.d.ts.map +1 -0
  263. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js +29 -0
  264. package/dist/service/lambda/function/outbound/sim-lambda-outbound-wire.js.map +1 -0
  265. package/dist/service/lambda/function/sim-lambda-function.d.ts +12 -6
  266. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  267. package/dist/service/lambda/function/sim-lambda-function.js +9 -10
  268. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  269. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts +28 -0
  270. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts.map +1 -0
  271. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js +56 -0
  272. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js.map +1 -0
  273. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts +16 -0
  274. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts.map +1 -1
  275. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js +24 -0
  276. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js.map +1 -1
  277. package/dist/service/lambda/serve/sim-lambda-controller.d.ts +6 -0
  278. package/dist/service/lambda/serve/sim-lambda-controller.d.ts.map +1 -1
  279. package/dist/service/lambda/serve/sim-lambda-controller.js +11 -0
  280. package/dist/service/lambda/serve/sim-lambda-controller.js.map +1 -1
  281. package/dist/service/lambda/sim-lambda-commands.d.ts +8 -0
  282. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  283. package/dist/service/lambda/sim-lambda-commands.js +2 -1
  284. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  285. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.d.ts.map +1 -1
  286. package/dist/service/rekognition/face/sim-rekognition-face-detail-builder.js.map +1 -1
  287. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts +4 -3
  288. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts.map +1 -1
  289. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js +4 -3
  290. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js.map +1 -1
  291. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.d.ts +2 -2
  292. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.js +2 -2
  293. package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts +3 -0
  294. package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts.map +1 -1
  295. package/dist/service/sns/command/publish/sim-sns-publish-commands.js +4 -2
  296. package/dist/service/sns/command/publish/sim-sns-publish-commands.js.map +1 -1
  297. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts +39 -0
  298. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts.map +1 -0
  299. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js +42 -0
  300. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js.map +1 -0
  301. package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts +3 -3
  302. package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts.map +1 -1
  303. package/dist/service/sns/command/publish/sim-sns-publish-input.js +8 -8
  304. package/dist/service/sns/command/publish/sim-sns-publish-input.js.map +1 -1
  305. package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts +38 -0
  306. package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts.map +1 -0
  307. package/dist/service/sns/command/publish/sim-sns-publish-sms.js +53 -0
  308. package/dist/service/sns/command/publish/sim-sns-publish-sms.js.map +1 -0
  309. package/dist/service/sns/command/sim-sns-command.types.d.ts +1 -0
  310. package/dist/service/sns/command/sim-sns-command.types.d.ts.map +1 -1
  311. package/dist/service/sns/command/sim-sns-commands.d.ts +12 -4
  312. package/dist/service/sns/command/sim-sns-commands.d.ts.map +1 -1
  313. package/dist/service/sns/command/sim-sns-commands.js +39 -4
  314. package/dist/service/sns/command/sim-sns-commands.js.map +1 -1
  315. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts +41 -0
  316. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts.map +1 -0
  317. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js +56 -0
  318. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js.map +1 -0
  319. package/dist/service/sns/command/sms/sms.command.d.ts +50 -0
  320. package/dist/service/sns/command/sms/sms.command.d.ts.map +1 -0
  321. package/dist/service/sns/command/sms/sms.command.js +2 -0
  322. package/dist/service/sns/command/sms/sms.command.js.map +1 -0
  323. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts +5 -6
  324. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts.map +1 -1
  325. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js +8 -12
  326. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js.map +1 -1
  327. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts +6 -13
  328. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts.map +1 -1
  329. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js +13 -2
  330. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js.map +1 -1
  331. package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts +10 -1
  332. package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts.map +1 -1
  333. package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.js.map +1 -1
  334. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts +34 -0
  335. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts.map +1 -0
  336. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js +46 -0
  337. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js.map +1 -0
  338. package/dist/service/sns/index.d.ts +5 -1
  339. package/dist/service/sns/index.d.ts.map +1 -1
  340. package/dist/service/sns/index.js +4 -1
  341. package/dist/service/sns/index.js.map +1 -1
  342. package/dist/service/sns/message/sim-sns-message-attribute-rules.d.ts.map +1 -1
  343. package/dist/service/sns/message/sim-sns-message-attribute-rules.js +9 -1
  344. package/dist/service/sns/message/sim-sns-message-attribute-rules.js.map +1 -1
  345. package/dist/service/sns/message/sim-sns-message-attributes.d.ts +8 -0
  346. package/dist/service/sns/message/sim-sns-message-attributes.d.ts.map +1 -1
  347. package/dist/service/sns/message/sim-sns-message-attributes.js +10 -0
  348. package/dist/service/sns/message/sim-sns-message-attributes.js.map +1 -1
  349. package/dist/service/sns/message/sim-sns-sms-attributes.d.ts +25 -0
  350. package/dist/service/sns/message/sim-sns-sms-attributes.d.ts.map +1 -0
  351. package/dist/service/sns/message/sim-sns-sms-attributes.js +46 -0
  352. package/dist/service/sns/message/sim-sns-sms-attributes.js.map +1 -0
  353. package/dist/service/sns/sdk/sim-sns-sdk-command-router.d.ts.map +1 -1
  354. package/dist/service/sns/sdk/sim-sns-sdk-command-router.js +12 -0
  355. package/dist/service/sns/sdk/sim-sns-sdk-command-router.js.map +1 -1
  356. package/dist/service/sns/sim-sns-sms.d.ts +63 -0
  357. package/dist/service/sns/sim-sns-sms.d.ts.map +1 -0
  358. package/dist/service/sns/sim-sns-sms.js +76 -0
  359. package/dist/service/sns/sim-sns-sms.js.map +1 -0
  360. package/dist/service/sns/sim-sns.d.ts +7 -15
  361. package/dist/service/sns/sim-sns.d.ts.map +1 -1
  362. package/dist/service/sns/sim-sns.js +23 -30
  363. package/dist/service/sns/sim-sns.js.map +1 -1
  364. package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts +40 -0
  365. package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts.map +1 -0
  366. package/dist/service/sns/sms/sim-sns-opt-out-list.js +47 -0
  367. package/dist/service/sns/sms/sim-sns-opt-out-list.js.map +1 -0
  368. package/dist/service/sns/sms/sim-sns-phone-number.d.ts +21 -0
  369. package/dist/service/sns/sms/sim-sns-phone-number.d.ts.map +1 -0
  370. package/dist/service/sns/sms/sim-sns-phone-number.js +41 -0
  371. package/dist/service/sns/sms/sim-sns-phone-number.js.map +1 -0
  372. package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts +69 -0
  373. package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts.map +1 -0
  374. package/dist/service/sns/sms/sim-sns-sent-sms-message.js +71 -0
  375. package/dist/service/sns/sms/sim-sns-sent-sms-message.js.map +1 -0
  376. package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts +25 -0
  377. package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts.map +1 -0
  378. package/dist/service/sns/sms/sim-sns-sent-sms-store.js +28 -0
  379. package/dist/service/sns/sms/sim-sns-sent-sms-store.js.map +1 -0
  380. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts +9 -7
  381. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts.map +1 -1
  382. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js +7 -2
  383. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js.map +1 -1
  384. package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts +19 -1
  385. package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
  386. package/dist/service/sns/subscription/sim-sns-subscription-protocol.js +26 -5
  387. package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -1
  388. package/package.json +2 -2
  389. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +0 -27
  390. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +0 -1
  391. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +0 -78
  392. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +0 -1
  393. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +0 -1
  394. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +0 -1
  395. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +0 -1
  396. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +0 -1
@@ -0,0 +1,18 @@
1
+ import { simCognitoAuthorizePath } from "./sim-cognito-page-paths.js";
2
+ /**
3
+ * One link per identity provider this app client offers, each starting the
4
+ * federated sign-in the authorize endpoint already answers.
5
+ *
6
+ * A provider the client left out of its `SupportedIdentityProviders` is left
7
+ * off the page, because the authorize request the link would make is one that
8
+ * endpoint refuses.
9
+ */
10
+ export function simCognitoProviderLinks(markup, pool, parameters) {
11
+ const clientId = parameters["client_id"];
12
+ const client = clientId === undefined ? undefined : pool.findClient(clientId);
13
+ return pool.auth.identityProviders.all
14
+ .filter((provider) => client?.oauth.allowsIdentityProvider(provider.name) ?? false)
15
+ .map((provider) => markup.link(simCognitoAuthorizePath, { ...parameters, identity_provider: provider.name }, `Sign in with ${provider.name}`))
16
+ .join("");
17
+ }
18
+ //# sourceMappingURL=sim-cognito-provider-links.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-provider-links.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-provider-links.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAA4B,EAC5B,IAAwB,EACxB,UAAoC;IAEpC,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAE9E,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG;SACnC,MAAM,CACL,CAAC,QAAQ,EAAE,EAAE,CACX,MAAM,EAAE,KAAK,CAAC,sBAAsB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,KAAK,CAC/D;SACA,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAChB,MAAM,CAAC,IAAI,CACT,uBAAuB,EACvB,EAAE,GAAG,UAAU,EAAE,iBAAiB,EAAE,QAAQ,CAAC,IAAI,EAAE,EACnD,gBAAgB,QAAQ,CAAC,IAAI,EAAE,CAChC,CACF;SACA,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
2
+ /**
3
+ * The form that finishes a password reset, reached from the one that started
4
+ * it.
5
+ *
6
+ * It takes the code the pool issued and the password the person has chosen,
7
+ * and posts both to `ConfirmForgotPassword`. A wrong code and a password the
8
+ * pool's policy turns down are both shown on the form, which is where the
9
+ * person can do something about them.
10
+ *
11
+ * Nothing here delivers a code to anybody. The pool records the message it
12
+ * would have sent, and `SimCognitoUserPool.confirmationCode` is where a test
13
+ * reads it from, which is where a person would have read it out of an inbox.
14
+ */
15
+ export declare class SimCognitoResetPasswordPage {
16
+ private readonly markup;
17
+ /**
18
+ * The page, or the reset its form has just finished.
19
+ */
20
+ handle(form: SimCognitoPageForm): Promise<Response>;
21
+ /**
22
+ * The page a browser is answered with, with a message where a reset has
23
+ * already been refused once.
24
+ */
25
+ private render;
26
+ }
27
+ //# sourceMappingURL=sim-cognito-reset-password-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-reset-password-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-reset-password-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAOhE;;;;;;;;;;;;GAYG;AACH,qBAAa,2BAA2B;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAsBxD;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM;CAwBf"}
@@ -0,0 +1,65 @@
1
+ import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
2
+ import { SimCognitoPageMarkup } from "./sim-cognito-page-markup.js";
3
+ import { simCognitoAuthorizePath, simCognitoResetPasswordPath, } from "./sim-cognito-page-paths.js";
4
+ /**
5
+ * The form that finishes a password reset, reached from the one that started
6
+ * it.
7
+ *
8
+ * It takes the code the pool issued and the password the person has chosen,
9
+ * and posts both to `ConfirmForgotPassword`. A wrong code and a password the
10
+ * pool's policy turns down are both shown on the form, which is where the
11
+ * person can do something about them.
12
+ *
13
+ * Nothing here delivers a code to anybody. The pool records the message it
14
+ * would have sent, and `SimCognitoUserPool.confirmationCode` is where a test
15
+ * reads it from, which is where a person would have read it out of an inbox.
16
+ */
17
+ export class SimCognitoResetPasswordPage {
18
+ markup = new SimCognitoPageMarkup();
19
+ /**
20
+ * The page, or the reset its form has just finished.
21
+ */
22
+ async handle(form) {
23
+ if (!form.isPosted) {
24
+ return this.render(form);
25
+ }
26
+ try {
27
+ await form.cognito.confirmForgotPassword({
28
+ input: {
29
+ ClientId: form.clientId,
30
+ Username: form.username,
31
+ ConfirmationCode: form.field("code"),
32
+ Password: form.field("password"),
33
+ ...form.secretHash(),
34
+ },
35
+ });
36
+ }
37
+ catch (error) {
38
+ return this.render(form, SimCognitoPageForm.messageIn(error));
39
+ }
40
+ // The user signs in with its new password at the endpoint the browser
41
+ // arrived on, which is where the grant it started carries on from.
42
+ return this.markup.redirect(simCognitoAuthorizePath, form.parameters);
43
+ }
44
+ /**
45
+ * The page a browser is answered with, with a message where a reset has
46
+ * already been refused once.
47
+ */
48
+ render(form, message) {
49
+ const { parameters, username } = form;
50
+ // The page that started the reset names the user, and a browser that came
51
+ // here from a link instead has to say who it is.
52
+ const user = username === ""
53
+ ? this.markup.field("username", "Username")
54
+ : this.markup.hidden({ username });
55
+ const body = (message === undefined ? "" : this.markup.message(message)) +
56
+ this.markup.form(simCognitoResetPasswordPath, this.markup.hidden(parameters) +
57
+ user +
58
+ this.markup.field("code", "Reset code") +
59
+ this.markup.field("password", "New password", "password") +
60
+ this.markup.submit("reset", "Set the new password")) +
61
+ this.markup.link(simCognitoAuthorizePath, parameters, "Back to sign in");
62
+ return this.markup.page("Choose a new password", body);
63
+ }
64
+ }
65
+ //# sourceMappingURL=sim-cognito-reset-password-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-reset-password-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-reset-password-page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,2BAA2B;IACrB,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAErD;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,IAAwB;QACnC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;QAED,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC;gBACvC,KAAK,EAAE;oBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;oBACpC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;oBAChC,GAAG,IAAI,CAAC,UAAU,EAAE;iBACrB;aACF,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,S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{ SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
2
+ import { type SimCognitoPageParameters } from "./sim-cognito-page-markup.js";
3
+ /**
4
+ * The sign-in form managed login answers an authorize request with.
5
+ *
6
+ * The form posts back to the authorize endpoint, carrying the parameters the
7
+ * browser arrived on as hidden inputs and the two fields the person filled in.
8
+ * The pool's identity providers are links to the same endpoint with
9
+ * `identity_provider` set, so both ways in are reachable from this one page,
10
+ * and the other pages of the journey are links beside them.
11
+ */
12
+ export declare class SimCognitoSignInPage {
13
+ private readonly markup;
14
+ /**
15
+ * The page a browser is answered with, with a message where a sign-in has
16
+ * already been refused once.
17
+ */
18
+ render(pool: SimCognitoUserPool, parameters: SimCognitoPageParameters, message?: string): Response;
19
+ }
20
+ //# sourceMappingURL=sim-cognito-sign-in-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sign-in-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-in-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAC;AAkBtC;;;;;;;;GAQG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,kBAAkB,EACxB,UAAU,EAAE,wBAAwB,EACpC,OAAO,CAAC,EAAE,MAAM,GACf,QAAQ,CAgBV;CACF"}
@@ -0,0 +1,40 @@
1
+ import { SimCognitoPageMarkup, } from "./sim-cognito-page-markup.js";
2
+ import { simCognitoAuthorizePath, simCognitoConfirmPath, simCognitoForgotPasswordPath, simCognitoSignUpPath, } from "./sim-cognito-page-paths.js";
3
+ import { simCognitoProviderLinks } from "./sim-cognito-provider-links.js";
4
+ /**
5
+ * The other pages the sign-in form links to, in the order they are offered.
6
+ */
7
+ const linkedPages = [
8
+ [simCognitoSignUpPath, "Sign up"],
9
+ [simCognitoConfirmPath, "Confirm a sign-up"],
10
+ [simCognitoForgotPasswordPath, "Forgotten your password?"],
11
+ ];
12
+ /**
13
+ * The sign-in form managed login answers an authorize request with.
14
+ *
15
+ * The form posts back to the authorize endpoint, carrying the parameters the
16
+ * browser arrived on as hidden inputs and the two fields the person filled in.
17
+ * The pool's identity providers are links to the same endpoint with
18
+ * `identity_provider` set, so both ways in are reachable from this one page,
19
+ * and the other pages of the journey are links beside them.
20
+ */
21
+ export class SimCognitoSignInPage {
22
+ markup = new SimCognitoPageMarkup();
23
+ /**
24
+ * The page a browser is answered with, with a message where a sign-in has
25
+ * already been refused once.
26
+ */
27
+ render(pool, parameters, message) {
28
+ const body = (message === undefined ? "" : this.markup.message(message)) +
29
+ this.markup.form(simCognitoAuthorizePath, this.markup.hidden(parameters) +
30
+ this.markup.field("username", "Username") +
31
+ this.markup.field("password", "Password", "password") +
32
+ this.markup.submit("signIn", "Sign in")) +
33
+ simCognitoProviderLinks(this.markup, pool, parameters) +
34
+ linkedPages
35
+ .map(([path, text]) => this.markup.link(path, parameters, text))
36
+ .join("");
37
+ return this.markup.page("Sign in", body);
38
+ }
39
+ }
40
+ //# sourceMappingURL=sim-cognito-sign-in-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sign-in-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-in-page.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,GAA2C;IAC1D,CAAC,oBAAoB,EAAE,SAAS,CAAC;IACjC,CAAC,qBAAqB,EAAE,mBAAmB,CAAC;IAC5C,CAAC,4BAA4B,EAAE,0BAA0B,CAAC;CAC3D,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAErD;;;OAGG;IACH,MAAM,CACJ,IAAwB,EACxB,UAAoC,EACpC,OAAgB;QAEhB,MAAM,IAAI,GACR,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3D,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,uBAAuB,EACvB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC;gBACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC;gBACrD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAC1C;YACD,uBAAuB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC;YACtD,WAAW;iBACR,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;iBAC/D,IAAI,CAAC,EAAE,CAAC,CAAC;QAEd,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;CACF"}
@@ -0,0 +1,35 @@
1
+ import type { SimCognitoUserPool } from "../../user-pool/sim-cognito-user-pool.js";
2
+ import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
3
+ /**
4
+ * The sign-up form, reached from a link on the sign-in page.
5
+ *
6
+ * The form asks for a username, a password and the attributes the pool needs
7
+ * of a new user. Those are the ones its `Schema` made required, and the ones
8
+ * its `AutoVerifiedAttributes` names, because the second is where the
9
+ * confirmation code would have been delivered.
10
+ *
11
+ * Posting it is `SignUp`, called as an application calls it. A refusal is
12
+ * shown on the form, which is what managed login does with a password the
13
+ * pool's policy turns down.
14
+ */
15
+ export declare class SimCognitoSignUpPage {
16
+ private readonly markup;
17
+ /**
18
+ * The attributes this pool's sign-up form asks for.
19
+ */
20
+ static attributeNames(pool: SimCognitoUserPool): readonly string[];
21
+ /**
22
+ * The attributes the form asked for, as `SignUp` takes them.
23
+ */
24
+ private static attributesIn;
25
+ /**
26
+ * The page, or the sign-up its form has just posted.
27
+ */
28
+ handle(form: SimCognitoPageForm): Promise<Response>;
29
+ /**
30
+ * The page a browser is answered with, with a message where a sign-up has
31
+ * already been refused once.
32
+ */
33
+ private render;
34
+ }
35
+ //# sourceMappingURL=sim-cognito-sign-up-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sign-up-page.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-up-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQhE;;;;;;;;;;;GAWG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA8B;IAErD;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,SAAS,MAAM,EAAE,CAYjE;IAED;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAQ3B;;OAEG;IACG,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAuBxD;IAED;;;OAGG;IACH,OAAO,CAAC,MAAM;CAoBf"}
@@ -0,0 +1,85 @@
1
+ import { SimCognitoPageForm } from "./sim-cognito-page-form.js";
2
+ import { SimCognitoPageMarkup } from "./sim-cognito-page-markup.js";
3
+ import { simCognitoAuthorizePath, simCognitoConfirmPath, simCognitoSignUpPath, } from "./sim-cognito-page-paths.js";
4
+ /**
5
+ * The sign-up form, reached from a link on the sign-in page.
6
+ *
7
+ * The form asks for a username, a password and the attributes the pool needs
8
+ * of a new user. Those are the ones its `Schema` made required, and the ones
9
+ * its `AutoVerifiedAttributes` names, because the second is where the
10
+ * confirmation code would have been delivered.
11
+ *
12
+ * Posting it is `SignUp`, called as an application calls it. A refusal is
13
+ * shown on the form, which is what managed login does with a password the
14
+ * pool's policy turns down.
15
+ */
16
+ export class SimCognitoSignUpPage {
17
+ markup = new SimCognitoPageMarkup();
18
+ /**
19
+ * The attributes this pool's sign-up form asks for.
20
+ */
21
+ static attributeNames(pool) {
22
+ const { schema, autoVerifiedAttributes, usernameAttributes } = pool.settings;
23
+ const asked = new Set([
24
+ ...schema.requiredNames,
25
+ ...autoVerifiedAttributes.names,
26
+ ]);
27
+ // A pool signing users in by an address takes that address as the
28
+ // username, so asking for it again would be asking the same question
29
+ // twice.
30
+ return [...asked.difference(new Set(usernameAttributes.names))];
31
+ }
32
+ /**
33
+ * The attributes the form asked for, as `SignUp` takes them.
34
+ */
35
+ static attributesIn(form) {
36
+ return this.attributeNames(form.pool)
37
+ .map((name) => ({ Name: name, Value: form.field(name) }))
38
+ .filter((attribute) => (attribute.Value ?? "") !== "");
39
+ }
40
+ /**
41
+ * The page, or the sign-up its form has just posted.
42
+ */
43
+ async handle(form) {
44
+ if (!form.isPosted) {
45
+ return this.render(form);
46
+ }
47
+ try {
48
+ await form.cognito.signUp({
49
+ input: {
50
+ ClientId: form.clientId,
51
+ Username: form.username,
52
+ Password: form.field("password"),
53
+ UserAttributes: SimCognitoSignUpPage.attributesIn(form),
54
+ ...form.secretHash(),
55
+ },
56
+ });
57
+ }
58
+ catch (error) {
59
+ return this.render(form, SimCognitoPageForm.messageIn(error));
60
+ }
61
+ return this.markup.redirect(simCognitoConfirmPath, {
62
+ ...form.parameters,
63
+ username: form.username,
64
+ });
65
+ }
66
+ /**
67
+ * The page a browser is answered with, with a message where a sign-up has
68
+ * already been refused once.
69
+ */
70
+ render(form, message) {
71
+ const { parameters } = form;
72
+ const attributes = SimCognitoSignUpPage.attributeNames(form.pool)
73
+ .map((name) => this.markup.field(name, name))
74
+ .join("");
75
+ const body = (message === undefined ? "" : this.markup.message(message)) +
76
+ this.markup.form(simCognitoSignUpPath, this.markup.hidden(parameters) +
77
+ this.markup.field("username", "Username") +
78
+ this.markup.field("password", "Password", "password") +
79
+ attributes +
80
+ this.markup.submit("signUp", "Sign up")) +
81
+ this.markup.link(simCognitoAuthorizePath, parameters, "Back to sign in");
82
+ return this.markup.page("Sign up", body);
83
+ }
84
+ }
85
+ //# sourceMappingURL=sim-cognito-sign-up-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sign-up-page.js","sourceRoot":"","sources":["../../../../../src/service/cognito/serve/page/sim-cognito-sign-up-page.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAErD;;OAEG;IACH,MAAM,CAAC,cAAc,CAAC,IAAwB;QAC5C,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,GAC1D,IAAI,CAAC,QAAQ,CAAC;QAChB,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC;YACpB,GAAG,MAAM,CAAC,aAAa;YACvB,GAAG,sBAAsB,CAAC,KAAK;SAChC,CAAC,CAAC;QAEH,k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Q,CAAC,qBAAqB,EAAE;YACjD,GAAG,IAAI,CAAC,UAAU;YAClB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACK,MAAM,CAAC,IAAwB,EAAE,OAAgB;QACvD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;QAC5B,MAAM,UAAU,GAAG,oBAAoB,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;aAC9D,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;aAC5C,IAAI,CAAC,EAAE,CAAC,CAAC;QAEZ,MAAM,IAAI,GACR,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3D,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,oBAAoB,EACpB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC;gBACzC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC;gBACrD,UAAU;gBACV,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAC1C;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,UAAU,EAAE,iBAAiB,CAAC,CAAC;QAE3E,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;CACF"}
@@ -1,35 +1,35 @@
1
- import type { SimAwsServiceRequest } from "../../../serve/controller/sim-service-controller.js";
2
- import type { SimCognitoIdentityProvider } from "../sim-cognito-identity-provider.js";
3
- import type { SimCognitoUserPool } from "../user-pool/sim-cognito-user-pool.js";
1
+ import type { SimCognitoDomainRequest } from "./sim-cognito-domain-request.js";
2
+ export type { SimCognitoDomainRequest } from "./sim-cognito-domain-request.js";
4
3
  /**
5
- * One request to a hosted domain, and what answers it.
6
- */
7
- export interface SimCognitoDomainRequest {
8
- readonly pool: SimCognitoUserPool;
9
- /** The simulated Cognito scope the pool belongs to. */
10
- readonly cognito: SimCognitoIdentityProvider;
11
- readonly serviceRequest: SimAwsServiceRequest;
12
- readonly url: URL;
13
- }
14
- /**
15
- * The three endpoints a pool's hosted domain serves.
4
+ * The endpoints and pages a pool's hosted domain serves.
16
5
  *
17
- * Each takes one HTTP method and one only, as real Cognito's do, and turns
18
- * what the simulation answered into the redirect or the JSON body a browser or
19
- * an application's own server reads.
6
+ * The token and logout endpoints take one HTTP method each, as real Cognito's
7
+ * do. The authorize endpoint takes the post of the sign-in form it serves as
8
+ * well as the get an application sends the browser on, and so do the two pages
9
+ * reached from that form.
20
10
  */
21
11
  export declare class SimCognitoDomainEndpoints {
22
12
  private readonly response;
23
13
  private readonly tokenRequest;
14
+ private readonly pageRequest;
15
+ private readonly pages;
24
16
  /**
25
17
  * Answer a request that reached the domain's hostname.
26
18
  */
27
19
  handleRequest(request: SimCognitoDomainRequest): Promise<Response>;
28
20
  /**
29
- * Sign a user in through an identity provider and send the browser back to
30
- * the application with a code.
21
+ * Sign a user in and send the browser back to the application with a code,
22
+ * or serve the form that asks who is signing in.
23
+ *
24
+ * A get carrying credentials and a post of the sign-in form are the same
25
+ * request to the simulation. Both name the user and its password, and the
26
+ * only difference is where those two were read from.
31
27
  */
32
28
  private authorize;
29
+ /**
30
+ * Answer a refused sign-in, on the form or at the application.
31
+ */
32
+ private refused;
33
33
  /**
34
34
  * Exchange an authorization code or a refresh token for tokens.
35
35
  */
@@ -39,10 +39,7 @@ export declare class SimCognitoDomainEndpoints {
39
39
  */
40
40
  private logout;
41
41
  /**
42
- * Answer a request that used the method its endpoint takes.
43
- *
44
- * Each endpoint takes one method and one only, as real Cognito's do, so what
45
- * is left to say about any other is which one it was.
42
+ * Answer a request that used a method its endpoint takes.
46
43
  */
47
44
  private answered;
48
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-domain-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAWhF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAElC,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC;IAC7C,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC;IAC9C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;CACnB;AAED;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiC;IAC1D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgC;IAE7D;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAgBvE;IAED;;;OAGG;YACW,SAAS;IAkBvB;;OAEG;YACW,KAAK;IAenB;;OAEG;YACW,MAAM;IAcpB;;;;;OAKG;YACW,QAAQ;CAavB"}
1
+ {"version":3,"file":"sim-cognito-domain-endpoints.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAgB/E,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E;;;;;;;GAOG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiC;IAC1D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgC;IAC7D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgC;IAEtD;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAsBvE;IAED;;;;;;;OAOG;YACW,SAAS;IAiBvB;;OAEG;IACH,OAAO,CAAC,OAAO;IAef;;OAEG;YACW,KAAK;IAenB;;OAEG;YACW,MAAM;IAcpB;;OAEG;YACW,QAAQ;CAavB"}
@@ -1,27 +1,37 @@
1
+ import { SimCognitoManagedLogin } from "./page/sim-cognito-managed-login.js";
2
+ import { simCognitoAuthorizePath } from "./page/sim-cognito-page-paths.js";
3
+ import { SimCognitoPageRequest } from "./page/sim-cognito-page-request.js";
1
4
  import { SimCognitoOAuthResponse } from "./sim-cognito-oauth-response.js";
2
5
  import { SimCognitoTokenRequest } from "./sim-cognito-token-request.js";
3
6
  /**
4
- * The paths a hosted domain serves.
7
+ * The remaining paths a hosted domain serves.
5
8
  */
6
- const authorizePath = "/oauth2/authorize";
7
9
  const tokenPath = "/oauth2/token";
8
10
  const logoutPath = "/logout";
9
11
  /**
10
- * The three endpoints a pool's hosted domain serves.
12
+ * The methods a page takes, which is both of them, because a form is fetched
13
+ * and then posted back.
14
+ */
15
+ const pageMethods = "GET, POST";
16
+ /**
17
+ * The endpoints and pages a pool's hosted domain serves.
11
18
  *
12
- * Each takes one HTTP method and one only, as real Cognito's do, and turns
13
- * what the simulation answered into the redirect or the JSON body a browser or
14
- * an application's own server reads.
19
+ * The token and logout endpoints take one HTTP method each, as real Cognito's
20
+ * do. The authorize endpoint takes the post of the sign-in form it serves as
21
+ * well as the get an application sends the browser on, and so do the two pages
22
+ * reached from that form.
15
23
  */
16
24
  export class SimCognitoDomainEndpoints {
17
25
  response = new SimCognitoOAuthResponse();
18
26
  tokenRequest = new SimCognitoTokenRequest();
27
+ pageRequest = new SimCognitoPageRequest();
28
+ pages = new SimCognitoManagedLogin();
19
29
  /**
20
30
  * Answer a request that reached the domain's hostname.
21
31
  */
22
32
  async handleRequest(request) {
23
33
  const { pathname } = request.url;
24
- if (pathname === authorizePath) {
34
+ if (pathname === simCognitoAuthorizePath) {
25
35
  return await this.authorize(request);
26
36
  }
27
37
  if (pathname === tokenPath) {
@@ -30,23 +40,37 @@ export class SimCognitoDomainEndpoints {
30
40
  if (pathname === logoutPath) {
31
41
  return await this.logout(request);
32
42
  }
43
+ if (SimCognitoManagedLogin.servesPage(pathname)) {
44
+ return await this.answered(request, pageMethods, async () => this.pages.handlePage(request));
45
+ }
33
46
  return this.response.noSuchEndpoint(pathname);
34
47
  }
35
48
  /**
36
- * Sign a user in through an identity provider and send the browser back to
37
- * the application with a code.
49
+ * Sign a user in and send the browser back to the application with a code,
50
+ * or serve the form that asks who is signing in.
51
+ *
52
+ * A get carrying credentials and a post of the sign-in form are the same
53
+ * request to the simulation. Both name the user and its password, and the
54
+ * only difference is where those two were read from.
38
55
  */
39
56
  async authorize(request) {
40
- const parameters = Object.fromEntries(request.url.searchParams);
41
- return await this.answered(request, "GET", async () => {
57
+ return await this.answered(request, pageMethods, async () => {
58
+ const parameters = this.pageRequest.values(request.serviceRequest, request.url);
42
59
  try {
43
60
  return this.response.redirect(await request.cognito.hostedAuthorize(request.pool, parameters));
44
61
  }
45
62
  catch (error) {
46
- return this.response.refusedRedirect(error, parameters["redirect_uri"], parameters["state"]);
63
+ return this.refused(request, parameters, error);
47
64
  }
48
65
  });
49
66
  }
67
+ /**
68
+ * Answer a refused sign-in, on the form or at the application.
69
+ */
70
+ refused(request, parameters, error) {
71
+ return (this.pages.refusedSignIn(request, parameters, error) ??
72
+ this.response.refusedRedirect(error, parameters["redirect_uri"], parameters["state"]));
73
+ }
50
74
  /**
51
75
  * Exchange an authorization code or a refresh token for tokens.
52
76
  */
@@ -75,15 +99,12 @@ export class SimCognitoDomainEndpoints {
75
99
  });
76
100
  }
77
101
  /**
78
- * Answer a request that used the method its endpoint takes.
79
- *
80
- * Each endpoint takes one method and one only, as real Cognito's do, so what
81
- * is left to say about any other is which one it was.
102
+ * Answer a request that used a method its endpoint takes.
82
103
  */
83
- async answered(request, method, answer) {
104
+ async answered(request, allowed, answer) {
84
105
  const requested = request.serviceRequest.request.method;
85
- if (requested !== method) {
86
- return this.response.notAllowed(requested, method);
106
+ if (!allowed.split(", ").includes(requested)) {
107
+ return this.response.notAllowed(requested, allowed);
87
108
  }
88
109
  return await answer();
89
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-domain-endpoints.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE;;GAEG;AACH,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAC1C,MAAM,SAAS,GAAG,eAAe,CAAC;AAClC,MAAM,UAAU,GAAG,SAAS,CAAC;AAc7B;;;;;;GAMG;AACH,MAAM,OAAO,yBAAyB;IACnB,QAAQ,GAAG,IAAI,uBAAuB,EAAE,CAAC;IACzC,YAAY,GAAG,IAAI,sBAAsB,EAAE,CAAC;IAE7D;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,OAAgC;QAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;QAEjC,IAAI,QAAQ,KAAK,aAAa,EAAE,CAAC;YAC/B,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACvC,CAAC;QAED,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC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I,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,MAAM,CAAC,OAAgC;QACnD,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEhE,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE;YACpD,IAAI,CAAC;gBACH,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAC3B,MAAM,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAC9D,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACK,KAAK,CAAC,QAAQ,CACpB,OAAgC,EAChC,MAAc,EACd,MAA+B;QAE/B,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC;QAExD,IAAI,SAAS,KAAK,MAAM,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,MAAM,MAAM,EAAE,CAAC;IACxB,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-domain-endpoints.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM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F,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,MAAM,CAAC,OAAgC;QACnD,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAEhE,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE;YACpD,IAAI,CAAC;gBACH,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAC3B,MAAM,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAC9D,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,QAAQ,CACpB,OAAgC,EAChC,OAAe,EACf,MAA+B;QAE/B,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC;QAExD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7C,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACtD,CAAC;QAED,OAAO,MAAM,MAAM,EAAE,CAAC;IACxB,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import type { SimAwsServiceRequest } from "../../../serve/controller/sim-service-controller.js";
2
+ import type { SimCognitoIdentityProvider } from "../sim-cognito-identity-provider.js";
3
+ import type { SimCognitoUserPool } from "../user-pool/sim-cognito-user-pool.js";
4
+ /**
5
+ * One request to a hosted domain, and what answers it.
6
+ */
7
+ export interface SimCognitoDomainRequest {
8
+ readonly pool: SimCognitoUserPool;
9
+ /** The simulated Cognito scope the pool belongs to. */
10
+ readonly cognito: SimCognitoIdentityProvider;
11
+ readonly serviceRequest: SimAwsServiceRequest;
12
+ readonly url: URL;
13
+ }
14
+ //# sourceMappingURL=sim-cognito-domain-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-request.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAElC,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC;IAC7C,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC;IAC9C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sim-cognito-domain-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-domain-request.js","sourceRoot":"","sources":["../../../../src/service/cognito/serve/sim-cognito-domain-request.ts"],"names":[],"mappings":""}
@@ -40,6 +40,22 @@ export declare abstract class SimCognitoUserDirectory extends SimCognitoUserFact
40
40
  * Handle an AdminConfirmSignUp Command from the SDK.
41
41
  */
42
42
  adminConfirmSignUp(command: simCognitoCommands.SimAdminConfirmSignUpCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimAdminConfirmSignUpCommandOutput>;
43
+ /**
44
+ * Handle a ForgotPassword Command from the SDK.
45
+ *
46
+ * No caller is read, because real Cognito authorizes this operation with no
47
+ * IAM policy at all: it is what an application calls for someone who cannot
48
+ * sign in and holds no AWS credentials.
49
+ */
50
+ forgotPassword(command: simCognitoCommands.SimForgotPasswordCommand): Promise<simCognitoCommands.SimForgotPasswordCommandOutput>;
51
+ /**
52
+ * Handle a ConfirmForgotPassword Command from the SDK.
53
+ */
54
+ confirmForgotPassword(command: simCognitoCommands.SimConfirmForgotPasswordCommand): Promise<simCognitoCommands.SimConfirmForgotPasswordCommandOutput>;
55
+ /**
56
+ * Handle an AdminResetUserPassword Command from the SDK.
57
+ */
58
+ adminResetUserPassword(command: simCognitoCommands.SimAdminResetUserPasswordCommand, options?: SimCognitoIdentityProviderRequestOptions): Promise<simCognitoCommands.SimAdminResetUserPasswordCommandOutput>;
43
59
  /**
44
60
  * Handle an AdminGetUser Command from the SDK.
45
61
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-directory.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,KAAK,kBAAkB,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACL,qBAAqB,EACrB,KAAK,wCAAwC,EAC9C,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,wCAAwC,EAAE,MAAM,iCAAiC,CAAC;AAEhG,UAAU,iCAAiC;IACzC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,8BAAsB,uBAAwB,SAAQ,qBAAqB;IACzE,SAAS,aAAa,UAAU,EAAE,iCAAiC,EAElE;IAED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CAGxD;IAED;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,kBAAkB,CAAC,6BAA6B,EACzD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,mCAAmC,CAAC,CAGjE;IAED;;OAEG;IACG,wBAAwB,CAC5B,OAAO,EAAE,kBAAkB,CAAC,kCAAkC,EAC9D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,CAGtE;IAED;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,kBAAkB,CAAC,gCAAgC,EAC5D,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,sCAAsC,CAAC,CAGpE;IAED;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,kBAAkB,CAAC,0BAA0B,EACtD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAG9D;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-directory.d.ts","sourceRoot":"","sources":["../../../src/service/cognito/sim-cognito-user-directory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,KAAK,kBAAkB,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACL,qBAAqB,EACrB,KAAK,wCAAwC,EAC9C,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,wCAAwC,EAAE,MAAM,iCAAiC,CAAC;AAEhG,UAAU,iCAAiC;IACzC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;CAC1C;AAED;;;;;;;;;;GAUG;AACH,8BAAsB,uBAAwB,SAAQ,qBAAqB;IACzE,SAAS,aAAa,UAA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