@kensio/yulin 1.15.0 → 1.16.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 (756) hide show
  1. package/README.md +2 -0
  2. package/dist/sdk/error/sim-sdk.error.d.ts +10 -0
  3. package/dist/sdk/error/sim-sdk.error.d.ts.map +1 -1
  4. package/dist/sdk/error/sim-sdk.error.js +10 -0
  5. package/dist/sdk/error/sim-sdk.error.js.map +1 -1
  6. package/dist/sdk/index.d.ts +1 -1
  7. package/dist/sdk/index.d.ts.map +1 -1
  8. package/dist/sdk/index.js +1 -1
  9. package/dist/sdk/index.js.map +1 -1
  10. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  11. package/dist/sdk/router/resolve-sim-sdk-command-router.js +5 -0
  12. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  13. package/dist/sdk/wire/sim-sdk-wire-command.d.ts +20 -0
  14. package/dist/sdk/wire/sim-sdk-wire-command.d.ts.map +1 -0
  15. package/dist/sdk/wire/sim-sdk-wire-command.js +31 -0
  16. package/dist/sdk/wire/sim-sdk-wire-command.js.map +1 -0
  17. package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts +42 -0
  18. package/dist/sdk/wire/sim-sdk-wire-dispatcher.d.ts.map +1 -0
  19. package/dist/sdk/wire/sim-sdk-wire-dispatcher.js +63 -0
  20. package/dist/sdk/wire/sim-sdk-wire-dispatcher.js.map +1 -0
  21. package/dist/sdk/wire/sim-sdk-wire-json.d.ts +26 -0
  22. package/dist/sdk/wire/sim-sdk-wire-json.d.ts.map +1 -0
  23. package/dist/sdk/wire/sim-sdk-wire-json.js +59 -0
  24. package/dist/sdk/wire/sim-sdk-wire-json.js.map +1 -0
  25. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts +37 -0
  26. package/dist/sdk/wire/sim-sdk-wire-operation.d.ts.map +1 -0
  27. package/dist/sdk/wire/sim-sdk-wire-operation.js +79 -0
  28. package/dist/sdk/wire/sim-sdk-wire-operation.js.map +1 -0
  29. package/dist/sdk/wire/sim-sdk-wire-response.d.ts +17 -0
  30. package/dist/sdk/wire/sim-sdk-wire-response.d.ts.map +1 -0
  31. package/dist/sdk/wire/sim-sdk-wire-response.js +67 -0
  32. package/dist/sdk/wire/sim-sdk-wire-response.js.map +1 -0
  33. package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts +17 -0
  34. package/dist/sdk/wire/sim-sdk-wire-unbridged.d.ts.map +1 -0
  35. package/dist/sdk/wire/sim-sdk-wire-unbridged.js +25 -0
  36. package/dist/sdk/wire/sim-sdk-wire-unbridged.js.map +1 -0
  37. package/dist/sdk/wire/sim-sdk-wire.types.d.ts +32 -0
  38. package/dist/sdk/wire/sim-sdk-wire.types.d.ts.map +1 -0
  39. package/dist/sdk/wire/sim-sdk-wire.types.js +2 -0
  40. package/dist/sdk/wire/sim-sdk-wire.types.js.map +1 -0
  41. package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts +33 -0
  42. package/dist/serve/payload-2/sim-payload-2-endpoint-style.d.ts.map +1 -0
  43. package/dist/serve/payload-2/sim-payload-2-endpoint-style.js +2 -0
  44. package/dist/serve/payload-2/sim-payload-2-endpoint-style.js.map +1 -0
  45. package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts.map +1 -1
  46. package/dist/serve/payload-2/sim-payload-2-event-builder.js +2 -2
  47. package/dist/serve/payload-2/sim-payload-2-event-builder.js.map +1 -1
  48. package/dist/serve/payload-2/sim-payload-2-event-query.d.ts +12 -0
  49. package/dist/serve/payload-2/sim-payload-2-event-query.d.ts.map +1 -0
  50. package/dist/serve/payload-2/sim-payload-2-event-query.js +15 -0
  51. package/dist/serve/payload-2/sim-payload-2-event-query.js.map +1 -0
  52. package/dist/serve/payload-2/sim-payload-2-event-request.d.ts +32 -0
  53. package/dist/serve/payload-2/sim-payload-2-event-request.d.ts.map +1 -0
  54. package/dist/serve/payload-2/sim-payload-2-event-request.js +42 -0
  55. package/dist/serve/payload-2/sim-payload-2-event-request.js.map +1 -0
  56. package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts +15 -0
  57. package/dist/serve/payload-2/sim-payload-2-event.factory.d.ts.map +1 -0
  58. package/dist/serve/payload-2/sim-payload-2-event.factory.js +71 -0
  59. package/dist/serve/payload-2/sim-payload-2-event.factory.js.map +1 -0
  60. package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts +23 -12
  61. package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts.map +1 -1
  62. package/dist/serve/payload-2/sim-payload-2-request-parts.js +38 -26
  63. package/dist/serve/payload-2/sim-payload-2-request-parts.js.map +1 -1
  64. package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts +35 -0
  65. package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.d.ts.map +1 -0
  66. package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js +65 -0
  67. package/dist/service/apigatewayv2/factory/http-api-proxy-event.factory.js.map +1 -0
  68. package/dist/service/apigatewayv2/index.d.ts +1 -0
  69. package/dist/service/apigatewayv2/index.d.ts.map +1 -1
  70. package/dist/service/apigatewayv2/index.js +1 -0
  71. package/dist/service/apigatewayv2/index.js.map +1 -1
  72. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +10 -36
  73. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  74. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +16 -63
  75. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  76. package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts +22 -0
  77. package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.d.ts.map +1 -0
  78. package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js +20 -0
  79. package/dist/service/aws/factory/sim-aws-cloudwatch-collaborators.js.map +1 -0
  80. package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts +71 -0
  81. package/dist/service/aws/factory/sim-aws-registered-service-builder.d.ts.map +1 -0
  82. package/dist/service/aws/factory/sim-aws-registered-service-builder.js +96 -0
  83. package/dist/service/aws/factory/sim-aws-registered-service-builder.js.map +1 -0
  84. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
  85. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
  86. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +11 -0
  87. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
  88. package/dist/service/aws/factory/sim-aws-service-factory.d.ts +7 -0
  89. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  90. package/dist/service/aws/factory/sim-aws-service-factory.js +19 -5
  91. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  92. package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
  93. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  94. package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
  95. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  96. package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
  97. package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
  98. package/dist/service/aws/sim-aws-service-accessors.js +8 -0
  99. package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
  100. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts +26 -0
  101. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.d.ts.map +1 -0
  102. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js +28 -0
  103. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-alarm-cfn.js.map +1 -0
  104. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts +6 -0
  105. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.d.ts.map +1 -0
  106. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js +13 -0
  107. package/dist/service/cloudformation/resource/cfn/cloudwatch/sim-cloudwatch-cfn-value-adapter.js.map +1 -0
  108. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts +6 -0
  109. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.d.ts.map +1 -0
  110. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js +19 -0
  111. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-cfn-value-adapter.js.map +1 -0
  112. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts +27 -0
  113. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.d.ts.map +1 -0
  114. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js +46 -0
  115. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-dkim-tokens.js.map +1 -0
  116. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts +33 -0
  117. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.d.ts.map +1 -0
  118. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js +48 -0
  119. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-identity-cfn.js.map +1 -0
  120. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts +27 -0
  121. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.d.ts.map +1 -0
  122. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js +29 -0
  123. package/dist/service/cloudformation/resource/cfn/ses/sim-ses-template-cfn.js.map +1 -0
  124. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
  125. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
  126. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
  127. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
  128. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +8 -0
  129. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
  130. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts +34 -0
  131. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts.map +1 -0
  132. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js +51 -0
  133. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js.map +1 -0
  134. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts +54 -0
  135. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts.map +1 -0
  136. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js +70 -0
  137. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js.map +1 -0
  138. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts +30 -0
  139. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts.map +1 -0
  140. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js +58 -0
  141. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js.map +1 -0
  142. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts +26 -0
  143. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts.map +1 -0
  144. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js +56 -0
  145. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js.map +1 -0
  146. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts +37 -0
  147. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts.map +1 -0
  148. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js +19 -0
  149. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js.map +1 -0
  150. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts +10 -0
  151. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts.map +1 -0
  152. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js +11 -0
  153. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js.map +1 -0
  154. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts +33 -0
  155. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts.map +1 -0
  156. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js +2 -0
  157. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js.map +1 -0
  158. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts +32 -0
  159. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts.map +1 -0
  160. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js +75 -0
  161. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js.map +1 -0
  162. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts +26 -0
  163. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts.map +1 -0
  164. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js +16 -0
  165. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js.map +1 -0
  166. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts +23 -0
  167. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts.map +1 -0
  168. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js +37 -0
  169. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js.map +1 -0
  170. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts +55 -0
  171. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts.map +1 -0
  172. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js +84 -0
  173. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js.map +1 -0
  174. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts +18 -0
  175. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts.map +1 -0
  176. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js +29 -0
  177. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js.map +1 -0
  178. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts +24 -0
  179. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts.map +1 -0
  180. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js +33 -0
  181. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js.map +1 -0
  182. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts +57 -0
  183. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts.map +1 -0
  184. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js +84 -0
  185. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js.map +1 -0
  186. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts +19 -0
  187. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts.map +1 -0
  188. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js +48 -0
  189. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js.map +1 -0
  190. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts +16 -0
  191. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts.map +1 -0
  192. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js +31 -0
  193. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js.map +1 -0
  194. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts +33 -0
  195. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts.map +1 -0
  196. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js +41 -0
  197. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js.map +1 -0
  198. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts +39 -0
  199. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts.map +1 -0
  200. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js +80 -0
  201. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js.map +1 -0
  202. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts +20 -0
  203. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts.map +1 -0
  204. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js +80 -0
  205. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js.map +1 -0
  206. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts +56 -0
  207. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts.map +1 -0
  208. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js +107 -0
  209. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js.map +1 -0
  210. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts +29 -0
  211. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts.map +1 -0
  212. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js +43 -0
  213. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js.map +1 -0
  214. package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts +155 -0
  215. package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts.map +1 -0
  216. package/dist/service/cloudwatch/command/alarm/alarm.command.js +2 -0
  217. package/dist/service/cloudwatch/command/alarm/alarm.command.js.map +1 -0
  218. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts +19 -0
  219. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts.map +1 -0
  220. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js +56 -0
  221. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js.map +1 -0
  222. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts +22 -0
  223. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts.map +1 -0
  224. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js +2 -0
  225. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js.map +1 -0
  226. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts +15 -0
  227. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts.map +1 -0
  228. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js +61 -0
  229. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js.map +1 -0
  230. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts +7 -0
  231. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts.map +1 -0
  232. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js +39 -0
  233. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js.map +1 -0
  234. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts +20 -0
  235. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts.map +1 -0
  236. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js +52 -0
  237. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js.map +1 -0
  238. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts +25 -0
  239. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts.map +1 -0
  240. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js +60 -0
  241. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js.map +1 -0
  242. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts +12 -0
  243. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts.map +1 -0
  244. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js +59 -0
  245. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js.map +1 -0
  246. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts +23 -0
  247. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts.map +1 -0
  248. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js +63 -0
  249. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js.map +1 -0
  250. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts +19 -0
  251. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts.map +1 -0
  252. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js +47 -0
  253. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js.map +1 -0
  254. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts +41 -0
  255. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts.map +1 -0
  256. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js +65 -0
  257. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js.map +1 -0
  258. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts +23 -0
  259. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts.map +1 -0
  260. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js +30 -0
  261. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js.map +1 -0
  262. package/dist/service/cloudwatch/command/data/data.command.d.ts +42 -0
  263. package/dist/service/cloudwatch/command/data/data.command.d.ts.map +1 -0
  264. package/dist/service/cloudwatch/command/data/data.command.js +2 -0
  265. package/dist/service/cloudwatch/command/data/data.command.js.map +1 -0
  266. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts +11 -0
  267. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts.map +1 -0
  268. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js +66 -0
  269. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js.map +1 -0
  270. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts +14 -0
  271. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts.map +1 -0
  272. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js +58 -0
  273. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js.map +1 -0
  274. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts +15 -0
  275. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts.map +1 -0
  276. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js +34 -0
  277. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js.map +1 -0
  278. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts +28 -0
  279. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts.map +1 -0
  280. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js +66 -0
  281. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js.map +1 -0
  282. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts +9 -0
  283. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts.map +1 -0
  284. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js +22 -0
  285. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js.map +1 -0
  286. package/dist/service/cloudwatch/command/query/query.command.d.ts +133 -0
  287. package/dist/service/cloudwatch/command/query/query.command.d.ts.map +1 -0
  288. package/dist/service/cloudwatch/command/query/query.command.js +2 -0
  289. package/dist/service/cloudwatch/command/query/query.command.js.map +1 -0
  290. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts +25 -0
  291. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts.map +1 -0
  292. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js +46 -0
  293. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js.map +1 -0
  294. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts +25 -0
  295. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts.map +1 -0
  296. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js +55 -0
  297. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js.map +1 -0
  298. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts +23 -0
  299. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts.map +1 -0
  300. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js +46 -0
  301. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js.map +1 -0
  302. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts +25 -0
  303. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts.map +1 -0
  304. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js +63 -0
  305. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js.map +1 -0
  306. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts +26 -0
  307. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts.map +1 -0
  308. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js +61 -0
  309. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js.map +1 -0
  310. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts +20 -0
  311. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts.map +1 -0
  312. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js +36 -0
  313. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js.map +1 -0
  314. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts +12 -0
  315. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts.map +1 -0
  316. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js +27 -0
  317. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js.map +1 -0
  318. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts +20 -0
  319. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts.map +1 -0
  320. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js +52 -0
  321. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js.map +1 -0
  322. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts +10 -0
  323. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts.map +1 -0
  324. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js +20 -0
  325. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js.map +1 -0
  326. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts +17 -0
  327. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts.map +1 -0
  328. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js +45 -0
  329. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js.map +1 -0
  330. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts +7 -0
  331. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts.map +1 -0
  332. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js +2 -0
  333. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js.map +1 -0
  334. package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts +24 -0
  335. package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts.map +1 -0
  336. package/dist/service/cloudwatch/command/sim-cloudwatch-page.js +36 -0
  337. package/dist/service/cloudwatch/command/sim-cloudwatch-page.js.map +1 -0
  338. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts +21 -0
  339. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts.map +1 -0
  340. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js +10 -0
  341. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js.map +1 -0
  342. package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts +48 -0
  343. package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts.map +1 -0
  344. package/dist/service/cloudwatch/error/sim-cloudwatch.error.js +51 -0
  345. package/dist/service/cloudwatch/error/sim-cloudwatch.error.js.map +1 -0
  346. package/dist/service/cloudwatch/index.d.ts +26 -0
  347. package/dist/service/cloudwatch/index.d.ts.map +1 -0
  348. package/dist/service/cloudwatch/index.js +25 -0
  349. package/dist/service/cloudwatch/index.js.map +1 -0
  350. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts +54 -0
  351. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts.map +1 -0
  352. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js +29 -0
  353. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js.map +1 -0
  354. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts +37 -0
  355. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts.map +1 -0
  356. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js +42 -0
  357. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js.map +1 -0
  358. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts +46 -0
  359. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts.map +1 -0
  360. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js +61 -0
  361. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js.map +1 -0
  362. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts +53 -0
  363. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts.map +1 -0
  364. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js +45 -0
  365. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js.map +1 -0
  366. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts +22 -0
  367. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts.map +1 -0
  368. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js +54 -0
  369. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js.map +1 -0
  370. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts +22 -0
  371. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts.map +1 -0
  372. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js +34 -0
  373. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js.map +1 -0
  374. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts +32 -0
  375. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts.map +1 -0
  376. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js +70 -0
  377. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js.map +1 -0
  378. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts +20 -0
  379. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts.map +1 -0
  380. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js +51 -0
  381. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js.map +1 -0
  382. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts +16 -0
  383. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts.map +1 -0
  384. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js +25 -0
  385. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js.map +1 -0
  386. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts +18 -0
  387. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts.map +1 -0
  388. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js +56 -0
  389. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js.map +1 -0
  390. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts +18 -0
  391. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts.map +1 -0
  392. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js +60 -0
  393. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js.map +1 -0
  394. package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts +47 -0
  395. package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts.map +1 -0
  396. package/dist/service/cloudwatch/sim-cloudwatch-commands.js +86 -0
  397. package/dist/service/cloudwatch/sim-cloudwatch-commands.js.map +1 -0
  398. package/dist/service/cloudwatch/sim-cloudwatch.d.ts +98 -0
  399. package/dist/service/cloudwatch/sim-cloudwatch.d.ts.map +1 -0
  400. package/dist/service/cloudwatch/sim-cloudwatch.js +138 -0
  401. package/dist/service/cloudwatch/sim-cloudwatch.js.map +1 -0
  402. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.d.ts +32 -0
  403. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.d.ts.map +1 -0
  404. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.js +61 -0
  405. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-account-recovery.js.map +1 -0
  406. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +2 -3
  407. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  408. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +23 -9
  409. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  410. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts +30 -0
  411. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts.map +1 -0
  412. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js +47 -0
  413. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js.map +1 -0
  414. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
  415. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +8 -4
  416. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
  417. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
  418. package/dist/service/cognito/command/user/sim-cognito-user-commands.js +7 -3
  419. package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
  420. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
  421. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +3 -1
  422. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
  423. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +3 -4
  424. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
  425. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +3 -22
  426. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
  427. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +9 -16
  428. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -1
  429. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +9 -26
  430. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -1
  431. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +12 -3
  432. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -1
  433. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +19 -3
  434. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -1
  435. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
  436. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +5 -4
  437. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
  438. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +6 -2
  439. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  440. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +8 -3
  441. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  442. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +10 -8
  443. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  444. package/dist/service/cognito/error/sim-cognito.error.d.ts +10 -0
  445. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  446. package/dist/service/cognito/error/sim-cognito.error.js +12 -0
  447. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  448. package/dist/service/cognito/index.d.ts +1 -1
  449. package/dist/service/cognito/index.d.ts.map +1 -1
  450. package/dist/service/cognito/index.js +1 -1
  451. package/dist/service/cognito/index.js.map +1 -1
  452. package/dist/service/cognito/user-pool/sim-cognito-account-recovery.d.ts +86 -0
  453. package/dist/service/cognito/user-pool/sim-cognito-account-recovery.d.ts.map +1 -0
  454. package/dist/service/cognito/user-pool/sim-cognito-account-recovery.js +127 -0
  455. package/dist/service/cognito/user-pool/sim-cognito-account-recovery.js.map +1 -0
  456. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts +22 -0
  457. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts.map +1 -0
  458. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js +52 -0
  459. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js.map +1 -0
  460. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +34 -15
  461. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  462. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +30 -15
  463. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  464. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  465. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +2 -1
  466. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  467. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts +87 -0
  468. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts.map +1 -0
  469. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js +137 -0
  470. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js.map +1 -0
  471. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts +25 -1
  472. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts.map +1 -1
  473. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js +39 -2
  474. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js.map +1 -1
  475. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts +47 -0
  476. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts.map +1 -0
  477. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js +96 -0
  478. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js.map +1 -0
  479. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts +36 -0
  480. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts.map +1 -0
  481. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js +64 -0
  482. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js.map +1 -0
  483. package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts +37 -0
  484. package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts.map +1 -0
  485. package/dist/service/lambda/factory/lambda-function-url-event.factory.js +55 -0
  486. package/dist/service/lambda/factory/lambda-function-url-event.factory.js.map +1 -0
  487. package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts +37 -0
  488. package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts.map +1 -0
  489. package/dist/service/lambda/factory/lambda-sqs-event.factory.js +78 -0
  490. package/dist/service/lambda/factory/lambda-sqs-event.factory.js.map +1 -0
  491. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +27 -0
  492. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +1 -0
  493. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +78 -0
  494. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +1 -0
  495. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts +23 -0
  496. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +1 -0
  497. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js +111 -0
  498. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +1 -0
  499. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts +37 -0
  500. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +1 -0
  501. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js +78 -0
  502. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +1 -0
  503. package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts +5 -3
  504. package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts.map +1 -1
  505. package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js.map +1 -1
  506. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +10 -2
  507. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
  508. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +21 -6
  509. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
  510. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts +12 -0
  511. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts.map +1 -0
  512. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js +2 -0
  513. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js.map +1 -0
  514. package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.d.ts.map +1 -1
  515. package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js +5 -1
  516. package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js.map +1 -1
  517. package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
  518. package/dist/service/lambda/function/environment/sim-lambda-environment.js +2 -0
  519. package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
  520. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts +19 -0
  521. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts.map +1 -0
  522. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js +20 -0
  523. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js.map +1 -0
  524. package/dist/service/lambda/index.d.ts +3 -0
  525. package/dist/service/lambda/index.d.ts.map +1 -1
  526. package/dist/service/lambda/index.js +3 -0
  527. package/dist/service/lambda/index.js.map +1 -1
  528. package/dist/service/s3/factory/s3-notification-event-object.d.ts +10 -0
  529. package/dist/service/s3/factory/s3-notification-event-object.d.ts.map +1 -0
  530. package/dist/service/s3/factory/s3-notification-event-object.js +12 -0
  531. package/dist/service/s3/factory/s3-notification-event-object.js.map +1 -0
  532. package/dist/service/s3/factory/s3-notification-event.factory.d.ts +45 -0
  533. package/dist/service/s3/factory/s3-notification-event.factory.d.ts.map +1 -0
  534. package/dist/service/s3/factory/s3-notification-event.factory.js +102 -0
  535. package/dist/service/s3/factory/s3-notification-event.factory.js.map +1 -0
  536. package/dist/service/s3/index.d.ts +2 -0
  537. package/dist/service/s3/index.d.ts.map +1 -1
  538. package/dist/service/s3/index.js +1 -0
  539. package/dist/service/s3/index.js.map +1 -1
  540. package/dist/service/s3/notification/event/sim-s3-event-records.d.ts +32 -1
  541. package/dist/service/s3/notification/event/sim-s3-event-records.d.ts.map +1 -1
  542. package/dist/service/s3/notification/event/sim-s3-event-records.js +5 -5
  543. package/dist/service/s3/notification/event/sim-s3-event-records.js.map +1 -1
  544. package/dist/service/s3/notification/event/sim-s3-event.type.d.ts +83 -0
  545. package/dist/service/s3/notification/event/sim-s3-event.type.d.ts.map +1 -0
  546. package/dist/service/s3/notification/event/sim-s3-event.type.js +2 -0
  547. package/dist/service/s3/notification/event/sim-s3-event.type.js.map +1 -0
  548. package/dist/service/ses/account/sim-ses-account.d.ts +59 -0
  549. package/dist/service/ses/account/sim-ses-account.d.ts.map +1 -0
  550. package/dist/service/ses/account/sim-ses-account.js +66 -0
  551. package/dist/service/ses/account/sim-ses-account.js.map +1 -0
  552. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts +35 -0
  553. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts.map +1 -0
  554. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js +52 -0
  555. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js.map +1 -0
  556. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts +37 -0
  557. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts.map +1 -0
  558. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js +61 -0
  559. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js.map +1 -0
  560. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts +17 -0
  561. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts.map +1 -0
  562. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js +48 -0
  563. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js.map +1 -0
  564. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts +24 -0
  565. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts.map +1 -0
  566. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js +39 -0
  567. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js.map +1 -0
  568. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts +13 -0
  569. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts.map +1 -0
  570. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js +13 -0
  571. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js.map +1 -0
  572. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts +28 -0
  573. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts.map +1 -0
  574. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js +69 -0
  575. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js.map +1 -0
  576. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts +30 -0
  577. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts.map +1 -0
  578. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js +48 -0
  579. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js.map +1 -0
  580. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts +58 -0
  581. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts.map +1 -0
  582. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js +121 -0
  583. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js.map +1 -0
  584. package/dist/service/ses/command/account/account.command.d.ts +59 -0
  585. package/dist/service/ses/command/account/account.command.d.ts.map +1 -0
  586. package/dist/service/ses/command/account/account.command.js +2 -0
  587. package/dist/service/ses/command/account/account.command.js.map +1 -0
  588. package/dist/service/ses/command/account/sim-ses-account-commands.d.ts +34 -0
  589. package/dist/service/ses/command/account/sim-ses-account-commands.d.ts.map +1 -0
  590. package/dist/service/ses/command/account/sim-ses-account-commands.js +41 -0
  591. package/dist/service/ses/command/account/sim-ses-account-commands.js.map +1 -0
  592. package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts +11 -0
  593. package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts.map +1 -0
  594. package/dist/service/ses/command/account/sim-ses-account-details-input.js +50 -0
  595. package/dist/service/ses/command/account/sim-ses-account-details-input.js.map +1 -0
  596. package/dist/service/ses/command/account/sim-ses-account-report.d.ts +21 -0
  597. package/dist/service/ses/command/account/sim-ses-account-report.d.ts.map +1 -0
  598. package/dist/service/ses/command/account/sim-ses-account-report.js +45 -0
  599. package/dist/service/ses/command/account/sim-ses-account-report.js.map +1 -0
  600. package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts +55 -0
  601. package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts.map +1 -0
  602. package/dist/service/ses/command/authorize/sim-ses-authorizer.js +78 -0
  603. package/dist/service/ses/command/authorize/sim-ses-authorizer.js.map +1 -0
  604. package/dist/service/ses/command/identity/identity.command.d.ts +84 -0
  605. package/dist/service/ses/command/identity/identity.command.d.ts.map +1 -0
  606. package/dist/service/ses/command/identity/identity.command.js +2 -0
  607. package/dist/service/ses/command/identity/identity.command.js.map +1 -0
  608. package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts +44 -0
  609. package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts.map +1 -0
  610. package/dist/service/ses/command/identity/sim-ses-identity-commands.js +92 -0
  611. package/dist/service/ses/command/identity/sim-ses-identity-commands.js.map +1 -0
  612. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts +12 -0
  613. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts.map +1 -0
  614. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js +26 -0
  615. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js.map +1 -0
  616. package/dist/service/ses/command/send/send.command.d.ts +71 -0
  617. package/dist/service/ses/command/send/send.command.d.ts.map +1 -0
  618. package/dist/service/ses/command/send/send.command.js +2 -0
  619. package/dist/service/ses/command/send/send.command.js.map +1 -0
  620. package/dist/service/ses/command/send/sim-ses-content.d.ts +24 -0
  621. package/dist/service/ses/command/send/sim-ses-content.d.ts.map +1 -0
  622. package/dist/service/ses/command/send/sim-ses-content.js +40 -0
  623. package/dist/service/ses/command/send/sim-ses-content.js.map +1 -0
  624. package/dist/service/ses/command/send/sim-ses-read-content.d.ts +19 -0
  625. package/dist/service/ses/command/send/sim-ses-read-content.d.ts.map +1 -0
  626. package/dist/service/ses/command/send/sim-ses-read-content.js +2 -0
  627. package/dist/service/ses/command/send/sim-ses-read-content.js.map +1 -0
  628. package/dist/service/ses/command/send/sim-ses-send-email.d.ts +36 -0
  629. package/dist/service/ses/command/send/sim-ses-send-email.d.ts.map +1 -0
  630. package/dist/service/ses/command/send/sim-ses-send-email.js +80 -0
  631. package/dist/service/ses/command/send/sim-ses-send-email.js.map +1 -0
  632. package/dist/service/ses/command/send/sim-ses-simple-content.d.ts +12 -0
  633. package/dist/service/ses/command/send/sim-ses-simple-content.d.ts.map +1 -0
  634. package/dist/service/ses/command/send/sim-ses-simple-content.js +33 -0
  635. package/dist/service/ses/command/send/sim-ses-simple-content.js.map +1 -0
  636. package/dist/service/ses/command/send/sim-ses-template-send.d.ts +34 -0
  637. package/dist/service/ses/command/send/sim-ses-template-send.d.ts.map +1 -0
  638. package/dist/service/ses/command/send/sim-ses-template-send.js +101 -0
  639. package/dist/service/ses/command/send/sim-ses-template-send.js.map +1 -0
  640. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts +12 -0
  641. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts.map +1 -0
  642. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js +26 -0
  643. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js.map +1 -0
  644. package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts +36 -0
  645. package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts.map +1 -0
  646. package/dist/service/ses/command/send/sim-ses-verified-identities.js +50 -0
  647. package/dist/service/ses/command/send/sim-ses-verified-identities.js.map +1 -0
  648. package/dist/service/ses/command/sim-ses-command.types.d.ts +8 -0
  649. package/dist/service/ses/command/sim-ses-command.types.d.ts.map +1 -0
  650. package/dist/service/ses/command/sim-ses-command.types.js +2 -0
  651. package/dist/service/ses/command/sim-ses-command.types.js.map +1 -0
  652. package/dist/service/ses/command/sim-ses-page.d.ts +20 -0
  653. package/dist/service/ses/command/sim-ses-page.d.ts.map +1 -0
  654. package/dist/service/ses/command/sim-ses-page.js +49 -0
  655. package/dist/service/ses/command/sim-ses-page.js.map +1 -0
  656. package/dist/service/ses/command/sim-ses-request-options.d.ts +12 -0
  657. package/dist/service/ses/command/sim-ses-request-options.d.ts.map +1 -0
  658. package/dist/service/ses/command/sim-ses-request-options.js +2 -0
  659. package/dist/service/ses/command/sim-ses-request-options.js.map +1 -0
  660. package/dist/service/ses/command/template/sim-ses-template-commands.d.ts +56 -0
  661. package/dist/service/ses/command/template/sim-ses-template-commands.d.ts.map +1 -0
  662. package/dist/service/ses/command/template/sim-ses-template-commands.js +96 -0
  663. package/dist/service/ses/command/template/sim-ses-template-commands.js.map +1 -0
  664. package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts +14 -0
  665. package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts.map +1 -0
  666. package/dist/service/ses/command/template/sim-ses-template-reporting.js +23 -0
  667. package/dist/service/ses/command/template/sim-ses-template-reporting.js.map +1 -0
  668. package/dist/service/ses/command/template/template.command.d.ts +98 -0
  669. package/dist/service/ses/command/template/template.command.d.ts.map +1 -0
  670. package/dist/service/ses/command/template/template.command.js +2 -0
  671. package/dist/service/ses/command/template/template.command.js.map +1 -0
  672. package/dist/service/ses/email/sim-ses-address.d.ts +15 -0
  673. package/dist/service/ses/email/sim-ses-address.d.ts.map +1 -0
  674. package/dist/service/ses/email/sim-ses-address.js +29 -0
  675. package/dist/service/ses/email/sim-ses-address.js.map +1 -0
  676. package/dist/service/ses/email/sim-ses-sent-email-store.d.ts +33 -0
  677. package/dist/service/ses/email/sim-ses-sent-email-store.d.ts.map +1 -0
  678. package/dist/service/ses/email/sim-ses-sent-email-store.js +42 -0
  679. package/dist/service/ses/email/sim-ses-sent-email-store.js.map +1 -0
  680. package/dist/service/ses/email/sim-ses-sent-email.d.ts +78 -0
  681. package/dist/service/ses/email/sim-ses-sent-email.d.ts.map +1 -0
  682. package/dist/service/ses/email/sim-ses-sent-email.js +61 -0
  683. package/dist/service/ses/email/sim-ses-sent-email.js.map +1 -0
  684. package/dist/service/ses/error/sim-ses.error.d.ts +70 -0
  685. package/dist/service/ses/error/sim-ses.error.d.ts.map +1 -0
  686. package/dist/service/ses/error/sim-ses.error.js +77 -0
  687. package/dist/service/ses/error/sim-ses.error.js.map +1 -0
  688. package/dist/service/ses/identity/sim-ses-identity-name.d.ts +34 -0
  689. package/dist/service/ses/identity/sim-ses-identity-name.d.ts.map +1 -0
  690. package/dist/service/ses/identity/sim-ses-identity-name.js +90 -0
  691. package/dist/service/ses/identity/sim-ses-identity-name.js.map +1 -0
  692. package/dist/service/ses/identity/sim-ses-identity-store.d.ts +62 -0
  693. package/dist/service/ses/identity/sim-ses-identity-store.d.ts.map +1 -0
  694. package/dist/service/ses/identity/sim-ses-identity-store.js +93 -0
  695. package/dist/service/ses/identity/sim-ses-identity-store.js.map +1 -0
  696. package/dist/service/ses/identity/sim-ses-identity.d.ts +63 -0
  697. package/dist/service/ses/identity/sim-ses-identity.d.ts.map +1 -0
  698. package/dist/service/ses/identity/sim-ses-identity.js +62 -0
  699. package/dist/service/ses/identity/sim-ses-identity.js.map +1 -0
  700. package/dist/service/ses/index.d.ts +13 -0
  701. package/dist/service/ses/index.d.ts.map +1 -0
  702. package/dist/service/ses/index.js +11 -0
  703. package/dist/service/ses/index.js.map +1 -0
  704. package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts +18 -0
  705. package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts.map +1 -0
  706. package/dist/service/ses/sdk/sim-ses-sdk-command-router.js +72 -0
  707. package/dist/service/ses/sdk/sim-ses-sdk-command-router.js.map +1 -0
  708. package/dist/service/ses/sim-ses-arn.d.ts +20 -0
  709. package/dist/service/ses/sim-ses-arn.d.ts.map +1 -0
  710. package/dist/service/ses/sim-ses-arn.js +25 -0
  711. package/dist/service/ses/sim-ses-arn.js.map +1 -0
  712. package/dist/service/ses/sim-ses-commands.d.ts +37 -0
  713. package/dist/service/ses/sim-ses-commands.d.ts.map +1 -0
  714. package/dist/service/ses/sim-ses-commands.js +75 -0
  715. package/dist/service/ses/sim-ses-commands.js.map +1 -0
  716. package/dist/service/ses/sim-ses-v2.d.ts +139 -0
  717. package/dist/service/ses/sim-ses-v2.d.ts.map +1 -0
  718. package/dist/service/ses/sim-ses-v2.js +195 -0
  719. package/dist/service/ses/sim-ses-v2.js.map +1 -0
  720. package/dist/service/ses/template/sim-ses-render.d.ts +16 -0
  721. package/dist/service/ses/template/sim-ses-render.d.ts.map +1 -0
  722. package/dist/service/ses/template/sim-ses-render.js +88 -0
  723. package/dist/service/ses/template/sim-ses-render.js.map +1 -0
  724. package/dist/service/ses/template/sim-ses-template-content.d.ts +28 -0
  725. package/dist/service/ses/template/sim-ses-template-content.d.ts.map +1 -0
  726. package/dist/service/ses/template/sim-ses-template-content.js +67 -0
  727. package/dist/service/ses/template/sim-ses-template-content.js.map +1 -0
  728. package/dist/service/ses/template/sim-ses-template-store.d.ts +47 -0
  729. package/dist/service/ses/template/sim-ses-template-store.d.ts.map +1 -0
  730. package/dist/service/ses/template/sim-ses-template-store.js +81 -0
  731. package/dist/service/ses/template/sim-ses-template-store.js.map +1 -0
  732. package/dist/service/ses/template/sim-ses-template.d.ts +38 -0
  733. package/dist/service/ses/template/sim-ses-template.d.ts.map +1 -0
  734. package/dist/service/ses/template/sim-ses-template.js +39 -0
  735. package/dist/service/ses/template/sim-ses-template.js.map +1 -0
  736. package/dist/service/sqs/message/sim-sqs-message-body.d.ts +10 -5
  737. package/dist/service/sqs/message/sim-sqs-message-body.d.ts.map +1 -1
  738. package/dist/service/sqs/message/sim-sqs-message-body.js +13 -6
  739. package/dist/service/sqs/message/sim-sqs-message-body.js.map +1 -1
  740. package/dist/util/factory/sim-records-event.factory.d.ts +60 -0
  741. package/dist/util/factory/sim-records-event.factory.d.ts.map +1 -0
  742. package/dist/util/factory/sim-records-event.factory.js +47 -0
  743. package/dist/util/factory/sim-records-event.factory.js.map +1 -0
  744. package/package.json +12 -2
  745. package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts +0 -28
  746. package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts.map +0 -1
  747. package/dist/service/cognito/command/sim-cognito-canonical-value.js +0 -44
  748. package/dist/service/cognito/command/sim-cognito-canonical-value.js.map +0 -1
  749. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts +0 -23
  750. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts.map +0 -1
  751. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js +0 -38
  752. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js.map +0 -1
  753. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +0 -45
  754. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +0 -1
  755. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +0 -46
  756. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +0 -1
@@ -0,0 +1,87 @@
1
+ import type { SimCognitoAttributeType } from "./user/sim-cognito-user-attributes.js";
2
+ import { type SimCognitoUsername } from "./user/sim-cognito-username.js";
3
+ /**
4
+ * What a new user of a pool is stored as: the username it is keyed by, and
5
+ * the attributes it starts with.
6
+ */
7
+ export interface SimCognitoNewUserIdentity {
8
+ readonly username: SimCognitoUsername;
9
+ readonly attributes: readonly SimCognitoAttributeType[] | undefined;
10
+ }
11
+ /**
12
+ * The attributes a pool signs its users in by, from its `UsernameAttributes`.
13
+ *
14
+ * A pool created without any is signed in by username, and a request naming a
15
+ * user names the username it was created with. A pool created with them works
16
+ * the other way round: the caller signs in by email or by phone number, and
17
+ * the username is a UUID Cognito generates that no caller ever chose. That is
18
+ * what an application built against such a pool sees in `cognito:username` and
19
+ * in `AdminGetUser`, so it is what this simulation stores.
20
+ *
21
+ * The address itself stays reachable. It goes into the attribute the pool
22
+ * signs in by, and a request naming a user by that address resolves the same
23
+ * user, which is the alias resolution real Cognito does for its admin
24
+ * operations and its sign-ins.
25
+ */
26
+ export declare class SimCognitoUsernameAttributes {
27
+ private readonly attributes;
28
+ constructor(requested?: readonly string[]);
29
+ /**
30
+ * The attribute a new user's own value goes into, alongside the attributes
31
+ * the request asked for.
32
+ *
33
+ * A request that set the attribute itself keeps its own value, as long as
34
+ * it is the one the username says. The two naming different accounts is
35
+ * refused rather than resolved in favour of either, because real Cognito
36
+ * signs the user in by only one of them and code written against the other
37
+ * would look up a user that is not there.
38
+ */
39
+ private static withSignInValue;
40
+ /**
41
+ * Whether the pool signs users in by username, which is the default.
42
+ */
43
+ get isEmpty(): boolean;
44
+ /**
45
+ * The attribute names, as the request gave them.
46
+ */
47
+ get names(): readonly string[];
48
+ /**
49
+ * These attributes as a described pool reports them, or nothing where the
50
+ * pool signs users in by username.
51
+ */
52
+ toOutput(): readonly string[] | undefined;
53
+ /**
54
+ * The username and attributes a user being created is stored with.
55
+ *
56
+ * A pool signing users in by username stores what the request asked for. A
57
+ * pool signing them in by an attribute stores a generated UUID instead, and
58
+ * puts the value the request called the username into the attribute it
59
+ * signs in by, which is what real Cognito does with it.
60
+ */
61
+ identify(requested: SimCognitoUsername, attributes: readonly SimCognitoAttributeType[] | undefined): SimCognitoNewUserIdentity;
62
+ /**
63
+ * The values a user can be signed in by, by the attribute each is held in.
64
+ *
65
+ * A user missing the attribute has no value for it, which is how a
66
+ * federated user reaches a pool that signs its own users in by email: the
67
+ * provider's mapping may not carry one.
68
+ */
69
+ signInValues(attributes: ReadonlyMap<string, string>): ReadonlyMap<string, string>;
70
+ /**
71
+ * Whether a user holding these attributes is the one a value names.
72
+ */
73
+ matches(attributes: ReadonlyMap<string, string>, value: string): boolean;
74
+ /**
75
+ * The attribute a username fills, or a refusal saying what the pool signs
76
+ * users in by.
77
+ *
78
+ * Real Cognito refuses a username of the wrong form here rather than
79
+ * creating a user nobody could sign in as.
80
+ */
81
+ private requireSignInAttribute;
82
+ /**
83
+ * How a refusal describes what this pool's usernames have to look like.
84
+ */
85
+ private describeForms;
86
+ }
87
+ //# sourceMappingURL=sim-cognito-username-attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-username-attributes.d.ts","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-username-attributes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,gCAAgC,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAAC;CACrE;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,4BAA4B;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuC;IAElE,YAAY,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,EAIxC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAwB9B;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,SAAS,MAAM,EAAE,CAE7B;IAED;;;OAGG;IACH,QAAQ,IAAI,SAAS,MAAM,EAAE,GAAG,SAAS,CAMxC;IAED;;;;;;;OAOG;IACH,QAAQ,CACN,SAAS,EAAE,kBAAkB,EAC7B,UAAU,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,GACzD,yBAAyB,CAe3B;IAED;;;;;;OAMG;IACH,YAAY,CACV,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACtC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAY7B;IAED;;OAEG;IACH,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAIvE;IAED;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAc9B;;OAEG;IACH,OAAO,CAAC,aAAa;CAWtB"}
@@ -0,0 +1,137 @@
1
+ import { randomUUID } from "node:crypto";
2
+ import { SimCognitoInvalidParameterException } from "../error/sim-cognito.error.js";
3
+ import { SimCognitoSignInAttribute } from "./sim-cognito-sign-in-attribute.js";
4
+ import { requireSimCognitoUsername, } from "./user/sim-cognito-username.js";
5
+ /**
6
+ * The attributes a pool signs its users in by, from its `UsernameAttributes`.
7
+ *
8
+ * A pool created without any is signed in by username, and a request naming a
9
+ * user names the username it was created with. A pool created with them works
10
+ * the other way round: the caller signs in by email or by phone number, and
11
+ * the username is a UUID Cognito generates that no caller ever chose. That is
12
+ * what an application built against such a pool sees in `cognito:username` and
13
+ * in `AdminGetUser`, so it is what this simulation stores.
14
+ *
15
+ * The address itself stays reachable. It goes into the attribute the pool
16
+ * signs in by, and a request naming a user by that address resolves the same
17
+ * user, which is the alias resolution real Cognito does for its admin
18
+ * operations and its sign-ins.
19
+ */
20
+ export class SimCognitoUsernameAttributes {
21
+ attributes;
22
+ constructor(requested) {
23
+ this.attributes = (requested ?? []).map((name) => new SimCognitoSignInAttribute(name));
24
+ }
25
+ /**
26
+ * The attribute a new user's own value goes into, alongside the attributes
27
+ * the request asked for.
28
+ *
29
+ * A request that set the attribute itself keeps its own value, as long as
30
+ * it is the one the username says. The two naming different accounts is
31
+ * refused rather than resolved in favour of either, because real Cognito
32
+ * signs the user in by only one of them and code written against the other
33
+ * would look up a user that is not there.
34
+ */
35
+ static withSignInValue(attribute, value, attributes) {
36
+ const requested = attributes ?? [];
37
+ const given = requested.find((entry) => entry.Name === attribute.name);
38
+ if (given === undefined) {
39
+ return [...requested, { Name: attribute.name, Value: value }];
40
+ }
41
+ if (given.Value !== value) {
42
+ throw new SimCognitoInvalidParameterException(`Username '${value}' and the ${attribute.name} attribute ` +
43
+ `'${String(given.Value)}' name different accounts: a pool that ` +
44
+ `signs users in by ${attribute.name} takes the username as that ` +
45
+ `attribute's value`);
46
+ }
47
+ return requested;
48
+ }
49
+ /**
50
+ * Whether the pool signs users in by username, which is the default.
51
+ */
52
+ get isEmpty() {
53
+ return this.attributes.length === 0;
54
+ }
55
+ /**
56
+ * The attribute names, as the request gave them.
57
+ */
58
+ get names() {
59
+ return this.attributes.map((attribute) => attribute.name);
60
+ }
61
+ /**
62
+ * These attributes as a described pool reports them, or nothing where the
63
+ * pool signs users in by username.
64
+ */
65
+ toOutput() {
66
+ if (this.isEmpty) {
67
+ return undefined;
68
+ }
69
+ return this.names;
70
+ }
71
+ /**
72
+ * The username and attributes a user being created is stored with.
73
+ *
74
+ * A pool signing users in by username stores what the request asked for. A
75
+ * pool signing them in by an attribute stores a generated UUID instead, and
76
+ * puts the value the request called the username into the attribute it
77
+ * signs in by, which is what real Cognito does with it.
78
+ */
79
+ identify(requested, attributes) {
80
+ if (this.isEmpty) {
81
+ return { username: requested, attributes };
82
+ }
83
+ const attribute = this.requireSignInAttribute(requested);
84
+ return {
85
+ username: requireSimCognitoUsername(randomUUID()),
86
+ attributes: SimCognitoUsernameAttributes.withSignInValue(attribute, requested, attributes),
87
+ };
88
+ }
89
+ /**
90
+ * The values a user can be signed in by, by the attribute each is held in.
91
+ *
92
+ * A user missing the attribute has no value for it, which is how a
93
+ * federated user reaches a pool that signs its own users in by email: the
94
+ * provider's mapping may not carry one.
95
+ */
96
+ signInValues(attributes) {
97
+ const values = new Map();
98
+ for (const attribute of this.attributes) {
99
+ const value = attributes.get(attribute.name);
100
+ if (value !== undefined) {
101
+ values.set(attribute.name, value);
102
+ }
103
+ }
104
+ return values;
105
+ }
106
+ /**
107
+ * Whether a user holding these attributes is the one a value names.
108
+ */
109
+ matches(attributes, value) {
110
+ return this.attributes.some((attribute) => attributes.get(attribute.name) === value);
111
+ }
112
+ /**
113
+ * The attribute a username fills, or a refusal saying what the pool signs
114
+ * users in by.
115
+ *
116
+ * Real Cognito refuses a username of the wrong form here rather than
117
+ * creating a user nobody could sign in as.
118
+ */
119
+ requireSignInAttribute(username) {
120
+ const attribute = this.attributes.find((candidate) => candidate.holds(username));
121
+ if (attribute === undefined) {
122
+ throw new SimCognitoInvalidParameterException(`Username should be ${this.describeForms()}.`);
123
+ }
124
+ return attribute;
125
+ }
126
+ /**
127
+ * How a refusal describes what this pool's usernames have to look like.
128
+ */
129
+ describeForms() {
130
+ const descriptions = this.attributes.map((attribute) => attribute.description);
131
+ if (descriptions.length > 1) {
132
+ return `either ${descriptions.join(" or ")}`;
133
+ }
134
+ return descriptions.join(" or ");
135
+ }
136
+ }
137
+ //# sourceMappingURL=sim-cognito-username-attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-username-attributes.js","sourceRoot":"","sources":["../../../../src/service/cognito/user-pool/sim-cognito-username-attributes.ts"],"names":[],"mappings":"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"}
@@ -1,3 +1,4 @@
1
+ import type { SimCognitoUsernameAttributes } from "../sim-cognito-username-attributes.js";
1
2
  import type { SimCognitoUser } from "./sim-cognito-user.js";
2
3
  import type { SimCognitoUsername } from "./sim-cognito-username.js";
3
4
  /**
@@ -6,9 +7,18 @@ import type { SimCognitoUsername } from "./sim-cognito-username.js";
6
7
  * Users are keyed by username, which is what every admin operation names one
7
8
  * by. Usernames are case sensitive here, as they are on a pool created without
8
9
  * a `UsernameConfiguration`, which this simulation refuses.
10
+ *
11
+ * A pool that signs its users in by an attribute keys them by the UUID
12
+ * username Cognito generated, and reaches them by that attribute's value as
13
+ * well: real Cognito resolves the alias for its admin operations and its
14
+ * sign-ins, so a request naming a user by its email finds the same user a
15
+ * request naming the UUID finds. What a pool signs users in by is fixed when
16
+ * the pool is created, which is why this is settled once here.
9
17
  */
10
18
  export declare class SimCognitoUserStore {
11
19
  private readonly users;
20
+ private readonly signInBy;
21
+ constructor(signInBy: SimCognitoUsernameAttributes);
12
22
  /**
13
23
  * Every user in this pool, in creation order.
14
24
  */
@@ -19,6 +29,11 @@ export declare class SimCognitoUserStore {
19
29
  get count(): number;
20
30
  /**
21
31
  * Store a newly created user, refusing a username the pool already holds.
32
+ *
33
+ * A pool signing users in by an attribute refuses a second user holding a
34
+ * value another user signs in by too. That value identifies the account
35
+ * there, so allowing two would leave a sign-in naming an account this pool
36
+ * has two of.
22
37
  */
23
38
  add(user: SimCognitoUser): void;
24
39
  /**
@@ -26,13 +41,22 @@ export declare class SimCognitoUserStore {
26
41
  */
27
42
  remove(user: SimCognitoUser): void;
28
43
  /**
29
- * Find a user by username.
44
+ * Find a user by username, or by a value the pool signs users in by.
30
45
  */
31
46
  find(username: string): SimCognitoUser | undefined;
32
47
  /**
33
48
  * Resolve a user by username, or refuse.
34
49
  */
35
50
  require(username: SimCognitoUsername): SimCognitoUser;
51
+ /**
52
+ * Find the user signing in by a value, where the pool signs users in by an
53
+ * attribute at all.
54
+ */
55
+ private findBySignInValue;
56
+ /**
57
+ * Refuse a user signing in by a value another user already signs in by.
58
+ */
59
+ private requireSignInValuesFree;
36
60
  /**
37
61
  * Say why a username reached no user.
38
62
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-store.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;GAMG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqC;IAE3D;;OAEG;IACH,IAAI,GAAG,IAAI,SAAS,cAAc,EAAE,CAEnC;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAED;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAQ9B;IAED;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAEjC;IAED;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAEjD;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,cAAc,CAQpD;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CAcvB"}
1
+ {"version":3,"file":"sim-cognito-user-store.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqC;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;IAExD,YAAY,QAAQ,EAAE,4BAA4B,EAEjD;IAED;;OAEG;IACH,IAAI,GAAG,IAAI,SAAS,cAAc,EAAE,CAEnC;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAS9B;IAED;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAEjC;IAED;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAEjD;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,cAAc,CAQpD;IAED;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAY/B;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;CAcvB"}
@@ -5,9 +5,20 @@ import { SimCognitoUsernameExistsException, SimCognitoUserNotFoundException, } f
5
5
  * Users are keyed by username, which is what every admin operation names one
6
6
  * by. Usernames are case sensitive here, as they are on a pool created without
7
7
  * a `UsernameConfiguration`, which this simulation refuses.
8
+ *
9
+ * A pool that signs its users in by an attribute keys them by the UUID
10
+ * username Cognito generated, and reaches them by that attribute's value as
11
+ * well: real Cognito resolves the alias for its admin operations and its
12
+ * sign-ins, so a request naming a user by its email finds the same user a
13
+ * request naming the UUID finds. What a pool signs users in by is fixed when
14
+ * the pool is created, which is why this is settled once here.
8
15
  */
9
16
  export class SimCognitoUserStore {
10
17
  users = new Map();
18
+ signInBy;
19
+ constructor(signInBy) {
20
+ this.signInBy = signInBy;
21
+ }
11
22
  /**
12
23
  * Every user in this pool, in creation order.
13
24
  */
@@ -22,11 +33,17 @@ export class SimCognitoUserStore {
22
33
  }
23
34
  /**
24
35
  * Store a newly created user, refusing a username the pool already holds.
36
+ *
37
+ * A pool signing users in by an attribute refuses a second user holding a
38
+ * value another user signs in by too. That value identifies the account
39
+ * there, so allowing two would leave a sign-in naming an account this pool
40
+ * has two of.
25
41
  */
26
42
  add(user) {
27
43
  if (this.users.has(user.username)) {
28
44
  throw new SimCognitoUsernameExistsException(`User account ${user.username} already exists in this user pool.`);
29
45
  }
46
+ this.requireSignInValuesFree(user);
30
47
  this.users.set(user.username, user);
31
48
  }
32
49
  /**
@@ -36,10 +53,10 @@ export class SimCognitoUserStore {
36
53
  this.users.delete(user.username);
37
54
  }
38
55
  /**
39
- * Find a user by username.
56
+ * Find a user by username, or by a value the pool signs users in by.
40
57
  */
41
58
  find(username) {
42
- return this.users.get(username);
59
+ return this.users.get(username) ?? this.findBySignInValue(username);
43
60
  }
44
61
  /**
45
62
  * Resolve a user by username, or refuse.
@@ -51,6 +68,26 @@ export class SimCognitoUserStore {
51
68
  }
52
69
  return found;
53
70
  }
71
+ /**
72
+ * Find the user signing in by a value, where the pool signs users in by an
73
+ * attribute at all.
74
+ */
75
+ findBySignInValue(value) {
76
+ if (this.signInBy.isEmpty) {
77
+ return undefined;
78
+ }
79
+ return this.all.find((user) => this.signInBy.matches(user.attributeValues, value));
80
+ }
81
+ /**
82
+ * Refuse a user signing in by a value another user already signs in by.
83
+ */
84
+ requireSignInValuesFree(user) {
85
+ for (const [name, value] of this.signInBy.signInValues(user.attributeValues)) {
86
+ if (this.findBySignInValue(value) !== undefined) {
87
+ throw new SimCognitoUsernameExistsException(`An account with the given ${name} already exists.`);
88
+ }
89
+ }
90
+ }
54
91
  /**
55
92
  * Say why a username reached no user.
56
93
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-store.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,kCAAkC,CAAC;AAI1C;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IACb,KAAK,GAAG,IAAI,GAAG,EAA0B,CAAC;IAE3D;;OAEG;IACH,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,IAAoB;QACtB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,iCAAiC,CACzC,gBAAgB,IAAI,CAAC,QAAQ,oCAAoC,CAClE,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAoB;QACzB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,QAAgB;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,QAA4B;QAClC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAElC,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,+BAA+B,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC3E,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;;;OAOG;IACK,cAAc,CAAC,QAA4B;QACjD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC;QAE7D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,CACL,QAAQ,QAAQ,2CAA2C;gBAC3D,GAAG,KAAK,CAAC,QAAQ,mDAAmD;gBACpE,oEAAoE;gBACpE,mBAAmB,CACpB,CAAC;QACJ,CAAC;QAED,OAAO,QAAQ,QAAQ,kBAAkB,CAAC;IAC5C,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-store.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-store.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,47 @@
1
+ import { DynamicFactory, type ItemFactory } from "@kensio/part-factory";
2
+ import type { SimLambdaDynamoDbStreamEvent, SimLambdaDynamoDbStreamEventRecord } from "../event-source/poll/sim-lambda-dynamodb-stream-event.types.js";
3
+ /**
4
+ * Makes the records of a DynamoDB stream event, one change each.
5
+ *
6
+ * A test that cares about the change and nothing else says only that:
7
+ *
8
+ * ```typescript
9
+ * lambdaDynamoDbStreamEventRecordFactory.make({
10
+ * eventName: "MODIFY",
11
+ * dynamodb: { NewImage: { status: { S: "shipped" } } },
12
+ * });
13
+ * ```
14
+ *
15
+ * What a real record says in more than one place is computed from the rest, so
16
+ * a record is one a stream could have delivered:
17
+ *
18
+ * - the images match the `eventName`: an `INSERT` carries a new image, a
19
+ * `REMOVE` an old one, and a `MODIFY` both, alongside the keys
20
+ * - `StreamViewType` names the images the record actually carries, including
21
+ * any the test added
22
+ * - `awsRegion` is the Region of the stream ARN given
23
+ *
24
+ * The casing is the event's own rather than a scheme: `eventID` has a capital
25
+ * ID, `eventSourceARN` a capital ARN, `dynamodb` none, and the block inside it
26
+ * is capitalized. All of it is what a function receives.
27
+ *
28
+ * `SizeBytes` is a plausible default rather than a measurement of the images
29
+ * given, so a test asserting on it should say what it expects.
30
+ */
31
+ export declare const lambdaDynamoDbStreamEventRecordFactory: DynamicFactory<SimLambdaDynamoDbStreamEventRecord, undefined>;
32
+ /**
33
+ * Makes the event a DynamoDB stream event source mapping invokes a function
34
+ * with.
35
+ *
36
+ * The default is the single-record batch a stream delivers when one item has
37
+ * changed. A batch is the records a test asks for, each completed by
38
+ * `lambdaDynamoDbStreamEventRecordFactory`:
39
+ *
40
+ * ```typescript
41
+ * lambdaDynamoDbStreamEventFactory.make({
42
+ * Records: [{ eventName: "INSERT" }, { eventName: "REMOVE" }],
43
+ * });
44
+ * ```
45
+ */
46
+ export declare const lambdaDynamoDbStreamEventFactory: ItemFactory<SimLambdaDynamoDbStreamEvent>;
47
+ //# sourceMappingURL=lambda-dynamodb-stream-event.factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lambda-dynamodb-stream-event.factory.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/factory/lambda-dynamodb-stream-event.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKxE,OAAO,KAAK,EACV,4BAA4B,EAC5B,kCAAkC,EACnC,MAAM,gEAAgE,CAAC;AA0BxE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,sCAAsC,+DA0B/C,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,EAAE,WAAW,CAAC,4BAA4B,CACnB,CAAC"}
@@ -0,0 +1,96 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import { DynamicFactory } from "@kensio/part-factory";
3
+ import { SimRecordsEventFactory } from "../../../util/factory/sim-records-event.factory.js";
4
+ import { DEFAULT_SIM_AWS_ACCOUNT_ID } from "../../aws/sim-aws-account.js";
5
+ import { DEFAULT_SIM_AWS_REGION_NAME } from "../../aws/sim-aws-region.js";
6
+ import { streamRecordChange, } from "./lambda-dynamodb-stream-record-change.js";
7
+ const millisecondsPerSecond = 1000;
8
+ /**
9
+ * The stream a made record comes from when a test does not name one.
10
+ *
11
+ * A stream ARN is a table ARN with a label after it, and real DynamoDB makes
12
+ * the label the instant the stream was enabled.
13
+ *
14
+ * Built when a record is made rather than when this module loads: the Account
15
+ * and Region defaults come from modules that reach this one back through the
16
+ * service index, and reading them at load time would read them before they
17
+ * exist.
18
+ */
19
+ function defaultStreamArn() {
20
+ return (`arn:aws:dynamodb:${DEFAULT_SIM_AWS_REGION_NAME}:${DEFAULT_SIM_AWS_ACCOUNT_ID}` +
21
+ `:table/orders/stream/2026-01-01T00:00:00.000`);
22
+ }
23
+ /**
24
+ * Makes the records of a DynamoDB stream event, one change each.
25
+ *
26
+ * A test that cares about the change and nothing else says only that:
27
+ *
28
+ * ```typescript
29
+ * lambdaDynamoDbStreamEventRecordFactory.make({
30
+ * eventName: "MODIFY",
31
+ * dynamodb: { NewImage: { status: { S: "shipped" } } },
32
+ * });
33
+ * ```
34
+ *
35
+ * What a real record says in more than one place is computed from the rest, so
36
+ * a record is one a stream could have delivered:
37
+ *
38
+ * - the images match the `eventName`: an `INSERT` carries a new image, a
39
+ * `REMOVE` an old one, and a `MODIFY` both, alongside the keys
40
+ * - `StreamViewType` names the images the record actually carries, including
41
+ * any the test added
42
+ * - `awsRegion` is the Region of the stream ARN given
43
+ *
44
+ * The casing is the event's own rather than a scheme: `eventID` has a capital
45
+ * ID, `eventSourceARN` a capital ARN, `dynamodb` none, and the block inside it
46
+ * is capitalized. All of it is what a function receives.
47
+ *
48
+ * `SizeBytes` is a plausible default rather than a measurement of the images
49
+ * given, so a test asserting on it should say what it expects.
50
+ */
51
+ export const lambdaDynamoDbStreamEventRecordFactory = new DynamicFactory((overrides = {}) => {
52
+ const eventSourceArn = overrides.eventSourceARN ?? defaultStreamArn();
53
+ const change = streamRecordChange(overrides);
54
+ return {
55
+ eventID: faker.string.hexadecimal({
56
+ length: 32,
57
+ casing: "lower",
58
+ prefix: "",
59
+ }),
60
+ eventName: change.eventName,
61
+ eventVersion: "1.1",
62
+ eventSource: "aws:dynamodb",
63
+ awsRegion: streamArnRegion(eventSourceArn),
64
+ dynamodb: {
65
+ ApproximateCreationDateTime: Math.floor(Date.now() / millisecondsPerSecond),
66
+ ...change.images,
67
+ SequenceNumber: "100000000000000000000",
68
+ SizeBytes: 64,
69
+ StreamViewType: change.streamViewType,
70
+ },
71
+ eventSourceARN: eventSourceArn,
72
+ };
73
+ });
74
+ /**
75
+ * Makes the event a DynamoDB stream event source mapping invokes a function
76
+ * with.
77
+ *
78
+ * The default is the single-record batch a stream delivers when one item has
79
+ * changed. A batch is the records a test asks for, each completed by
80
+ * `lambdaDynamoDbStreamEventRecordFactory`:
81
+ *
82
+ * ```typescript
83
+ * lambdaDynamoDbStreamEventFactory.make({
84
+ * Records: [{ eventName: "INSERT" }, { eventName: "REMOVE" }],
85
+ * });
86
+ * ```
87
+ */
88
+ export const lambdaDynamoDbStreamEventFactory = new SimRecordsEventFactory(lambdaDynamoDbStreamEventRecordFactory);
89
+ /**
90
+ * The Region a DynamoDB stream ARN names, which is the Region its records
91
+ * report.
92
+ */
93
+ function streamArnRegion(streamArn) {
94
+ return streamArn.split(":", 4)[3] ?? DEFAULT_SIM_AWS_REGION_NAME;
95
+ }
96
+ //# sourceMappingURL=lambda-dynamodb-stream-event.factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lambda-dynamodb-stream-event.factory.js","sourceRoot":"","sources":["../../../../src/service/lambda/factory/lambda-dynamodb-stream-event.factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAoB,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAK1E,OAAO,EAEL,kBAAkB,GACnB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAEnC;;;;;;;;;;GAUG;AACH,SAAS,gBAAgB;IACvB,OAAO,CACL,oBAAoB,2BAA2B,IAAI,0BAA0B,EAAE;QAC/E,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,sCAAsC,GACjD,IAAI,cAAc,CAAqC,CAAC,SAAS,GAAG,EAAE,EAAE,EAAE;IACxE,MAAM,cAAc,GAAG,SAAS,CAAC,cAAc,IAAI,gBAAgB,EAAE,CAAC;IACtE,MAAM,MAAM,GAAuB,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAEjE,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC;YAChC,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,OAAO;YACf,MAAM,EAAE,EAAE;SACX,CAAC;QACF,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,eAAe,CAAC,cAAc,CAAC;QAC1C,QAAQ,EAAE;YACR,2BAA2B,EAAE,IAAI,CAAC,KAAK,CACrC,IAAI,CAAC,GAAG,EAAE,GAAG,qBAAqB,CACnC;YACD,GAAG,MAAM,CAAC,MAAM;YAChB,cAAc,EAAE,uBAAuB;YACvC,SAAS,EAAE,EAAE;YACb,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC;QACD,cAAc,EAAE,cAAc;KAC/B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAC3C,IAAI,sBAAsB,CAAC,sCAAsC,CAAC,CAAC;AAErE;;;GAGG;AACH,SAAS,eAAe,CAAC,SAAiB;IACxC,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,2BAA2B,CAAC;AACnE,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type { DeepPartialObject } from "@kensio/part-factory";
2
+ import type { SimLambdaDynamoDbEventImage, SimLambdaDynamoDbStreamEventRecord } from "../event-source/poll/sim-lambda-dynamodb-stream-event.types.js";
3
+ type StreamRecordOverrides = DeepPartialObject<SimLambdaDynamoDbStreamEventRecord>;
4
+ /**
5
+ * The images one record carries by default, which is what the change is.
6
+ *
7
+ * All three are optional because an image the test described itself is left
8
+ * out of the defaults entirely. Overrides are merged onto defaults key by key,
9
+ * so a default image left in would reach the record as the test's item merged
10
+ * with this one, carrying attributes and even keys the test never mentioned.
11
+ */
12
+ interface StreamRecordImages {
13
+ readonly Keys?: SimLambdaDynamoDbEventImage;
14
+ readonly NewImage?: SimLambdaDynamoDbEventImage;
15
+ readonly OldImage?: SimLambdaDynamoDbEventImage;
16
+ }
17
+ /**
18
+ * The change a made record reports, with the images and the view type that go
19
+ * with it.
20
+ */
21
+ export interface StreamRecordChange {
22
+ readonly eventName: string;
23
+ readonly images: StreamRecordImages;
24
+ readonly streamViewType: string;
25
+ }
26
+ /**
27
+ * Work out the change a record reports from what a test said about it.
28
+ *
29
+ * An `INSERT` carries a new image, a `REMOVE` an old one and a `MODIFY` both,
30
+ * because that is what each of them means, and a record whose images disagree
31
+ * with its event name is one no stream delivers. The view type then names the
32
+ * images the record ends up carrying, including any the test supplied itself.
33
+ */
34
+ export declare function streamRecordChange(overrides: StreamRecordOverrides): StreamRecordChange;
35
+ export {};
36
+ //# sourceMappingURL=lambda-dynamodb-stream-record-change.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lambda-dynamodb-stream-record-change.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/factory/lambda-dynamodb-stream-record-change.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,KAAK,EACV,2BAA2B,EAC3B,kCAAkC,EACnC,MAAM,gEAAgE,CAAC;AAExE,KAAK,qBAAqB,GACxB,iBAAiB,CAAC,kCAAkC,CAAC,CAAC;AAExD;;;;;;;GAOG;AACH,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,2BAA2B,CAAC;IAC5C,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;CACjD;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAYD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,qBAAqB,GAC/B,kBAAkB,CA6BpB"}
@@ -0,0 +1,64 @@
1
+ const keys = { orderId: { S: "YL-1" } };
2
+ const placedOrder = {
3
+ orderId: { S: "YL-1" },
4
+ status: { S: "placed" },
5
+ };
6
+ const shippedOrder = {
7
+ orderId: { S: "YL-1" },
8
+ status: { S: "shipped" },
9
+ };
10
+ /**
11
+ * Work out the change a record reports from what a test said about it.
12
+ *
13
+ * An `INSERT` carries a new image, a `REMOVE` an old one and a `MODIFY` both,
14
+ * because that is what each of them means, and a record whose images disagree
15
+ * with its event name is one no stream delivers. The view type then names the
16
+ * images the record ends up carrying, including any the test supplied itself.
17
+ */
18
+ export function streamRecordChange(overrides) {
19
+ const eventName = overrides.eventName ?? "INSERT";
20
+ const body = overrides.dynamodb ?? {};
21
+ // Mentioning an image as `undefined` is how a test says a record carries
22
+ // none, so what is asked here is whether the test named the image at all
23
+ // rather than whether it gave a value for it.
24
+ const namedKeys = Object.hasOwn(body, "Keys");
25
+ const namedNew = Object.hasOwn(body, "NewImage");
26
+ const namedOld = Object.hasOwn(body, "OldImage");
27
+ const carriesNew = namedNew
28
+ ? body.NewImage !== undefined
29
+ : eventName !== "REMOVE";
30
+ const carriesOld = namedOld
31
+ ? body.OldImage !== undefined
32
+ : eventName !== "INSERT";
33
+ return {
34
+ eventName,
35
+ // An image the test described is left out here and comes from the
36
+ // overrides whole, rather than being merged onto one of these.
37
+ images: {
38
+ ...(!namedKeys && { Keys: keys }),
39
+ ...(carriesNew && !namedNew && { NewImage: newImageFor(eventName) }),
40
+ ...(carriesOld && !namedOld && { OldImage: oldImageFor(eventName) }),
41
+ },
42
+ streamViewType: streamViewType(carriesNew, carriesOld),
43
+ };
44
+ }
45
+ function newImageFor(eventName) {
46
+ return eventName === "MODIFY" ? shippedOrder : placedOrder;
47
+ }
48
+ function oldImageFor(eventName) {
49
+ return eventName === "REMOVE" ? shippedOrder : placedOrder;
50
+ }
51
+ /**
52
+ * The view type naming the images a record carries, as real DynamoDB reports
53
+ * the view type its stream was enabled with.
54
+ */
55
+ function streamViewType(carriesNew, carriesOld) {
56
+ if (carriesNew && carriesOld) {
57
+ return "NEW_AND_OLD_IMAGES";
58
+ }
59
+ if (carriesNew) {
60
+ return "NEW_IMAGE";
61
+ }
62
+ return carriesOld ? "OLD_IMAGE" : "KEYS_ONLY";
63
+ }
64
+ //# sourceMappingURL=lambda-dynamodb-stream-record-change.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lambda-dynamodb-stream-record-change.js","sourceRoot":"","sources":["../../../../src/service/lambda/factory/lambda-dynamodb-stream-record-change.ts"],"names":[],"mappings":"AAkCA,MAAM,IAAI,GAAgC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;AACrE,MAAM,WAAW,GAAgC;IAC/C,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE;IACtB,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE;CACxB,CAAC;AACF,MAAM,YAAY,GAAgC;IAChD,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE;IACtB,MAAM,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAChC,SAAgC;IAEhC,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,IAAI,QAAQ,CAAC;IAClD,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,IAAI,EAAE,CAAC;IAEtC,yEAAyE;IACzE,yEAAyE;IACzE,8CAA8C;IAC9C,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC9C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACjD,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAEjD,MAAM,UAAU,GAAG,QAAQ;QACzB,CAAC,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS;QAC7B,CAAC,CAAC,SAAS,KAAK,QAAQ,CAAC;IAC3B,MAAM,UAAU,GAAG,QAAQ;QACzB,CAAC,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS;QAC7B,CAAC,CAAC,SAAS,KAAK,QAAQ,CAAC;IAE3B,OAAO;QACL,SAAS;QACT,kEAAkE;QAClE,+DAA+D;QAC/D,MAAM,EAAE;YACN,GAAG,CAAC,CAAC,SAAS,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YACjC,GAAG,CAAC,UAAU,IAAI,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC;YACpE,GAAG,CAAC,UAAU,IAAI,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC;SACrE;QACD,cAAc,EAAE,cAAc,CAAC,UAAU,EAAE,UAAU,CAAC;KACvD,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,SAAiB;IACpC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC7D,CAAC;AAED,SAAS,WAAW,CAAC,SAAiB;IACpC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC7D,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CAAC,UAAmB,EAAE,UAAmB;IAC9D,IAAI,UAAU,IAAI,UAAU,EAAE,CAAC;QAC7B,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,OAAO,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;AAChD,CAAC"}