@kensio/yulin 1.15.1 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (923) hide show
  1. package/README.md +46 -46
  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 +18 -65
  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/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +3 -2
  131. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
  132. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
  133. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts +5 -2
  134. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.d.ts.map +1 -1
  135. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js +38 -2
  136. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-signer.js.map +1 -1
  137. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.d.ts.map +1 -1
  138. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js +5 -2
  139. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js.map +1 -1
  140. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts +34 -0
  141. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.d.ts.map +1 -0
  142. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js +51 -0
  143. package/dist/service/cloudwatch/alarm/action/sim-aws-cloudwatch-alarm-topics.js.map +1 -0
  144. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts +54 -0
  145. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.d.ts.map +1 -0
  146. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js +70 -0
  147. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-action-failures.js.map +1 -0
  148. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts +30 -0
  149. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.d.ts.map +1 -0
  150. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js +58 -0
  151. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-actions.js.map +1 -0
  152. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts +26 -0
  153. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.d.ts.map +1 -0
  154. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js +56 -0
  155. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-notification.js.map +1 -0
  156. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts +37 -0
  157. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.d.ts.map +1 -0
  158. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js +19 -0
  159. package/dist/service/cloudwatch/alarm/action/sim-cloudwatch-alarm-targets.js.map +1 -0
  160. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts +10 -0
  161. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.d.ts.map +1 -0
  162. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js +11 -0
  163. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-arn.js.map +1 -0
  164. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts +33 -0
  165. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.d.ts.map +1 -0
  166. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js +2 -0
  167. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-definition.js.map +1 -0
  168. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts +32 -0
  169. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.d.ts.map +1 -0
  170. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js +75 -0
  171. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-evaluation.js.map +1 -0
  172. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts +26 -0
  173. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.d.ts.map +1 -0
  174. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js +16 -0
  175. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-history.js.map +1 -0
  176. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts +23 -0
  177. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.d.ts.map +1 -0
  178. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js +37 -0
  179. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-periods.js.map +1 -0
  180. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts +55 -0
  181. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.d.ts.map +1 -0
  182. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js +84 -0
  183. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-schedule.js.map +1 -0
  184. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts +18 -0
  185. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.d.ts.map +1 -0
  186. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js +29 -0
  187. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-state.js.map +1 -0
  188. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts +24 -0
  189. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.d.ts.map +1 -0
  190. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js +33 -0
  191. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm-store.js.map +1 -0
  192. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts +57 -0
  193. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.d.ts.map +1 -0
  194. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js +84 -0
  195. package/dist/service/cloudwatch/alarm/sim-cloudwatch-alarm.js.map +1 -0
  196. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts +19 -0
  197. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.d.ts.map +1 -0
  198. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js +48 -0
  199. package/dist/service/cloudwatch/alarm/sim-cloudwatch-comparison.js.map +1 -0
  200. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts +16 -0
  201. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.d.ts.map +1 -0
  202. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js +31 -0
  203. package/dist/service/cloudwatch/alarm/sim-cloudwatch-missing-data.js.map +1 -0
  204. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts +33 -0
  205. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.d.ts.map +1 -0
  206. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js +41 -0
  207. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-creator.js.map +1 -0
  208. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts +39 -0
  209. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.d.ts.map +1 -0
  210. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js +80 -0
  211. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-properties.js.map +1 -0
  212. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts +20 -0
  213. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.d.ts.map +1 -0
  214. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js +80 -0
  215. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-property-rules.js.map +1 -0
  216. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts +56 -0
  217. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.d.ts.map +1 -0
  218. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js +107 -0
  219. package/dist/service/cloudwatch/cfn/alarm/sim-cfn-alarm-values.js.map +1 -0
  220. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts +29 -0
  221. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.d.ts.map +1 -0
  222. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js +43 -0
  223. package/dist/service/cloudwatch/cfn/sim-cloudwatch-cfn-resource-factory.js.map +1 -0
  224. package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts +155 -0
  225. package/dist/service/cloudwatch/command/alarm/alarm.command.d.ts.map +1 -0
  226. package/dist/service/cloudwatch/command/alarm/alarm.command.js +2 -0
  227. package/dist/service/cloudwatch/command/alarm/alarm.command.js.map +1 -0
  228. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts +19 -0
  229. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.d.ts.map +1 -0
  230. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js +56 -0
  231. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-action-input.js.map +1 -0
  232. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts +22 -0
  233. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.d.ts.map +1 -0
  234. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js +2 -0
  235. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-context.js.map +1 -0
  236. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts +15 -0
  237. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.d.ts.map +1 -0
  238. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js +61 -0
  239. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-detail.js.map +1 -0
  240. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts +7 -0
  241. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.d.ts.map +1 -0
  242. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js +39 -0
  243. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-input.js.map +1 -0
  244. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts +20 -0
  245. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.d.ts.map +1 -0
  246. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js +52 -0
  247. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-numbers.js.map +1 -0
  248. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts +25 -0
  249. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.d.ts.map +1 -0
  250. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js +60 -0
  251. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-reads.js.map +1 -0
  252. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts +12 -0
  253. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.d.ts.map +1 -0
  254. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js +59 -0
  255. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-selection.js.map +1 -0
  256. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts +23 -0
  257. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.d.ts.map +1 -0
  258. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js +63 -0
  259. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-alarm-writes.js.map +1 -0
  260. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts +19 -0
  261. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.d.ts.map +1 -0
  262. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js +47 -0
  263. package/dist/service/cloudwatch/command/alarm/sim-cloudwatch-set-alarm-state.js.map +1 -0
  264. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts +41 -0
  265. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.d.ts.map +1 -0
  266. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js +65 -0
  267. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-authorizer.js.map +1 -0
  268. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts +23 -0
  269. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.d.ts.map +1 -0
  270. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js +30 -0
  271. package/dist/service/cloudwatch/command/authorize/sim-cloudwatch-decide.js.map +1 -0
  272. package/dist/service/cloudwatch/command/data/data.command.d.ts +42 -0
  273. package/dist/service/cloudwatch/command/data/data.command.d.ts.map +1 -0
  274. package/dist/service/cloudwatch/command/data/data.command.js +2 -0
  275. package/dist/service/cloudwatch/command/data/data.command.js.map +1 -0
  276. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts +11 -0
  277. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.d.ts.map +1 -0
  278. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js +66 -0
  279. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-datum.js.map +1 -0
  280. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts +14 -0
  281. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.d.ts.map +1 -0
  282. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js +58 -0
  283. package/dist/service/cloudwatch/command/data/sim-cloudwatch-metric-value.js.map +1 -0
  284. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts +15 -0
  285. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.d.ts.map +1 -0
  286. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js +34 -0
  287. package/dist/service/cloudwatch/command/data/sim-cloudwatch-observation.js.map +1 -0
  288. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts +28 -0
  289. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.d.ts.map +1 -0
  290. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js +66 -0
  291. package/dist/service/cloudwatch/command/data/sim-cloudwatch-put-metric-data.js.map +1 -0
  292. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts +9 -0
  293. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.d.ts.map +1 -0
  294. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js +22 -0
  295. package/dist/service/cloudwatch/command/data/sim-cloudwatch-weighted-values.js.map +1 -0
  296. package/dist/service/cloudwatch/command/query/query.command.d.ts +133 -0
  297. package/dist/service/cloudwatch/command/query/query.command.d.ts.map +1 -0
  298. package/dist/service/cloudwatch/command/query/query.command.js +2 -0
  299. package/dist/service/cloudwatch/command/query/query.command.js.map +1 -0
  300. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts +25 -0
  301. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.d.ts.map +1 -0
  302. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js +46 -0
  303. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-data.js.map +1 -0
  304. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts +25 -0
  305. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.d.ts.map +1 -0
  306. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js +55 -0
  307. package/dist/service/cloudwatch/command/query/sim-cloudwatch-get-metric-statistics.js.map +1 -0
  308. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts +23 -0
  309. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.d.ts.map +1 -0
  310. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js +46 -0
  311. package/dist/service/cloudwatch/command/query/sim-cloudwatch-list-metrics.js.map +1 -0
  312. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts +25 -0
  313. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.d.ts.map +1 -0
  314. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js +63 -0
  315. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-query.js.map +1 -0
  316. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts +26 -0
  317. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.d.ts.map +1 -0
  318. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js +61 -0
  319. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-request.js.map +1 -0
  320. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts +20 -0
  321. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.d.ts.map +1 -0
  322. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js +36 -0
  323. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-data-result.js.map +1 -0
  324. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts +12 -0
  325. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.d.ts.map +1 -0
  326. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js +27 -0
  327. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-filter.js.map +1 -0
  328. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts +20 -0
  329. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.d.ts.map +1 -0
  330. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js +52 -0
  331. package/dist/service/cloudwatch/command/query/sim-cloudwatch-metric-listing.js.map +1 -0
  332. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts +10 -0
  333. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.d.ts.map +1 -0
  334. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js +20 -0
  335. package/dist/service/cloudwatch/command/query/sim-cloudwatch-requested-statistics.js.map +1 -0
  336. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts +17 -0
  337. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.d.ts.map +1 -0
  338. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js +45 -0
  339. package/dist/service/cloudwatch/command/query/sim-cloudwatch-statistic-datapoints.js.map +1 -0
  340. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts +7 -0
  341. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.d.ts.map +1 -0
  342. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js +2 -0
  343. package/dist/service/cloudwatch/command/sim-cloudwatch-command.types.js.map +1 -0
  344. package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts +24 -0
  345. package/dist/service/cloudwatch/command/sim-cloudwatch-page.d.ts.map +1 -0
  346. package/dist/service/cloudwatch/command/sim-cloudwatch-page.js +36 -0
  347. package/dist/service/cloudwatch/command/sim-cloudwatch-page.js.map +1 -0
  348. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts +21 -0
  349. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.d.ts.map +1 -0
  350. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js +10 -0
  351. package/dist/service/cloudwatch/command/sim-cloudwatch-request-options.js.map +1 -0
  352. package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts +48 -0
  353. package/dist/service/cloudwatch/error/sim-cloudwatch.error.d.ts.map +1 -0
  354. package/dist/service/cloudwatch/error/sim-cloudwatch.error.js +51 -0
  355. package/dist/service/cloudwatch/error/sim-cloudwatch.error.js.map +1 -0
  356. package/dist/service/cloudwatch/index.d.ts +26 -0
  357. package/dist/service/cloudwatch/index.d.ts.map +1 -0
  358. package/dist/service/cloudwatch/index.js +25 -0
  359. package/dist/service/cloudwatch/index.js.map +1 -0
  360. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts +54 -0
  361. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.d.ts.map +1 -0
  362. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js +29 -0
  363. package/dist/service/cloudwatch/metric/sim-cloudwatch-datapoint.js.map +1 -0
  364. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts +37 -0
  365. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.d.ts.map +1 -0
  366. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js +42 -0
  367. package/dist/service/cloudwatch/metric/sim-cloudwatch-dimension.js.map +1 -0
  368. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts +46 -0
  369. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.d.ts.map +1 -0
  370. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js +61 -0
  371. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric-store.js.map +1 -0
  372. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts +53 -0
  373. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.d.ts.map +1 -0
  374. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js +45 -0
  375. package/dist/service/cloudwatch/metric/sim-cloudwatch-metric.js.map +1 -0
  376. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts +22 -0
  377. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.d.ts.map +1 -0
  378. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js +54 -0
  379. package/dist/service/cloudwatch/metric/sim-cloudwatch-name.js.map +1 -0
  380. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts +22 -0
  381. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.d.ts.map +1 -0
  382. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js +34 -0
  383. package/dist/service/cloudwatch/metric/sim-cloudwatch-namespace.js.map +1 -0
  384. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts +32 -0
  385. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.d.ts.map +1 -0
  386. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js +70 -0
  387. package/dist/service/cloudwatch/metric/sim-cloudwatch-period.js.map +1 -0
  388. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts +20 -0
  389. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.d.ts.map +1 -0
  390. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js +51 -0
  391. package/dist/service/cloudwatch/metric/sim-cloudwatch-statistic.js.map +1 -0
  392. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts +16 -0
  393. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.d.ts.map +1 -0
  394. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js +25 -0
  395. package/dist/service/cloudwatch/metric/sim-cloudwatch-time-range.js.map +1 -0
  396. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts +18 -0
  397. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.d.ts.map +1 -0
  398. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js +56 -0
  399. package/dist/service/cloudwatch/metric/sim-cloudwatch-unit.js.map +1 -0
  400. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts +18 -0
  401. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.d.ts.map +1 -0
  402. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js +60 -0
  403. package/dist/service/cloudwatch/sdk/sim-cloudwatch-sdk-command-router.js.map +1 -0
  404. package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts +47 -0
  405. package/dist/service/cloudwatch/sim-cloudwatch-commands.d.ts.map +1 -0
  406. package/dist/service/cloudwatch/sim-cloudwatch-commands.js +86 -0
  407. package/dist/service/cloudwatch/sim-cloudwatch-commands.js.map +1 -0
  408. package/dist/service/cloudwatch/sim-cloudwatch.d.ts +98 -0
  409. package/dist/service/cloudwatch/sim-cloudwatch.d.ts.map +1 -0
  410. package/dist/service/cloudwatch/sim-cloudwatch.js +138 -0
  411. package/dist/service/cloudwatch/sim-cloudwatch.js.map +1 -0
  412. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  413. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +7 -0
  414. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  415. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts +10 -0
  416. package/dist/service/cognito/command/hosted/hosted-auth.command.d.ts.map +1 -1
  417. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts +14 -13
  418. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.d.ts.map +1 -1
  419. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js +14 -18
  420. package/dist/service/cognito/command/hosted/sim-cognito-authorize-endpoint.js.map +1 -1
  421. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts +15 -6
  422. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.d.ts.map +1 -1
  423. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js +26 -19
  424. package/dist/service/cognito/command/hosted/sim-cognito-authorize-request.js.map +1 -1
  425. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.d.ts.map +1 -1
  426. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js +5 -1
  427. package/dist/service/cognito/command/hosted/sim-cognito-hosted-commands.js.map +1 -1
  428. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts +41 -0
  429. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.d.ts.map +1 -0
  430. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js +71 -0
  431. package/dist/service/cognito/command/hosted/sim-cognito-hosted-password-sign-in.js.map +1 -0
  432. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts +32 -0
  433. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.d.ts.map +1 -0
  434. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js +36 -0
  435. package/dist/service/cognito/command/hosted/sim-cognito-hosted-sign-in.js.map +1 -0
  436. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts +30 -0
  437. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.d.ts.map +1 -0
  438. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js +47 -0
  439. package/dist/service/cognito/command/user/sim-cognito-sign-in-value-check.js.map +1 -0
  440. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
  441. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +8 -4
  442. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
  443. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
  444. package/dist/service/cognito/command/user/sim-cognito-user-commands.js +7 -3
  445. package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
  446. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.d.ts.map +1 -1
  447. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js +3 -1
  448. package/dist/service/cognito/command/user/sim-cognito-user-update-commands.js.map +1 -1
  449. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +9 -16
  450. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -1
  451. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +9 -26
  452. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -1
  453. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +12 -3
  454. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -1
  455. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +19 -3
  456. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -1
  457. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
  458. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +5 -4
  459. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
  460. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +3 -0
  461. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  462. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +4 -0
  463. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  464. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +7 -6
  465. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  466. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts +22 -0
  467. package/dist/service/cognito/error/sim-cognito-managed-login.error.d.ts.map +1 -0
  468. package/dist/service/cognito/error/sim-cognito-managed-login.error.js +32 -0
  469. package/dist/service/cognito/error/sim-cognito-managed-login.error.js.map +1 -0
  470. package/dist/service/cognito/error/sim-cognito.error.d.ts +10 -0
  471. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  472. package/dist/service/cognito/error/sim-cognito.error.js +12 -0
  473. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  474. package/dist/service/cognito/index.d.ts +1 -1
  475. package/dist/service/cognito/index.d.ts.map +1 -1
  476. package/dist/service/cognito/index.js +1 -1
  477. package/dist/service/cognito/index.js.map +1 -1
  478. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts +29 -0
  479. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.d.ts.map +1 -0
  480. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js +90 -0
  481. package/dist/service/cognito/serve/page/sim-cognito-confirm-page.js.map +1 -0
  482. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts +38 -0
  483. package/dist/service/cognito/serve/page/sim-cognito-managed-login.d.ts.map +1 -0
  484. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js +62 -0
  485. package/dist/service/cognito/serve/page/sim-cognito-managed-login.js.map +1 -0
  486. package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts +47 -0
  487. package/dist/service/cognito/serve/page/sim-cognito-page-form.d.ts.map +1 -0
  488. package/dist/service/cognito/serve/page/sim-cognito-page-form.js +76 -0
  489. package/dist/service/cognito/serve/page/sim-cognito-page-form.js.map +1 -0
  490. package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts +69 -0
  491. package/dist/service/cognito/serve/page/sim-cognito-page-markup.d.ts.map +1 -0
  492. package/dist/service/cognito/serve/page/sim-cognito-page-markup.js +111 -0
  493. package/dist/service/cognito/serve/page/sim-cognito-page-markup.js.map +1 -0
  494. package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts +39 -0
  495. package/dist/service/cognito/serve/page/sim-cognito-page-paths.d.ts.map +1 -0
  496. package/dist/service/cognito/serve/page/sim-cognito-page-paths.js +59 -0
  497. package/dist/service/cognito/serve/page/sim-cognito-page-paths.js.map +1 -0
  498. package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts +22 -0
  499. package/dist/service/cognito/serve/page/sim-cognito-page-request.d.ts.map +1 -0
  500. package/dist/service/cognito/serve/page/sim-cognito-page-request.js +30 -0
  501. package/dist/service/cognito/serve/page/sim-cognito-page-request.js.map +1 -0
  502. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts +28 -0
  503. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.d.ts.map +1 -0
  504. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js +45 -0
  505. package/dist/service/cognito/serve/page/sim-cognito-sign-in-page.js.map +1 -0
  506. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts +35 -0
  507. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.d.ts.map +1 -0
  508. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js +85 -0
  509. package/dist/service/cognito/serve/page/sim-cognito-sign-up-page.js.map +1 -0
  510. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts +20 -23
  511. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.d.ts.map +1 -1
  512. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js +40 -19
  513. package/dist/service/cognito/serve/sim-cognito-domain-endpoints.js.map +1 -1
  514. package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts +14 -0
  515. package/dist/service/cognito/serve/sim-cognito-domain-request.d.ts.map +1 -0
  516. package/dist/service/cognito/serve/sim-cognito-domain-request.js +2 -0
  517. package/dist/service/cognito/serve/sim-cognito-domain-request.js.map +1 -0
  518. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts +22 -0
  519. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.d.ts.map +1 -0
  520. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js +52 -0
  521. package/dist/service/cognito/user-pool/sim-cognito-sign-in-attribute.js.map +1 -0
  522. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +26 -9
  523. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  524. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +23 -9
  525. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  526. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  527. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +2 -1
  528. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  529. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts +87 -0
  530. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.d.ts.map +1 -0
  531. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js +137 -0
  532. package/dist/service/cognito/user-pool/sim-cognito-username-attributes.js.map +1 -0
  533. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts +25 -1
  534. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.d.ts.map +1 -1
  535. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js +39 -2
  536. package/dist/service/cognito/user-pool/user/sim-cognito-user-store.js.map +1 -1
  537. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts +8 -0
  538. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.d.ts.map +1 -1
  539. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js +14 -6
  540. package/dist/service/iam/sigv4/canonical/sim-iam-sigv4-payload-hash.js.map +1 -1
  541. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts +47 -0
  542. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.d.ts.map +1 -0
  543. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js +96 -0
  544. package/dist/service/lambda/factory/lambda-dynamodb-stream-event.factory.js.map +1 -0
  545. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts +36 -0
  546. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.d.ts.map +1 -0
  547. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js +64 -0
  548. package/dist/service/lambda/factory/lambda-dynamodb-stream-record-change.js.map +1 -0
  549. package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts +37 -0
  550. package/dist/service/lambda/factory/lambda-function-url-event.factory.d.ts.map +1 -0
  551. package/dist/service/lambda/factory/lambda-function-url-event.factory.js +55 -0
  552. package/dist/service/lambda/factory/lambda-function-url-event.factory.js.map +1 -0
  553. package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts +37 -0
  554. package/dist/service/lambda/factory/lambda-sqs-event.factory.d.ts.map +1 -0
  555. package/dist/service/lambda/factory/lambda-sqs-event.factory.js +78 -0
  556. package/dist/service/lambda/factory/lambda-sqs-event.factory.js.map +1 -0
  557. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts +27 -0
  558. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.d.ts.map +1 -0
  559. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js +78 -0
  560. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-module.js.map +1 -0
  561. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts +23 -0
  562. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.d.ts.map +1 -0
  563. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js +111 -0
  564. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-http-target.js.map +1 -0
  565. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts +37 -0
  566. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.d.ts.map +1 -0
  567. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js +78 -0
  568. package/dist/service/lambda/function/code/vm/http/sim-lambda-vm-wire-request.js.map +1 -0
  569. package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts +5 -3
  570. package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.d.ts.map +1 -1
  571. package/dist/service/lambda/function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js.map +1 -1
  572. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts +10 -2
  573. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.d.ts.map +1 -1
  574. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js +21 -6
  575. package/dist/service/lambda/function/code/vm/sdk/sim-sdk-lambda-vm-module-provider.js.map +1 -1
  576. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts +12 -0
  577. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.d.ts.map +1 -0
  578. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js +2 -0
  579. package/dist/service/lambda/function/code/vm/sim-lambda-vm-module.types.js.map +1 -0
  580. package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.d.ts.map +1 -1
  581. package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js +5 -1
  582. package/dist/service/lambda/function/code/vm/sim-lambda-vm-modules.js.map +1 -1
  583. package/dist/service/lambda/function/environment/sim-lambda-environment.d.ts.map +1 -1
  584. package/dist/service/lambda/function/environment/sim-lambda-environment.js +2 -0
  585. package/dist/service/lambda/function/environment/sim-lambda-environment.js.map +1 -1
  586. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts +19 -0
  587. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.d.ts.map +1 -0
  588. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js +20 -0
  589. package/dist/service/lambda/function/environment/sim-lambda-execution-credentials.js.map +1 -0
  590. package/dist/service/lambda/index.d.ts +3 -0
  591. package/dist/service/lambda/index.d.ts.map +1 -1
  592. package/dist/service/lambda/index.js +3 -0
  593. package/dist/service/lambda/index.js.map +1 -1
  594. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts +28 -0
  595. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.d.ts.map +1 -0
  596. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js +56 -0
  597. package/dist/service/lambda/serve/auth/sim-lambda-url-payload-hash.js.map +1 -0
  598. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts +16 -0
  599. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts.map +1 -1
  600. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js +24 -0
  601. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js.map +1 -1
  602. package/dist/service/lambda/serve/sim-lambda-controller.d.ts +6 -0
  603. package/dist/service/lambda/serve/sim-lambda-controller.d.ts.map +1 -1
  604. package/dist/service/lambda/serve/sim-lambda-controller.js +11 -0
  605. package/dist/service/lambda/serve/sim-lambda-controller.js.map +1 -1
  606. package/dist/service/s3/factory/s3-notification-event-object.d.ts +10 -0
  607. package/dist/service/s3/factory/s3-notification-event-object.d.ts.map +1 -0
  608. package/dist/service/s3/factory/s3-notification-event-object.js +12 -0
  609. package/dist/service/s3/factory/s3-notification-event-object.js.map +1 -0
  610. package/dist/service/s3/factory/s3-notification-event.factory.d.ts +45 -0
  611. package/dist/service/s3/factory/s3-notification-event.factory.d.ts.map +1 -0
  612. package/dist/service/s3/factory/s3-notification-event.factory.js +102 -0
  613. package/dist/service/s3/factory/s3-notification-event.factory.js.map +1 -0
  614. package/dist/service/s3/index.d.ts +2 -0
  615. package/dist/service/s3/index.d.ts.map +1 -1
  616. package/dist/service/s3/index.js +1 -0
  617. package/dist/service/s3/index.js.map +1 -1
  618. package/dist/service/s3/notification/event/sim-s3-event-records.d.ts +32 -1
  619. package/dist/service/s3/notification/event/sim-s3-event-records.d.ts.map +1 -1
  620. package/dist/service/s3/notification/event/sim-s3-event-records.js +5 -5
  621. package/dist/service/s3/notification/event/sim-s3-event-records.js.map +1 -1
  622. package/dist/service/s3/notification/event/sim-s3-event.type.d.ts +83 -0
  623. package/dist/service/s3/notification/event/sim-s3-event.type.d.ts.map +1 -0
  624. package/dist/service/s3/notification/event/sim-s3-event.type.js +2 -0
  625. package/dist/service/s3/notification/event/sim-s3-event.type.js.map +1 -0
  626. package/dist/service/ses/account/sim-ses-account.d.ts +59 -0
  627. package/dist/service/ses/account/sim-ses-account.d.ts.map +1 -0
  628. package/dist/service/ses/account/sim-ses-account.js +66 -0
  629. package/dist/service/ses/account/sim-ses-account.js.map +1 -0
  630. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts +35 -0
  631. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.d.ts.map +1 -0
  632. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js +52 -0
  633. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-creator.js.map +1 -0
  634. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts +37 -0
  635. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.d.ts.map +1 -0
  636. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js +61 -0
  637. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-properties.js.map +1 -0
  638. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts +17 -0
  639. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.d.ts.map +1 -0
  640. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js +48 -0
  641. package/dist/service/ses/cfn/identity/sim-cfn-ses-identity-unsimulated-properties.js.map +1 -0
  642. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts +24 -0
  643. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.d.ts.map +1 -0
  644. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js +39 -0
  645. package/dist/service/ses/cfn/sim-cfn-ses-resource-error.js.map +1 -0
  646. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts +13 -0
  647. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.d.ts.map +1 -0
  648. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js +13 -0
  649. package/dist/service/ses/cfn/sim-cfn-ses-resource-types.js.map +1 -0
  650. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts +28 -0
  651. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.d.ts.map +1 -0
  652. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js +69 -0
  653. package/dist/service/ses/cfn/sim-ses-cfn-resource-factory.js.map +1 -0
  654. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts +30 -0
  655. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.d.ts.map +1 -0
  656. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js +48 -0
  657. package/dist/service/ses/cfn/template/sim-cfn-ses-template-creator.js.map +1 -0
  658. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts +58 -0
  659. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.d.ts.map +1 -0
  660. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js +121 -0
  661. package/dist/service/ses/cfn/template/sim-cfn-ses-template-properties.js.map +1 -0
  662. package/dist/service/ses/command/account/account.command.d.ts +59 -0
  663. package/dist/service/ses/command/account/account.command.d.ts.map +1 -0
  664. package/dist/service/ses/command/account/account.command.js +2 -0
  665. package/dist/service/ses/command/account/account.command.js.map +1 -0
  666. package/dist/service/ses/command/account/sim-ses-account-commands.d.ts +34 -0
  667. package/dist/service/ses/command/account/sim-ses-account-commands.d.ts.map +1 -0
  668. package/dist/service/ses/command/account/sim-ses-account-commands.js +41 -0
  669. package/dist/service/ses/command/account/sim-ses-account-commands.js.map +1 -0
  670. package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts +11 -0
  671. package/dist/service/ses/command/account/sim-ses-account-details-input.d.ts.map +1 -0
  672. package/dist/service/ses/command/account/sim-ses-account-details-input.js +50 -0
  673. package/dist/service/ses/command/account/sim-ses-account-details-input.js.map +1 -0
  674. package/dist/service/ses/command/account/sim-ses-account-report.d.ts +21 -0
  675. package/dist/service/ses/command/account/sim-ses-account-report.d.ts.map +1 -0
  676. package/dist/service/ses/command/account/sim-ses-account-report.js +45 -0
  677. package/dist/service/ses/command/account/sim-ses-account-report.js.map +1 -0
  678. package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts +55 -0
  679. package/dist/service/ses/command/authorize/sim-ses-authorizer.d.ts.map +1 -0
  680. package/dist/service/ses/command/authorize/sim-ses-authorizer.js +78 -0
  681. package/dist/service/ses/command/authorize/sim-ses-authorizer.js.map +1 -0
  682. package/dist/service/ses/command/identity/identity.command.d.ts +84 -0
  683. package/dist/service/ses/command/identity/identity.command.d.ts.map +1 -0
  684. package/dist/service/ses/command/identity/identity.command.js +2 -0
  685. package/dist/service/ses/command/identity/identity.command.js.map +1 -0
  686. package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts +44 -0
  687. package/dist/service/ses/command/identity/sim-ses-identity-commands.d.ts.map +1 -0
  688. package/dist/service/ses/command/identity/sim-ses-identity-commands.js +92 -0
  689. package/dist/service/ses/command/identity/sim-ses-identity-commands.js.map +1 -0
  690. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts +12 -0
  691. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.d.ts.map +1 -0
  692. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js +26 -0
  693. package/dist/service/ses/command/identity/sim-ses-unsimulated-identity-input.js.map +1 -0
  694. package/dist/service/ses/command/send/send.command.d.ts +71 -0
  695. package/dist/service/ses/command/send/send.command.d.ts.map +1 -0
  696. package/dist/service/ses/command/send/send.command.js +2 -0
  697. package/dist/service/ses/command/send/send.command.js.map +1 -0
  698. package/dist/service/ses/command/send/sim-ses-content.d.ts +24 -0
  699. package/dist/service/ses/command/send/sim-ses-content.d.ts.map +1 -0
  700. package/dist/service/ses/command/send/sim-ses-content.js +40 -0
  701. package/dist/service/ses/command/send/sim-ses-content.js.map +1 -0
  702. package/dist/service/ses/command/send/sim-ses-read-content.d.ts +19 -0
  703. package/dist/service/ses/command/send/sim-ses-read-content.d.ts.map +1 -0
  704. package/dist/service/ses/command/send/sim-ses-read-content.js +2 -0
  705. package/dist/service/ses/command/send/sim-ses-read-content.js.map +1 -0
  706. package/dist/service/ses/command/send/sim-ses-send-email.d.ts +36 -0
  707. package/dist/service/ses/command/send/sim-ses-send-email.d.ts.map +1 -0
  708. package/dist/service/ses/command/send/sim-ses-send-email.js +80 -0
  709. package/dist/service/ses/command/send/sim-ses-send-email.js.map +1 -0
  710. package/dist/service/ses/command/send/sim-ses-simple-content.d.ts +12 -0
  711. package/dist/service/ses/command/send/sim-ses-simple-content.d.ts.map +1 -0
  712. package/dist/service/ses/command/send/sim-ses-simple-content.js +33 -0
  713. package/dist/service/ses/command/send/sim-ses-simple-content.js.map +1 -0
  714. package/dist/service/ses/command/send/sim-ses-template-send.d.ts +34 -0
  715. package/dist/service/ses/command/send/sim-ses-template-send.d.ts.map +1 -0
  716. package/dist/service/ses/command/send/sim-ses-template-send.js +101 -0
  717. package/dist/service/ses/command/send/sim-ses-template-send.js.map +1 -0
  718. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts +12 -0
  719. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.d.ts.map +1 -0
  720. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js +26 -0
  721. package/dist/service/ses/command/send/sim-ses-unsimulated-send-input.js.map +1 -0
  722. package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts +36 -0
  723. package/dist/service/ses/command/send/sim-ses-verified-identities.d.ts.map +1 -0
  724. package/dist/service/ses/command/send/sim-ses-verified-identities.js +50 -0
  725. package/dist/service/ses/command/send/sim-ses-verified-identities.js.map +1 -0
  726. package/dist/service/ses/command/sim-ses-command.types.d.ts +8 -0
  727. package/dist/service/ses/command/sim-ses-command.types.d.ts.map +1 -0
  728. package/dist/service/ses/command/sim-ses-command.types.js +2 -0
  729. package/dist/service/ses/command/sim-ses-command.types.js.map +1 -0
  730. package/dist/service/ses/command/sim-ses-page.d.ts +20 -0
  731. package/dist/service/ses/command/sim-ses-page.d.ts.map +1 -0
  732. package/dist/service/ses/command/sim-ses-page.js +49 -0
  733. package/dist/service/ses/command/sim-ses-page.js.map +1 -0
  734. package/dist/service/ses/command/sim-ses-request-options.d.ts +12 -0
  735. package/dist/service/ses/command/sim-ses-request-options.d.ts.map +1 -0
  736. package/dist/service/ses/command/sim-ses-request-options.js +2 -0
  737. package/dist/service/ses/command/sim-ses-request-options.js.map +1 -0
  738. package/dist/service/ses/command/template/sim-ses-template-commands.d.ts +56 -0
  739. package/dist/service/ses/command/template/sim-ses-template-commands.d.ts.map +1 -0
  740. package/dist/service/ses/command/template/sim-ses-template-commands.js +96 -0
  741. package/dist/service/ses/command/template/sim-ses-template-commands.js.map +1 -0
  742. package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts +14 -0
  743. package/dist/service/ses/command/template/sim-ses-template-reporting.d.ts.map +1 -0
  744. package/dist/service/ses/command/template/sim-ses-template-reporting.js +23 -0
  745. package/dist/service/ses/command/template/sim-ses-template-reporting.js.map +1 -0
  746. package/dist/service/ses/command/template/template.command.d.ts +98 -0
  747. package/dist/service/ses/command/template/template.command.d.ts.map +1 -0
  748. package/dist/service/ses/command/template/template.command.js +2 -0
  749. package/dist/service/ses/command/template/template.command.js.map +1 -0
  750. package/dist/service/ses/email/sim-ses-address.d.ts +15 -0
  751. package/dist/service/ses/email/sim-ses-address.d.ts.map +1 -0
  752. package/dist/service/ses/email/sim-ses-address.js +29 -0
  753. package/dist/service/ses/email/sim-ses-address.js.map +1 -0
  754. package/dist/service/ses/email/sim-ses-sent-email-store.d.ts +33 -0
  755. package/dist/service/ses/email/sim-ses-sent-email-store.d.ts.map +1 -0
  756. package/dist/service/ses/email/sim-ses-sent-email-store.js +42 -0
  757. package/dist/service/ses/email/sim-ses-sent-email-store.js.map +1 -0
  758. package/dist/service/ses/email/sim-ses-sent-email.d.ts +78 -0
  759. package/dist/service/ses/email/sim-ses-sent-email.d.ts.map +1 -0
  760. package/dist/service/ses/email/sim-ses-sent-email.js +61 -0
  761. package/dist/service/ses/email/sim-ses-sent-email.js.map +1 -0
  762. package/dist/service/ses/error/sim-ses.error.d.ts +70 -0
  763. package/dist/service/ses/error/sim-ses.error.d.ts.map +1 -0
  764. package/dist/service/ses/error/sim-ses.error.js +77 -0
  765. package/dist/service/ses/error/sim-ses.error.js.map +1 -0
  766. package/dist/service/ses/identity/sim-ses-identity-name.d.ts +34 -0
  767. package/dist/service/ses/identity/sim-ses-identity-name.d.ts.map +1 -0
  768. package/dist/service/ses/identity/sim-ses-identity-name.js +90 -0
  769. package/dist/service/ses/identity/sim-ses-identity-name.js.map +1 -0
  770. package/dist/service/ses/identity/sim-ses-identity-store.d.ts +62 -0
  771. package/dist/service/ses/identity/sim-ses-identity-store.d.ts.map +1 -0
  772. package/dist/service/ses/identity/sim-ses-identity-store.js +93 -0
  773. package/dist/service/ses/identity/sim-ses-identity-store.js.map +1 -0
  774. package/dist/service/ses/identity/sim-ses-identity.d.ts +63 -0
  775. package/dist/service/ses/identity/sim-ses-identity.d.ts.map +1 -0
  776. package/dist/service/ses/identity/sim-ses-identity.js +62 -0
  777. package/dist/service/ses/identity/sim-ses-identity.js.map +1 -0
  778. package/dist/service/ses/index.d.ts +13 -0
  779. package/dist/service/ses/index.d.ts.map +1 -0
  780. package/dist/service/ses/index.js +11 -0
  781. package/dist/service/ses/index.js.map +1 -0
  782. package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts +18 -0
  783. package/dist/service/ses/sdk/sim-ses-sdk-command-router.d.ts.map +1 -0
  784. package/dist/service/ses/sdk/sim-ses-sdk-command-router.js +72 -0
  785. package/dist/service/ses/sdk/sim-ses-sdk-command-router.js.map +1 -0
  786. package/dist/service/ses/sim-ses-arn.d.ts +20 -0
  787. package/dist/service/ses/sim-ses-arn.d.ts.map +1 -0
  788. package/dist/service/ses/sim-ses-arn.js +25 -0
  789. package/dist/service/ses/sim-ses-arn.js.map +1 -0
  790. package/dist/service/ses/sim-ses-commands.d.ts +37 -0
  791. package/dist/service/ses/sim-ses-commands.d.ts.map +1 -0
  792. package/dist/service/ses/sim-ses-commands.js +75 -0
  793. package/dist/service/ses/sim-ses-commands.js.map +1 -0
  794. package/dist/service/ses/sim-ses-v2.d.ts +139 -0
  795. package/dist/service/ses/sim-ses-v2.d.ts.map +1 -0
  796. package/dist/service/ses/sim-ses-v2.js +195 -0
  797. package/dist/service/ses/sim-ses-v2.js.map +1 -0
  798. package/dist/service/ses/template/sim-ses-render.d.ts +16 -0
  799. package/dist/service/ses/template/sim-ses-render.d.ts.map +1 -0
  800. package/dist/service/ses/template/sim-ses-render.js +88 -0
  801. package/dist/service/ses/template/sim-ses-render.js.map +1 -0
  802. package/dist/service/ses/template/sim-ses-template-content.d.ts +28 -0
  803. package/dist/service/ses/template/sim-ses-template-content.d.ts.map +1 -0
  804. package/dist/service/ses/template/sim-ses-template-content.js +67 -0
  805. package/dist/service/ses/template/sim-ses-template-content.js.map +1 -0
  806. package/dist/service/ses/template/sim-ses-template-store.d.ts +47 -0
  807. package/dist/service/ses/template/sim-ses-template-store.d.ts.map +1 -0
  808. package/dist/service/ses/template/sim-ses-template-store.js +81 -0
  809. package/dist/service/ses/template/sim-ses-template-store.js.map +1 -0
  810. package/dist/service/ses/template/sim-ses-template.d.ts +38 -0
  811. package/dist/service/ses/template/sim-ses-template.d.ts.map +1 -0
  812. package/dist/service/ses/template/sim-ses-template.js +39 -0
  813. package/dist/service/ses/template/sim-ses-template.js.map +1 -0
  814. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts +4 -3
  815. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.d.ts.map +1 -1
  816. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js +4 -3
  817. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-properties.js.map +1 -1
  818. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.d.ts +2 -2
  819. package/dist/service/sns/cfn/subscription/sim-cfn-sns-subscription-property-names.js +2 -2
  820. package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts +3 -0
  821. package/dist/service/sns/command/publish/sim-sns-publish-commands.d.ts.map +1 -1
  822. package/dist/service/sns/command/publish/sim-sns-publish-commands.js +4 -2
  823. package/dist/service/sns/command/publish/sim-sns-publish-commands.js.map +1 -1
  824. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts +39 -0
  825. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.d.ts.map +1 -0
  826. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js +42 -0
  827. package/dist/service/sns/command/publish/sim-sns-publish-dispatch.js.map +1 -0
  828. package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts +3 -3
  829. package/dist/service/sns/command/publish/sim-sns-publish-input.d.ts.map +1 -1
  830. package/dist/service/sns/command/publish/sim-sns-publish-input.js +8 -8
  831. package/dist/service/sns/command/publish/sim-sns-publish-input.js.map +1 -1
  832. package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts +38 -0
  833. package/dist/service/sns/command/publish/sim-sns-publish-sms.d.ts.map +1 -0
  834. package/dist/service/sns/command/publish/sim-sns-publish-sms.js +53 -0
  835. package/dist/service/sns/command/publish/sim-sns-publish-sms.js.map +1 -0
  836. package/dist/service/sns/command/sim-sns-command.types.d.ts +1 -0
  837. package/dist/service/sns/command/sim-sns-command.types.d.ts.map +1 -1
  838. package/dist/service/sns/command/sim-sns-commands.d.ts +12 -4
  839. package/dist/service/sns/command/sim-sns-commands.d.ts.map +1 -1
  840. package/dist/service/sns/command/sim-sns-commands.js +39 -4
  841. package/dist/service/sns/command/sim-sns-commands.js.map +1 -1
  842. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts +41 -0
  843. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.d.ts.map +1 -0
  844. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js +56 -0
  845. package/dist/service/sns/command/sms/sim-sns-opt-out-commands.js.map +1 -0
  846. package/dist/service/sns/command/sms/sms.command.d.ts +50 -0
  847. package/dist/service/sns/command/sms/sms.command.d.ts.map +1 -0
  848. package/dist/service/sns/command/sms/sms.command.js +2 -0
  849. package/dist/service/sns/command/sms/sms.command.js.map +1 -0
  850. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts +5 -6
  851. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.d.ts.map +1 -1
  852. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js +8 -12
  853. package/dist/service/sns/delivery/sim-aws-sns-delivery-endpoints.js.map +1 -1
  854. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts +6 -13
  855. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.d.ts.map +1 -1
  856. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js +13 -2
  857. package/dist/service/sns/delivery/sim-sns-no-delivery-endpoints.js.map +1 -1
  858. package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts +10 -1
  859. package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.d.ts.map +1 -1
  860. package/dist/service/sns/delivery/sim-sns-protocol-delivery-endpoints.js.map +1 -1
  861. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts +34 -0
  862. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.d.ts.map +1 -0
  863. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js +46 -0
  864. package/dist/service/sns/delivery/sms/sim-sns-delivery-sms.js.map +1 -0
  865. package/dist/service/sns/index.d.ts +5 -1
  866. package/dist/service/sns/index.d.ts.map +1 -1
  867. package/dist/service/sns/index.js +4 -1
  868. package/dist/service/sns/index.js.map +1 -1
  869. package/dist/service/sns/message/sim-sns-message-attribute-rules.d.ts.map +1 -1
  870. package/dist/service/sns/message/sim-sns-message-attribute-rules.js +9 -1
  871. package/dist/service/sns/message/sim-sns-message-attribute-rules.js.map +1 -1
  872. package/dist/service/sns/message/sim-sns-message-attributes.d.ts +8 -0
  873. package/dist/service/sns/message/sim-sns-message-attributes.d.ts.map +1 -1
  874. package/dist/service/sns/message/sim-sns-message-attributes.js +10 -0
  875. package/dist/service/sns/message/sim-sns-message-attributes.js.map +1 -1
  876. package/dist/service/sns/message/sim-sns-sms-attributes.d.ts +25 -0
  877. package/dist/service/sns/message/sim-sns-sms-attributes.d.ts.map +1 -0
  878. package/dist/service/sns/message/sim-sns-sms-attributes.js +46 -0
  879. package/dist/service/sns/message/sim-sns-sms-attributes.js.map +1 -0
  880. package/dist/service/sns/sdk/sim-sns-sdk-command-router.d.ts.map +1 -1
  881. package/dist/service/sns/sdk/sim-sns-sdk-command-router.js +12 -0
  882. package/dist/service/sns/sdk/sim-sns-sdk-command-router.js.map +1 -1
  883. package/dist/service/sns/sim-sns-sms.d.ts +63 -0
  884. package/dist/service/sns/sim-sns-sms.d.ts.map +1 -0
  885. package/dist/service/sns/sim-sns-sms.js +76 -0
  886. package/dist/service/sns/sim-sns-sms.js.map +1 -0
  887. package/dist/service/sns/sim-sns.d.ts +7 -15
  888. package/dist/service/sns/sim-sns.d.ts.map +1 -1
  889. package/dist/service/sns/sim-sns.js +23 -30
  890. package/dist/service/sns/sim-sns.js.map +1 -1
  891. package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts +40 -0
  892. package/dist/service/sns/sms/sim-sns-opt-out-list.d.ts.map +1 -0
  893. package/dist/service/sns/sms/sim-sns-opt-out-list.js +47 -0
  894. package/dist/service/sns/sms/sim-sns-opt-out-list.js.map +1 -0
  895. package/dist/service/sns/sms/sim-sns-phone-number.d.ts +21 -0
  896. package/dist/service/sns/sms/sim-sns-phone-number.d.ts.map +1 -0
  897. package/dist/service/sns/sms/sim-sns-phone-number.js +41 -0
  898. package/dist/service/sns/sms/sim-sns-phone-number.js.map +1 -0
  899. package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts +69 -0
  900. package/dist/service/sns/sms/sim-sns-sent-sms-message.d.ts.map +1 -0
  901. package/dist/service/sns/sms/sim-sns-sent-sms-message.js +71 -0
  902. package/dist/service/sns/sms/sim-sns-sent-sms-message.js.map +1 -0
  903. package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts +25 -0
  904. package/dist/service/sns/sms/sim-sns-sent-sms-store.d.ts.map +1 -0
  905. package/dist/service/sns/sms/sim-sns-sent-sms-store.js +28 -0
  906. package/dist/service/sns/sms/sim-sns-sent-sms-store.js.map +1 -0
  907. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts +9 -7
  908. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.d.ts.map +1 -1
  909. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js +7 -2
  910. package/dist/service/sns/subscription/sim-sns-subscription-endpoint.js.map +1 -1
  911. package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts +19 -1
  912. package/dist/service/sns/subscription/sim-sns-subscription-protocol.d.ts.map +1 -1
  913. package/dist/service/sns/subscription/sim-sns-subscription-protocol.js +26 -5
  914. package/dist/service/sns/subscription/sim-sns-subscription-protocol.js.map +1 -1
  915. package/dist/service/sqs/message/sim-sqs-message-body.d.ts +10 -5
  916. package/dist/service/sqs/message/sim-sqs-message-body.d.ts.map +1 -1
  917. package/dist/service/sqs/message/sim-sqs-message-body.js +13 -6
  918. package/dist/service/sqs/message/sim-sqs-message-body.js.map +1 -1
  919. package/dist/util/factory/sim-records-event.factory.d.ts +60 -0
  920. package/dist/util/factory/sim-records-event.factory.d.ts.map +1 -0
  921. package/dist/util/factory/sim-records-event.factory.js +47 -0
  922. package/dist/util/factory/sim-records-event.factory.js.map +1 -0
  923. package/package.json +12 -2
package/README.md CHANGED
@@ -23,6 +23,7 @@ npm i -D @kensio/yulin
23
23
  - [API Gateway HTTP APIs](./docs/services/apigatewayv2 "Simulated API Gateway HTTP API docs")
24
24
  - [CloudFormation](./docs/services/cloudformation "Simulated CloudFormation docs")
25
25
  - [CloudFront](./docs/services/cloudfront "Simulated CloudFront docs")
26
+ - [CloudWatch metrics](./docs/services/cloudwatch "Simulated CloudWatch metrics docs")
26
27
  - [Cognito user pools](./docs/services/cognito "Simulated Cognito user pools docs")
27
28
  - [DynamoDB](./docs/services/dynamodb "Simulated DynamoDB docs")
28
29
  - [ECR](./docs/services/ecr "Simulated ECR docs")
@@ -37,6 +38,7 @@ npm i -D @kensio/yulin
37
38
  - [S3](./docs/services/s3 "Simulated S3 docs")
38
39
  - [Scheduler](./docs/services/scheduler "Simulated EventBridge Scheduler docs")
39
40
  - [Secrets Manager](./docs/services/secretsmanager "Simulated Secrets Manager docs")
41
+ - [SES](./docs/services/ses "Simulated SES docs")
40
42
  - [SNS](./docs/services/sns "Simulated SNS docs")
41
43
  - [SQS](./docs/services/sqs "Simulated SQS docs")
42
44
  - [SSM Parameter Store](./docs/services/ssm "Simulated SSM Parameter Store docs")
@@ -52,9 +54,9 @@ npm i -D @kensio/yulin
52
54
 
53
55
  ### Intercept AWS SDK clients
54
56
 
55
- If your code uses the AWS SDK, you can intercept AWS SDK clients and route their Commands to
56
- simulated AWS services. Your implementation code uses the SDK as normal and never needs to know that
57
- it's dealing with a simulator behind the scenes:
57
+ If your code uses the AWS SDK, you can intercept its clients and route their Commands to simulated
58
+ AWS services. Your implementation code uses the SDK as normal and never needs to know a simulator is
59
+ answering:
58
60
 
59
61
  ```typescript
60
62
  import {
@@ -88,9 +90,9 @@ simSdk.restoreAll(); // Or `using simSdk = new SimSdk();` to restore on scope ex
88
90
  ```
89
91
 
90
92
  You can intercept a client class, as above, or a single client instance. The simulated Account and
91
- Region scope is resolved per send: the Region comes from the sending client's configuration, and
92
- the Account from the ambient `simAws.runAs(...)` caller when one is set, falling back to the
93
- simulation defaults.
93
+ Region scope is resolved per send. The Region comes from the sending client's configuration, and the
94
+ Account from the ambient `simAws.runAs(...)` caller when one is set, falling back to the simulation
95
+ defaults.
94
96
 
95
97
  Each `SimSdk` owns its own isolated simulated AWS, available as `simSdk.simAws` when a test needs
96
98
  to seed or inspect simulated state directly. To share state with an existing simulation, wrap it
@@ -128,8 +130,8 @@ await simAws.region("eu-west-2").dynamoDb().createTable({ ... });
128
130
  await simAws.account("111111111111").region("eu-west-2").dynamoDb().createTable({ ... });
129
131
  ```
130
132
 
131
- AWS state is simulated internally, so you can test realistic interactions with multiple AWS
132
- services.
133
+ AWS state is simulated internally. A test can drive realistic interactions across several AWS
134
+ services at once.
133
135
 
134
136
  An Account ID is a plain string wherever one is accepted. Code that wants to name the type can get a
135
137
  `SimAwsAccountId` from `simAwsAccountId(...)`, which refuses anything that is not a 12-digit AWS
@@ -142,8 +144,8 @@ const accountId = simAwsAccountId("111111111111");
142
144
  const someOtherAccountId = makeSimAwsAccountId();
143
145
  ```
144
146
 
145
- Each instance of `SimAws` is cheap and encapsulated so you can create them wherever you need them.
146
- It's fine to create a new instance of `SimAws` in every test case or in shared test setup.
147
+ Each instance of `SimAws` is cheap and encapsulated. Make one wherever you need it, in every test
148
+ case or in shared test setup, whichever suits.
147
149
 
148
150
  If you prefer, you can also instantiate simulated services individually:
149
151
 
@@ -207,7 +209,7 @@ const res = await fetch(new URL("/foo/", bucketWebsiteUrl));
207
209
  #### Send requests without a port
208
210
 
209
211
  A test usually wants the same requests with nothing listening. `SimAwsHttp` answers a Fetch API
210
- `Request` with a `Response` in process, so there is no port for parallel test files to collide over,
212
+ `Request` with a `Response` in process. There is no port for parallel test files to collide over,
211
213
  and no server to start or tear down:
212
214
 
213
215
  ```typescript
@@ -222,24 +224,24 @@ const simAwsHttp = new SimAwsHttp({ simAws });
222
224
  const response = await simAwsHttp.fetch("https://www.example.com/");
223
225
  ```
224
226
 
225
- Nothing binds a port, so a URL a simulated service gives out is fetched as it is, with no
226
- `localUrl(...)` adapting, and a hostname a simulated Route53 answers for is requested by its own
227
- name. Both routes go through the same authentication, routing and service code, so `serveSimAws` is
228
- what you want only when the request comes from outside the process. See the
229
- [serving docs](./docs/serve "Serving simulated AWS on localhost docs") for which to reach for.
227
+ A URL a simulated service gives out is fetched as it is, with no `localUrl(...)` adapting, and a
228
+ hostname a simulated Route53 answers for is requested by its own name. Both routes go through the
229
+ same authentication, routing and service code. Reach for `serveSimAws` when the request comes from
230
+ outside the process. See the
231
+ [serving docs](./docs/serve "Serving simulated AWS on localhost docs") for how to choose.
230
232
 
231
233
  #### Restarting a served environment
232
234
 
233
- A served environment takes an available port by default, so the URL changes every time the process
235
+ A served environment takes an available port by default. The URL changes every time the process
234
236
  starts. Pin a port to keep the URL the same across restarts:
235
237
 
236
238
  ```typescript
237
239
  const srv = await serveSimAws({ simAws, port: 4599 });
238
240
  ```
239
241
 
240
- Closing the server ends the connections it is holding, so the process can exit rather than being
241
- kept alive by a browser tab. Yulin does not install signal handlers, so call `close()` from your
242
- own:
242
+ Closing the server ends the connections it is holding, and the process can then exit. An open
243
+ browser tab would otherwise keep it alive. Yulin installs no signal handlers, so call `close()` from
244
+ your own:
243
245
 
244
246
  ```typescript
245
247
  process.on("SIGTERM", () => {
@@ -248,12 +250,12 @@ process.on("SIGTERM", () => {
248
250
  ```
249
251
 
250
252
  A restart usually overlaps the process it is replacing. `listen` waits a couple of seconds for a
251
- pinned port that is still held, then throws `SimAwsLocalPortInUse` naming the port, which means
252
- something other than the outgoing process owns it.
253
+ pinned port that is still held, then throws `SimAwsLocalPortInUse` naming the port. Something other
254
+ than the outgoing process owns it by then.
253
255
 
254
256
  #### Reload the browser on a restart
255
257
 
256
- Yulin is the only thing in the response path of a page it serves, so it can tell the browser to
258
+ Yulin is the only thing in the response path of a page it serves, and it can tell the browser to
257
259
  reload. Turning `liveReload` on puts a small script into the HTML pages served to browsers, and the
258
260
  page reloads itself when the process restarts:
259
261
 
@@ -271,16 +273,15 @@ the page refreshed:
271
273
  yulin watch -- tsx dev.ts
272
274
  ```
273
275
 
274
- It watches the working directory, plus the paths Yulin is holding that a module graph never mentions:
275
- a directory mounted into a Bucket, and a synthesized template. See the
276
+ It watches the working directory. It also watches the paths Yulin is holding that a module graph
277
+ never mentions, a directory mounted into a Bucket and a synthesized template. See the
276
278
  [serving docs](./docs/serve "Serving simulated AWS on localhost docs") for what gets the script, what
277
279
  is watched, and what is not.
278
280
 
279
281
  #### Update a stack when its template changes
280
282
 
281
- A synthesized template is data rather than code, so a change to one does not need the process
282
- restarted. Deploy it with `watch` and Yulin applies the file again whenever it changes, updating the
283
- stack in place:
283
+ A synthesized template is data, and a change to one needs no restart. Deploy it with `watch` and
284
+ Yulin applies the file again whenever it changes, updating the stack in place:
284
285
 
285
286
  ```typescript
286
287
  await simAws.cloudFormation().deployTemplateFile({
@@ -294,8 +295,8 @@ await simAws.cloudFormation().deployTemplateFile({
294
295
  ```
295
296
 
296
297
  Resources the change left alone keep what they hold, so simulated S3, DynamoDB and SQS survive a
297
- `cdk synth`. Under `yulin watch` the template is left to the process watching it rather than being a
298
- reason to restart. See the
298
+ `cdk synth`. Under `yulin watch` the template is left to the process watching it, and never triggers
299
+ a restart. See the
299
300
  [CloudFormation docs](./docs/services/cloudformation "Simulated CloudFormation docs") for what an
300
301
  update does to each resource.
301
302
 
@@ -326,37 +327,36 @@ await simAws.clock().advanceBy({ minutes: 20 });
326
327
  // Those session credentials have now expired.
327
328
  ```
328
329
 
329
- Advancing runs whatever falls due during the interval and returns once the simulation has settled,
330
- so the next line can assert. Time belongs to the `SimAws` instance, so moving it never disturbs
331
- another simulation, or the real clock. See the
330
+ Advancing runs whatever falls due during the interval and returns once the simulation has settled.
331
+ The next line can assert. Time belongs to the `SimAws` instance, so moving it never disturbs another
332
+ simulation, or the real clock. See the
332
333
  [simulated time docs](./docs/time "Simulated time docs") for full usage.
333
334
 
334
- ## What is yulin?
335
+ ## What is Yulin?
335
336
 
336
- TLDR: yulin is an AWS simulator for testing Node.js applications.
337
+ TLDR: Yulin is an AWS simulator for testing Node.js applications.
337
338
 
338
- The simulation is not only local to the machine, but in the same single process
339
- with the test and application under test. No network or external i/o is
340
- involved. This is what "isolated" refers to.
339
+ The simulation runs in the same single process as the test and the application
340
+ under test, and not just on the same machine. No network or external i/o is
341
+ involved. That is what "isolated" refers to.
341
342
 
342
343
  This "isolated system" approach to testing has a few advantages:
343
344
 
344
345
  - Tests run fast as everything is in memory with no real networking.
345
- - Test set-up is fast and uncomplicated, as there are no containers or extra
346
+ - Test set-up is quick and uncomplicated, as there are no containers or extra
346
347
  dependencies to manage.
347
348
  - It's straightforward to use multiple other mocks and simulators alongside
348
- yulin, such as [nock](https://github.com/nock/nock), as yulin makes no
349
+ Yulin, such as [nock](https://github.com/nock/nock), as Yulin makes no
349
350
  assumptions about the environment.
350
- - You can control everything in each isolated test process, such as controlling
351
- the current time, even when multiple different AWS services are simulated.
351
+ - You can control everything in each isolated test process, including the
352
+ current time, even when multiple different AWS services are simulated.
352
353
  - One test can cover **meaningful system behaviour** across multiple AWS
353
354
  services and applications, such as Lambdas sending events to SQS queues to be
354
355
  picked up by other Lambdas, or DynamoDB streams triggering Lambdas.
355
356
 
356
- That last point is the most important. The motivation behind yulin is to enable
357
- efficient tests that cover the logical behaviour of a system. That is in
358
- contrast to less valuable microscopic unit tests with fiddly mocks and brittle
359
- assertions. The goal of yulin is to allow you to test system behaviours that are
357
+ That last point matters most. Yulin exists to make efficient tests that cover
358
+ the logical behaviour of a system, in contrast to microscopic unit tests with
359
+ fiddly mocks and brittle assertions. The behaviours worth testing are the ones
360
360
  meaningful to users and stakeholders.
361
361
 
362
362
  ## What's in a name?
@@ -44,6 +44,16 @@ export declare class SimSdkAlreadyInterceptedError extends SimSdkError {
44
44
  export declare class SimSdkCallbackNotSupportedError extends SimSdkError {
45
45
  readonly name = "SimSdkCallbackNotSupportedError";
46
46
  }
47
+ /**
48
+ * A serialized AWS API request cannot be routed into the simulation.
49
+ *
50
+ * Raised for a request from an SDK bundled into the code it runs, where there
51
+ * is no Command object left to intercept and the request itself is all there
52
+ * is to route.
53
+ */
54
+ export declare class SimSdkUnbridgedWireRequestError extends SimSdkError {
55
+ readonly name = "SimSdkUnbridgedWireRequestError";
56
+ }
47
57
  /**
48
58
  * A simulated SDK stream body was consumed more than once.
49
59
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-sdk.error.d.ts","sourceRoot":"","sources":["../../../src/sdk/error/sim-sdk.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD,SAAyB,IAAI,8BAA8B;CAC5D;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,SAAyB,IAAI,+BAA+B;CAC7D;AAED;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,WAAW;IAC5D,SAAyB,IAAI,mCAAmC;CACjE;AAED;;GAEG;AACH,qBAAa,gCAAiC,SAAQ,WAAW;IAC/D,SAAyB,IAAI,sCAAsC;CACpE;AAED;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,WAAW;IAC5D,SAAyB,IAAI,mCAAmC;CACjE;AAED;;;GAGG;AACH,qBAAa,+BAAgC,SAAQ,WAAW;IAC9D,SAAyB,IAAI,qCAAqC;CACnE;AAED;;GAEG;AACH,qBAAa,gCAAiC,SAAQ,WAAW;IAC/D,SAAyB,IAAI,sCAAsC;CACpE"}
1
+ {"version":3,"file":"sim-sdk.error.d.ts","sourceRoot":"","sources":["../../../src/sdk/error/sim-sdk.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD,SAAyB,IAAI,8BAA8B;CAC5D;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACxD,SAAyB,IAAI,+BAA+B;CAC7D;AAED;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,WAAW;IAC5D,SAAyB,IAAI,mCAAmC;CACjE;AAED;;GAEG;AACH,qBAAa,gCAAiC,SAAQ,WAAW;IAC/D,SAAyB,IAAI,sCAAsC;CACpE;AAED;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,WAAW;IAC5D,SAAyB,IAAI,mCAAmC;CACjE;AAED;;;GAGG;AACH,qBAAa,+BAAgC,SAAQ,WAAW;IAC9D,SAAyB,IAAI,qCAAqC;CACnE;AAED;;;;;;GAMG;AACH,qBAAa,+BAAgC,SAAQ,WAAW;IAC9D,SAAyB,IAAI,qCAAqC;CACnE;AAED;;GAEG;AACH,qBAAa,gCAAiC,SAAQ,WAAW;IAC/D,SAAyB,IAAI,sCAAsC;CACpE"}
@@ -44,6 +44,16 @@ export class SimSdkAlreadyInterceptedError extends SimSdkError {
44
44
  export class SimSdkCallbackNotSupportedError extends SimSdkError {
45
45
  name = "SimSdkCallbackNotSupportedError";
46
46
  }
47
+ /**
48
+ * A serialized AWS API request cannot be routed into the simulation.
49
+ *
50
+ * Raised for a request from an SDK bundled into the code it runs, where there
51
+ * is no Command object left to intercept and the request itself is all there
52
+ * is to route.
53
+ */
54
+ export class SimSdkUnbridgedWireRequestError extends SimSdkError {
55
+ name = "SimSdkUnbridgedWireRequestError";
56
+ }
47
57
  /**
48
58
  * A simulated SDK stream body was consumed more than once.
49
59
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-sdk.error.js","sourceRoot":"","sources":["../../../src/sdk/error/sim-sdk.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;CAAG;AAEzC;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IAC9B,IAAI,GAAG,0BAA0B,CAAC;CAC5D;AAED;;;GAGG;AACH,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IAC/B,IAAI,GAAG,2BAA2B,CAAC;CAC7D;AAED;;GAEG;AACH,MAAM,OAAO,6BAA8B,SAAQ,WAAW;IACnC,IAAI,GAAG,+BAA+B,CAAC;CACjE;AAED;;GAEG;AACH,MAAM,OAAO,gCAAiC,SAAQ,WAAW;IACtC,IAAI,GAAG,kCAAkC,CAAC;CACpE;AAED;;;;;GAKG;AACH,MAAM,OAAO,6BAA8B,SAAQ,WAAW;IACnC,IAAI,GAAG,+BAA+B,CAAC;CACjE;AAED;;;GAGG;AACH,MAAM,OAAO,+BAAgC,SAAQ,WAAW;IACrC,IAAI,GAAG,iCAAiC,CAAC;CACnE;AAED;;GAEG;AACH,MAAM,OAAO,gCAAiC,SAAQ,WAAW;IACtC,IAAI,GAAG,kCAAkC,CAAC;CACpE"}
1
+ {"version":3,"file":"sim-sdk.error.js","sourceRoot":"","sources":["../../../src/sdk/error/sim-sdk.error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;CAAG;AAEzC;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IAC9B,IAAI,GAAG,0BAA0B,CAAC;CAC5D;AAED;;;GAGG;AACH,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IAC/B,IAAI,GAAG,2BAA2B,CAAC;CAC7D;AAED;;GAEG;AACH,MAAM,OAAO,6BAA8B,SAAQ,WAAW;IACnC,IAAI,GAAG,+BAA+B,CAAC;CACjE;AAED;;GAEG;AACH,MAAM,OAAO,gCAAiC,SAAQ,WAAW;IACtC,IAAI,GAAG,kCAAkC,CAAC;CACpE;AAED;;;;;GAKG;AACH,MAAM,OAAO,6BAA8B,SAAQ,WAAW;IACnC,IAAI,GAAG,+BAA+B,CAAC;CACjE;AAED;;;GAGG;AACH,MAAM,OAAO,+BAAgC,SAAQ,WAAW;IACrC,IAAI,GAAG,iCAAiC,CAAC;CACnE;AAED;;;;;;GAMG;AACH,MAAM,OAAO,+BAAgC,SAAQ,WAAW;IACrC,IAAI,GAAG,iCAAiC,CAAC;CACnE;AAED;;GAEG;AACH,MAAM,OAAO,gCAAiC,SAAQ,WAAW;IACtC,IAAI,GAAG,kCAAkC,CAAC;CACpE"}
@@ -6,5 +6,5 @@ export { simSdkCallerOptions } from "./router/sim-sdk-caller-options.js";
6
6
  export type { SimSdkCallerOptions } from "./router/sim-sdk-caller-options.js";
7
7
  export { simSdkStreamBody } from "./stream/sim-sdk-stream-body.js";
8
8
  export type { SimSdkStreamBody, SimSdkStreamBodyMethods, } from "./stream/sim-sdk-stream-body.js";
9
- export { SimSdkError, SimSdkAlreadyInterceptedError, SimSdkCallbackNotSupportedError, SimSdkCommandNotInterceptedError, SimSdkInvalidClientError, SimSdkStreamAlreadyConsumedError, SimSdkUnknownServiceError, SimSdkUnsupportedCommandError, } from "./error/sim-sdk.error.js";
9
+ export { SimSdkError, SimSdkAlreadyInterceptedError, SimSdkCallbackNotSupportedError, SimSdkCommandNotInterceptedError, SimSdkInvalidClientError, SimSdkStreamAlreadyConsumedError, SimSdkUnbridgedWireRequestError, SimSdkUnknownServiceError, SimSdkUnsupportedCommandError, } from "./error/sim-sdk.error.js";
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,YAAY,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,YAAY,EACV,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,gCAAgC,EAChC,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,YAAY,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,YAAY,EACV,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,gCAAgC,EAChC,wBAAwB,EACxB,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC"}
package/dist/sdk/index.js CHANGED
@@ -2,5 +2,5 @@ export { SimSdk } from "./sim-sdk.js";
2
2
  export { SimSdkInterception } from "./sim-sdk-interception.js";
3
3
  export { simSdkCallerOptions } from "./router/sim-sdk-caller-options.js";
4
4
  export { simSdkStreamBody } from "./stream/sim-sdk-stream-body.js";
5
- export { SimSdkError, SimSdkAlreadyInterceptedError, SimSdkCallbackNotSupportedError, SimSdkCommandNotInterceptedError, SimSdkInvalidClientError, SimSdkStreamAlreadyConsumedError, SimSdkUnknownServiceError, SimSdkUnsupportedCommandError, } from "./error/sim-sdk.error.js";
5
+ export { SimSdkError, SimSdkAlreadyInterceptedError, SimSdkCallbackNotSupportedError, SimSdkCommandNotInterceptedError, SimSdkInvalidClientError, SimSdkStreamAlreadyConsumedError, SimSdkUnbridgedWireRequestError, SimSdkUnknownServiceError, SimSdkUnsupportedCommandError, } from "./error/sim-sdk.error.js";
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAMtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAO/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,gCAAgC,EAChC,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAMtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAO/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,gCAAgC,EAChC,wBAAwB,EACxB,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,EACzB,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-sim-sdk-command-router.d.ts","sourceRoot":"","sources":["../../../src/sdk/router/resolve-sim-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAkG5E;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,eAAe,GAAG,MAAM,EACnC,UAAU,EAAE,aAAa,GACxB,mBAAmB,CAWrB"}
1
+ {"version":3,"file":"resolve-sim-sdk-command-router.d.ts","sourceRoot":"","sources":["../../../src/sdk/router/resolve-sim-sdk-command-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAuG5E;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,eAAe,GAAG,MAAM,EACnC,UAAU,EAAE,aAAa,GACxB,mBAAmB,CAWrB"}
@@ -28,6 +28,10 @@ const scopedRouters = new Map([
28
28
  "CloudFront KeyValueStore",
29
29
  (scoped) => scoped.cloudFrontKeyValueStore().sdkCommandRouter(),
30
30
  ],
31
+ [
32
+ "CloudWatch",
33
+ (scoped) => scoped.cloudWatch().sdkCommandRouter(),
34
+ ],
31
35
  [
32
36
  "Cognito Identity Provider",
33
37
  (scoped) => scoped.cognitoIdentityProvider().sdkCommandRouter(),
@@ -76,6 +80,7 @@ const scopedRouters = new Map([
76
80
  "Secrets Manager",
77
81
  (scoped) => scoped.secretsManager().sdkCommandRouter(),
78
82
  ],
83
+ ["SESv2", (scoped) => scoped.sesV2().sdkCommandRouter()],
79
84
  ["SNS", (scoped) => scoped.sns().sdkCommandRouter()],
80
85
  ["SQS", (scoped) => scoped.sqs().sdkCommandRouter()],
81
86
  ["SSM", (scoped) => scoped.ssm().sdkCommandRouter()],
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-sim-sdk-command-router.js","sourceRoot":"","sources":["../../../src/sdk/router/resolve-sim-sdk-command-router.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAUtE;;;;;;;;;;GAUG;AACH,MAAM,aAAa,GAA4C,IAAI,GAAG,CAGpE;IACA,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE;QACE,cAAc;QACd,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,gBAAgB,EAAE;KAC1E;IACD;QACE,gBAAgB;QAChB,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,gBAAgB,EAAE;KAC5E;IACD;QACE,YAAY;QACZ,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,gBAAgB,EAAE;KACxE;IACD;QACE,0BAA0B;QAC1B,CAAC,MAAM,EAAuB,EAAE,CAC9B,MAAM,CAAC,uBAAuB,EAAE,CAAC,gBAAgB,EAAE;KACtD;IACD;QACE,2BAA2B;QAC3B,CAAC,MAAM,EAAuB,EAAE,CAC9B,MAAM,CAAC,uBAAuB,EAAE,CAAC,gBAAgB,EAAE;KACtD;IACD;QACE,UAAU;QACV,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,gBAAgB,EAAE;KACtE;IACD;QACE,kBAAkB;QAClB,CAAC,MAAM,EAAuB,EAAE,CAC9B,MAAM,CAAC,eAAe,EAAE,CAAC,gBAAgB,EAAE;KAC9C;IACD,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE;QACE,2BAA2B;QAC3B,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,gBAAgB,EAAE;KACnE;IACD;QACE,aAAa;QACb,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,gBAAgB,EAAE;KACzE;IACD,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE;QACE,QAAQ;QACR,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE;KACpE;IACD;QACE,iBAAiB;QACjB,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,gBAAgB,EAAE;KAClE;IACD;QACE,aAAa;QACb,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,gBAAgB,EAAE;KACzE;IACD;QACE,UAAU;QACV,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAE;KACrE;IACD,CAAC,IAAI,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvE;QACE,WAAW;QACX,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,gBAAgB,EAAE;KACvE;IACD;QACE,iBAAiB;QACjB,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC,gBAAgB,EAAE;KAC5E;IACD,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE,CAAC,KAAK,EAAE,CAAC,MAAM,EAAuB,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAAC;CAC1E,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,MAAM,UAAU,0BAA0B,CACxC,MAAc,EACd,SAAiB,EACjB,SAAmC,EACnC,UAAyB;IAEzB,MAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAElD,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,MAAM,IAAI,yBAAyB,CACjC,4DAA4D;YAC1D,GAAG,SAAS,MAAM,CACrB,CAAC;IACJ,CAAC;IAED,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AACpE,CAAC"}
1
+ {"version":3,"file":"resolve-sim-sdk-command-router.js","sourceRoot":"","sources":["../../../src/sdk/router/resolve-sim-sdk-command-router.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Build the SDK Command a wire request was serialized from.
3
+ *
4
+ * Command routing is by Command class name and Command input, so a Command
5
+ * rebuilt with the name the request named and the input it carried routes to
6
+ * exactly the operation the real Command would have. Constructing the SDK's own
7
+ * Command class instead would mean requiring the client package for every
8
+ * service a bundled function might call, to end up at the same two values.
9
+ */
10
+ export declare function makeSimSdkWireCommand(commandName: string, input: unknown): object;
11
+ /**
12
+ * Build the SDK client a wire request would have been sent by.
13
+ *
14
+ * The dispatcher reads only the resolved service identity and Region from a
15
+ * client, which the request states itself: the service in its operation header
16
+ * and the Region in its credential scope. Nothing else about a client survives
17
+ * serialization, and nothing else is needed.
18
+ */
19
+ export declare function makeSimSdkWireClient(serviceId: string, regionName: string): object;
20
+ //# sourceMappingURL=sim-sdk-wire-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-sdk-wire-command.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,OAAO,GACb,MAAM,CAOR;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACjB,MAAM,CAER"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Build the SDK Command a wire request was serialized from.
3
+ *
4
+ * Command routing is by Command class name and Command input, so a Command
5
+ * rebuilt with the name the request named and the input it carried routes to
6
+ * exactly the operation the real Command would have. Constructing the SDK's own
7
+ * Command class instead would mean requiring the client package for every
8
+ * service a bundled function might call, to end up at the same two values.
9
+ */
10
+ export function makeSimSdkWireCommand(commandName, input) {
11
+ class SimSdkWireCommand {
12
+ input;
13
+ constructor(input) {
14
+ this.input = input;
15
+ }
16
+ }
17
+ Object.defineProperty(SimSdkWireCommand, "name", { value: commandName });
18
+ return new SimSdkWireCommand(input);
19
+ }
20
+ /**
21
+ * Build the SDK client a wire request would have been sent by.
22
+ *
23
+ * The dispatcher reads only the resolved service identity and Region from a
24
+ * client, which the request states itself: the service in its operation header
25
+ * and the Region in its credential scope. Nothing else about a client survives
26
+ * serialization, and nothing else is needed.
27
+ */
28
+ export function makeSimSdkWireClient(serviceId, regionName) {
29
+ return { config: { serviceId, region: regionName } };
30
+ }
31
+ //# sourceMappingURL=sim-sdk-wire-command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-sdk-wire-command.js","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CACnC,WAAmB,EACnB,KAAc;IAEd,MAAM,iBAAiB;QACO,KAAK;QAAjC,YAA4B,KAAc;yBAAd,KAAK;QAAY,CAAC;KAC/C;IACD,MAAM,CAAC,cAAc,CAAC,iBAAiB,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;IAEzE,OAAO,IAAI,iBAAiB,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAClC,SAAiB,EACjB,UAAkB;IAElB,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC;AACvD,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { AwsRegionName } from "../../service/aws/sim-aws-region.js";
2
+ import type { SimAws } from "../../service/aws/sim-aws.js";
3
+ import type { SimSdkWireRequest, SimSdkWireResponse } from "./sim-sdk-wire.types.js";
4
+ /**
5
+ * Dispatches AWS API requests to simulated AWS service operations.
6
+ *
7
+ * This is SDK interception below the module boundary: where the module
8
+ * interceptor patches a client class before the SDK serializes anything, this
9
+ * reads a request the SDK has already serialized and signed, and routes it to
10
+ * the same simulated operation. That is what a deployment package bundling the
11
+ * SDK leaves available, and it is also closer to how the real thing works, in
12
+ * that the simulation answers a request rather than replacing a client.
13
+ *
14
+ * The Account/Region scope and the caller are resolved per request by the same
15
+ * dispatcher an intercepted client uses, so an ambient caller such as a sim
16
+ * Lambda execution role applies here in exactly the same way.
17
+ */
18
+ export declare class SimSdkWireDispatcher {
19
+ private readonly dispatcher;
20
+ private readonly regionName;
21
+ /**
22
+ * The fallback Region answers a request whose credential scope names none,
23
+ * and is the Region the code making the request is running in.
24
+ */
25
+ constructor(simAws: SimAws, fallbackRegionName?: AwsRegionName);
26
+ /**
27
+ * Answer one AWS API request from the simulation.
28
+ *
29
+ * A request the simulation refuses comes back as the failure response real
30
+ * AWS would send, because that is an answer: the SDK that sent it will turn
31
+ * it back into the exception the calling code expects to catch. Only a
32
+ * request that cannot be routed at all is thrown, since there is no response
33
+ * that would mean what happened.
34
+ */
35
+ dispatch(request: SimSdkWireRequest): Promise<SimSdkWireResponse>;
36
+ /**
37
+ * Route a request to the operation it names, in the Region it was signed
38
+ * for or, unsigned, the Region of the code that sent it.
39
+ */
40
+ private route;
41
+ }
42
+ //# sourceMappingURL=sim-sdk-wire-dispatcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-sdk-wire-dispatcher.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAiB3D,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAE3C;;;OAGG;IACH,YAAY,MAAM,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,aAAa,EAG7D;IAED;;;;;;;;OAQG;IACG,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAetE;IAED;;;OAGG;YACW,KAAK;CAkBpB"}
@@ -0,0 +1,63 @@
1
+ import { SimSdkCommandDispatcher } from "../sim-sdk-command-dispatcher.js";
2
+ import { makeSimSdkWireClient, makeSimSdkWireCommand, } from "./sim-sdk-wire-command.js";
3
+ import { readSimSdkWireInput } from "./sim-sdk-wire-json.js";
4
+ import { readSimSdkWireCredentialScope, readSimSdkWireOperation, } from "./sim-sdk-wire-operation.js";
5
+ import { simSdkWireErrorResponse, simSdkWireOutputResponse, } from "./sim-sdk-wire-response.js";
6
+ import { simSdkUnbridgedWireRequest } from "./sim-sdk-wire-unbridged.js";
7
+ /**
8
+ * Dispatches AWS API requests to simulated AWS service operations.
9
+ *
10
+ * This is SDK interception below the module boundary: where the module
11
+ * interceptor patches a client class before the SDK serializes anything, this
12
+ * reads a request the SDK has already serialized and signed, and routes it to
13
+ * the same simulated operation. That is what a deployment package bundling the
14
+ * SDK leaves available, and it is also closer to how the real thing works, in
15
+ * that the simulation answers a request rather than replacing a client.
16
+ *
17
+ * The Account/Region scope and the caller are resolved per request by the same
18
+ * dispatcher an intercepted client uses, so an ambient caller such as a sim
19
+ * Lambda execution role applies here in exactly the same way.
20
+ */
21
+ export class SimSdkWireDispatcher {
22
+ dispatcher;
23
+ regionName;
24
+ /**
25
+ * The fallback Region answers a request whose credential scope names none,
26
+ * and is the Region the code making the request is running in.
27
+ */
28
+ constructor(simAws, fallbackRegionName) {
29
+ this.dispatcher = new SimSdkCommandDispatcher(simAws);
30
+ this.regionName = fallbackRegionName ?? simAws.defaultRegionName;
31
+ }
32
+ /**
33
+ * Answer one AWS API request from the simulation.
34
+ *
35
+ * A request the simulation refuses comes back as the failure response real
36
+ * AWS would send, because that is an answer: the SDK that sent it will turn
37
+ * it back into the exception the calling code expects to catch. Only a
38
+ * request that cannot be routed at all is thrown, since there is no response
39
+ * that would mean what happened.
40
+ */
41
+ async dispatch(request) {
42
+ const operation = readSimSdkWireOperation(request);
43
+ if (operation === undefined) {
44
+ throw simSdkUnbridgedWireRequest(request);
45
+ }
46
+ const contentType = request.headers["content-type"];
47
+ try {
48
+ return simSdkWireOutputResponse(await this.route(request, operation), contentType);
49
+ }
50
+ catch (error) {
51
+ return simSdkWireErrorResponse(error, contentType);
52
+ }
53
+ }
54
+ /**
55
+ * Route a request to the operation it names, in the Region it was signed
56
+ * for or, unsigned, the Region of the code that sent it.
57
+ */
58
+ async route(request, operation) {
59
+ const scope = readSimSdkWireCredentialScope(request);
60
+ return await this.dispatcher.dispatch(makeSimSdkWireCommand(operation.commandName, readSimSdkWireInput(request.body)), makeSimSdkWireClient(operation.serviceId, scope?.regionName ?? this.regionName), undefined);
61
+ }
62
+ }
63
+ //# sourceMappingURL=sim-sdk-wire-dispatcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-sdk-wire-dispatcher.js","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-dispatcher.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,GAExB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAMzE;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,oBAAoB;IACd,UAAU,CAA0B;IACpC,UAAU,CAAgB;IAE3C;;;OAGG;IACH,YAAY,MAAc,EAAE,kBAAkC;QAC5D,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,UAAU,GAAG,kBAAkB,IAAI,MAAM,CAAC,iBAAiB,CAAC;IACnE,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,QAAQ,CAAC,OAA0B;QACvC,MAAM,SAAS,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACnD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,0BAA0B,CAAC,OAAO,CAAC,CAAC;QAC5C,CAAC;QAED,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QACpD,IAAI,CAAC;YACH,OAAO,wBAAwB,CAC7B,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,EACpC,WAAW,CACZ,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,uBAAuB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,KAAK,CACjB,OAA0B,EAC1B,SAA8B;QAE9B,MAAM,KAAK,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;QAErD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CACnC,qBAAqB,CACnB,SAAS,CAAC,WAAW,EACrB,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,CAClC,EACD,oBAAoB,CAClB,SAAS,CAAC,SAAS,EACnB,KAAK,EAAE,UAAU,IAAI,IAAI,CAAC,UAAU,CACrC,EACD,SAAS,CACV,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Read an AWS JSON protocol request body as the Command input it was
3
+ * serialized from.
4
+ *
5
+ * An operation taking no input sends an empty body, which is the input `{}`.
6
+ *
7
+ * The wire shapes of the JSON protocols are the Command input shapes, member
8
+ * for member, which is what makes this readable without the operation's
9
+ * schema. The two exceptions are the shapes the JSON encoding cannot carry:
10
+ * blobs travel base64-encoded and timestamps as epoch seconds, and only the
11
+ * schema says which members those are. A value written and read back through
12
+ * this bridge round-trips regardless, because both directions leave it
13
+ * untouched.
14
+ */
15
+ export declare function readSimSdkWireInput(body: Uint8Array): unknown;
16
+ /**
17
+ * Serialize a simulated service operation output as an AWS JSON protocol
18
+ * response body.
19
+ *
20
+ * Blobs and timestamps are encoded as the protocol carries them, because the
21
+ * SDK that will read this back decodes them by schema: an ISO date string
22
+ * where it expects epoch seconds fails to parse, rather than arriving as the
23
+ * wrong value.
24
+ */
25
+ export declare function simSdkWireJsonBody(value: unknown): Uint8Array;
26
+ //# sourceMappingURL=sim-sdk-wire-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-sdk-wire-json.d.ts","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-json.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAM7D;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAE7D"}
@@ -0,0 +1,59 @@
1
+ import { isRecord } from "../../util/type-guard/record.js";
2
+ /**
3
+ * Read an AWS JSON protocol request body as the Command input it was
4
+ * serialized from.
5
+ *
6
+ * An operation taking no input sends an empty body, which is the input `{}`.
7
+ *
8
+ * The wire shapes of the JSON protocols are the Command input shapes, member
9
+ * for member, which is what makes this readable without the operation's
10
+ * schema. The two exceptions are the shapes the JSON encoding cannot carry:
11
+ * blobs travel base64-encoded and timestamps as epoch seconds, and only the
12
+ * schema says which members those are. A value written and read back through
13
+ * this bridge round-trips regardless, because both directions leave it
14
+ * untouched.
15
+ */
16
+ export function readSimSdkWireInput(body) {
17
+ if (body.byteLength === 0) {
18
+ return {};
19
+ }
20
+ return JSON.parse(Buffer.from(body).toString());
21
+ }
22
+ /**
23
+ * Serialize a simulated service operation output as an AWS JSON protocol
24
+ * response body.
25
+ *
26
+ * Blobs and timestamps are encoded as the protocol carries them, because the
27
+ * SDK that will read this back decodes them by schema: an ISO date string
28
+ * where it expects epoch seconds fails to parse, rather than arriving as the
29
+ * wrong value.
30
+ */
31
+ export function simSdkWireJsonBody(value) {
32
+ return Buffer.from(JSON.stringify(wireJsonValue(value) ?? {}));
33
+ }
34
+ /**
35
+ * Encode the values whose JavaScript form differs from their wire form.
36
+ *
37
+ * This is done before serializing rather than while serializing, because
38
+ * JSON.stringify applies toJSON on the way past: a Date would already have
39
+ * become an ISO string by the time anything got to look at it.
40
+ */
41
+ function wireJsonValue(value) {
42
+ if (value instanceof Date) {
43
+ return value.getTime() / 1000;
44
+ }
45
+ if (value instanceof Uint8Array) {
46
+ return Buffer.from(value).toString("base64");
47
+ }
48
+ if (Array.isArray(value)) {
49
+ return value.map((member) => wireJsonValue(member));
50
+ }
51
+ if (isRecord(value)) {
52
+ return Object.fromEntries(Object.entries(value).map(([name, member]) => [
53
+ name,
54
+ wireJsonValue(member),
55
+ ]));
56
+ }
57
+ return value;
58
+ }
59
+ //# sourceMappingURL=sim-sdk-wire-json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-sdk-wire-json.js","sourceRoot":"","sources":["../../../src/sdk/wire/sim-sdk-wire-json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAgB;IAClD,IAAI,IAAI,CAAC,UAAU,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAY,CAAC;AAC7D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACjE,CAAC;AAED;;;;;;GAMG;AACH,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,KAAK,YAAY,IAAI,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;IAChC,CAAC;IACD,IAAI,KAAK,YAAY,UAAU,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IACtD,CAAC;IACD,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;YAC5C,IAAI;YACJ,aAAa,CAAC,MAAM,CAAC;SACtB,CAAC,CACH,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}