@kensio/yulin 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (584) hide show
  1. package/README.md +11 -0
  2. package/dist/cli/sim-cli.d.ts.map +1 -1
  3. package/dist/cli/sim-cli.js +5 -1
  4. package/dist/cli/sim-cli.js.map +1 -1
  5. package/dist/cli/watch/sim-watch-arguments.d.ts +1 -0
  6. package/dist/cli/watch/sim-watch-arguments.d.ts.map +1 -1
  7. package/dist/cli/watch/sim-watch-arguments.js +40 -12
  8. package/dist/cli/watch/sim-watch-arguments.js.map +1 -1
  9. package/dist/cli/watch/sim-watch-supervisor.d.ts.map +1 -1
  10. package/dist/cli/watch/sim-watch-supervisor.js +1 -0
  11. package/dist/cli/watch/sim-watch-supervisor.js.map +1 -1
  12. package/dist/cli/watch/sim-watch-watcher.d.ts +1 -1
  13. package/dist/cli/watch/sim-watch-watcher.d.ts.map +1 -1
  14. package/dist/cli/watch/sim-watch-watcher.js +5 -1
  15. package/dist/cli/watch/sim-watch-watcher.js.map +1 -1
  16. package/dist/cli/yulin.js +0 -0
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/serve/http/live-reload/sim-live-reload-client.d.ts +15 -3
  22. package/dist/serve/http/live-reload/sim-live-reload-client.d.ts.map +1 -1
  23. package/dist/serve/http/live-reload/sim-live-reload-client.js +36 -5
  24. package/dist/serve/http/live-reload/sim-live-reload-client.js.map +1 -1
  25. package/dist/serve/http/live-reload/sim-live-reload.config.d.ts +1 -0
  26. package/dist/serve/http/live-reload/sim-live-reload.config.d.ts.map +1 -1
  27. package/dist/serve/http/live-reload/sim-live-reload.config.js +6 -0
  28. package/dist/serve/http/live-reload/sim-live-reload.config.js.map +1 -1
  29. package/dist/serve/http/live-reload/sim-live-reload.d.ts +4 -1
  30. package/dist/serve/http/live-reload/sim-live-reload.d.ts.map +1 -1
  31. package/dist/serve/http/live-reload/sim-live-reload.js +6 -4
  32. package/dist/serve/http/live-reload/sim-live-reload.js.map +1 -1
  33. package/dist/serve/http/live-reload/sim-local-live-reload.d.ts +14 -1
  34. package/dist/serve/http/live-reload/sim-local-live-reload.d.ts.map +1 -1
  35. package/dist/serve/http/live-reload/sim-local-live-reload.js +24 -4
  36. package/dist/serve/http/live-reload/sim-local-live-reload.js.map +1 -1
  37. package/dist/serve/http/local-server/sim-aws-local-server.d.ts +45 -3
  38. package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
  39. package/dist/serve/http/local-server/sim-aws-local-server.js +55 -5
  40. package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
  41. package/dist/serve/index.d.ts +1 -0
  42. package/dist/serve/index.d.ts.map +1 -1
  43. package/dist/serve/index.js.map +1 -1
  44. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  45. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +2 -2
  46. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  47. package/dist/service/aws/scope/sim-aws-scope-registry.d.ts +9 -0
  48. package/dist/service/aws/scope/sim-aws-scope-registry.d.ts.map +1 -1
  49. package/dist/service/aws/scope/sim-aws-scope-registry.js +13 -0
  50. package/dist/service/aws/scope/sim-aws-scope-registry.js.map +1 -1
  51. package/dist/service/aws/sim-aws-account-id.d.ts +27 -0
  52. package/dist/service/aws/sim-aws-account-id.d.ts.map +1 -0
  53. package/dist/service/aws/sim-aws-account-id.js +34 -0
  54. package/dist/service/aws/sim-aws-account-id.js.map +1 -0
  55. package/dist/service/aws/sim-aws-account-region-scope.d.ts +10 -0
  56. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  57. package/dist/service/aws/sim-aws-account-region-scope.js +18 -0
  58. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  59. package/dist/service/aws/sim-aws-account.d.ts +5 -7
  60. package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
  61. package/dist/service/aws/sim-aws-account.js +9 -8
  62. package/dist/service/aws/sim-aws-account.js.map +1 -1
  63. package/dist/service/aws/sim-aws-closing.d.ts +24 -0
  64. package/dist/service/aws/sim-aws-closing.d.ts.map +1 -0
  65. package/dist/service/aws/sim-aws-closing.js +7 -0
  66. package/dist/service/aws/sim-aws-closing.js.map +1 -0
  67. package/dist/service/aws/sim-aws.d.ts +34 -0
  68. package/dist/service/aws/sim-aws.d.ts.map +1 -1
  69. package/dist/service/aws/sim-aws.js +40 -0
  70. package/dist/service/aws/sim-aws.js.map +1 -1
  71. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts +18 -0
  72. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
  73. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js +8 -7
  74. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.js.map +1 -1
  75. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.d.ts +18 -0
  76. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.d.ts.map +1 -0
  77. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.js +23 -0
  78. package/dist/service/cloudformation/deploy/sim-cfn-template-file-transform.js.map +1 -0
  79. package/dist/service/cloudformation/index.d.ts +3 -1
  80. package/dist/service/cloudformation/index.d.ts.map +1 -1
  81. package/dist/service/cloudformation/sim-cloudformation.d.ts +9 -0
  82. package/dist/service/cloudformation/sim-cloudformation.d.ts.map +1 -1
  83. package/dist/service/cloudformation/sim-cloudformation.js +11 -0
  84. package/dist/service/cloudformation/sim-cloudformation.js.map +1 -1
  85. package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.d.ts.map +1 -1
  86. package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js +1 -0
  87. package/dist/service/cloudformation/watch/sim-cfn-template-file-watch.js.map +1 -1
  88. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts +5 -0
  89. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.d.ts.map +1 -1
  90. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js +0 -0
  91. package/dist/service/cloudformation/watch/sim-cfn-template-file-watches.js.map +1 -1
  92. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts +4 -2
  93. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.d.ts.map +1 -1
  94. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js +5 -3
  95. package/dist/service/cloudformation/watch/sim-cfn-template-watch-report.js.map +1 -1
  96. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts +5 -4
  97. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.d.ts.map +1 -1
  98. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js +15 -6
  99. package/dist/service/cloudformation/watch/sim-cfn-template-watch-update.js.map +1 -1
  100. package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts +31 -3
  101. package/dist/service/cloudformation/watch/sim-cfn-template-watch.type.d.ts.map +1 -1
  102. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.d.ts +29 -0
  103. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.d.ts.map +1 -0
  104. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.js +47 -0
  105. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-admin-create-user-config.js.map +1 -0
  106. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  107. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +26 -8
  108. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  109. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts +1 -1
  110. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.d.ts.map +1 -1
  111. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js +3 -2
  112. package/dist/service/cognito/command/auth/sim-cognito-admin-initiate-auth.js.map +1 -1
  113. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts +1 -1
  114. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts.map +1 -1
  115. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js +3 -2
  116. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js.map +1 -1
  117. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +11 -4
  118. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  119. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +11 -8
  120. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  121. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts +5 -1
  122. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.d.ts.map +1 -1
  123. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js +7 -3
  124. package/dist/service/cognito/command/auth/sim-cognito-auth-flow-runner.js.map +1 -1
  125. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts +1 -1
  126. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.d.ts.map +1 -1
  127. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js +3 -2
  128. package/dist/service/cognito/command/auth/sim-cognito-initiate-auth.js.map +1 -1
  129. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts +11 -1
  130. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts.map +1 -1
  131. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js +30 -4
  132. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js.map +1 -1
  133. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts +19 -1
  134. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
  135. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +40 -5
  136. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  137. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts +5 -1
  138. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -1
  139. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +15 -2
  140. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
  141. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts +1 -1
  142. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts.map +1 -1
  143. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js +3 -2
  144. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js.map +1 -1
  145. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts +5 -0
  146. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.d.ts.map +1 -1
  147. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js +5 -1
  148. package/dist/service/cognito/command/auth/sim-cognito-unsimulated-auth-options.js.map +1 -1
  149. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts +6 -4
  150. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
  151. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +9 -4
  152. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
  153. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts +3 -2
  154. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.d.ts.map +1 -1
  155. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js +6 -6
  156. package/dist/service/cognito/command/client/sim-cognito-unsimulated-managed-login.js.map +1 -1
  157. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts +23 -3
  158. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts.map +1 -1
  159. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js +35 -8
  160. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js.map +1 -1
  161. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +2 -2
  162. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +2 -2
  163. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +37 -5
  164. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  165. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +3 -2
  166. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  167. package/dist/service/cognito/command/sim-cognito-commands.d.ts +4 -0
  168. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  169. package/dist/service/cognito/command/sim-cognito-commands.js +33 -3
  170. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  171. package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts +5 -1
  172. package/dist/service/cognito/command/sim-cognito-unsimulated-input.d.ts.map +1 -1
  173. package/dist/service/cognito/command/sim-cognito-unsimulated-input.js +4 -0
  174. package/dist/service/cognito/command/sim-cognito-unsimulated-input.js.map +1 -1
  175. package/dist/service/cognito/command/sim-cognito-validation-data.d.ts +14 -0
  176. package/dist/service/cognito/command/sim-cognito-validation-data.d.ts.map +1 -0
  177. package/dist/service/cognito/command/sim-cognito-validation-data.js +29 -0
  178. package/dist/service/cognito/command/sim-cognito-validation-data.js.map +1 -0
  179. package/dist/service/cognito/command/user/sign-up.command.d.ts +104 -0
  180. package/dist/service/cognito/command/user/sign-up.command.d.ts.map +1 -0
  181. package/dist/service/cognito/command/user/sign-up.command.js +2 -0
  182. package/dist/service/cognito/command/user/sign-up.command.js.map +1 -0
  183. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts +104 -0
  184. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -0
  185. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +186 -0
  186. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -0
  187. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.d.ts +38 -0
  188. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.d.ts.map +1 -0
  189. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.js +49 -0
  190. package/dist/service/cognito/command/user/sim-cognito-unsimulated-sign-up-options.js.map +1 -0
  191. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts +15 -5
  192. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.d.ts.map +1 -1
  193. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js +17 -9
  194. package/dist/service/cognito/command/user/sim-cognito-unsimulated-user-options.js.map +1 -1
  195. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts +25 -12
  196. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
  197. package/dist/service/cognito/command/user/sim-cognito-user-commands.js +42 -19
  198. package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
  199. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
  200. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +1 -1
  201. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
  202. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +16 -5
  203. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
  204. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +21 -24
  205. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
  206. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +28 -0
  207. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -0
  208. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +42 -0
  209. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -0
  210. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts +21 -12
  211. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts.map +1 -1
  212. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js +28 -36
  213. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js.map +1 -1
  214. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +8 -14
  215. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
  216. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +13 -25
  217. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
  218. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +21 -0
  219. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -0
  220. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +25 -0
  221. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -0
  222. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts +17 -2
  223. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
  224. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +35 -10
  225. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
  226. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +10 -2
  227. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  228. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +17 -5
  229. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  230. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +56 -23
  231. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  232. package/dist/service/cognito/error/sim-cognito-trigger.error.d.ts +39 -0
  233. package/dist/service/cognito/error/sim-cognito-trigger.error.d.ts.map +1 -0
  234. package/dist/service/cognito/error/sim-cognito-trigger.error.js +45 -0
  235. package/dist/service/cognito/error/sim-cognito-trigger.error.js.map +1 -0
  236. package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
  237. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  238. package/dist/service/cognito/error/sim-cognito.error.js +26 -0
  239. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  240. package/dist/service/cognito/index.d.ts +8 -1
  241. package/dist/service/cognito/index.d.ts.map +1 -1
  242. package/dist/service/cognito/index.js +7 -1
  243. package/dist/service/cognito/index.js.map +1 -1
  244. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts +6 -0
  245. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
  246. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +22 -0
  247. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
  248. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.d.ts.map +1 -1
  249. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js +8 -0
  250. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js.map +1 -1
  251. package/dist/service/cognito/serve/sim-cognito-controller.d.ts +10 -1
  252. package/dist/service/cognito/serve/sim-cognito-controller.d.ts.map +1 -1
  253. package/dist/service/cognito/serve/sim-cognito-controller.js +48 -8
  254. package/dist/service/cognito/serve/sim-cognito-controller.js.map +1 -1
  255. package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts +1 -1
  256. package/dist/service/cognito/serve/sim-cognito-endpoint-response.d.ts.map +1 -1
  257. package/dist/service/cognito/serve/sim-cognito-endpoint-response.js +3 -2
  258. package/dist/service/cognito/serve/sim-cognito-endpoint-response.js.map +1 -1
  259. package/dist/service/cognito/sim-cognito-identity-provider.d.ts +20 -0
  260. package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
  261. package/dist/service/cognito/sim-cognito-identity-provider.js +17 -1
  262. package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
  263. package/dist/service/cognito/sim-cognito-user-directory.d.ts +16 -0
  264. package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
  265. package/dist/service/cognito/sim-cognito-user-directory.js +28 -0
  266. package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
  267. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts +9 -0
  268. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.d.ts.map +1 -1
  269. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js +14 -1
  270. package/dist/service/cognito/user-pool/auth/sim-cognito-sign-in.js.map +1 -1
  271. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +2 -11
  272. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
  273. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -14
  274. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
  275. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +38 -0
  276. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -0
  277. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +36 -0
  278. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -0
  279. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +40 -20
  280. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  281. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +54 -20
  282. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  283. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts +32 -0
  284. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts.map +1 -0
  285. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js +52 -0
  286. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js.map +1 -0
  287. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +13 -0
  288. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -0
  289. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.js +2 -0
  290. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.js.map +1 -0
  291. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.d.ts +49 -0
  292. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.d.ts.map +1 -0
  293. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.js +58 -0
  294. package/dist/service/cognito/user-pool/message/sim-cognito-message-placeholders.js.map +1 -0
  295. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.d.ts +41 -0
  296. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.d.ts.map +1 -0
  297. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.js +39 -0
  298. package/dist/service/cognito/user-pool/message/sim-cognito-message-wording.js.map +1 -0
  299. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts +13 -0
  300. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts.map +1 -0
  301. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js +32 -0
  302. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js.map +1 -0
  303. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts +53 -0
  304. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.d.ts.map +1 -0
  305. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js +62 -0
  306. package/dist/service/cognito/user-pool/message/sim-cognito-pool-messenger.js.map +1 -0
  307. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.d.ts +19 -0
  308. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.d.ts.map +1 -0
  309. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.js +22 -0
  310. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message-store.js.map +1 -0
  311. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts +65 -0
  312. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.d.ts.map +1 -0
  313. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js +52 -0
  314. package/dist/service/cognito/user-pool/message/sim-cognito-sent-message.js.map +1 -0
  315. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts +68 -0
  316. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.d.ts.map +1 -0
  317. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js +91 -0
  318. package/dist/service/cognito/user-pool/message/sim-cognito-verification-messages.js.map +1 -0
  319. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.d.ts +18 -0
  320. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.d.ts.map +1 -0
  321. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.js +31 -0
  322. package/dist/service/cognito/user-pool/message/sim-cognito-verification-wording.js.map +1 -0
  323. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.d.ts +41 -0
  324. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.d.ts.map +1 -0
  325. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.js +41 -0
  326. package/dist/service/cognito/user-pool/sim-cognito-admin-create-user-config.js.map +1 -0
  327. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.d.ts +35 -0
  328. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.d.ts.map +1 -0
  329. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.js +60 -0
  330. package/dist/service/cognito/user-pool/sim-cognito-auto-verified-attributes.js.map +1 -0
  331. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +10 -15
  332. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +1 -1
  333. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +10 -25
  334. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +1 -1
  335. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts +8 -0
  336. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.d.ts.map +1 -1
  337. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js +9 -0
  338. package/dist/service/cognito/user-pool/sim-cognito-user-pool-arn.js.map +1 -1
  339. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +3 -7
  340. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
  341. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +6 -7
  342. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
  343. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts +24 -0
  344. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.d.ts.map +1 -1
  345. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js +32 -0
  346. package/dist/service/cognito/user-pool/sim-cognito-user-pool-id.js.map +1 -1
  347. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +65 -0
  348. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -0
  349. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +52 -0
  350. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -0
  351. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +41 -28
  352. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  353. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +55 -27
  354. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  355. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.d.ts +29 -0
  356. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.d.ts.map +1 -0
  357. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.js +80 -0
  358. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-reader.js.map +1 -0
  359. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.d.ts +21 -0
  360. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.d.ts.map +1 -0
  361. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.js +45 -0
  362. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override-values.js.map +1 -0
  363. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.d.ts +54 -0
  364. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.d.ts.map +1 -0
  365. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.js +72 -0
  366. package/dist/service/cognito/user-pool/token/sim-cognito-claims-override.js.map +1 -0
  367. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.d.ts +10 -0
  368. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.d.ts.map +1 -0
  369. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js +54 -0
  370. package/dist/service/cognito/user-pool/token/sim-cognito-group-override.js.map +1 -0
  371. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.d.ts +23 -0
  372. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.d.ts.map +1 -0
  373. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.js +82 -0
  374. package/dist/service/cognito/user-pool/token/sim-cognito-reserved-claims.js.map +1 -0
  375. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +26 -2
  376. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
  377. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +32 -7
  378. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
  379. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts +55 -0
  380. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.d.ts.map +1 -0
  381. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js +101 -0
  382. package/dist/service/cognito/user-pool/trigger/sim-aws-cognito-trigger-functions.js.map +1 -0
  383. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.d.ts +31 -0
  384. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.d.ts.map +1 -0
  385. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.js +73 -0
  386. package/dist/service/cognito/user-pool/trigger/sim-cognito-custom-message.js.map +1 -0
  387. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.d.ts +58 -0
  388. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.d.ts.map +1 -0
  389. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.js +77 -0
  390. package/dist/service/cognito/user-pool/trigger/sim-cognito-lambda-config.js.map +1 -0
  391. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.d.ts +28 -0
  392. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.d.ts.map +1 -0
  393. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.js +68 -0
  394. package/dist/service/cognito/user-pool/trigger/sim-cognito-pre-sign-up-response.js.map +1 -0
  395. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.d.ts +36 -0
  396. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.d.ts.map +1 -0
  397. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.js +2 -0
  398. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-context.js.map +1 -0
  399. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.d.ts +27 -0
  400. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.d.ts.map +1 -0
  401. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.js +69 -0
  402. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-event.js.map +1 -0
  403. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.d.ts +59 -0
  404. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.d.ts.map +1 -0
  405. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.js +25 -0
  406. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-functions.js.map +1 -0
  407. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.d.ts +33 -0
  408. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.d.ts.map +1 -0
  409. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.js +61 -0
  410. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-invocation.js.map +1 -0
  411. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.d.ts +20 -0
  412. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.d.ts.map +1 -0
  413. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.js +46 -0
  414. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-name.js.map +1 -0
  415. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +89 -0
  416. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -0
  417. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +102 -0
  418. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -0
  419. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.d.ts +75 -0
  420. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.d.ts.map +1 -0
  421. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.js +162 -0
  422. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-request.js.map +1 -0
  423. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.d.ts +19 -0
  424. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.d.ts.map +1 -0
  425. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.js +38 -0
  426. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-response.js.map +1 -0
  427. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts +81 -0
  428. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.d.ts.map +1 -0
  429. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js +90 -0
  430. package/dist/service/cognito/user-pool/trigger/sim-cognito-user-pool-triggers.js.map +1 -0
  431. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.d.ts +29 -0
  432. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.d.ts.map +1 -0
  433. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.js +40 -0
  434. package/dist/service/cognito/user-pool/user/sim-cognito-confirmation-code.js.map +1 -0
  435. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts +8 -0
  436. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -1
  437. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +12 -0
  438. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -1
  439. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts +36 -0
  440. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.d.ts.map +1 -0
  441. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js +51 -0
  442. package/dist/service/cognito/user-pool/user/sim-cognito-user-confirmation.js.map +1 -0
  443. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +31 -2
  444. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -1
  445. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +31 -4
  446. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -1
  447. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts +39 -8
  448. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.d.ts.map +1 -1
  449. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js +50 -7
  450. package/dist/service/cognito/user-pool/user/sim-cognito-user-status.js.map +1 -1
  451. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +55 -3
  452. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  453. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +74 -5
  454. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  455. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.d.ts.map +1 -1
  456. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js +22 -1
  457. package/dist/service/lambda/function/invoke/sim-lambda-handler-runner.js.map +1 -1
  458. package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts +30 -0
  459. package/dist/service/lambda/function/sim-lambda-function-arn-parts.d.ts.map +1 -0
  460. package/dist/service/lambda/function/sim-lambda-function-arn-parts.js +32 -0
  461. package/dist/service/lambda/function/sim-lambda-function-arn-parts.js.map +1 -0
  462. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.d.ts +5 -0
  463. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.d.ts.map +1 -1
  464. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.js +13 -3
  465. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-set-builder.js.map +1 -1
  466. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.d.ts +26 -0
  467. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.d.ts.map +1 -0
  468. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.js +36 -0
  469. package/dist/service/route53/cfn/record-set/build/sim-cfn-r53-record-type-skip.js.map +1 -0
  470. package/dist/service/route53/dns/answer/dns-answerer-test-query.d.ts +6 -3
  471. package/dist/service/route53/dns/answer/dns-answerer-test-query.d.ts.map +1 -1
  472. package/dist/service/route53/dns/answer/dns-answerer-test-query.js +5 -2
  473. package/dist/service/route53/dns/answer/dns-answerer-test-query.js.map +1 -1
  474. package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.d.ts.map +1 -1
  475. package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.js +9 -3
  476. package/dist/service/route53/dns/answer/sim-route53-dns-record-answer.js.map +1 -1
  477. package/dist/service/route53/dns/dns-record-type.d.ts +24 -7
  478. package/dist/service/route53/dns/dns-record-type.d.ts.map +1 -1
  479. package/dist/service/route53/dns/dns-record-type.js +16 -7
  480. package/dist/service/route53/dns/dns-record-type.js.map +1 -1
  481. package/dist/service/route53/dns/rdata/dns-rdata.d.ts +2 -2
  482. package/dist/service/route53/dns/rdata/dns-rdata.d.ts.map +1 -1
  483. package/dist/service/route53/dns/rdata/dns-rdata.js.map +1 -1
  484. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts +34 -0
  485. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.d.ts.map +1 -0
  486. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js +35 -0
  487. package/dist/service/route53/hosted-zone/register-sim-route53-hosted-zone.js.map +1 -0
  488. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.d.ts.map +1 -1
  489. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.js +2 -4
  490. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone-records.js.map +1 -1
  491. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts +7 -0
  492. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.d.ts.map +1 -1
  493. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js +10 -1
  494. package/dist/service/route53/hosted-zone/sim-route53-hosted-zone.js.map +1 -1
  495. package/dist/service/route53/index.d.ts +1 -0
  496. package/dist/service/route53/index.d.ts.map +1 -1
  497. package/dist/service/route53/index.js +1 -0
  498. package/dist/service/route53/index.js.map +1 -1
  499. package/dist/service/route53/record/sim-route53-record-type.d.ts +1 -1
  500. package/dist/service/route53/record/sim-route53-record-type.d.ts.map +1 -1
  501. package/dist/service/route53/record/sim-route53-record-type.js +3 -2
  502. package/dist/service/route53/record/sim-route53-record-type.js.map +1 -1
  503. package/dist/service/route53/record/sim-route53-record-value.d.ts +9 -0
  504. package/dist/service/route53/record/sim-route53-record-value.d.ts.map +1 -0
  505. package/dist/service/route53/record/sim-route53-record-value.js +26 -0
  506. package/dist/service/route53/record/sim-route53-record-value.js.map +1 -0
  507. package/dist/service/route53/record/sim-route53-record.d.ts +15 -1
  508. package/dist/service/route53/record/sim-route53-record.d.ts.map +1 -1
  509. package/dist/service/route53/record/sim-route53-record.js +21 -1
  510. package/dist/service/route53/record/sim-route53-record.js.map +1 -1
  511. package/dist/service/route53/sim-route53.d.ts +14 -0
  512. package/dist/service/route53/sim-route53.d.ts.map +1 -1
  513. package/dist/service/route53/sim-route53.js +19 -0
  514. package/dist/service/route53/sim-route53.js.map +1 -1
  515. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts +16 -4
  516. package/dist/service/s3/bucket/sim-s3-bucket-access.d.ts.map +1 -1
  517. package/dist/service/s3/bucket/sim-s3-bucket-access.js +27 -7
  518. package/dist/service/s3/bucket/sim-s3-bucket-access.js.map +1 -1
  519. package/dist/service/s3/index.d.ts +1 -0
  520. package/dist/service/s3/index.d.ts.map +1 -1
  521. package/dist/service/s3/mount/sim-s3-mount-directory-events.d.ts +40 -0
  522. package/dist/service/s3/mount/sim-s3-mount-directory-events.d.ts.map +1 -0
  523. package/dist/service/s3/mount/sim-s3-mount-directory-events.js +64 -0
  524. package/dist/service/s3/mount/sim-s3-mount-directory-events.js.map +1 -0
  525. package/dist/service/s3/mount/sim-s3-mount-watch.d.ts +36 -0
  526. package/dist/service/s3/mount/sim-s3-mount-watch.d.ts.map +1 -0
  527. package/dist/service/s3/mount/sim-s3-mount-watch.js +57 -0
  528. package/dist/service/s3/mount/sim-s3-mount-watch.js.map +1 -0
  529. package/dist/service/s3/mount/sim-s3-mount-watches.d.ts +42 -0
  530. package/dist/service/s3/mount/sim-s3-mount-watches.d.ts.map +1 -0
  531. package/dist/service/s3/mount/sim-s3-mount-watches.js +69 -0
  532. package/dist/service/s3/mount/sim-s3-mount-watches.js.map +1 -0
  533. package/dist/service/s3/mount/sim-s3-mount.type.d.ts +43 -0
  534. package/dist/service/s3/mount/sim-s3-mount.type.d.ts.map +1 -0
  535. package/dist/service/s3/mount/sim-s3-mount.type.js +2 -0
  536. package/dist/service/s3/mount/sim-s3-mount.type.js.map +1 -0
  537. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts +3 -3
  538. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.d.ts.map +1 -1
  539. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js +8 -14
  540. package/dist/service/s3/notification/destination/lambda/sim-s3-notification-function-arn.js.map +1 -1
  541. package/dist/service/s3/sim-s3.d.ts +49 -64
  542. package/dist/service/s3/sim-s3.d.ts.map +1 -1
  543. package/dist/service/s3/sim-s3.js +56 -66
  544. package/dist/service/s3/sim-s3.js.map +1 -1
  545. package/dist/service/s3/storage/filesystem/s3-filesystem-allowed.d.ts +36 -0
  546. package/dist/service/s3/storage/filesystem/s3-filesystem-allowed.d.ts.map +1 -0
  547. package/dist/service/s3/storage/filesystem/s3-filesystem-allowed.js +73 -0
  548. package/dist/service/s3/storage/filesystem/s3-filesystem-allowed.js.map +1 -0
  549. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.d.ts.map +1 -1
  550. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js +5 -6
  551. package/dist/service/s3/storage/filesystem/s3-filesystem-object-metadata.js.map +1 -1
  552. package/dist/service/s3/storage/filesystem/s3-filesystem-safety.d.ts +2 -0
  553. package/dist/service/s3/storage/filesystem/s3-filesystem-safety.d.ts.map +1 -1
  554. package/dist/service/s3/storage/filesystem/s3-filesystem-safety.js +7 -41
  555. package/dist/service/s3/storage/filesystem/s3-filesystem-safety.js.map +1 -1
  556. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts +1 -0
  557. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.d.ts.map +1 -1
  558. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js +1 -0
  559. package/dist/service/s3/storage/filesystem/s3-filesystem-storage.js.map +1 -1
  560. package/dist/util/filesystem/path.d.ts +4 -0
  561. package/dist/util/filesystem/path.d.ts.map +1 -1
  562. package/dist/util/filesystem/path.js +8 -3
  563. package/dist/util/filesystem/path.js.map +1 -1
  564. package/dist/util/memo/memo.d.ts +8 -0
  565. package/dist/util/memo/memo.d.ts.map +1 -1
  566. package/dist/util/memo/memo.js +10 -0
  567. package/dist/util/memo/memo.js.map +1 -1
  568. package/dist/util/process/close-on-signal.d.ts +16 -0
  569. package/dist/util/process/close-on-signal.d.ts.map +1 -0
  570. package/dist/util/process/close-on-signal.js +54 -0
  571. package/dist/util/process/close-on-signal.js.map +1 -0
  572. package/dist/watch/index.d.ts +3 -0
  573. package/dist/watch/index.d.ts.map +1 -0
  574. package/dist/watch/index.js +2 -0
  575. package/dist/watch/index.js.map +1 -0
  576. package/dist/watch/sim-watch-settle.d.ts +13 -0
  577. package/dist/watch/sim-watch-settle.d.ts.map +1 -1
  578. package/dist/watch/sim-watch-settle.js +24 -2
  579. package/dist/watch/sim-watch-settle.js.map +1 -1
  580. package/dist/watch/sim-watch.config.d.ts +1 -0
  581. package/dist/watch/sim-watch.config.d.ts.map +1 -1
  582. package/dist/watch/sim-watch.config.js +21 -1
  583. package/dist/watch/sim-watch.config.js.map +1 -1
  584. package/package.json +29 -24
@@ -0,0 +1,39 @@
1
+ /**
2
+ * What a message says, before the placeholders in it are filled in.
3
+ *
4
+ * A pool has wording for each occasion it sends on, a `CustomMessage` handler
5
+ * can return wording of its own in place of it, and the code and the username
6
+ * go in last. Each of those steps hands on a wording rather than a pair of
7
+ * strings, so the subject and the body cannot drift apart on the way.
8
+ */
9
+ export class SimCognitoMessageWording {
10
+ subject;
11
+ body;
12
+ constructor(properties) {
13
+ this.subject = properties.subject;
14
+ this.body = properties.body;
15
+ }
16
+ /**
17
+ * This wording with whatever a `CustomMessage` handler wrote in place of it.
18
+ *
19
+ * A handler that wrote neither leaves the pool's own wording, which is what
20
+ * a handler returning the event untouched does, and what a pool with no such
21
+ * trigger at all gets.
22
+ */
23
+ replacedBy(written) {
24
+ return new SimCognitoMessageWording({
25
+ subject: written.subject ?? this.subject,
26
+ body: written.body ?? this.body,
27
+ });
28
+ }
29
+ /**
30
+ * This wording with the code and the username filled in.
31
+ */
32
+ filledWith(placeholders) {
33
+ return new SimCognitoMessageWording({
34
+ subject: placeholders.fillOptional(this.subject),
35
+ body: placeholders.fill(this.body),
36
+ });
37
+ }
38
+ }
39
+ //# sourceMappingURL=sim-cognito-message-wording.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-message-wording.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-message-wording.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IACnB,OAAO,CAAqB;IAC5B,IAAI,CAAS;IAE7B,YAAY,UAA8C;QACxD,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAAC,OAAiC;QAC1C,OAAO,IAAI,wBAAwB,CAAC;YAClC,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO;YACxC,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI;SAChC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,UAAU,CACR,YAA2C;QAE3C,OAAO,IAAI,wBAAwB,CAAC;YAClC,OAAO,EAAE,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;YAChD,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,13 @@
1
+ import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
2
+ import type { SimCognitoMessageOccasion } from "./sim-cognito-message-occasion.js";
3
+ import { SimCognitoMessageWording } from "./sim-cognito-message-wording.js";
4
+ import type { SimCognitoMessageMedium } from "./sim-cognito-sent-message.js";
5
+ /**
6
+ * What a pool says on the occasion it is sending on.
7
+ *
8
+ * The invitation an administrator's user is sent is the pool's own wording as
9
+ * much as the verification message is, and only the verification wording can
10
+ * be set on a pool here.
11
+ */
12
+ export declare function simCognitoOccasionWording(pool: SimCognitoUserPool, occasion: SimCognitoMessageOccasion, medium: SimCognitoMessageMedium): SimCognitoMessageWording;
13
+ //# sourceMappingURL=sim-cognito-occasion-wording.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-occasion-wording.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-occasion-wording.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAe7E;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,yBAAyB,EACnC,MAAM,EAAE,uBAAuB,GAC9B,wBAAwB,CAa1B"}
@@ -0,0 +1,32 @@
1
+ import { SimCognitoMessageWording } from "./sim-cognito-message-wording.js";
2
+ /**
3
+ * The wording real Cognito invites an admin-created user with when the pool
4
+ * asked for none.
5
+ *
6
+ * These are the defaults the Cognito API documentation states for
7
+ * `AdminCreateUserConfig InviteMessageTemplate`, rather than values read back
8
+ * from a live account. `InviteMessageTemplate` itself is refused, so a pool
9
+ * cannot ask for anything else here yet.
10
+ */
11
+ const invitationSubject = "Your temporary password";
12
+ const invitationMessage = "Your username is {username} and temporary password is {####}.";
13
+ /**
14
+ * What a pool says on the occasion it is sending on.
15
+ *
16
+ * The invitation an administrator's user is sent is the pool's own wording as
17
+ * much as the verification message is, and only the verification wording can
18
+ * be set on a pool here.
19
+ */
20
+ export function simCognitoOccasionWording(pool, occasion, medium) {
21
+ if (occasion !== "AdminCreateUser") {
22
+ return pool.settings.verificationMessages.wording(medium);
23
+ }
24
+ if (medium === "SMS") {
25
+ return new SimCognitoMessageWording({ body: invitationMessage });
26
+ }
27
+ return new SimCognitoMessageWording({
28
+ subject: invitationSubject,
29
+ body: invitationMessage,
30
+ });
31
+ }
32
+ //# sourceMappingURL=sim-cognito-occasion-wording.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-occasion-wording.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-occasion-wording.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAG5E;;;;;;;;GAQG;AACH,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AACpD,MAAM,iBAAiB,GACrB,+DAA+D,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CACvC,IAAwB,EACxB,QAAmC,EACnC,MAA+B;IAE/B,IAAI,QAAQ,KAAK,iBAAiB,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;QACrB,OAAO,IAAI,wBAAwB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,IAAI,wBAAwB,CAAC;QAClC,OAAO,EAAE,iBAAiB;QAC1B,IAAI,EAAE,iBAAiB;KACxB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,53 @@
1
+ import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
+ import type { SimCognitoUserPoolClient } from "../client/sim-cognito-user-pool-client.js";
3
+ import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
4
+ import type { SimCognitoUserPoolTriggers } from "../trigger/sim-cognito-user-pool-triggers.js";
5
+ import type { SimCognitoUser } from "../user/sim-cognito-user.js";
6
+ import type { SimCognitoMessageOccasion } from "./sim-cognito-message-occasion.js";
7
+ interface SimCognitoPoolMessengerProperties {
8
+ readonly triggers: SimCognitoUserPoolTriggers;
9
+ readonly clock: SimClock;
10
+ }
11
+ /**
12
+ * What a pool is about to send.
13
+ */
14
+ interface SimCognitoMessageRequest {
15
+ readonly pool: SimCognitoUserPool;
16
+ readonly user: SimCognitoUser;
17
+ readonly occasion: SimCognitoMessageOccasion;
18
+ /**
19
+ * The confirmation code or temporary password the message carries, where
20
+ * the pool has one to put in it.
21
+ */
22
+ readonly code?: string | undefined;
23
+ /** The app client the request came through, where one did. */
24
+ readonly client?: SimCognitoUserPoolClient | undefined;
25
+ readonly clientMetadata?: Readonly<Record<string, string>> | undefined;
26
+ }
27
+ /**
28
+ * Records the messages a simulated user pool would have sent.
29
+ *
30
+ * Nothing is delivered. The pool keeps what it would have sent, and a test
31
+ * reads it back off the pool, which is what makes a verification message
32
+ * something a test can assert about at all.
33
+ *
34
+ * This is Cognito's own delivery, not SES. Real Cognito with the default
35
+ * `EmailSendingAccount` of `COGNITO_DEFAULT` sends through no other service,
36
+ * and `EmailConfiguration` is refused here, so no pool is configured for one
37
+ * that would.
38
+ */
39
+ export declare class SimCognitoPoolMessenger {
40
+ private readonly triggers;
41
+ private readonly clock;
42
+ constructor(properties: SimCognitoPoolMessengerProperties);
43
+ /**
44
+ * Send the message this occasion produces, running the pool's
45
+ * `CustomMessage` trigger first so that a handler can write its own.
46
+ *
47
+ * A pool with nowhere to write to sends nothing, as one does on real
48
+ * Cognito, rather than recording a message addressed to no one.
49
+ */
50
+ send(request: SimCognitoMessageRequest): Promise<void>;
51
+ }
52
+ export {};
53
+ //# sourceMappingURL=sim-cognito-pool-messenger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-pool-messenger.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-pool-messenger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAKnF,UAAU,iCAAiC;IACzC,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;GAEG;AACH,UAAU,wBAAwB;IAChC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAE7C;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEnC,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;CACxE;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,iCAAiC,EAGxD;IAED;;;;;;OAMG;IACG,IAAI,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4C3D;CACF"}
@@ -0,0 +1,62 @@
1
+ import { SimCognitoTriggerOccasion } from "../trigger/sim-cognito-trigger-occasion.js";
2
+ import { SimCognitoMessageDelivery } from "./sim-cognito-message-delivery.js";
3
+ import { SimCognitoMessagePlaceholders } from "./sim-cognito-message-placeholders.js";
4
+ import { simCognitoOccasionWording } from "./sim-cognito-occasion-wording.js";
5
+ import { SimCognitoSentMessage } from "./sim-cognito-sent-message.js";
6
+ /**
7
+ * Records the messages a simulated user pool would have sent.
8
+ *
9
+ * Nothing is delivered. The pool keeps what it would have sent, and a test
10
+ * reads it back off the pool, which is what makes a verification message
11
+ * something a test can assert about at all.
12
+ *
13
+ * This is Cognito's own delivery, not SES. Real Cognito with the default
14
+ * `EmailSendingAccount` of `COGNITO_DEFAULT` sends through no other service,
15
+ * and `EmailConfiguration` is refused here, so no pool is configured for one
16
+ * that would.
17
+ */
18
+ export class SimCognitoPoolMessenger {
19
+ triggers;
20
+ clock;
21
+ constructor(properties) {
22
+ this.triggers = properties.triggers;
23
+ this.clock = properties.clock;
24
+ }
25
+ /**
26
+ * Send the message this occasion produces, running the pool's
27
+ * `CustomMessage` trigger first so that a handler can write its own.
28
+ *
29
+ * A pool with nowhere to write to sends nothing, as one does on real
30
+ * Cognito, rather than recording a message addressed to no one.
31
+ */
32
+ async send(request) {
33
+ const delivery = SimCognitoMessageDelivery.forOccasion(request.pool, request.user, request.occasion);
34
+ if (delivery === undefined) {
35
+ return;
36
+ }
37
+ const { medium } = delivery;
38
+ const custom = await this.triggers.customMessage(SimCognitoTriggerOccasion.customMessage(request.occasion), {
39
+ pool: request.pool,
40
+ user: request.user,
41
+ client: request.client,
42
+ clientMetadata: request.clientMetadata,
43
+ });
44
+ const pooled = simCognitoOccasionWording(request.pool, request.occasion, medium);
45
+ // The code and the username go in last, so that what a handler wrote
46
+ // carries them too.
47
+ const placeholders = new SimCognitoMessagePlaceholders({
48
+ username: request.user.username,
49
+ code: request.code,
50
+ });
51
+ const wording = custom.wordingFor(medium, pooled);
52
+ request.pool.messages.record(new SimCognitoSentMessage({
53
+ username: request.user.username,
54
+ recipient: delivery.recipient,
55
+ medium,
56
+ wording: wording.filledWith(placeholders),
57
+ occasion: request.occasion,
58
+ sentDate: this.clock.now(),
59
+ }));
60
+ }
61
+ }
62
+ //# sourceMappingURL=sim-cognito-pool-messenger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-pool-messenger.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-pool-messenger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAGvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AA0BtE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,uBAAuB;IACjB,QAAQ,CAA6B;IACrC,KAAK,CAAW;IAEjC,YAAY,UAA6C;QACvD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,CAAC,OAAiC;QAC1C,MAAM,QAAQ,GAAG,yBAAyB,CAAC,WAAW,CACpD,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,CACjB,CAAC;QAEF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO;QACT,CAAC;QAED,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC;QAC5B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,aAAa,CAC9C,yBAAyB,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,EACzD;YACE,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,cAAc,EAAE,OAAO,CAAC,cAAc;SACvC,CACF,CAAC;QACF,MAAM,MAAM,GAAG,yBAAyB,CACtC,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,MAAM,CACP,CAAC;QACF,qEAAqE;QACrE,oBAAoB;QACpB,MAAM,YAAY,GAAG,IAAI,6BAA6B,CAAC;YACrD,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ;YAC/B,IAAI,EAAE,OAAO,CAAC,IAAI;SACnB,CAAC,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAElD,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAC1B,IAAI,qBAAqB,CAAC;YACxB,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ;YAC/B,SAAS,EAAE,QAAQ,CAAC,SAAS;YAC7B,MAAM;YACN,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;YACzC,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;SAC3B,CAAC,CACH,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ import type { SimCognitoSentMessage } from "./sim-cognito-sent-message.js";
2
+ /**
3
+ * The messages one simulated user pool would have sent.
4
+ *
5
+ * They are kept in the order the pool sent them, so a test that signed a user
6
+ * up and then asked for another code reads the two in that order.
7
+ */
8
+ export declare class SimCognitoSentMessageStore {
9
+ #private;
10
+ /**
11
+ * Keep a message the pool would have sent.
12
+ */
13
+ record(message: SimCognitoSentMessage): void;
14
+ /**
15
+ * Every message, oldest first.
16
+ */
17
+ get all(): readonly SimCognitoSentMessage[];
18
+ }
19
+ //# sourceMappingURL=sim-cognito-sent-message-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sent-message-store.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-sent-message-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3E;;;;;GAKG;AACH,qBAAa,0BAA0B;;IAGrC;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAE3C;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,SAAS,qBAAqB,EAAE,CAE1C;CACF"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The messages one simulated user pool would have sent.
3
+ *
4
+ * They are kept in the order the pool sent them, so a test that signed a user
5
+ * up and then asked for another code reads the two in that order.
6
+ */
7
+ export class SimCognitoSentMessageStore {
8
+ #messages = [];
9
+ /**
10
+ * Keep a message the pool would have sent.
11
+ */
12
+ record(message) {
13
+ this.#messages.push(message);
14
+ }
15
+ /**
16
+ * Every message, oldest first.
17
+ */
18
+ get all() {
19
+ return [...this.#messages];
20
+ }
21
+ }
22
+ //# sourceMappingURL=sim-cognito-sent-message-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sent-message-store.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-sent-message-store.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,OAAO,0BAA0B;IAC5B,SAAS,GAA4B,EAAE,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAC,OAA8B;QACnC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAI,GAAG;QACL,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7B,CAAC;CACF"}
@@ -0,0 +1,65 @@
1
+ import type { SimCognitoMessageOccasion } from "./sim-cognito-message-occasion.js";
2
+ import type { SimCognitoMessageWording } from "./sim-cognito-message-wording.js";
3
+ /**
4
+ * How a pool would have delivered a message.
5
+ *
6
+ * Cognito picks the medium from the attribute it is writing to, so an email
7
+ * address gets an email and a phone number gets a text message.
8
+ */
9
+ export type SimCognitoMessageMedium = "EMAIL" | "SMS";
10
+ /**
11
+ * One recorded message, in the shape the serve layer lists it in.
12
+ */
13
+ export interface SimCognitoSentMessageOutput {
14
+ readonly username: string;
15
+ readonly recipient: string;
16
+ readonly medium: SimCognitoMessageMedium;
17
+ readonly subject?: string | undefined;
18
+ readonly body: string;
19
+ readonly occasion: SimCognitoMessageOccasion;
20
+ readonly sentDate: string;
21
+ }
22
+ interface SimCognitoSentMessageProperties {
23
+ readonly username: string;
24
+ readonly recipient: string;
25
+ readonly medium: SimCognitoMessageMedium;
26
+ /** What the message says, with its placeholders already filled in. */
27
+ readonly wording: SimCognitoMessageWording;
28
+ readonly occasion: SimCognitoMessageOccasion;
29
+ readonly sentDate: Date;
30
+ }
31
+ /**
32
+ * One message a simulated user pool would have sent.
33
+ *
34
+ * Nothing is delivered. The pool keeps what it would have sent instead, which
35
+ * is what lets a test assert that signing up produces a verification message
36
+ * carrying the code, and what the wording a pool was created with is finally
37
+ * read for.
38
+ *
39
+ * This is Cognito's own record rather than a simulated SES: real Cognito with
40
+ * the default `EmailSendingAccount` of `COGNITO_DEFAULT` does not send through
41
+ * SES at all, so a message here has been through no other service.
42
+ */
43
+ export declare class SimCognitoSentMessage {
44
+ /** The user the message was addressed to. */
45
+ readonly username: string;
46
+ /** The email address or phone number it would have gone to. */
47
+ readonly recipient: string;
48
+ readonly medium: SimCognitoMessageMedium;
49
+ /** The subject, which a text message does not have. */
50
+ readonly subject: string | undefined;
51
+ readonly body: string;
52
+ /** What the pool was doing when it sent this. */
53
+ readonly occasion: SimCognitoMessageOccasion;
54
+ readonly sentDate: Date;
55
+ constructor(properties: SimCognitoSentMessageProperties);
56
+ /**
57
+ * This message as the serve layer lists it.
58
+ *
59
+ * The date is an ISO string because the listing is JSON, where a `Date` has
60
+ * no representation of its own.
61
+ */
62
+ toOutput(): SimCognitoSentMessageOutput;
63
+ }
64
+ export {};
65
+ //# sourceMappingURL=sim-cognito-sent-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sent-message.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-sent-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,+BAA+B;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,uBAAuB,CAAC;IAEzC,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,yBAAyB,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,qBAAqB;IAChC,6CAA6C;IAC7C,SAAgB,QAAQ,EAAE,MAAM,CAAC;IAEjC,+DAA+D;IAC/D,SAAgB,SAAS,EAAE,MAAM,CAAC;IAElC,SAAgB,MAAM,EAAE,uBAAuB,CAAC;IAEhD,uDAAuD;IACvD,SAAgB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5C,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B,iDAAiD;IACjD,SAAgB,QAAQ,EAAE,yBAAyB,CAAC;IAEpD,SAAgB,QAAQ,EAAE,IAAI,CAAC;IAE/B,YAAY,UAAU,EAAE,+BAA+B,EAQtD;IAED;;;;;OAKG;IACH,QAAQ,IAAI,2BAA2B,CAUtC;CACF"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * One message a simulated user pool would have sent.
3
+ *
4
+ * Nothing is delivered. The pool keeps what it would have sent instead, which
5
+ * is what lets a test assert that signing up produces a verification message
6
+ * carrying the code, and what the wording a pool was created with is finally
7
+ * read for.
8
+ *
9
+ * This is Cognito's own record rather than a simulated SES: real Cognito with
10
+ * the default `EmailSendingAccount` of `COGNITO_DEFAULT` does not send through
11
+ * SES at all, so a message here has been through no other service.
12
+ */
13
+ export class SimCognitoSentMessage {
14
+ /** The user the message was addressed to. */
15
+ username;
16
+ /** The email address or phone number it would have gone to. */
17
+ recipient;
18
+ medium;
19
+ /** The subject, which a text message does not have. */
20
+ subject;
21
+ body;
22
+ /** What the pool was doing when it sent this. */
23
+ occasion;
24
+ sentDate;
25
+ constructor(properties) {
26
+ this.username = properties.username;
27
+ this.recipient = properties.recipient;
28
+ this.medium = properties.medium;
29
+ this.subject = properties.wording.subject;
30
+ this.body = properties.wording.body;
31
+ this.occasion = properties.occasion;
32
+ this.sentDate = properties.sentDate;
33
+ }
34
+ /**
35
+ * This message as the serve layer lists it.
36
+ *
37
+ * The date is an ISO string because the listing is JSON, where a `Date` has
38
+ * no representation of its own.
39
+ */
40
+ toOutput() {
41
+ return {
42
+ username: this.username,
43
+ recipient: this.recipient,
44
+ medium: this.medium,
45
+ ...(this.subject !== undefined && { subject: this.subject }),
46
+ body: this.body,
47
+ occasion: this.occasion,
48
+ sentDate: this.sentDate.toISOString(),
49
+ };
50
+ }
51
+ }
52
+ //# sourceMappingURL=sim-cognito-sent-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-sent-message.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-sent-message.ts"],"names":[],"mappings":"AAmCA;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,qBAAqB;IAChC,6CAA6C;IAC7B,QAAQ,CAAS;IAEjC,+DAA+D;IAC/C,SAAS,CAAS;IAElB,MAAM,CAA0B;IAEhD,uDAAuD;IACvC,OAAO,CAAqB;IAE5B,IAAI,CAAS;IAE7B,iDAAiD;IACjC,QAAQ,CAA4B;IAEpC,QAAQ,CAAO;IAE/B,YAAY,UAA2C;QACrD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;;;OAKG;IACH,QAAQ;QACN,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;YAC5D,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;SACtC,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,68 @@
1
+ import type { SimCognitoMessageMedium } from "./sim-cognito-sent-message.js";
2
+ import { SimCognitoMessageWording } from "./sim-cognito-message-wording.js";
3
+ /**
4
+ * The `VerificationMessageTemplate` a pool can be created with.
5
+ *
6
+ * https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html
7
+ */
8
+ export interface SimCognitoVerificationMessageTemplateType {
9
+ readonly DefaultEmailOption?: string | undefined;
10
+ readonly EmailMessage?: string | undefined;
11
+ readonly EmailSubject?: string | undefined;
12
+ readonly EmailMessageByLink?: string | undefined;
13
+ readonly EmailSubjectByLink?: string | undefined;
14
+ readonly SmsMessage?: string | undefined;
15
+ }
16
+ /**
17
+ * The verification wording a request can set, in the shape the SDK sends it.
18
+ */
19
+ export interface SimCognitoVerificationMessagesType {
20
+ readonly EmailVerificationMessage?: string | undefined;
21
+ readonly EmailVerificationSubject?: string | undefined;
22
+ readonly SmsVerificationMessage?: string | undefined;
23
+ readonly VerificationMessageTemplate?: SimCognitoVerificationMessageTemplateType | undefined;
24
+ }
25
+ /**
26
+ * What a pool says in the message it sends a user signing itself up.
27
+ *
28
+ * The wording is read rather than accepted and ignored, because the pool
29
+ * records the message it would have sent and a test reads it back. A pool that
30
+ * asked for nothing gets the wording real Cognito gives one.
31
+ *
32
+ * `VerificationMessageTemplate` wins over the three older inputs where a
33
+ * request sets both, and each of them fills in what the template left out.
34
+ * What real Cognito does when the two disagree was not checked against a live
35
+ * account, and a request naming one or the other behaves the same either way.
36
+ *
37
+ * Only the wording is read here. Confirming by following a link is refused by
38
+ * SimCognitoUnsimulatedUserPoolMessaging before a pool gets this far, so
39
+ * whatever wording arrives is wording for a code, and it is held to the rules
40
+ * real Cognito holds it to: the code placeholder, and a length.
41
+ */
42
+ export declare class SimCognitoVerificationMessages {
43
+ readonly emailSubject: string;
44
+ readonly emailMessage: string;
45
+ readonly smsMessage: string;
46
+ private readonly requested;
47
+ constructor(input: SimCognitoVerificationMessagesType);
48
+ /**
49
+ * The wording copied out of the request rather than kept by reference, so a
50
+ * described pool reports what the request said at the time it was made even
51
+ * where the caller edits the object afterwards.
52
+ *
53
+ * Each input is kept only where the request set it, so a pool created
54
+ * without one describes without it rather than describing the default it
55
+ * fell back to.
56
+ */
57
+ private static copied;
58
+ /**
59
+ * What this pool says in a verification message for one medium.
60
+ */
61
+ wording(medium: SimCognitoMessageMedium): SimCognitoMessageWording;
62
+ /**
63
+ * This wording as a described pool reports it, which is what the request
64
+ * set and nothing it did not.
65
+ */
66
+ toOutput(): SimCognitoVerificationMessagesType;
67
+ }
68
+ //# sourceMappingURL=sim-cognito-verification-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-verification-messages.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-verification-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAiB5E;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACxD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,wBAAwB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,wBAAwB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,2BAA2B,CAAC,EACnC,yCAAyC,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,8BAA8B;IACzC,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,UAAU,EAAE,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqC;IAE/D,YAAY,KAAK,EAAE,kCAAkC,EAoBpD;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,MAAM;IAmBrB;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,uBAAuB,GAAG,wBAAwB,CASjE;IAED;;;OAGG;IACH,QAAQ,IAAI,kCAAkC,CAE7C;CACF"}
@@ -0,0 +1,91 @@
1
+ import { SimCognitoMessageWording } from "./sim-cognito-message-wording.js";
2
+ import { requireSimCognitoVerificationWording, simCognitoLongestEmailMessage, simCognitoLongestSmsMessage, } from "./sim-cognito-verification-wording.js";
3
+ /**
4
+ * The wording real Cognito gives a pool that asked for none.
5
+ *
6
+ * These are the defaults the Cognito API documentation states for
7
+ * `VerificationMessageTemplate`, rather than values read back from a live
8
+ * account. A pool that sets its own wording never reaches them.
9
+ */
10
+ const defaultEmailSubject = "Your verification code";
11
+ const defaultMessage = "Your verification code is {####}";
12
+ /**
13
+ * What a pool says in the message it sends a user signing itself up.
14
+ *
15
+ * The wording is read rather than accepted and ignored, because the pool
16
+ * records the message it would have sent and a test reads it back. A pool that
17
+ * asked for nothing gets the wording real Cognito gives one.
18
+ *
19
+ * `VerificationMessageTemplate` wins over the three older inputs where a
20
+ * request sets both, and each of them fills in what the template left out.
21
+ * What real Cognito does when the two disagree was not checked against a live
22
+ * account, and a request naming one or the other behaves the same either way.
23
+ *
24
+ * Only the wording is read here. Confirming by following a link is refused by
25
+ * SimCognitoUnsimulatedUserPoolMessaging before a pool gets this far, so
26
+ * whatever wording arrives is wording for a code, and it is held to the rules
27
+ * real Cognito holds it to: the code placeholder, and a length.
28
+ */
29
+ export class SimCognitoVerificationMessages {
30
+ emailSubject;
31
+ emailMessage;
32
+ smsMessage;
33
+ requested;
34
+ constructor(input) {
35
+ const template = input.VerificationMessageTemplate;
36
+ this.emailSubject =
37
+ template?.EmailSubject ??
38
+ input.EmailVerificationSubject ??
39
+ defaultEmailSubject;
40
+ this.emailMessage = requireSimCognitoVerificationWording("EmailVerificationMessage", template?.EmailMessage ??
41
+ input.EmailVerificationMessage ??
42
+ defaultMessage, simCognitoLongestEmailMessage);
43
+ this.smsMessage = requireSimCognitoVerificationWording("SmsVerificationMessage", template?.SmsMessage ?? input.SmsVerificationMessage ?? defaultMessage, simCognitoLongestSmsMessage);
44
+ this.requested = SimCognitoVerificationMessages.copied(input);
45
+ }
46
+ /**
47
+ * The wording copied out of the request rather than kept by reference, so a
48
+ * described pool reports what the request said at the time it was made even
49
+ * where the caller edits the object afterwards.
50
+ *
51
+ * Each input is kept only where the request set it, so a pool created
52
+ * without one describes without it rather than describing the default it
53
+ * fell back to.
54
+ */
55
+ static copied(input) {
56
+ return structuredClone({
57
+ ...(input.EmailVerificationMessage !== undefined && {
58
+ EmailVerificationMessage: input.EmailVerificationMessage,
59
+ }),
60
+ ...(input.EmailVerificationSubject !== undefined && {
61
+ EmailVerificationSubject: input.EmailVerificationSubject,
62
+ }),
63
+ ...(input.SmsVerificationMessage !== undefined && {
64
+ SmsVerificationMessage: input.SmsVerificationMessage,
65
+ }),
66
+ ...(input.VerificationMessageTemplate !== undefined && {
67
+ VerificationMessageTemplate: input.VerificationMessageTemplate,
68
+ }),
69
+ });
70
+ }
71
+ /**
72
+ * What this pool says in a verification message for one medium.
73
+ */
74
+ wording(medium) {
75
+ if (medium === "SMS") {
76
+ return new SimCognitoMessageWording({ body: this.smsMessage });
77
+ }
78
+ return new SimCognitoMessageWording({
79
+ subject: this.emailSubject,
80
+ body: this.emailMessage,
81
+ });
82
+ }
83
+ /**
84
+ * This wording as a described pool reports it, which is what the request
85
+ * set and nothing it did not.
86
+ */
87
+ toOutput() {
88
+ return structuredClone(this.requested);
89
+ }
90
+ }
91
+ //# sourceMappingURL=sim-cognito-verification-messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-verification-messages.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-verification-messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EACL,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,uCAAuC,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AACrD,MAAM,cAAc,GAAG,kCAAkC,CAAC;AA2B1D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,8BAA8B;IACzB,YAAY,CAAS;IACrB,YAAY,CAAS;IACrB,UAAU,CAAS;IAElB,SAAS,CAAqC;IAE/D,YAAY,KAAyC;QACnD,MAAM,QAAQ,GAAG,KAAK,CAAC,2BAA2B,CAAC;QAEnD,IAAI,CAAC,YAAY;YACf,QAAQ,EAAE,YAAY;gBACtB,KAAK,CAAC,wBAAwB;gBAC9B,mBAAmB,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,oCAAoC,CACtD,0BAA0B,EAC1B,QAAQ,EAAE,YAAY;YACpB,KAAK,CAAC,wBAAwB;YAC9B,cAAc,EAChB,6BAA6B,CAC9B,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,oCAAoC,CACpD,wBAAwB,EACxB,QAAQ,EAAE,UAAU,IAAI,KAAK,CAAC,sBAAsB,IAAI,cAAc,EACtE,2BAA2B,CAC5B,CAAC;QACF,IAAI,CAAC,SAAS,GAAG,8BAA8B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;OAQG;IACK,MAAM,CAAC,MAAM,CACnB,KAAyC;QAEzC,OAAO,eAAe,CAAC;YACrB,GAAG,CAAC,KAAK,CAAC,wBAAwB,KAAK,SAAS,IAAI;gBAClD,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;aACzD,CAAC;YACF,GAAG,CAAC,KAAK,CAAC,wBAAwB,KAAK,SAAS,IAAI;gBAClD,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;aACzD,CAAC;YACF,GAAG,CAAC,KAAK,CAAC,sBAAsB,KAAK,SAAS,IAAI;gBAChD,sBAAsB,EAAE,KAAK,CAAC,sBAAsB;aACrD,CAAC;YACF,GAAG,CAAC,KAAK,CAAC,2BAA2B,KAAK,SAAS,IAAI;gBACrD,2BAA2B,EAAE,KAAK,CAAC,2BAA2B;aAC/D,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,MAA+B;QACrC,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YACrB,OAAO,IAAI,wBAAwB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QACjE,CAAC;QAED,OAAO,IAAI,wBAAwB,CAAC;YAClC,OAAO,EAAE,IAAI,CAAC,YAAY;YAC1B,IAAI,EAAE,IAAI,CAAC,YAAY;SACxB,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ;QACN,OAAO,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;CACF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * How long each kind of verification message may be.
3
+ *
4
+ * These are the lengths real Cognito states for the wording inputs: an email
5
+ * runs to 20,000 characters and a text message to the 140 an SMS carries.
6
+ */
7
+ export declare const simCognitoLongestEmailMessage = 20000;
8
+ export declare const simCognitoLongestSmsMessage = 140;
9
+ /**
10
+ * Refuse verification wording real Cognito would refuse.
11
+ *
12
+ * Both rules are ones the API applies, so a pool accepted here that a
13
+ * deployment turns down is the divergence worth refusing. The placeholder is
14
+ * the one that matters most: the wording is what a recorded message says, and
15
+ * wording without it is a message that would reach a user with no code in it.
16
+ */
17
+ export declare function requireSimCognitoVerificationWording(option: string, message: string, longest: number): string;
18
+ //# sourceMappingURL=sim-cognito-verification-wording.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-verification-wording.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-verification-wording.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,QAAS,CAAC;AACpD,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAI/C;;;;;;;GAOG;AACH,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,MAAM,CAgBR"}
@@ -0,0 +1,31 @@
1
+ import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
+ import { simCognitoCodeParameter } from "./sim-cognito-message-placeholders.js";
3
+ /**
4
+ * How long each kind of verification message may be.
5
+ *
6
+ * These are the lengths real Cognito states for the wording inputs: an email
7
+ * runs to 20,000 characters and a text message to the 140 an SMS carries.
8
+ */
9
+ export const simCognitoLongestEmailMessage = 20_000;
10
+ export const simCognitoLongestSmsMessage = 140;
11
+ const shortestMessage = 6;
12
+ /**
13
+ * Refuse verification wording real Cognito would refuse.
14
+ *
15
+ * Both rules are ones the API applies, so a pool accepted here that a
16
+ * deployment turns down is the divergence worth refusing. The placeholder is
17
+ * the one that matters most: the wording is what a recorded message says, and
18
+ * wording without it is a message that would reach a user with no code in it.
19
+ */
20
+ export function requireSimCognitoVerificationWording(option, message, longest) {
21
+ if (message.length < shortestMessage || message.length > longest) {
22
+ throw new SimCognitoInvalidParameterException(`${option} is ${String(message.length)} characters, and Cognito takes ` +
23
+ `${String(shortestMessage)} to ${String(longest)}`);
24
+ }
25
+ if (!message.includes(simCognitoCodeParameter)) {
26
+ throw new SimCognitoInvalidParameterException(`${option} does not carry the ${simCognitoCodeParameter} placeholder, ` +
27
+ `so the user would be sent a message with no code in it`);
28
+ }
29
+ return message;
30
+ }
31
+ //# sourceMappingURL=sim-cognito-verification-wording.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-verification-wording.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/message/sim-cognito-verification-wording.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC;AACpD,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAC;AAE/C,MAAM,eAAe,GAAG,CAAC,CAAC;AAE1B;;;;;;;GAOG;AACH,MAAM,UAAU,oCAAoC,CAClD,MAAc,EACd,OAAe,EACf,OAAe;IAEf,IAAI,OAAO,CAAC,MAAM,GAAG,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,OAAO,EAAE,CAAC;QACjE,MAAM,IAAI,mCAAmC,CAC3C,GAAG,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC;YACrE,GAAG,MAAM,CAAC,eAAe,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,CACrD,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,mCAAmC,CAC3C,GAAG,MAAM,uBAAuB,uBAAuB,gBAAgB;YACrE,wDAAwD,CAC3D,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}