@kensio/yulin 1.19.3 → 1.19.4

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 (184) hide show
  1. package/dist/serve/http/local-server/sim-aws-local-server.d.ts +7 -5
  2. package/dist/serve/http/local-server/sim-aws-local-server.d.ts.map +1 -1
  3. package/dist/serve/http/local-server/sim-aws-local-server.js.map +1 -1
  4. package/dist/serve/message/sim-email-log-block.d.ts +35 -0
  5. package/dist/serve/message/sim-email-log-block.d.ts.map +1 -0
  6. package/dist/serve/message/sim-email-log-block.js +111 -0
  7. package/dist/serve/message/sim-email-log-block.js.map +1 -0
  8. package/dist/serve/message/sim-local-message-logging.d.ts.map +1 -1
  9. package/dist/serve/message/sim-local-message-logging.js +4 -1
  10. package/dist/serve/message/sim-local-message-logging.js.map +1 -1
  11. package/dist/serve/message/sim-message-indent.d.ts +10 -0
  12. package/dist/serve/message/sim-message-indent.d.ts.map +1 -0
  13. package/dist/serve/message/sim-message-indent.js +12 -0
  14. package/dist/serve/message/sim-message-indent.js.map +1 -0
  15. package/dist/serve/message/sim-message-log-console.d.ts +17 -1
  16. package/dist/serve/message/sim-message-log-console.d.ts.map +1 -1
  17. package/dist/serve/message/sim-message-log-console.js +25 -17
  18. package/dist/serve/message/sim-message-log-console.js.map +1 -1
  19. package/dist/serve/message/sim-message-logging.d.ts +16 -3
  20. package/dist/serve/message/sim-message-logging.d.ts.map +1 -1
  21. package/dist/serve/message/sim-message-logging.js +28 -7
  22. package/dist/serve/message/sim-message-logging.js.map +1 -1
  23. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +10 -0
  24. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  25. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +15 -0
  26. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  27. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +0 -9
  28. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
  29. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +0 -11
  30. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
  31. package/dist/service/aws/factory/sim-aws-service-factory.js +1 -1
  32. package/dist/service/aws/message/sim-aws-logged-message.d.ts +25 -5
  33. package/dist/service/aws/message/sim-aws-logged-message.d.ts.map +1 -1
  34. package/dist/service/cloudformation/bind/{sim-cfn-deploy-binding.d.ts → sim-cfn-binding.d.ts} +11 -4
  35. package/dist/service/cloudformation/bind/sim-cfn-binding.d.ts.map +1 -0
  36. package/dist/service/cloudformation/bind/{sim-cfn-deploy-binding.js → sim-cfn-binding.js} +1 -1
  37. package/dist/service/cloudformation/bind/sim-cfn-binding.js.map +1 -0
  38. package/dist/service/cloudformation/bind/sim-cfn-exec-binding.type.d.ts +32 -35
  39. package/dist/service/cloudformation/bind/sim-cfn-exec-binding.type.d.ts.map +1 -1
  40. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.d.ts +2 -2
  41. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.d.ts.map +1 -1
  42. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js +1 -1
  43. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-finder.js.map +1 -1
  44. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-validator.d.ts +2 -2
  45. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-validator.d.ts.map +1 -1
  46. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-validator.js +1 -1
  47. package/dist/service/cloudformation/bind/validate/sim-cfn-exec-binding-validator.js.map +1 -1
  48. package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts +2 -2
  49. package/dist/service/cloudformation/command/create-stack/create-stack.handler.d.ts.map +1 -1
  50. package/dist/service/cloudformation/command/create-stack/create-stack.handler.js.map +1 -1
  51. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts +2 -2
  52. package/dist/service/cloudformation/deploy/sim-cfn-cdk-out-stack-options.d.ts.map +1 -1
  53. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts +2 -2
  54. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.d.ts.map +1 -1
  55. package/dist/service/cloudformation/deploy/sim-cfn-template-deployer.js.map +1 -1
  56. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts +3 -3
  57. package/dist/service/cloudformation/deploy/sim-cfn-template-file-loader.d.ts.map +1 -1
  58. package/dist/service/cloudformation/index.d.ts +3 -0
  59. package/dist/service/cloudformation/index.d.ts.map +1 -1
  60. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts +2 -2
  61. package/dist/service/cloudformation/resource/sim-cfn-resource.type.d.ts.map +1 -1
  62. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.d.ts +2 -2
  63. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.d.ts.map +1 -1
  64. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-batch-creator.js.map +1 -1
  65. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.d.ts +2 -2
  66. package/dist/service/cloudformation/stack/deploy/sim-cfn-stack-resource-creator.d.ts.map +1 -1
  67. package/dist/service/cloudformation/stack/sim-cfn-deployed-stack.type.d.ts +8 -0
  68. package/dist/service/cloudformation/stack/sim-cfn-deployed-stack.type.d.ts.map +1 -1
  69. package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts +2 -2
  70. package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.d.ts.map +1 -1
  71. package/dist/service/cloudformation/stack/sim-cfn-stack-resource-operations.js.map +1 -1
  72. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts +3 -10
  73. package/dist/service/cloudformation/stack/sim-cfn-stack.d.ts.map +1 -1
  74. package/dist/service/cloudformation/stack/sim-cfn-stack.js +13 -18
  75. package/dist/service/cloudformation/stack/sim-cfn-stack.js.map +1 -1
  76. package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts +2 -2
  77. package/dist/service/cloudformation/stack/sim-cfn-stack.type.d.ts.map +1 -1
  78. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-binding-lookup.d.ts +2 -2
  79. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-binding-lookup.d.ts.map +1 -1
  80. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.d.ts +2 -2
  81. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.d.ts.map +1 -1
  82. package/dist/service/cloudfront/cfn/cff/sim-cfn-cff-create-input-builder.js.map +1 -1
  83. package/dist/service/ecs/cfn/bind/sim-cfn-ecs-container-binding.type.d.ts +1 -1
  84. package/dist/service/ecs/cfn/bind/sim-cfn-ecs-container-bindings.d.ts +2 -2
  85. package/dist/service/ecs/cfn/bind/sim-cfn-ecs-container-bindings.d.ts.map +1 -1
  86. package/dist/service/ecs/cfn/bind/sim-cfn-ecs-container-bindings.js +1 -1
  87. package/dist/service/ecs/cfn/bind/sim-cfn-ecs-container-bindings.js.map +1 -1
  88. package/dist/service/ecs/cfn/task-definition/sim-cfn-ecs-task-definition-creator.d.ts +2 -2
  89. package/dist/service/ecs/cfn/task-definition/sim-cfn-ecs-task-definition-creator.d.ts.map +1 -1
  90. package/dist/service/ecs/cfn/task-definition/sim-cfn-ecs-task-definition-creator.js.map +1 -1
  91. package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.d.ts +2 -2
  92. package/dist/service/lambda/cfn/function/sim-cfn-lambda-code-input.d.ts.map +1 -1
  93. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-creator.d.ts +2 -2
  94. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-creator.d.ts.map +1 -1
  95. package/dist/service/lambda/cfn/function/sim-cfn-lambda-function-creator.js.map +1 -1
  96. package/dist/service/ses/command/send/sim-ses-configuration-set-check.d.ts +53 -0
  97. package/dist/service/ses/command/send/sim-ses-configuration-set-check.d.ts.map +1 -0
  98. package/dist/service/ses/command/send/sim-ses-configuration-set-check.js +70 -0
  99. package/dist/service/ses/command/send/sim-ses-configuration-set-check.js.map +1 -0
  100. package/dist/service/ses/command/send/sim-ses-send-email.d.ts +5 -3
  101. package/dist/service/ses/command/send/sim-ses-send-email.d.ts.map +1 -1
  102. package/dist/service/ses/command/send/sim-ses-send-email.js +11 -4
  103. package/dist/service/ses/command/send/sim-ses-send-email.js.map +1 -1
  104. package/dist/service/ses/command/send/sim-ses-service-send.d.ts +6 -0
  105. package/dist/service/ses/command/send/sim-ses-service-send.d.ts.map +1 -1
  106. package/dist/service/ses/command/send/sim-ses-service-send.js +9 -2
  107. package/dist/service/ses/command/send/sim-ses-service-send.js.map +1 -1
  108. package/dist/service/ses/email/sim-ses-sent-email-store.d.ts +14 -0
  109. package/dist/service/ses/email/sim-ses-sent-email-store.d.ts.map +1 -1
  110. package/dist/service/ses/email/sim-ses-sent-email-store.js +21 -0
  111. package/dist/service/ses/email/sim-ses-sent-email-store.js.map +1 -1
  112. package/dist/service/ses/error/sim-ses.error.d.ts +12 -0
  113. package/dist/service/ses/error/sim-ses.error.d.ts.map +1 -1
  114. package/dist/service/ses/error/sim-ses.error.js +14 -0
  115. package/dist/service/ses/error/sim-ses.error.js.map +1 -1
  116. package/dist/service/ses/index.d.ts +1 -1
  117. package/dist/service/ses/index.d.ts.map +1 -1
  118. package/dist/service/ses/index.js +1 -1
  119. package/dist/service/ses/index.js.map +1 -1
  120. package/dist/service/ses/sim-ses-commands.d.ts +5 -0
  121. package/dist/service/ses/sim-ses-commands.d.ts.map +1 -1
  122. package/dist/service/ses/sim-ses-commands.js +10 -2
  123. package/dist/service/ses/sim-ses-commands.js.map +1 -1
  124. package/dist/terraform/sim-tf-adapter.d.ts +2 -2
  125. package/dist/terraform/sim-tf-adapter.d.ts.map +1 -1
  126. package/dist/terraform/sim-tf-attribute-intrinsic.d.ts +13 -0
  127. package/dist/terraform/sim-tf-attribute-intrinsic.d.ts.map +1 -0
  128. package/dist/terraform/sim-tf-attribute-intrinsic.js +23 -0
  129. package/dist/terraform/sim-tf-attribute-intrinsic.js.map +1 -0
  130. package/dist/terraform/sim-tf-attributes.js +1 -1
  131. package/dist/terraform/sim-tf-attributes.js.map +1 -1
  132. package/dist/terraform/sim-tf-declare.d.ts +0 -20
  133. package/dist/terraform/sim-tf-declare.d.ts.map +1 -1
  134. package/dist/terraform/sim-tf-declare.js +1 -47
  135. package/dist/terraform/sim-tf-declare.js.map +1 -1
  136. package/dist/terraform/sim-tf-depends-on.d.ts +21 -0
  137. package/dist/terraform/sim-tf-depends-on.d.ts.map +1 -0
  138. package/dist/terraform/sim-tf-depends-on.js +30 -0
  139. package/dist/terraform/sim-tf-depends-on.js.map +1 -0
  140. package/dist/terraform/sim-tf-expression-references.d.ts +11 -0
  141. package/dist/terraform/sim-tf-expression-references.d.ts.map +1 -0
  142. package/dist/terraform/sim-tf-expression-references.js +22 -0
  143. package/dist/terraform/sim-tf-expression-references.js.map +1 -0
  144. package/dist/terraform/sim-tf-module-outputs.d.ts +39 -0
  145. package/dist/terraform/sim-tf-module-outputs.d.ts.map +1 -1
  146. package/dist/terraform/sim-tf-module-outputs.js +66 -0
  147. package/dist/terraform/sim-tf-module-outputs.js.map +1 -1
  148. package/dist/terraform/sim-tf-module-variables.d.ts +16 -0
  149. package/dist/terraform/sim-tf-module-variables.d.ts.map +1 -0
  150. package/dist/terraform/sim-tf-module-variables.js +37 -0
  151. package/dist/terraform/sim-tf-module-variables.js.map +1 -0
  152. package/dist/terraform/sim-tf-nested-attributes.js +2 -2
  153. package/dist/terraform/sim-tf-nested-attributes.js.map +1 -1
  154. package/dist/terraform/sim-tf-plan-resources.d.ts.map +1 -1
  155. package/dist/terraform/sim-tf-plan-resources.js +2 -0
  156. package/dist/terraform/sim-tf-plan-resources.js.map +1 -1
  157. package/dist/terraform/sim-tf-plan.type.d.ts +20 -3
  158. package/dist/terraform/sim-tf-plan.type.d.ts.map +1 -1
  159. package/dist/terraform/sim-tf-reference-addresses.d.ts +45 -0
  160. package/dist/terraform/sim-tf-reference-addresses.d.ts.map +1 -0
  161. package/dist/terraform/sim-tf-reference-addresses.js +82 -0
  162. package/dist/terraform/sim-tf-reference-addresses.js.map +1 -0
  163. package/dist/terraform/sim-tf-reference-scope.d.ts +29 -0
  164. package/dist/terraform/sim-tf-reference-scope.d.ts.map +1 -0
  165. package/dist/terraform/sim-tf-reference-scope.js +71 -0
  166. package/dist/terraform/sim-tf-reference-scope.js.map +1 -0
  167. package/dist/terraform/sim-tf-reference.d.ts +33 -31
  168. package/dist/terraform/sim-tf-reference.d.ts.map +1 -1
  169. package/dist/terraform/sim-tf-reference.js +79 -88
  170. package/dist/terraform/sim-tf-reference.js.map +1 -1
  171. package/dist/terraform/sim-tf-referenced.js +1 -1
  172. package/dist/terraform/sim-tf-referenced.js.map +1 -1
  173. package/dist/terraform/sim-tf-resource.type.d.ts +8 -0
  174. package/dist/terraform/sim-tf-resource.type.d.ts.map +1 -1
  175. package/dist/terraform/sim-tf-settle.d.ts.map +1 -1
  176. package/dist/terraform/sim-tf-settle.js +3 -1
  177. package/dist/terraform/sim-tf-settle.js.map +1 -1
  178. package/dist/util/exactly-one.type.d.ts +14 -0
  179. package/dist/util/exactly-one.type.d.ts.map +1 -0
  180. package/dist/util/exactly-one.type.js +2 -0
  181. package/dist/util/exactly-one.type.js.map +1 -0
  182. package/package.json +1 -1
  183. package/dist/service/cloudformation/bind/sim-cfn-deploy-binding.d.ts.map +0 -1
  184. package/dist/service/cloudformation/bind/sim-cfn-deploy-binding.js.map +0 -1
@@ -137,11 +137,13 @@ interface ServeSimAwsProperties {
137
137
  /**
138
138
  * Which messages this server prints to the console while it serves.
139
139
  *
140
- * A simulated Cognito confirmation code and a simulated SNS text message are
141
- * printed as they are recorded, which is what makes a code readable in the
142
- * terminal the dev server is running in. Both unless this narrows it:
143
- * `{ sns: false }` keeps the pool messages and drops the text messages, and
144
- * `false` prints neither.
140
+ * A simulated Cognito confirmation code, a simulated SNS text message and a
141
+ * message a simulated SES accepted are printed as they are recorded, which
142
+ * is what makes a code readable in the terminal the dev server is running
143
+ * in. All three unless this narrows it: `{ sns: false }` keeps the pool
144
+ * messages and the email and drops the text messages, and `false` prints
145
+ * none of them. `emailTextLimit` sets how much of an email's text is
146
+ * printed.
145
147
  */
146
148
  readonly messageLogging?: SimMessageLoggingOption | undefined;
147
149
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-local-server.d.ts","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAWzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,0CAA0C,CAAC;AAElD,UAAU,2BAA2B;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAE9D;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACzD;AAED;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA4B;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;IAC5C,OAA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KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAU3B;IAED;;;;;;;;;;;;;;;OAeG;IACH,aAAa,CAAC,OAAO,GAAE,uBAA4B,GAAG,MAAM,IAAI,CAI/D;IAED;;;;;;OAMG;IACH,MAAM,IAAI,IAAI,CAEb;IAED;;;;;;OAMG;IACH,WAAW,IAAI,IAAI,CAElB;IAED;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAGjC;CACF;AAED,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAE9D;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACzD;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,UAAU,GAAE,qBAA0B,GACrC,OAAO,CAAC,iBAAiB,CAAC,CAa5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-local-server.js","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-server.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,E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C,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
1
+ {"version":3,"file":"sim-aws-local-server.js","sourceRoot":"","sources":["../../../../src/serve/http/local-server/sim-aws-local-server.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAe,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGpF,OAAO,EACL,aAAa,GAEd,MAAM,0CAA0C,CAAC;AAqBlD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAS;IACf,cAAc,CAA4B;IAC1C,MAAM,CAAS;IACf,UAAU,CAAuB;IACjC,SAAS,CAAkB;IAC3B,UAAU,CAAqB;IAC/B,cAAc,CAAyB;IAExD,YAAY,UAAU,GAAgC,EAAE;QACtD,MAAM,EAAE,MAAM,GAAG,IAAI,MAAM,EAAE,EAAE,UAAU,GAAG,KAAK,EAAE,GAAG,UAAU,CAAC;QACjE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,U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C,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACtE,OAAO,cAAc,CAAC,KAAK,EAAE,CAAC;IAChC,CAAC;CACF;AA4BD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,UAAU,GAA0B,EAAE;IAEtC,MAAM,EACJ,MAAM,GAAG,IAAI,MAAM,EAAE,EACrB,IAAI,GAAG,iBAAiB,CAAC,WAAW,EACpC,UAAU,GAAG,KAAK,GACnB,GAAG,UAAU,CAAC;IACf,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC;QACnC,MAAM;QACN,UAAU;QACV,cAAc,EAAE,UAAU,CAAC,cAAc;QACzC,cAAc,EAAE,UAAU,CAAC,cAAc;KAC1C,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { SimSesLoggedEmail } from "../../service/aws/message/sim-aws-logged-message.js";
2
+ /**
3
+ * How much of an email's text body is printed before it is cut off.
4
+ *
5
+ * A message written for a person to read fits well inside this. The limit is
6
+ * there for the ones written for a machine, where a signed link or an encoded
7
+ * payload runs on until it has pushed everything else off the screen.
8
+ */
9
+ export declare const defaultEmailTextLimit = 2000;
10
+ interface SimEmailLogBlockProperties {
11
+ readonly emailTextLimit?: number | undefined;
12
+ }
13
+ /**
14
+ * The console block for one email a simulated SES accepted.
15
+ *
16
+ * Printing the whole message is the obvious answer and the wrong one. An HTML
17
+ * part runs to kilobytes of markup and buries the sender, the recipients and
18
+ * the subject, which are what says which send this was. So the summary comes
19
+ * first, the text part follows it in full, and the HTML part is reported by
20
+ * its size.
21
+ */
22
+ export declare class SimEmailLogBlock {
23
+ #private;
24
+ constructor(properties?: SimEmailLogBlockProperties);
25
+ /**
26
+ * The lines this email prints as.
27
+ */
28
+ lines(email: SimSesLoggedEmail): readonly string[];
29
+ /**
30
+ * The text part, cut off at the limit with the cut marked.
31
+ */
32
+ private text;
33
+ }
34
+ export {};
35
+ //# sourceMappingURL=sim-email-log-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-email-log-block.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-email-log-block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAI7F;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAS1C,UAAU,0BAA0B;IAClC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED;;;;;;;;GAQG;AACH,qBAAa,gBAAgB;;IAG3B,YAAY,UAAU,GAAE,0BAA+B,EAEtD;IAED;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,MAAM,EAAE,CAQjD;IAED;;OAEG;IACH,OAAO,CAAC,IAAI;CAmBb"}
@@ -0,0 +1,111 @@
1
+ import { bodyIndent, indented } from "./sim-message-indent.js";
2
+ /**
3
+ * How much of an email's text body is printed before it is cut off.
4
+ *
5
+ * A message written for a person to read fits well inside this. The limit is
6
+ * there for the ones written for a machine, where a signed link or an encoded
7
+ * payload runs on until it has pushed everything else off the screen.
8
+ */
9
+ export const defaultEmailTextLimit = 2000;
10
+ /**
11
+ * How far the body parts are indented, one step under the labels above them.
12
+ */
13
+ const partIndent = `${bodyIndent}${bodyIndent}`;
14
+ const bytesInAKilobyte = 1000;
15
+ /**
16
+ * The console block for one email a simulated SES accepted.
17
+ *
18
+ * Printing the whole message is the obvious answer and the wrong one. An HTML
19
+ * part runs to kilobytes of markup and buries the sender, the recipients and
20
+ * the subject, which are what says which send this was. So the summary comes
21
+ * first, the text part follows it in full, and the HTML part is reported by
22
+ * its size.
23
+ */
24
+ export class SimEmailLogBlock {
25
+ #textLimit;
26
+ constructor(properties = {}) {
27
+ this.#textLimit = properties.emailTextLimit ?? defaultEmailTextLimit;
28
+ }
29
+ /**
30
+ * The lines this email prints as.
31
+ */
32
+ lines(email) {
33
+ return [
34
+ `sim SES: ${email.fromEmailAddress} ${addressed(email.destination)}`,
35
+ `${bodyIndent}Subject: ${email.subject}`,
36
+ ...template(email),
37
+ ...this.text(email),
38
+ ...html(email),
39
+ ];
40
+ }
41
+ /**
42
+ * The text part, cut off at the limit with the cut marked.
43
+ */
44
+ text(email) {
45
+ if (email.text === undefined) {
46
+ return [];
47
+ }
48
+ const overrun = email.text.length - this.#textLimit;
49
+ const printed = overrun > 0 ? email.text.slice(0, this.#textLimit) : email.text;
50
+ const cut = overrun > 0
51
+ ? [`${partIndent}... ${overrun} more characters, not printed`]
52
+ : [];
53
+ return [
54
+ `${bodyIndent}Text body:`,
55
+ ...indented(printed, partIndent),
56
+ ...cut,
57
+ ];
58
+ }
59
+ }
60
+ /**
61
+ * Who the message went to, across the three lists, with each list named.
62
+ *
63
+ * A bcc that arrived as a bcc is part of what a reader is checking, and the
64
+ * three lists read the same way once they are run together.
65
+ */
66
+ function addressed(destination) {
67
+ const lists = [
68
+ ["to", destination.toAddresses],
69
+ ["cc", destination.ccAddresses],
70
+ ["bcc", destination.bccAddresses],
71
+ ];
72
+ return lists
73
+ .filter(([, addresses]) => addresses.length > 0)
74
+ .map(([label, addresses]) => `${label} ${addresses.join(", ")}`)
75
+ .join(", ");
76
+ }
77
+ /**
78
+ * The template the message was rendered from, where a stored one was.
79
+ *
80
+ * The data goes with the name because it is what tells two sends of the same
81
+ * template apart, and it is usually the thing being checked.
82
+ */
83
+ function template(email) {
84
+ if (email.templateName === undefined) {
85
+ return [];
86
+ }
87
+ const data = email.templateData === undefined
88
+ ? ""
89
+ : ` ${JSON.stringify(email.templateData)}`;
90
+ return [`${bodyIndent}Template: ${email.templateName}${data}`];
91
+ }
92
+ /**
93
+ * The HTML part, measured and left unprinted.
94
+ */
95
+ function html(email) {
96
+ if (email.html === undefined) {
97
+ return [];
98
+ }
99
+ return [`${bodyIndent}HTML body: ${sized(email.html)}, not printed`];
100
+ }
101
+ /**
102
+ * How big a body is, in the units a reader thinks in.
103
+ */
104
+ function sized(body) {
105
+ const bytes = Buffer.byteLength(body, "utf8");
106
+ if (bytes < bytesInAKilobyte) {
107
+ return `${bytes} bytes`;
108
+ }
109
+ return `${(bytes / bytesInAKilobyte).toFixed(1)} kB`;
110
+ }
111
+ //# sourceMappingURL=sim-email-log-block.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-email-log-block.js","sourceRoot":"","sources":["../../../src/serve/message/sim-email-log-block.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C;;GAEG;AACH,MAAM,UAAU,GAAG,GAAG,UAAU,GAAG,UAAU,EAAE,CAAC;AAEhD,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAM9B;;;;;;;;GAQG;AACH,MAAM,OAAO,gBAAgB;IAClB,UAAU,CAAS;IAE5B,YAAY,UAAU,GAA+B,EAAE;QACrD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,cAAc,IAAI,qBAAqB,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAwB;QAC5B,OAAO;YACL,YAAY,KAAK,CAAC,gBAAgB,IAAI,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;YACpE,GAAG,UAAU,YAAY,KAAK,CAAC,OAAO,EAAE;YACxC,GAAG,QAAQ,CAAC,KAAK,CAAC;YAClB,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YACnB,GAAG,IAAI,CAAC,KAAK,CAAC;SACf,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,IAAI,CAAC,KAAwB;QACnC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC7B,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,M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,SAAS;QAC9B,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;IAE/C,OAAO,CAAC,GAAG,UAAU,aAAa,KAAK,CAAC,YAAY,GAAG,IAAI,EAAE,CAAC,CAAC;AACjE,CAAC;AAED;;GAEG;AACH,SAAS,IAAI,CAAC,KAAwB;IACpC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC7B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,CAAC,GAAG,UAAU,cAAc,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AACvE,CAAC;AAED;;GAEG;AACH,SAAS,KAAK,CAAC,IAAY;IACzB,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAE9C,IAAI,KAAK,GAAG,gBAAgB,EAAE,CAAC;QAC7B,OAAO,GAAG,KAAK,QAAQ,CAAC;IAC1B,CAAC;IAED,OAAO,GAAG,CAAC,KAAK,GAAG,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AACvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sim-local-message-logging.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-local-message-logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,0BAA0B,CAAC;AAElC,UAAU,gCAAgC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAEtD;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,qBAAa,sBAAsB;;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAI9C,YAAY,UAAU,EAAE,gCAAgC,EAIvD;IAED;;;;OAIG;IACH,OAAO,IAAI,IAAI,CAUd;IAED;;OAEG;IACH,QAAQ,IAAI,IAAI,CAGf;CACF"}
1
+ {"version":3,"file":"sim-local-message-logging.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-local-message-logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,0BAA0B,CAAC;AAElC,UAAU,gCAAgC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAEtD;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,qBAAa,sBAAsB;;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAI9C,YAAY,UAAU,EAAE,gCAAgC,EAOvD;IAED;;;;OAIG;IACH,OAAO,IAAI,IAAI,CAUd;IAED;;OAEG;IACH,QAAQ,IAAI,IAAI,CAGf;CACF"}
@@ -17,7 +17,10 @@ export class SimLocalMessageLogging {
17
17
  constructor(properties) {
18
18
  this.simAws = properties.simAws;
19
19
  this.logging = new SimMessageLogging(properties.option);
20
- this.output = new SimMessageLogConsole(properties.target);
20
+ this.output = new SimMessageLogConsole({
21
+ target: properties.target,
22
+ emailTextLimit: this.logging.emailTextLimit,
23
+ });
21
24
  }
22
25
  /**
23
26
  * Start printing the messages this environment records.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-local-message-logging.js","sourceRoot":"","sources":["../../../src/serve/message/sim-local-message-logging.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iBAAiB,GAElB,MAAM,0BAA0B,CAAC;AAYlC;;;;;;;;GAQG;AACH,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAAS;IACf,OAAO,CAAoB;IAC3B,MAAM,CAAuB;IAE9C,SAAS,CAAoC;IAE7C,YAAY,UAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACH,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACtB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;YACxE,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;gBACtC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"sim-local-message-logging.js","sourceRoot":"","sources":["../../../src/serve/message/sim-local-message-logging.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,GAErB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iBAAiB,GAElB,MAAM,0BAA0B,CAAC;AAYlC;;;;;;;;GAQG;AACH,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAAS;IACf,OAAO,CAAoB;IAC3B,MAAM,CAAuB;IAE9C,SAAS,CAAoC;IAE7C,YAAY,UAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,MAAM,GAAG,IAAI,oBAAoB,CAAC;YACrC,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,cAAc;SAC5C,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,OAAO;QACL,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACtB,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;YACxE,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;gBACtC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * How far a message body is indented under the line that introduces it.
3
+ */
4
+ export declare const bodyIndent = " ";
5
+ /**
6
+ * A body indented under the line introducing it, line by line, so a message
7
+ * running to several lines stays one readable block.
8
+ */
9
+ export declare function indented(body: string, indent?: string): readonly string[];
10
+ //# sourceMappingURL=sim-message-indent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-message-indent.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-message-indent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,UAAU,OAAO,CAAC;AAE/B;;;GAGG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,MAAmB,GAC1B,SAAS,MAAM,EAAE,CAEnB"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * How far a message body is indented under the line that introduces it.
3
+ */
4
+ export const bodyIndent = " ";
5
+ /**
6
+ * A body indented under the line introducing it, line by line, so a message
7
+ * running to several lines stays one readable block.
8
+ */
9
+ export function indented(body, indent = bodyIndent) {
10
+ return body.split("\n").map((line) => `${indent}${line}`);
11
+ }
12
+ //# sourceMappingURL=sim-message-indent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-message-indent.js","sourceRoot":"","sources":["../../../src/serve/message/sim-message-indent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;AAE/B;;;GAGG;AACH,MAAM,UAAU,QAAQ,CACtB,IAAY,EACZ,MAAM,GAAW,UAAU;IAE3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,EAAE,CAAC,CAAC;AAC5D,CAAC"}
@@ -5,6 +5,16 @@ import type { SimAwsLoggedMessage } from "../../service/aws/message/sim-aws-logg
5
5
  export interface SimMessageConsole {
6
6
  log: (line: string) => void;
7
7
  }
8
+ interface SimMessageLogConsoleProperties {
9
+ /**
10
+ * Where the lines go. The process console unless a test wants to read them.
11
+ */
12
+ readonly target?: SimMessageConsole | undefined;
13
+ /**
14
+ * How much of an email's text body is printed. See `SimEmailLogBlock`.
15
+ */
16
+ readonly emailTextLimit?: number | undefined;
17
+ }
8
18
  /**
9
19
  * Prints the messages a served environment would have sent.
10
20
  *
@@ -18,11 +28,16 @@ export interface SimMessageConsole {
18
28
  */
19
29
  export declare class SimMessageLogConsole {
20
30
  private readonly console;
21
- constructor(target?: SimMessageConsole);
31
+ private readonly email;
32
+ constructor(properties?: SimMessageLogConsoleProperties);
22
33
  /**
23
34
  * Print one message.
24
35
  */
25
36
  print(message: SimAwsLoggedMessage): void;
37
+ /**
38
+ * The lines one message prints as.
39
+ */
40
+ private block;
26
41
  /**
27
42
  * A pool message, with its subject where the medium has one.
28
43
  *
@@ -40,4 +55,5 @@ export declare class SimMessageLogConsole {
40
55
  */
41
56
  private smsBlock;
42
57
  }
58
+ export {};
43
59
  //# sourceMappingURL=sim-message-log-console.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-message-log-console.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-message-log-console.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,qDAAqD,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;AAOD;;;;;;;;;;GAUG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAE5C,YAAY,MAAM,GAAE,iBAA2B,EAE9C;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAOxC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAapB;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ;CAUjB"}
1
+ {"version":3,"file":"sim-message-log-console.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-message-log-console.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,qDAAqD,CAAC;AAI7D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;AAED,UAAU,8BAA8B;IACtC;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAEhD;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED;;;;;;;;;;GAUG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IAEzC,YAAY,UAAU,GAAE,8BAAmC,EAK1D;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAExC;IAED;;OAEG;IACH,OAAO,CAAC,KAAK;IAcb;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAapB;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ;CAUjB"}
@@ -1,7 +1,5 @@
1
- /**
2
- * How far a message body is indented under the line that introduces it.
3
- */
4
- const bodyIndent = " ";
1
+ import { SimEmailLogBlock } from "./sim-email-log-block.js";
2
+ import { bodyIndent, indented } from "./sim-message-indent.js";
5
3
  /**
6
4
  * Prints the messages a served environment would have sent.
7
5
  *
@@ -15,17 +13,34 @@ const bodyIndent = " ";
15
13
  */
16
14
  export class SimMessageLogConsole {
17
15
  console;
18
- constructor(target = console) {
19
- this.console = target;
16
+ email;
17
+ constructor(properties = {}) {
18
+ this.console = properties.target ?? console;
19
+ this.email = new SimEmailLogBlock({
20
+ emailTextLimit: properties.emailTextLimit,
21
+ });
20
22
  }
21
23
  /**
22
24
  * Print one message.
23
25
  */
24
26
  print(message) {
25
- const block = message.kind === "cognito"
26
- ? this.cognitoBlock(message)
27
- : this.smsBlock(message);
28
- this.console.log(block.join("\n"));
27
+ this.console.log(this.block(message).join("\n"));
28
+ }
29
+ /**
30
+ * The lines one message prints as.
31
+ */
32
+ block(message) {
33
+ switch (message.kind) {
34
+ case "cognito": {
35
+ return this.cognitoBlock(message);
36
+ }
37
+ case "sns": {
38
+ return this.smsBlock(message);
39
+ }
40
+ case "ses": {
41
+ return this.email.lines(message);
42
+ }
43
+ }
29
44
  }
30
45
  /**
31
46
  * A pool message, with its subject where the medium has one.
@@ -61,11 +76,4 @@ export class SimMessageLogConsole {
61
76
  ];
62
77
  }
63
78
  }
64
- /**
65
- * A body indented under the line introducing it, line by line, so a message
66
- * running to several lines stays one readable block.
67
- */
68
- function indented(body) {
69
- return body.split("\n").map((line) => `${bodyIndent}${line}`);
70
- }
71
79
  //# sourceMappingURL=sim-message-log-console.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-message-log-console.js","sourceRoot":"","sources":["../../../src/serve/message/sim-message-log-console.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,OAAO,oBAAoB;IACd,OAAO,CAAoB;IAE5C,YAAY,MAAM,GAAsB,OAAO;QAC7C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAA4B;QAChC,MAAM,KAAK,GACT,OAAO,CAAC,IAAI,KAAK,SAAS;YACxB,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC;YAC5B,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;OAMG;IACK,YA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O,CAAC,OAAO,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;OAMG;IACK,QAAQ,CAAC,OAAwB;QACvC,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU;YACpC,CAAC,CAAC,iCAAiC;YACnC,CAAC,CAAC,EAAE,CAAC;QAEP,OAAO;YACL,mBAAmB,OAAO,CAAC,WAAW,GAAG,WAAW,EAAE;YACtD,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;SAC7B,CAAC;IACJ,CAAC;CACF"}
@@ -1,6 +1,7 @@
1
1
  import type { SimAwsLoggedMessageKind } from "../../service/aws/message/sim-aws-logged-message.js";
2
2
  /**
3
- * Which kinds of message a served environment prints.
3
+ * Which kinds of message a served environment prints, and how much of an
4
+ * email it prints.
4
5
  *
5
6
  * One property per kind, each on unless it is turned off, so naming one kind
6
7
  * says nothing about the others.
@@ -10,6 +11,13 @@ export interface SimMessageLoggingProperties {
10
11
  readonly cognito?: boolean;
11
12
  /** The text messages simulated SNS would have sent. */
12
13
  readonly sns?: boolean;
14
+ /** The email simulated SES has accepted. */
15
+ readonly ses?: boolean;
16
+ /**
17
+ * How many characters of an email's text body are printed before it is cut
18
+ * off, 2000 by default. The rest is reported as a count.
19
+ */
20
+ readonly emailTextLimit?: number;
13
21
  }
14
22
  /**
15
23
  * What `serveSimAws` takes for `messageLogging`.
@@ -21,11 +29,16 @@ export type SimMessageLoggingOption = boolean | SimMessageLoggingProperties;
21
29
  /**
22
30
  * The message logging a server was asked for.
23
31
  *
24
- * The option arrives in three shapes and this is the one thing the rest of the
25
- * serving layer asks: whether to print a message of this kind.
32
+ * The option arrives in three shapes and this is what the rest of the serving
33
+ * layer asks of it: whether to print a message of this kind, and how much of
34
+ * an email's text to print.
26
35
  */
27
36
  export declare class SimMessageLogging {
28
37
  #private;
38
+ /**
39
+ * How many characters of an email's text body are printed.
40
+ */
41
+ readonly emailTextLimit: number;
29
42
  constructor(option?: SimMessageLoggingOption);
30
43
  /**
31
44
  * Whether messages of this kind are printed.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-message-logging.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-message-logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAEnG;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kEAAkE;IAClE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAE3B,uDAAuD;IACvD,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,2BAA2B,CAAC;AAE5E;;;;;GAKG;AACH,qBAAa,iBAAiB;;IAI5B,YAAY,MAAM,GAAE,uBAA8B,EAMjD;IAED;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAE7C;IAED;;;;;OAKG;IACH,IAAI,GAAG,IAAI,OAAO,CAEjB;CACF"}
1
+ {"version":3,"file":"sim-message-logging.d.ts","sourceRoot":"","sources":["../../../src/serve/message/sim-message-logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAGnG;;;;;;GAMG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kEAAkE;IAClE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAE3B,uDAAuD;IACvD,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAEvB,4CAA4C;IAC5C,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,2BAA2B,CAAC;AAE5E;;;;;;GAMG;AACH,qBAAa,iBAAiB;;IAC5B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAMhC,YAAY,MAAM,GAAE,uBAA8B,EAUjD;IAED;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAY7C;IAED;;;;;OAKG;IACH,IAAI,GAAG,IAAI,OAAO,CAEjB;CACF"}
@@ -1,22 +1,43 @@
1
+ import { defaultEmailTextLimit } from "./sim-email-log-block.js";
1
2
  /**
2
3
  * The message logging a server was asked for.
3
4
  *
4
- * The option arrives in three shapes and this is the one thing the rest of the
5
- * serving layer asks: whether to print a message of this kind.
5
+ * The option arrives in three shapes and this is what the rest of the serving
6
+ * layer asks of it: whether to print a message of this kind, and how much of
7
+ * an email's text to print.
6
8
  */
7
9
  export class SimMessageLogging {
10
+ /**
11
+ * How many characters of an email's text body are printed.
12
+ */
13
+ emailTextLimit;
8
14
  #cognito;
9
15
  #sns;
16
+ #ses;
10
17
  constructor(option = true) {
11
- const kinds = typeof option === "boolean" ? { cognito: option, sns: option } : option;
12
- this.#cognito = kinds.cognito !== false;
13
- this.#sns = kinds.sns !== false;
18
+ const properties = typeof option === "boolean"
19
+ ? { cognito: option, sns: option, ses: option }
20
+ : option;
21
+ this.#cognito = properties.cognito !== false;
22
+ this.#sns = properties.sns !== false;
23
+ this.#ses = properties.ses !== false;
24
+ this.emailTextLimit = properties.emailTextLimit ?? defaultEmailTextLimit;
14
25
  }
15
26
  /**
16
27
  * Whether messages of this kind are printed.
17
28
  */
18
29
  prints(kind) {
19
- return kind === "cognito" ? this.#cognito : this.#sns;
30
+ switch (kind) {
31
+ case "cognito": {
32
+ return this.#cognito;
33
+ }
34
+ case "sns": {
35
+ return this.#sns;
36
+ }
37
+ case "ses": {
38
+ return this.#ses;
39
+ }
40
+ }
20
41
  }
21
42
  /**
22
43
  * Whether any kind is printed at all.
@@ -25,7 +46,7 @@ export class SimMessageLogging {
25
46
  * wants output from does no work for it.
26
47
  */
27
48
  get any() {
28
- return this.#cognito || this.#sns;
49
+ return this.#cognito || this.#sns || this.#ses;
29
50
  }
30
51
  }
31
52
  //# sourceMappingURL=sim-message-logging.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-message-logging.js","sourceRoot":"","sources":["../../../src/serve/message/sim-message-logging.ts"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,MAAM,OAAO,iBAAiB;IACnB,QAAQ,CAAU;IAClB,IAAI,CAAU;IAEvB,YAAY,MAAM,GAA4B,IAAI;QAChD,MAAM,KAAK,GACT,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;QAE1E,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA6B;QAClC,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACxD,CAAC;IAED;;;;;OAKG;IACH,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC;IACpC,CAAC;CACF"}
1
+ {"version":3,"file":"sim-message-logging.js","sourceRoot":"","sources":["../../../src/serve/message/sim-message-logging.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAkCjE;;;;;;GAMG;AACH,MAAM,OAAO,iBAAiB;IAC5B;;OAEG;IACM,cAAc,CAAS;IAEvB,QAAQ,CAAU;IAClB,IAAI,CAAU;IACd,IAAI,CAAU;IAEvB,YAAY,MAAM,GAA4B,IAAI;QAChD,MAAM,UAAU,GACd,OAAO,MAAM,KAAK,SAAS;YACzB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE;YAC/C,CAAC,CAAC,MAAM,CAAC;QAEb,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,KAAK,KAAK,CAAC;QAC7C,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,GAAG,KAAK,KAAK,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,GAAG,KAAK,KAAK,CAAC;QACrC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,cAAc,IAAI,qBAAqB,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA6B;QAClC,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,SAAS,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,QAAQ,CAAC;YACvB,CAAC;YACD,KAAK,KAAK,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB,CAAC;YACD,KAAK,KAAK,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC;IACjD,CAAC;CACF"}
@@ -13,6 +13,7 @@ import type { SimLambdaUrlRegistry } from "../../lambda/registry/sim-lambda-url-
13
13
  import { SimRekognition } from "../../rekognition/index.js";
14
14
  import { SimS3 } from "../../s3/sim-s3.js";
15
15
  import { SimScheduler } from "../../scheduler/index.js";
16
+ import { SimSesV2 } from "../../ses/index.js";
16
17
  import { SimSns } from "../../sns/index.js";
17
18
  import { SimSts } from "../../sts/sim-sts.js";
18
19
  import { SimWafV2 } from "../../wafv2/index.js";
@@ -111,6 +112,15 @@ export declare class SimAwsAccountRegionServiceBuilder {
111
112
  * today as well, since a later one could.
112
113
  */
113
114
  createS3(scope: SimAwsAccountRegionContainer): SimS3;
115
+ /**
116
+ * Create simulated SES for an Account Region scope.
117
+ *
118
+ * Identities are Region-scoped on real SES: verifying an address in one
119
+ * Region verifies nothing in another, and a message sent through one Region
120
+ * is invisible from the next. Each message it accepts is announced to the
121
+ * simulation-wide message log, where a local server picks it up to print.
122
+ */
123
+ createSesV2(scope: SimAwsAccountRegionContainer): SimSesV2;
114
124
  /**
115
125
  * Create simulated SNS for an Account Region scope.
116
126
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-account-region-service-builder.d.ts","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5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EAAmE;IACnE,oBAAoB,CAAC,KAAK,EAAE,4BAA4B,GAAG,iBAAiB,CAK3E;IAED;;;;;;;;OAQG;IACH,gBAAgB,CAAC,KAAK,EAAE,4BAA4B,GAAG,aAAa,CAKnE;IAED;;;;;OAKG;IACH,6BAA6B,CAC3B,KAAK,EAAE,4BAA4B,GAClC,0BAA0B,CAc5B;IAED,wDAAwD;IACxD,SAAS,CAAC,KAAK,EAAE,4BAA4B,GAAG,MAAM,CAKrD;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,4BAA4B,GAAG,cAAc,CAKrE;IAED,oEAAoE;IACpE,UAAU,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAKvD;IAED,2DAA2D;IAC3D,YAAY,CAAC,KAAK,EAAE,4BAA4B,GAAG,SAAS,CAU3D;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,4BAA4B,GAAG,cAAc,CAOrE;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,KAAK,EAAE,4BAA4B,GAAG,KAAK,CAQnD;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,4BAA4B,GAAG,MAAM,CAQrD;IAED,0EAA0E;IAC1E,eAAe,CAAC,KAAK,EAAE,4BAA4B,GAAG,YAAY,CAKjE;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,4BAA4B,GAAG,QAAQ,CAQzD;IAED,wDAAwD;IACxD,SAAS,CAAC,KAAK,EAAE,4BAA4B,GAAG,MAAM,CAQrD;IAED;;OAEG;IACH,OAAO,CAAC,MAAM;CAKf"}
1
+ {"version":3,"file":"sim-aws-account-region-service-builder.d.ts","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,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G,cAAc,CAOrE;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,KAAK,EAAE,4BAA4B,GAAG,KAAK,CAQnD;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,4BAA4B,GAAG,QAAQ,CAKzD;IAED;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,4BAA4B,GAAG,MAAM,CAQrD;IAED,0EAA0E;IAC1E,eAAe,CAAC,KAAK,EAAE,4BAA4B,GAAG,YAAY,CAKjE;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,4BAA4B,GAAG,QAAQ,CAQzD;IAED,wDAAwD;IACxD,SAAS,CAAC,KAAK,EAAE,4BAA4B,GAAG,MAAM,CAQrD;IAED;;OAEG;IACH,OAAO,CAAC,MAAM;CAKf"}
@@ -13,6 +13,7 @@ import { simAwsLogsCollaborators } from "./sim-aws-logs-collaborators.js";
13
13
  import { SimRekognition } from "../../rekognition/index.js";
14
14
  import { SimS3 } from "../../s3/sim-s3.js";
15
15
  import { SimScheduler } from "../../scheduler/index.js";
16
+ import { SimSesV2 } from "../../ses/index.js";
16
17
  import { simAwsEcsCollaborators } from "./sim-aws-ecs-collaborators.js";
17
18
  import { simAwsLambdaCollaborators } from "./sim-aws-lambda-collaborators.js";
18
19
  import { simAwsS3NotificationDestinations } from "./sim-aws-s3-notification-destinations.js";
@@ -176,6 +177,20 @@ export class SimAwsAccountRegionServiceBuilder {
176
177
  notificationDestinations: simAwsS3NotificationDestinations(this.simAws),
177
178
  });
178
179
  }
180
+ /**
181
+ * Create simulated SES for an Account Region scope.
182
+ *
183
+ * Identities are Region-scoped on real SES: verifying an address in one
184
+ * Region verifies nothing in another, and a message sent through one Region
185
+ * is invisible from the next. Each message it accepts is announced to the
186
+ * simulation-wide message log, where a local server picks it up to print.
187
+ */
188
+ createSesV2(scope) {
189
+ return new SimSesV2({
190
+ ...this.scoped(scope),
191
+ messageLog: this.messageLog,
192
+ });
193
+ }
179
194
  /**
180
195
  * Create simulated SNS for an Account Region scope.
181
196
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-aws-account-region-service-builder.js","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,gCAAgC,EAChC,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAC7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,sEAAsE,CAAC;AACrH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD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AA0E;IAC1E,eAAe,CAAC,KAAmC;QACjD,OAAO,IAAI,YAAY,CAAC;YACtB,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YACrB,eAAe,EAAE,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,KAAmC;QAC7C,OAAO,IAAI,QAAQ,CAAC;YAClB,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YACrB,kBAAkB,EAAE,IAAI,2BAA2B,CAAC;gBAClD,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;aAC7C,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,wDAAwD;IACxD,SAAS,CAAC,KAAmC;QAC3C,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAEtC,OAAO,IAAI,MAAM,CAAC;YAChB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,MAAM,CACZ,KAAmC;QAEnC,OAAO,IAAI,CAAC,eAAe,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;CACF"}
1
+ {"version":3,"file":"sim-aws-account-region-service-builder.js","sourceRoot":"","sources":["../../../../src/service/aws/factory/sim-aws-account-region-service-builder.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,gCAAgC,EAChC,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAC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,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,KAAmC;QAC7C,OAAO,IAAI,QAAQ,CAAC;YAClB,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YACrB,kBAAkB,EAAE,IAAI,2BAA2B,CAAC;gBAClD,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;aAC7C,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED,wDAAwD;IACxD,SAAS,CAAC,KAAmC;QAC3C,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAEtC,OAAO,IAAI,MAAM,CAAC;YAChB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;YAC5C,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,MAAM,CACZ,KAAmC;QAEnC,OAAO,IAAI,CAAC,eAAe,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;CACF"}
@@ -1,7 +1,6 @@
1
1
  import type { SimAwsAccountRegionContainer } from "../sim-aws-account-region-scope.js";
2
2
  import { SimDynamoDb as SimDynamoDatabase } from "../../dynamodb/index.js";
3
3
  import { SimSecretsManager } from "../../secretsmanager/index.js";
4
- import { SimSesV2 } from "../../ses/index.js";
5
4
  import { SimSqs } from "../../sqs/index.js";
6
5
  import { SimSsm } from "../../ssm/index.js";
7
6
  import type { SimAwsAccountServiceCache } from "./sim-aws-account-service-cache.js";
@@ -33,14 +32,6 @@ export declare class SimAwsSelfContainedServiceBuilder {
33
32
  * values are encrypted through that same scope's simulated KMS.
34
33
  */
35
34
  createSecretsManager(scope: SimAwsAccountRegionContainer): SimSecretsManager;
36
- /**
37
- * Create simulated SES for an Account Region scope.
38
- *
39
- * Identities are Region-scoped on real SES: verifying an address in one
40
- * Region verifies nothing in another, and a message sent through one Region
41
- * is invisible from the next.
42
- */
43
- createSesV2(scope: SimAwsAccountRegionContainer): SimSesV2;
44
35
  /**
45
36
  * Create simulated SQS for an Account Region scope.
46
37
  *