@kensio/yulin 1.14.1 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (649) hide show
  1. package/README.md +1 -0
  2. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  3. package/dist/sdk/router/resolve-sim-sdk-command-router.js +4 -0
  4. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  5. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +3 -0
  6. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  7. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +9 -0
  8. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts +6 -0
  10. package/dist/service/aws/factory/sim-aws-lambda-collaborators.d.ts.map +1 -1
  11. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js +5 -0
  12. package/dist/service/aws/factory/sim-aws-lambda-collaborators.js.map +1 -1
  13. package/dist/service/aws/factory/sim-aws-logs-collaborators.d.ts +23 -0
  14. package/dist/service/aws/factory/sim-aws-logs-collaborators.d.ts.map +1 -0
  15. package/dist/service/aws/factory/sim-aws-logs-collaborators.js +21 -0
  16. package/dist/service/aws/factory/sim-aws-logs-collaborators.js.map +1 -0
  17. package/dist/service/aws/factory/sim-aws-service-factory.d.ts +3 -0
  18. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  19. package/dist/service/aws/factory/sim-aws-service-factory.js +4 -0
  20. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  21. package/dist/service/aws/sim-aws-account-region-scope.d.ts +3 -0
  22. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  23. package/dist/service/aws/sim-aws-account-region-scope.js +4 -0
  24. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  25. package/dist/service/aws/sim-aws-service-accessors.d.ts +3 -0
  26. package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
  27. package/dist/service/aws/sim-aws-service-accessors.js +4 -0
  28. package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
  29. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts +8 -12
  30. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.d.ts.map +1 -1
  31. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js +9 -28
  32. package/dist/service/cloudformation/cdk/provider/sim-cdk-provider-scaffolding.js.map +1 -1
  33. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.d.ts +7 -0
  34. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.d.ts.map +1 -0
  35. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.js +14 -0
  36. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-cfn-value-adapter.js.map +1 -0
  37. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.d.ts +29 -0
  38. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.d.ts.map +1 -0
  39. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.js +31 -0
  40. package/dist/service/cloudformation/resource/cfn/logs/sim-logs-log-group-cfn.js.map +1 -0
  41. package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.d.ts.map +1 -1
  42. package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js +10 -41
  43. package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js.map +1 -1
  44. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts +12 -0
  45. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -0
  46. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +52 -0
  47. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -0
  48. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
  49. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +4 -0
  50. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
  51. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.d.ts +15 -9
  52. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.d.ts.map +1 -1
  53. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.js +24 -13
  54. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-fragments.js.map +1 -1
  55. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.d.ts.map +1 -1
  56. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js +1 -0
  57. package/dist/service/cloudfront/origin/custom/sim-cf-function-url-origin-template.factory.js.map +1 -1
  58. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.d.ts +33 -0
  59. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.d.ts.map +1 -0
  60. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.js +56 -0
  61. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-attribute-constraints.js.map +1 -0
  62. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.d.ts +31 -0
  63. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.d.ts.map +1 -0
  64. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.js +59 -0
  65. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-schema-attribute.js.map +1 -0
  66. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.d.ts +9 -0
  67. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.d.ts.map +1 -1
  68. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.js +16 -0
  69. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-creator.js.map +1 -1
  70. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts +45 -0
  71. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.d.ts.map +1 -0
  72. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js +73 -0
  73. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-mfa.js.map +1 -0
  74. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +7 -0
  75. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  76. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +33 -5
  77. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  78. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.d.ts +27 -0
  79. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.d.ts.map +1 -0
  80. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.js +31 -0
  81. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-schema.js.map +1 -0
  82. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts +6 -5
  83. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.d.ts.map +1 -1
  84. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js +6 -7
  85. package/dist/service/cognito/command/auth/sim-cognito-admin-respond-to-challenge.js.map +1 -1
  86. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts +5 -4
  87. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.d.ts.map +1 -1
  88. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js +23 -7
  89. package/dist/service/cognito/command/auth/sim-cognito-auth-challenge.js.map +1 -1
  90. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +7 -0
  91. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  92. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +23 -9
  93. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  94. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts +26 -0
  95. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.d.ts.map +1 -0
  96. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js +28 -0
  97. package/dist/service/cognito/command/auth/sim-cognito-challenge-responses.js.map +1 -0
  98. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.d.ts +59 -0
  99. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.d.ts.map +1 -0
  100. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js +88 -0
  101. package/dist/service/cognito/command/auth/sim-cognito-mfa-challenge.js.map +1 -0
  102. package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.d.ts +31 -0
  103. package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.d.ts.map +1 -0
  104. package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.js +33 -0
  105. package/dist/service/cognito/command/auth/sim-cognito-mfa-code-check.js.map +1 -0
  106. package/dist/service/cognito/command/auth/sim-cognito-mfa-code.d.ts +18 -0
  107. package/dist/service/cognito/command/auth/sim-cognito-mfa-code.d.ts.map +1 -0
  108. package/dist/service/cognito/command/auth/sim-cognito-mfa-code.js +35 -0
  109. package/dist/service/cognito/command/auth/sim-cognito-mfa-code.js.map +1 -0
  110. package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.d.ts +12 -0
  111. package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.d.ts.map +1 -0
  112. package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.js +46 -0
  113. package/dist/service/cognito/command/auth/sim-cognito-mfa-factor-choice.js.map +1 -0
  114. package/dist/service/cognito/command/auth/sim-cognito-mfa-response.d.ts +49 -0
  115. package/dist/service/cognito/command/auth/sim-cognito-mfa-response.d.ts.map +1 -0
  116. package/dist/service/cognito/command/auth/sim-cognito-mfa-response.js +63 -0
  117. package/dist/service/cognito/command/auth/sim-cognito-mfa-response.js.map +1 -0
  118. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts +3 -7
  119. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.d.ts.map +1 -1
  120. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js +11 -18
  121. package/dist/service/cognito/command/auth/sim-cognito-new-password-response.js.map +1 -1
  122. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts +3 -4
  123. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.d.ts.map +1 -1
  124. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js +8 -15
  125. package/dist/service/cognito/command/auth/sim-cognito-password-sign-in.js.map +1 -1
  126. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts +3 -3
  127. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.d.ts.map +1 -1
  128. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js +3 -5
  129. package/dist/service/cognito/command/auth/sim-cognito-respond-to-challenge.js.map +1 -1
  130. package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.d.ts +68 -0
  131. package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.d.ts.map +1 -0
  132. package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.js +64 -0
  133. package/dist/service/cognito/command/auth/sim-cognito-sign-in-completion.js.map +1 -0
  134. package/dist/service/cognito/command/auth/sim-cognito-sign-out.d.ts +4 -3
  135. package/dist/service/cognito/command/auth/sim-cognito-sign-out.d.ts.map +1 -1
  136. package/dist/service/cognito/command/auth/sim-cognito-sign-out.js +6 -3
  137. package/dist/service/cognito/command/auth/sim-cognito-sign-out.js.map +1 -1
  138. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.d.ts.map +1 -1
  139. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js +2 -5
  140. package/dist/service/cognito/command/idp/sim-cognito-identity-provider-commands.js.map +1 -1
  141. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +3 -1
  142. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  143. package/dist/service/cognito/command/sim-cognito-commands.d.ts +4 -0
  144. package/dist/service/cognito/command/sim-cognito-commands.d.ts.map +1 -1
  145. package/dist/service/cognito/command/sim-cognito-commands.js +16 -0
  146. package/dist/service/cognito/command/sim-cognito-commands.js.map +1 -1
  147. package/dist/service/cognito/command/user/sim-cognito-self-service-scope.d.ts +14 -0
  148. package/dist/service/cognito/command/user/sim-cognito-self-service-scope.d.ts.map +1 -0
  149. package/dist/service/cognito/command/user/sim-cognito-self-service-scope.js +20 -0
  150. package/dist/service/cognito/command/user/sim-cognito-self-service-scope.js.map +1 -0
  151. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.d.ts.map +1 -1
  152. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js +1 -0
  153. package/dist/service/cognito/command/user/sim-cognito-sign-up-commands.js.map +1 -1
  154. package/dist/service/cognito/command/user/sim-cognito-token-user.d.ts +34 -0
  155. package/dist/service/cognito/command/user/sim-cognito-token-user.d.ts.map +1 -0
  156. package/dist/service/cognito/command/user/sim-cognito-token-user.js +43 -0
  157. package/dist/service/cognito/command/user/sim-cognito-token-user.js.map +1 -0
  158. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts +14 -0
  159. package/dist/service/cognito/command/user/sim-cognito-user-commands.d.ts.map +1 -1
  160. package/dist/service/cognito/command/user/sim-cognito-user-commands.js +16 -0
  161. package/dist/service/cognito/command/user/sim-cognito-user-commands.js.map +1 -1
  162. package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.d.ts +55 -0
  163. package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.d.ts.map +1 -0
  164. package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.js +93 -0
  165. package/dist/service/cognito/command/user/sim-cognito-user-mfa-commands.js.map +1 -0
  166. package/dist/service/cognito/command/user/sim-cognito-user-view.d.ts +15 -1
  167. package/dist/service/cognito/command/user/sim-cognito-user-view.d.ts.map +1 -1
  168. package/dist/service/cognito/command/user/sim-cognito-user-view.js +28 -0
  169. package/dist/service/cognito/command/user/sim-cognito-user-view.js.map +1 -1
  170. package/dist/service/cognito/command/user/user-mfa.command.d.ts +111 -0
  171. package/dist/service/cognito/command/user/user-mfa.command.d.ts.map +1 -0
  172. package/dist/service/cognito/command/user/user-mfa.command.js +2 -0
  173. package/dist/service/cognito/command/user/user-mfa.command.js.map +1 -0
  174. package/dist/service/cognito/command/user/user.command.d.ts +19 -1
  175. package/dist/service/cognito/command/user/user.command.d.ts.map +1 -1
  176. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts +4 -3
  177. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.d.ts.map +1 -1
  178. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js +4 -4
  179. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-identity.js.map +1 -1
  180. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts +5 -0
  181. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.d.ts.map +1 -1
  182. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js +5 -1
  183. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-options.js.map +1 -1
  184. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts +12 -0
  185. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.d.ts.map +1 -1
  186. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js +21 -0
  187. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-updates.js.map +1 -1
  188. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
  189. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +15 -3
  190. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
  191. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts +58 -0
  192. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.d.ts.map +1 -0
  193. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js +71 -0
  194. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-mfa-commands.js.map +1 -0
  195. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +9 -1
  196. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  197. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +11 -2
  198. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  199. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts +49 -0
  200. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.d.ts.map +1 -0
  201. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.js +2 -0
  202. package/dist/service/cognito/command/user-pool/user-pool-mfa.command.js.map +1 -0
  203. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +9 -5
  204. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  205. package/dist/service/cognito/error/sim-cognito.error.d.ts +22 -0
  206. package/dist/service/cognito/error/sim-cognito.error.d.ts.map +1 -1
  207. package/dist/service/cognito/error/sim-cognito.error.js +26 -0
  208. package/dist/service/cognito/error/sim-cognito.error.js.map +1 -1
  209. package/dist/service/cognito/index.d.ts +7 -1
  210. package/dist/service/cognito/index.d.ts.map +1 -1
  211. package/dist/service/cognito/index.js +6 -1
  212. package/dist/service/cognito/index.js.map +1 -1
  213. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.d.ts.map +1 -1
  214. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js +20 -0
  215. package/dist/service/cognito/sdk/sim-cognito-sdk-directory-routes.js.map +1 -1
  216. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.d.ts.map +1 -1
  217. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js +8 -0
  218. package/dist/service/cognito/sdk/sim-cognito-sdk-pool-routes.js.map +1 -1
  219. package/dist/service/cognito/sim-cognito-app-clients.d.ts +42 -0
  220. package/dist/service/cognito/sim-cognito-app-clients.d.ts.map +1 -0
  221. package/dist/service/cognito/sim-cognito-app-clients.js +50 -0
  222. package/dist/service/cognito/sim-cognito-app-clients.js.map +1 -0
  223. package/dist/service/cognito/sim-cognito-identity-provider.d.ts +15 -22
  224. package/dist/service/cognito/sim-cognito-identity-provider.d.ts.map +1 -1
  225. package/dist/service/cognito/sim-cognito-identity-provider.js +18 -34
  226. package/dist/service/cognito/sim-cognito-identity-provider.js.map +1 -1
  227. package/dist/service/cognito/sim-cognito-user-directory.d.ts +6 -5
  228. package/dist/service/cognito/sim-cognito-user-directory.d.ts.map +1 -1
  229. package/dist/service/cognito/sim-cognito-user-directory.js +6 -5
  230. package/dist/service/cognito/sim-cognito-user-directory.js.map +1 -1
  231. package/dist/service/cognito/sim-cognito-user-factors.d.ts +47 -0
  232. package/dist/service/cognito/sim-cognito-user-factors.d.ts.map +1 -0
  233. package/dist/service/cognito/sim-cognito-user-factors.js +56 -0
  234. package/dist/service/cognito/sim-cognito-user-factors.js.map +1 -0
  235. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.d.ts +4 -2
  236. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.d.ts.map +1 -1
  237. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.js +3 -2
  238. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session-store.js.map +1 -1
  239. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts +20 -0
  240. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.d.ts.map +1 -1
  241. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js +13 -0
  242. package/dist/service/cognito/user-pool/auth/sim-cognito-auth-session.js.map +1 -1
  243. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +10 -0
  244. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
  245. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +14 -0
  246. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
  247. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts +10 -4
  248. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.d.ts.map +1 -1
  249. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js +13 -8
  250. package/dist/service/cognito/user-pool/idp/sim-cognito-attribute-mapping.js.map +1 -1
  251. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.d.ts.map +1 -1
  252. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js +1 -0
  253. package/dist/service/cognito/user-pool/idp/sim-cognito-federated-sign-in.js.map +1 -1
  254. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts +6 -1
  255. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.d.ts.map +1 -1
  256. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js +6 -2
  257. package/dist/service/cognito/user-pool/idp/sim-cognito-identity-provider-settings.js.map +1 -1
  258. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts +17 -0
  259. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.d.ts.map +1 -1
  260. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js +24 -1
  261. package/dist/service/cognito/user-pool/message/sim-cognito-message-delivery.js.map +1 -1
  262. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts +6 -5
  263. package/dist/service/cognito/user-pool/message/sim-cognito-message-occasion.d.ts.map +1 -1
  264. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.d.ts.map +1 -1
  265. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js +11 -0
  266. package/dist/service/cognito/user-pool/message/sim-cognito-occasion-wording.js.map +1 -1
  267. package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.d.ts +35 -0
  268. package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.d.ts.map +1 -0
  269. package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.js +50 -0
  270. package/dist/service/cognito/user-pool/mfa/sim-cognito-mfa-configuration.js.map +1 -0
  271. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts +83 -0
  272. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.d.ts.map +1 -0
  273. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js +114 -0
  274. package/dist/service/cognito/user-pool/mfa/sim-cognito-user-pool-mfa.js.map +1 -0
  275. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.d.ts +61 -0
  276. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.d.ts.map +1 -0
  277. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.js +64 -0
  278. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-constraints.js.map +1 -0
  279. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.d.ts +43 -0
  280. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.d.ts.map +1 -0
  281. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.js +86 -0
  282. package/dist/service/cognito/user-pool/schema/sim-cognito-attribute-data-type.js.map +1 -0
  283. package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.d.ts +28 -0
  284. package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.d.ts.map +1 -0
  285. package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.js +44 -0
  286. package/dist/service/cognito/user-pool/schema/sim-cognito-number-constraints.js.map +1 -0
  287. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.d.ts +22 -0
  288. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.d.ts.map +1 -0
  289. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.js +64 -0
  290. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute-name.js.map +1 -0
  291. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.d.ts +68 -0
  292. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.d.ts.map +1 -0
  293. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.js +98 -0
  294. package/dist/service/cognito/user-pool/schema/sim-cognito-schema-attribute.js.map +1 -0
  295. package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.d.ts +28 -0
  296. package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.d.ts.map +1 -0
  297. package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.js +96 -0
  298. package/dist/service/cognito/user-pool/schema/sim-cognito-standard-attributes.js.map +1 -0
  299. package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.d.ts +33 -0
  300. package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.d.ts.map +1 -0
  301. package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.js +52 -0
  302. package/dist/service/cognito/user-pool/schema/sim-cognito-string-constraints.js.map +1 -0
  303. package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.d.ts +89 -0
  304. package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.d.ts.map +1 -0
  305. package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.js +157 -0
  306. package/dist/service/cognito/user-pool/schema/sim-cognito-user-pool-schema.js.map +1 -0
  307. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts +45 -2
  308. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.d.ts.map +1 -1
  309. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js +41 -2
  310. package/dist/service/cognito/user-pool/sim-cognito-user-pool-settings.js.map +1 -1
  311. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +13 -19
  312. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  313. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +17 -23
  314. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  315. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts +10 -0
  316. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.d.ts.map +1 -1
  317. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js +5 -3
  318. package/dist/service/cognito/user-pool/token/sim-cognito-access-token.js.map +1 -1
  319. package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.d.ts +27 -0
  320. package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.d.ts.map +1 -0
  321. package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.js +32 -0
  322. package/dist/service/cognito/user-pool/token/sim-cognito-pool-keys.js.map +1 -0
  323. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
  324. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +4 -0
  325. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
  326. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts +4 -0
  327. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.d.ts.map +1 -1
  328. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js +7 -0
  329. package/dist/service/cognito/user-pool/trigger/sim-cognito-trigger-occasion.js.map +1 -1
  330. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.d.ts +53 -0
  331. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.d.ts.map +1 -0
  332. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.js +58 -0
  333. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-mfa-factors.js.map +1 -0
  334. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.d.ts +40 -0
  335. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.d.ts.map +1 -0
  336. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.js +51 -0
  337. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-software-token.js.map +1 -0
  338. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.d.ts +24 -0
  339. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.d.ts.map +1 -0
  340. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.js +99 -0
  341. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-totp.js.map +1 -0
  342. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.d.ts +103 -0
  343. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.d.ts.map +1 -0
  344. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.js +159 -0
  345. package/dist/service/cognito/user-pool/user/mfa/sim-cognito-user-mfa.js.map +1 -0
  346. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts +38 -5
  347. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.d.ts.map +1 -1
  348. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js +56 -28
  349. package/dist/service/cognito/user-pool/user/sim-cognito-user-attributes.js.map +1 -1
  350. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts +11 -7
  351. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.d.ts.map +1 -1
  352. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js +12 -3
  353. package/dist/service/cognito/user-pool/user/sim-cognito-user-factory.js.map +1 -1
  354. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts +8 -0
  355. package/dist/service/cognito/user-pool/user/sim-cognito-user.d.ts.map +1 -1
  356. package/dist/service/cognito/user-pool/user/sim-cognito-user.js +16 -0
  357. package/dist/service/cognito/user-pool/user/sim-cognito-user.js.map +1 -1
  358. package/dist/service/lambda/command/create-function/create-function.handler.d.ts +3 -0
  359. package/dist/service/lambda/command/create-function/create-function.handler.d.ts.map +1 -1
  360. package/dist/service/lambda/command/create-function/create-function.handler.js +4 -1
  361. package/dist/service/lambda/command/create-function/create-function.handler.js.map +1 -1
  362. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +2 -0
  363. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  364. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  365. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +15 -0
  366. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
  367. package/dist/service/lambda/function/code/sim-lambda-executable-code.js +11 -0
  368. package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
  369. package/dist/service/lambda/function/code/sim-lambda-handler-name.d.ts +15 -0
  370. package/dist/service/lambda/function/code/sim-lambda-handler-name.d.ts.map +1 -0
  371. package/dist/service/lambda/function/code/sim-lambda-handler-name.js +21 -0
  372. package/dist/service/lambda/function/code/sim-lambda-handler-name.js.map +1 -0
  373. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +9 -9
  374. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
  375. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +14 -15
  376. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
  377. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts +2 -1
  378. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.d.ts.map +1 -1
  379. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js +5 -1
  380. package/dist/service/lambda/function/code/vm/sim-lambda-vm-context.js.map +1 -1
  381. package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.d.ts +12 -1
  382. package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.d.ts.map +1 -1
  383. package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.js +27 -1
  384. package/dist/service/lambda/function/code/vm/sim-lambda-vm-output-stream.js.map +1 -1
  385. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts +3 -0
  386. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.d.ts.map +1 -1
  387. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js +3 -3
  388. package/dist/service/lambda/function/invoke/sim-lambda-invoke-context-builder.js.map +1 -1
  389. package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts +58 -0
  390. package/dist/service/lambda/function/logging/sim-lambda-function-logging.d.ts.map +1 -0
  391. package/dist/service/lambda/function/logging/sim-lambda-function-logging.js +81 -0
  392. package/dist/service/lambda/function/logging/sim-lambda-function-logging.js.map +1 -0
  393. package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.d.ts +22 -0
  394. package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.d.ts.map +1 -0
  395. package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.js +30 -0
  396. package/dist/service/lambda/function/logging/sim-lambda-log-stream-name.js.map +1 -0
  397. package/dist/service/lambda/function/logging/sim-lambda-log-writer.d.ts +37 -0
  398. package/dist/service/lambda/function/logging/sim-lambda-log-writer.d.ts.map +1 -0
  399. package/dist/service/lambda/function/logging/sim-lambda-log-writer.js +54 -0
  400. package/dist/service/lambda/function/logging/sim-lambda-log-writer.js.map +1 -0
  401. package/dist/service/lambda/function/logging/sim-lambda-output-sink.d.ts +22 -0
  402. package/dist/service/lambda/function/logging/sim-lambda-output-sink.d.ts.map +1 -0
  403. package/dist/service/lambda/function/logging/sim-lambda-output-sink.js +12 -0
  404. package/dist/service/lambda/function/logging/sim-lambda-output-sink.js.map +1 -0
  405. package/dist/service/lambda/function/sim-lambda-function.d.ts +12 -0
  406. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  407. package/dist/service/lambda/function/sim-lambda-function.js +18 -2
  408. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  409. package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.d.ts +14 -11
  410. package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.d.ts.map +1 -1
  411. package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.js +29 -12
  412. package/dist/service/lambda/serve/auth/sim-lambda-url-authorizer.js.map +1 -1
  413. package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.d.ts +34 -0
  414. package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.d.ts.map +1 -0
  415. package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.js +63 -0
  416. package/dist/service/lambda/serve/auth/sim-lambda-url-invoke-actions.js.map +1 -0
  417. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts +9 -1
  418. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.d.ts.map +1 -1
  419. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js +11 -2
  420. package/dist/service/lambda/serve/response/sim-lambda-url-error-response.js.map +1 -1
  421. package/dist/service/lambda/sim-lambda-commands.d.ts +2 -0
  422. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  423. package/dist/service/lambda/sim-lambda-commands.js +2 -1
  424. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  425. package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.d.ts +34 -0
  426. package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.d.ts.map +1 -0
  427. package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.js +42 -0
  428. package/dist/service/logs/cfn/group/sim-cfn-log-group-creator.js.map +1 -0
  429. package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.d.ts +41 -0
  430. package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.d.ts.map +1 -0
  431. package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.js +73 -0
  432. package/dist/service/logs/cfn/group/sim-cfn-log-group-properties.js.map +1 -0
  433. package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.d.ts +25 -0
  434. package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.d.ts.map +1 -0
  435. package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.js +41 -0
  436. package/dist/service/logs/cfn/group/sim-cfn-log-group-property-rules.js.map +1 -0
  437. package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.d.ts +12 -0
  438. package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.d.ts.map +1 -0
  439. package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.js +38 -0
  440. package/dist/service/logs/cfn/group/sim-cfn-log-group-unsimulated-properties.js.map +1 -0
  441. package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.d.ts +29 -0
  442. package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.d.ts.map +1 -0
  443. package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.js +44 -0
  444. package/dist/service/logs/cfn/sim-logs-cfn-resource-factory.js.map +1 -0
  445. package/dist/service/logs/command/authorize/sim-logs-authorizer.d.ts +43 -0
  446. package/dist/service/logs/command/authorize/sim-logs-authorizer.d.ts.map +1 -0
  447. package/dist/service/logs/command/authorize/sim-logs-authorizer.js +54 -0
  448. package/dist/service/logs/command/authorize/sim-logs-authorizer.js.map +1 -0
  449. package/dist/service/logs/command/event/event.command.d.ts +86 -0
  450. package/dist/service/logs/command/event/event.command.d.ts.map +1 -0
  451. package/dist/service/logs/command/event/event.command.js +2 -0
  452. package/dist/service/logs/command/event/event.command.js.map +1 -0
  453. package/dist/service/logs/command/event/sim-logs-event-cursor.d.ts +30 -0
  454. package/dist/service/logs/command/event/sim-logs-event-cursor.d.ts.map +1 -0
  455. package/dist/service/logs/command/event/sim-logs-event-cursor.js +68 -0
  456. package/dist/service/logs/command/event/sim-logs-event-cursor.js.map +1 -0
  457. package/dist/service/logs/command/event/sim-logs-filter-log-events.d.ts +25 -0
  458. package/dist/service/logs/command/event/sim-logs-filter-log-events.d.ts.map +1 -0
  459. package/dist/service/logs/command/event/sim-logs-filter-log-events.js +42 -0
  460. package/dist/service/logs/command/event/sim-logs-filter-log-events.js.map +1 -0
  461. package/dist/service/logs/command/event/sim-logs-get-log-events.d.ts +21 -0
  462. package/dist/service/logs/command/event/sim-logs-get-log-events.d.ts.map +1 -0
  463. package/dist/service/logs/command/event/sim-logs-get-log-events.js +49 -0
  464. package/dist/service/logs/command/event/sim-logs-get-log-events.js.map +1 -0
  465. package/dist/service/logs/command/event/sim-logs-put-log-events.d.ts +33 -0
  466. package/dist/service/logs/command/event/sim-logs-put-log-events.d.ts.map +1 -0
  467. package/dist/service/logs/command/event/sim-logs-put-log-events.js +46 -0
  468. package/dist/service/logs/command/event/sim-logs-put-log-events.js.map +1 -0
  469. package/dist/service/logs/command/event/sim-logs-searched-events.d.ts +22 -0
  470. package/dist/service/logs/command/event/sim-logs-searched-events.d.ts.map +1 -0
  471. package/dist/service/logs/command/event/sim-logs-searched-events.js +47 -0
  472. package/dist/service/logs/command/event/sim-logs-searched-events.js.map +1 -0
  473. package/dist/service/logs/command/group/group.command.d.ts +94 -0
  474. package/dist/service/logs/command/group/group.command.d.ts.map +1 -0
  475. package/dist/service/logs/command/group/group.command.js +2 -0
  476. package/dist/service/logs/command/group/group.command.js.map +1 -0
  477. package/dist/service/logs/command/group/sim-logs-log-group-commands.d.ts +38 -0
  478. package/dist/service/logs/command/group/sim-logs-log-group-commands.d.ts.map +1 -0
  479. package/dist/service/logs/command/group/sim-logs-log-group-commands.js +80 -0
  480. package/dist/service/logs/command/group/sim-logs-log-group-commands.js.map +1 -0
  481. package/dist/service/logs/command/group/sim-logs-retention-commands.d.ts +31 -0
  482. package/dist/service/logs/command/group/sim-logs-retention-commands.d.ts.map +1 -0
  483. package/dist/service/logs/command/group/sim-logs-retention-commands.js +39 -0
  484. package/dist/service/logs/command/group/sim-logs-retention-commands.js.map +1 -0
  485. package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.d.ts +18 -0
  486. package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.d.ts.map +1 -0
  487. package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.js +33 -0
  488. package/dist/service/logs/command/group/sim-logs-unsimulated-group-input.js.map +1 -0
  489. package/dist/service/logs/command/sim-logs-command.types.d.ts +8 -0
  490. package/dist/service/logs/command/sim-logs-command.types.d.ts.map +1 -0
  491. package/dist/service/logs/command/sim-logs-command.types.js +2 -0
  492. package/dist/service/logs/command/sim-logs-command.types.js.map +1 -0
  493. package/dist/service/logs/command/sim-logs-limit.d.ts +10 -0
  494. package/dist/service/logs/command/sim-logs-limit.d.ts.map +1 -0
  495. package/dist/service/logs/command/sim-logs-limit.js +19 -0
  496. package/dist/service/logs/command/sim-logs-limit.js.map +1 -0
  497. package/dist/service/logs/command/sim-logs-page.d.ts +30 -0
  498. package/dist/service/logs/command/sim-logs-page.d.ts.map +1 -0
  499. package/dist/service/logs/command/sim-logs-page.js +43 -0
  500. package/dist/service/logs/command/sim-logs-page.js.map +1 -0
  501. package/dist/service/logs/command/sim-logs-request-options.d.ts +12 -0
  502. package/dist/service/logs/command/sim-logs-request-options.d.ts.map +1 -0
  503. package/dist/service/logs/command/sim-logs-request-options.js +2 -0
  504. package/dist/service/logs/command/sim-logs-request-options.js.map +1 -0
  505. package/dist/service/logs/command/stream/sim-logs-log-stream-commands.d.ts +27 -0
  506. package/dist/service/logs/command/stream/sim-logs-log-stream-commands.d.ts.map +1 -0
  507. package/dist/service/logs/command/stream/sim-logs-log-stream-commands.js +64 -0
  508. package/dist/service/logs/command/stream/sim-logs-log-stream-commands.js.map +1 -0
  509. package/dist/service/logs/command/stream/sim-logs-log-stream-order.d.ts +12 -0
  510. package/dist/service/logs/command/stream/sim-logs-log-stream-order.d.ts.map +1 -0
  511. package/dist/service/logs/command/stream/sim-logs-log-stream-order.js +39 -0
  512. package/dist/service/logs/command/stream/sim-logs-log-stream-order.js.map +1 -0
  513. package/dist/service/logs/command/stream/stream.command.d.ts +56 -0
  514. package/dist/service/logs/command/stream/stream.command.d.ts.map +1 -0
  515. package/dist/service/logs/command/stream/stream.command.js +2 -0
  516. package/dist/service/logs/command/stream/stream.command.js.map +1 -0
  517. package/dist/service/logs/command/subscription/sim-logs-subscription-commands.d.ts +37 -0
  518. package/dist/service/logs/command/subscription/sim-logs-subscription-commands.d.ts.map +1 -0
  519. package/dist/service/logs/command/subscription/sim-logs-subscription-commands.js +78 -0
  520. package/dist/service/logs/command/subscription/sim-logs-subscription-commands.js.map +1 -0
  521. package/dist/service/logs/command/subscription/sim-logs-subscription-input.d.ts +15 -0
  522. package/dist/service/logs/command/subscription/sim-logs-subscription-input.d.ts.map +1 -0
  523. package/dist/service/logs/command/subscription/sim-logs-subscription-input.js +36 -0
  524. package/dist/service/logs/command/subscription/sim-logs-subscription-input.js.map +1 -0
  525. package/dist/service/logs/command/subscription/subscription.command.d.ts +67 -0
  526. package/dist/service/logs/command/subscription/subscription.command.d.ts.map +1 -0
  527. package/dist/service/logs/command/subscription/subscription.command.js +2 -0
  528. package/dist/service/logs/command/subscription/subscription.command.js.map +1 -0
  529. package/dist/service/logs/error/sim-logs-delivery.error.d.ts +14 -0
  530. package/dist/service/logs/error/sim-logs-delivery.error.d.ts.map +1 -0
  531. package/dist/service/logs/error/sim-logs-delivery.error.js +16 -0
  532. package/dist/service/logs/error/sim-logs-delivery.error.js.map +1 -0
  533. package/dist/service/logs/error/sim-logs.error.d.ts +71 -0
  534. package/dist/service/logs/error/sim-logs.error.d.ts.map +1 -0
  535. package/dist/service/logs/error/sim-logs.error.js +78 -0
  536. package/dist/service/logs/error/sim-logs.error.js.map +1 -0
  537. package/dist/service/logs/event/sim-logs-event-batch.d.ts +28 -0
  538. package/dist/service/logs/event/sim-logs-event-batch.d.ts.map +1 -0
  539. package/dist/service/logs/event/sim-logs-event-batch.js +70 -0
  540. package/dist/service/logs/event/sim-logs-event-batch.js.map +1 -0
  541. package/dist/service/logs/event/sim-logs-event-ids.d.ts +17 -0
  542. package/dist/service/logs/event/sim-logs-event-ids.d.ts.map +1 -0
  543. package/dist/service/logs/event/sim-logs-event-ids.js +21 -0
  544. package/dist/service/logs/event/sim-logs-event-ids.js.map +1 -0
  545. package/dist/service/logs/event/sim-logs-event-window.d.ts +19 -0
  546. package/dist/service/logs/event/sim-logs-event-window.d.ts.map +1 -0
  547. package/dist/service/logs/event/sim-logs-event-window.js +15 -0
  548. package/dist/service/logs/event/sim-logs-event-window.js.map +1 -0
  549. package/dist/service/logs/event/sim-logs-event.d.ts +36 -0
  550. package/dist/service/logs/event/sim-logs-event.d.ts.map +1 -0
  551. package/dist/service/logs/event/sim-logs-event.js +23 -0
  552. package/dist/service/logs/event/sim-logs-event.js.map +1 -0
  553. package/dist/service/logs/event/sim-logs-filter-pattern.d.ts +28 -0
  554. package/dist/service/logs/event/sim-logs-filter-pattern.d.ts.map +1 -0
  555. package/dist/service/logs/event/sim-logs-filter-pattern.js +65 -0
  556. package/dist/service/logs/event/sim-logs-filter-pattern.js.map +1 -0
  557. package/dist/service/logs/event/sim-logs-filter-terms.d.ts +19 -0
  558. package/dist/service/logs/event/sim-logs-filter-terms.d.ts.map +1 -0
  559. package/dist/service/logs/event/sim-logs-filter-terms.js +86 -0
  560. package/dist/service/logs/event/sim-logs-filter-terms.js.map +1 -0
  561. package/dist/service/logs/group/sim-logs-arn.d.ts +36 -0
  562. package/dist/service/logs/group/sim-logs-arn.d.ts.map +1 -0
  563. package/dist/service/logs/group/sim-logs-arn.js +45 -0
  564. package/dist/service/logs/group/sim-logs-arn.js.map +1 -0
  565. package/dist/service/logs/group/sim-logs-log-group-name.d.ts +9 -0
  566. package/dist/service/logs/group/sim-logs-log-group-name.d.ts.map +1 -0
  567. package/dist/service/logs/group/sim-logs-log-group-name.js +34 -0
  568. package/dist/service/logs/group/sim-logs-log-group-name.js.map +1 -0
  569. package/dist/service/logs/group/sim-logs-log-group-store.d.ts +51 -0
  570. package/dist/service/logs/group/sim-logs-log-group-store.d.ts.map +1 -0
  571. package/dist/service/logs/group/sim-logs-log-group-store.js +77 -0
  572. package/dist/service/logs/group/sim-logs-log-group-store.js.map +1 -0
  573. package/dist/service/logs/group/sim-logs-log-group.d.ts +60 -0
  574. package/dist/service/logs/group/sim-logs-log-group.d.ts.map +1 -0
  575. package/dist/service/logs/group/sim-logs-log-group.js +78 -0
  576. package/dist/service/logs/group/sim-logs-log-group.js.map +1 -0
  577. package/dist/service/logs/group/sim-logs-retention.d.ts +16 -0
  578. package/dist/service/logs/group/sim-logs-retention.d.ts.map +1 -0
  579. package/dist/service/logs/group/sim-logs-retention.js +28 -0
  580. package/dist/service/logs/group/sim-logs-retention.js.map +1 -0
  581. package/dist/service/logs/index.d.ts +15 -0
  582. package/dist/service/logs/index.d.ts.map +1 -0
  583. package/dist/service/logs/index.js +14 -0
  584. package/dist/service/logs/index.js.map +1 -0
  585. package/dist/service/logs/sdk/sim-logs-sdk-command-router.d.ts +19 -0
  586. package/dist/service/logs/sdk/sim-logs-sdk-command-router.d.ts.map +1 -0
  587. package/dist/service/logs/sdk/sim-logs-sdk-command-router.js +77 -0
  588. package/dist/service/logs/sdk/sim-logs-sdk-command-router.js.map +1 -0
  589. package/dist/service/logs/sim-logs-commands.d.ts +48 -0
  590. package/dist/service/logs/sim-logs-commands.d.ts.map +1 -0
  591. package/dist/service/logs/sim-logs-commands.js +84 -0
  592. package/dist/service/logs/sim-logs-commands.js.map +1 -0
  593. package/dist/service/logs/sim-logs.d.ts +116 -0
  594. package/dist/service/logs/sim-logs.d.ts.map +1 -0
  595. package/dist/service/logs/sim-logs.js +166 -0
  596. package/dist/service/logs/sim-logs.js.map +1 -0
  597. package/dist/service/logs/stream/sim-logs-log-stream-name.d.ts +5 -0
  598. package/dist/service/logs/stream/sim-logs-log-stream-name.d.ts.map +1 -0
  599. package/dist/service/logs/stream/sim-logs-log-stream-name.js +30 -0
  600. package/dist/service/logs/stream/sim-logs-log-stream-name.js.map +1 -0
  601. package/dist/service/logs/stream/sim-logs-log-stream-store.d.ts +38 -0
  602. package/dist/service/logs/stream/sim-logs-log-stream-store.d.ts.map +1 -0
  603. package/dist/service/logs/stream/sim-logs-log-stream-store.js +58 -0
  604. package/dist/service/logs/stream/sim-logs-log-stream-store.js.map +1 -0
  605. package/dist/service/logs/stream/sim-logs-log-stream.d.ts +58 -0
  606. package/dist/service/logs/stream/sim-logs-log-stream.d.ts.map +1 -0
  607. package/dist/service/logs/stream/sim-logs-log-stream.js +79 -0
  608. package/dist/service/logs/stream/sim-logs-log-stream.js.map +1 -0
  609. package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.d.ts +33 -0
  610. package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.d.ts.map +1 -0
  611. package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js +42 -0
  612. package/dist/service/logs/subscription/lambda/sim-aws-logs-subscription-functions.js.map +1 -0
  613. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts +20 -0
  614. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.d.ts.map +1 -0
  615. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js +39 -0
  616. package/dist/service/logs/subscription/lambda/sim-logs-destination-permission.js.map +1 -0
  617. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts +33 -0
  618. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.d.ts.map +1 -0
  619. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js +66 -0
  620. package/dist/service/logs/subscription/lambda/sim-logs-subscription-function-arn.js.map +1 -0
  621. package/dist/service/logs/subscription/sim-logs-subscription-destinations.d.ts +41 -0
  622. package/dist/service/logs/subscription/sim-logs-subscription-destinations.d.ts.map +1 -0
  623. package/dist/service/logs/subscription/sim-logs-subscription-destinations.js +31 -0
  624. package/dist/service/logs/subscription/sim-logs-subscription-destinations.js.map +1 -0
  625. package/dist/service/logs/subscription/sim-logs-subscription-event.d.ts +50 -0
  626. package/dist/service/logs/subscription/sim-logs-subscription-event.d.ts.map +1 -0
  627. package/dist/service/logs/subscription/sim-logs-subscription-event.js +33 -0
  628. package/dist/service/logs/subscription/sim-logs-subscription-event.js.map +1 -0
  629. package/dist/service/logs/subscription/sim-logs-subscription-fan-out.d.ts +53 -0
  630. package/dist/service/logs/subscription/sim-logs-subscription-fan-out.d.ts.map +1 -0
  631. package/dist/service/logs/subscription/sim-logs-subscription-fan-out.js +69 -0
  632. package/dist/service/logs/subscription/sim-logs-subscription-fan-out.js.map +1 -0
  633. package/dist/service/logs/subscription/sim-logs-subscription-filter-store.d.ts +40 -0
  634. package/dist/service/logs/subscription/sim-logs-subscription-filter-store.d.ts.map +1 -0
  635. package/dist/service/logs/subscription/sim-logs-subscription-filter-store.js +55 -0
  636. package/dist/service/logs/subscription/sim-logs-subscription-filter-store.js.map +1 -0
  637. package/dist/service/logs/subscription/sim-logs-subscription-filter.d.ts +34 -0
  638. package/dist/service/logs/subscription/sim-logs-subscription-filter.d.ts.map +1 -0
  639. package/dist/service/logs/subscription/sim-logs-subscription-filter.js +36 -0
  640. package/dist/service/logs/subscription/sim-logs-subscription-filter.js.map +1 -0
  641. package/dist/service/logs/write/sim-logs-service-writer.d.ts +58 -0
  642. package/dist/service/logs/write/sim-logs-service-writer.d.ts.map +1 -0
  643. package/dist/service/logs/write/sim-logs-service-writer.js +74 -0
  644. package/dist/service/logs/write/sim-logs-service-writer.js.map +1 -0
  645. package/package.json +6 -1
  646. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts +0 -9
  647. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.d.ts.map +0 -1
  648. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js +0 -39
  649. package/dist/service/cognito/user-pool/user/sim-cognito-standard-attributes.js.map +0 -1
@@ -1,3 +1,4 @@
1
+ import type { SimCognitoUserPoolSchema } from "../schema/sim-cognito-user-pool-schema.js";
1
2
  /**
2
3
  * One user attribute, in the shape Cognito reads and reports it.
3
4
  *
@@ -7,22 +8,38 @@ export interface SimCognitoAttributeType {
7
8
  readonly Name?: string | undefined;
8
9
  readonly Value?: string | undefined;
9
10
  }
11
+ interface SimCognitoUserAttributesProperties {
12
+ /** The schema of the pool the user belongs to, which every write is held to. */
13
+ readonly schema: SimCognitoUserPoolSchema;
14
+ /** The attributes the request creating the user set. */
15
+ readonly requested?: readonly SimCognitoAttributeType[] | undefined;
16
+ }
10
17
  /**
11
18
  * The attributes held on one simulated user.
12
19
  *
13
20
  * Attribute names are checked against the pool's schema rather than stored as
14
21
  * written, because real Cognito refuses an attribute its schema does not hold.
15
- * A pool created here has the standard schema and nothing else, so a
16
- * `custom:` attribute is refused the same way it would be on a real pool
17
- * created without it.
22
+ * A pool created without a `Schema` of its own has the standard attributes and
23
+ * nothing else, so a `custom:` attribute is refused there exactly as it would
24
+ * be on a real pool created the same way.
25
+ *
26
+ * The schema decides more than the name: what kind of value the attribute
27
+ * holds, how long or how large it may be, and whether a user that already has
28
+ * it can be given another value.
18
29
  *
19
30
  * `sub` is not among them. Cognito allocates it, and a request setting it is
20
31
  * refused, so it lives on the user rather than in its attributes.
21
32
  */
22
33
  export declare class SimCognitoUserAttributes {
23
34
  private readonly byName;
24
- constructor(requested?: readonly SimCognitoAttributeType[]);
25
- private static requireName;
35
+ private readonly schema;
36
+ /**
37
+ * Whether the user this belongs to exists yet, which is what decides an
38
+ * immutable attribute: Cognito takes one while the user is being created and
39
+ * refuses every write afterwards.
40
+ */
41
+ private readonly created;
42
+ constructor(properties: SimCognitoUserAttributesProperties);
26
43
  private static requireValue;
27
44
  /**
28
45
  * The attributes by name, in the order they were first set.
@@ -48,5 +65,21 @@ export declare class SimCognitoUserAttributes {
48
65
  * value rather than being cleared.
49
66
  */
50
67
  update(requested?: readonly SimCognitoAttributeType[]): void;
68
+ /**
69
+ * Write one attribute, holding it to everything the schema says about it.
70
+ *
71
+ * Every write after the user was created is held to the attribute's
72
+ * mutability, whether or not the user has the attribute already. Real
73
+ * Cognito refuses both: an immutable attribute is one a user is created with
74
+ * or does without, and `AdminUpdateUserAttributes` cannot give it a first
75
+ * value any more than a second one.
76
+ */
77
+ private write;
78
+ /**
79
+ * The schema attribute a request names, or a refusal saying why the pool has
80
+ * no such attribute.
81
+ */
82
+ private requireInSchema;
51
83
  }
84
+ export {};
52
85
  //# sourceMappingURL=sim-cognito-user-attributes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAID;;;;;;;;;;;GAWG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IAEpD,YAAY,SAAS,CAAC,EAAE,SAAS,uBAAuB,EAAE,EAEzD;IAED,OAAO,CAAC,MAAM,CAAC,WAAW;IAyB1B,OAAO,CAAC,MAAM,CAAC,YAAY;IAiB3B;;OAEG;IACH,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAExC;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,SAAS,uBAAuB,EAAE,CAKhD;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAMrC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,uBAAuB,EAAE,GAAG,IAAI,CAa3D;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAE1F;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,UAAU,kCAAkC;IAC1C,gFAAgF;IAChF,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAE1C,wDAAwD;IACxD,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAAC;CACrE;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6B;IACpD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkB;IAE1C,YAAY,UAAU,EAAE,kCAAkC,EAKzD;IAED,OAAO,CAAC,MAAM,CAAC,YAAY;IAU3B;;OAEG;IACH,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAExC;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,SAAS,uBAAuB,EAAE,CAKhD;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAMrC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,uBAAuB,EAAE,GAAG,IAAI,CAQ3D;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAeb;;;OAGG;IACH,OAAO,CAAC,eAAe;CAwBxB"}
@@ -1,46 +1,39 @@
1
1
  import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
- import { isSimCognitoStandardAttribute } from "./sim-cognito-standard-attributes.js";
3
- const maxAttributeValueLength = 2048;
4
2
  /**
5
3
  * The attributes held on one simulated user.
6
4
  *
7
5
  * Attribute names are checked against the pool's schema rather than stored as
8
6
  * written, because real Cognito refuses an attribute its schema does not hold.
9
- * A pool created here has the standard schema and nothing else, so a
10
- * `custom:` attribute is refused the same way it would be on a real pool
11
- * created without it.
7
+ * A pool created without a `Schema` of its own has the standard attributes and
8
+ * nothing else, so a `custom:` attribute is refused there exactly as it would
9
+ * be on a real pool created the same way.
10
+ *
11
+ * The schema decides more than the name: what kind of value the attribute
12
+ * holds, how long or how large it may be, and whether a user that already has
13
+ * it can be given another value.
12
14
  *
13
15
  * `sub` is not among them. Cognito allocates it, and a request setting it is
14
16
  * refused, so it lives on the user rather than in its attributes.
15
17
  */
16
18
  export class SimCognitoUserAttributes {
17
19
  byName = new Map();
18
- constructor(requested) {
19
- this.update(requested);
20
- }
21
- static requireName(name) {
22
- if (name === undefined || name === "") {
23
- throw new SimCognitoInvalidParameterException("A user attribute needs a Name saying which attribute it sets");
24
- }
25
- if (name === "sub") {
26
- throw new SimCognitoInvalidParameterException("User attribute 'sub' is read-only: Cognito allocates a user's sub " +
27
- "when the user is created, and a request cannot set it");
28
- }
29
- if (!isSimCognitoStandardAttribute(name)) {
30
- throw new SimCognitoInvalidParameterException(`User attribute '${name}' is not in the pool's schema: a pool here ` +
31
- `holds the standard attributes only, because CreateUserPool ` +
32
- `refuses a Schema of its own, so custom attributes cannot exist`);
33
- }
34
- return name;
20
+ schema;
21
+ /**
22
+ * Whether the user this belongs to exists yet, which is what decides an
23
+ * immutable attribute: Cognito takes one while the user is being created and
24
+ * refuses every write afterwards.
25
+ */
26
+ created = false;
27
+ constructor(properties) {
28
+ this.schema = properties.schema;
29
+ this.update(properties.requested);
30
+ this.schema.requireEveryRequired(new Set(this.byName.keys()));
31
+ this.created = true;
35
32
  }
36
33
  static requireValue(name, value) {
37
34
  if (value === undefined) {
38
35
  throw new SimCognitoInvalidParameterException(`User attribute '${name}' needs a Value`);
39
36
  }
40
- if (value.length > maxAttributeValueLength) {
41
- throw new SimCognitoInvalidParameterException(`User attribute '${name}' is longer than the ` +
42
- `${String(maxAttributeValueLength)} characters Cognito allows`);
43
- }
44
37
  return value;
45
38
  }
46
39
  /**
@@ -82,9 +75,44 @@ export class SimCognitoUserAttributes {
82
75
  return;
83
76
  }
84
77
  for (const attribute of requested) {
85
- const name = SimCognitoUserAttributes.requireName(attribute.Name);
86
- this.byName.set(name, SimCognitoUserAttributes.requireValue(name, attribute.Value));
78
+ this.write(attribute);
79
+ }
80
+ }
81
+ /**
82
+ * Write one attribute, holding it to everything the schema says about it.
83
+ *
84
+ * Every write after the user was created is held to the attribute's
85
+ * mutability, whether or not the user has the attribute already. Real
86
+ * Cognito refuses both: an immutable attribute is one a user is created with
87
+ * or does without, and `AdminUpdateUserAttributes` cannot give it a first
88
+ * value any more than a second one.
89
+ */
90
+ write(requested) {
91
+ const attribute = this.requireInSchema(requested.Name);
92
+ const value = SimCognitoUserAttributes.requireValue(attribute.name, requested.Value);
93
+ if (this.created) {
94
+ attribute.requireMutable();
95
+ }
96
+ attribute.requireValue(value);
97
+ this.byName.set(attribute.name, value);
98
+ }
99
+ /**
100
+ * The schema attribute a request names, or a refusal saying why the pool has
101
+ * no such attribute.
102
+ */
103
+ requireInSchema(name) {
104
+ if (name === undefined || name === "") {
105
+ throw new SimCognitoInvalidParameterException("A user attribute needs a Name saying which attribute it sets");
106
+ }
107
+ if (name === "sub") {
108
+ throw new SimCognitoInvalidParameterException("User attribute 'sub' is read-only: Cognito allocates a user's sub " +
109
+ "when the user is created, and a request cannot set it");
110
+ }
111
+ const attribute = this.schema.find(name);
112
+ if (attribute === undefined) {
113
+ throw new SimCognitoInvalidParameterException(`User attribute '${name}' is not in the pool's schema: ${this.schema.describeHolding()}`);
87
114
  }
115
+ return attribute;
88
116
  }
89
117
  }
90
118
  //# sourceMappingURL=sim-cognito-user-attributes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-attributes.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAYrF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,wBAAwB;IAClB,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEpD,YAAY,SAA8C;QACxD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;IAEO,MAAM,CAAC,WAAW,CAAC,IAAwB;QACjD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,mCAAmC,CAC3C,8DAA8D,CAC/D,CAAC;QACJ,CAAC;QAED,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;YACnB,MAAM,IAAI,mCAAmC,CAC3C,oEAAoE;gBAClE,uDAAuD,CAC1D,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,mCAAmC,CAC3C,mBAAmB,IAAI,6CAA6C;gBAClE,6DAA6D;gBAC7D,gEAAgE,CACnE,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,MAAM,CAAC,YAAY,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AC,SAAS,CAAC,IAAI,CAAC,CAAC;YAElE,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,IAAI,EACJ,wBAAwB,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAC7D,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-attributes.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAsBvF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,wBAAwB;IAClB,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IACnC,MAAM,CAA2B;IAElD;;;;OAIG;IACc,OAAO,GAAY,KAAK,CAAC;IAE1C,YAAY,UAA8C;QACxD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAClC,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAEO,MAAM,CAAC,YAAY,CAAC,IAAY,EAAE,KAAyB;QACjE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,mCAAmC,CAC3C,mBAAmB,IAAI,iBAAiB,CACzC,CAAC;QACJ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,MAAM;aACf,OAAO,EAAE;aACT,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC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K,EAAE,EAAE,CAAC;YACtC,MAAM,IAAI,mCAAmC,CAC3C,8DAA8D,CAC/D,CAAC;QACJ,CAAC;QAED,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;YACnB,MAAM,IAAI,mCAAmC,CAC3C,oEAAoE;gBAClE,uDAAuD,CAC1D,CAAC;QACJ,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEzC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAI,mCAAmC,CAC3C,mBAAmB,IAAI,kCAAkC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,EAAE,CACzF,CAAC;QACJ,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
1
  import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
2
  import type { SimCognitoFederatedIdentity } from "../idp/sim-cognito-federated-identity.js";
3
+ import type { SimCognitoUserPoolSchema } from "../schema/sim-cognito-user-pool-schema.js";
3
4
  import type { SimCognitoPasswordPolicy } from "../sim-cognito-password-policy.js";
4
5
  import { type SimCognitoAttributeType } from "./sim-cognito-user-attributes.js";
5
6
  import { SimCognitoUser } from "./sim-cognito-user.js";
@@ -7,9 +8,16 @@ import type { SimCognitoUsername } from "./sim-cognito-username.js";
7
8
  interface SimCognitoUserFactoryProperties {
8
9
  readonly clock: SimClock;
9
10
  }
10
- interface SimCognitoMakeUserProperties {
11
+ interface SimCognitoNewUserProperties {
11
12
  readonly username: SimCognitoUsername;
12
13
  readonly attributes?: readonly SimCognitoAttributeType[] | undefined;
14
+ /**
15
+ * The schema of the pool the user is going into, which decides which
16
+ * attributes it may be given and what each of them may hold.
17
+ */
18
+ readonly schema: SimCognitoUserPoolSchema;
19
+ }
20
+ interface SimCognitoMakeUserProperties extends SimCognitoNewUserProperties {
13
21
  /**
14
22
  * The password the user starts with, checked here against the pool's policy.
15
23
  * A user made without one has no password at all.
@@ -18,15 +26,11 @@ interface SimCognitoMakeUserProperties {
18
26
  /** The policy the pool holds its users' passwords to. */
19
27
  readonly passwordPolicy: SimCognitoPasswordPolicy;
20
28
  }
21
- interface SimCognitoFederatedUserProperties {
22
- readonly username: SimCognitoUsername;
23
- readonly attributes?: readonly SimCognitoAttributeType[] | undefined;
29
+ interface SimCognitoFederatedUserProperties extends SimCognitoNewUserProperties {
24
30
  /** Which provider signed the user in, and which subject it signed in as. */
25
31
  readonly identity: SimCognitoFederatedIdentity;
26
32
  }
27
- interface SimCognitoSignUpUserProperties {
28
- readonly username: SimCognitoUsername;
29
- readonly attributes?: readonly SimCognitoAttributeType[] | undefined;
33
+ interface SimCognitoSignUpUserProperties extends SimCognitoNewUserProperties {
30
34
  /**
31
35
  * The password the user chose, checked here against the pool's policy. It is
32
36
  * the user's own rather than a temporary one, so the user signs in with it
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,UAAU,+BAA+B;IACvC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED,UAAU,4BAA4B;IACpC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAAC;IAErE;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhD,yDAAyD;IACzD,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;CACnD;AAED,UAAU,iCAAiC;IACzC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAAC;IAErE,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;CAChD;AAED,UAAU,8BAA8B;IACtC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,CAAC;IAErE;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAEtC,yDAAyD;IACzD,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;CACnD;AAED;;GAEG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IAEjC,YAAY,UAAU,EAAE,+BAA+B,EAEtD;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAc1B;;;;;;OAMG;IACH,IAAI,CAAC,UAAU,EAAE,4BAA4B,GAAG,cAAc,CAY7D;IAED;;;;;;OAMG;IACH,SAAS,CAAC,UAAU,EAAE,iCAAiC,GAAG,cAAc,CASvE;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU,EAAE,8BAA8B,GAAG,cAAc,CAgBjE;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-factory.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2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1B;;;;;;OAMG;IACH,IAAI,CAAC,UAAU,EAAE,4BAA4B,GAAG,cAAc,CAe7D;IAED;;;;;;OAMG;IACH,SAAS,CAAC,UAAU,EAAE,iCAAiC,GAAG,cAAc,CAYvE;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU,EAAE,8BAA8B,GAAG,cAAc,CAmBjE;CACF"}
@@ -36,7 +36,10 @@ export class SimCognitoUserFactory {
36
36
  return new SimCognitoUser({
37
37
  username: properties.username,
38
38
  sub: randomUUID(),
39
- attributes: new SimCognitoUserAttributes(properties.attributes),
39
+ attributes: new SimCognitoUserAttributes({
40
+ schema: properties.schema,
41
+ requested: properties.attributes,
42
+ }),
40
43
  password: SimCognitoUserFactory.passwordFor("TemporaryPassword", properties.temporaryPassword, properties.passwordPolicy),
41
44
  clock: this.clock,
42
45
  });
@@ -52,7 +55,10 @@ export class SimCognitoUserFactory {
52
55
  return new SimCognitoUser({
53
56
  username: properties.username,
54
57
  sub: randomUUID(),
55
- attributes: new SimCognitoUserAttributes(properties.attributes),
58
+ attributes: new SimCognitoUserAttributes({
59
+ schema: properties.schema,
60
+ requested: properties.attributes,
61
+ }),
56
62
  status: SimCognitoUserStatus.externalProvider,
57
63
  identity: properties.identity,
58
64
  clock: this.clock,
@@ -68,7 +74,10 @@ export class SimCognitoUserFactory {
68
74
  return new SimCognitoUser({
69
75
  username: properties.username,
70
76
  sub: randomUUID(),
71
- attributes: new SimCognitoUserAttributes(properties.attributes),
77
+ attributes: new SimCognitoUserAttributes({
78
+ schema: properties.schema,
79
+ requested: properties.attributes,
80
+ }),
72
81
  // The password a user chose is required, where the temporary one an
73
82
  // administrator gives is not.
74
83
  password: new SimCognitoUserPassword(new SimCognitoPasswordCheck(properties.passwordPolicy).require("Password", properties.password)),
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-factory.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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AAG,EAAE,UAAU,EAAE;YACjB,UAAU,EAAE,IAAI,wBAAwB,CAAC,UAAU,CAAC,UAAU,CAAC;YAC/D,MAAM,EAAE,oBAAoB,CAAC,gBAAgB;YAC7C,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAA0C;QAC/C,OAAO,IAAI,cAAc,CAAC;YACxB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,GAAG,EAAE,UAAU,EAAE;YACjB,UAAU,EAAE,IAAI,wBAAwB,CAAC,UAAU,CAAC,UAAU,CAAC;YAC/D,oEAAoE;YACpE,8BAA8B;YAC9B,QAAQ,EAAE,IAAI,sBAAsB,CAClC,IAAI,uBAAuB,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,OAAO,CAC5D,UAAU,EACV,UAAU,CAAC,QAAQ,CACpB,CACF;YACD,MAAM,EAAE,oBAAoB,CAAC,WAAW;YACxC,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-factory.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,EAEL,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA8CpE;;GAEG;AACH,MAAM,OAAO,qBAAqB;IACf,KAAK,CAAW;IAEjC,YAAY,UAA2C;QACrD,IAAI,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A0C;QAC/C,OAAO,IAAI,cAAc,CAAC;YACxB,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,GAAG,EAAE,UAAU,EAAE;YACjB,UAAU,EAAE,IAAI,wBAAwB,CAAC;gBACvC,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,SAAS,EAAE,UAAU,CAAC,UAAU;aACjC,CAAC;YACF,oEAAoE;YACpE,8BAA8B;YAC9B,QAAQ,EAAE,IAAI,sBAAsB,CAClC,IAAI,uBAAuB,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,OAAO,CAC5D,UAAU,EACV,UAAU,CAAC,QAAQ,CACpB,CACF;YACD,MAAM,EAAE,oBAAoB,CAAC,WAAW;YACxC,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
1
  import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
2
  import type { SimCognitoFederatedIdentity } from "../idp/sim-cognito-federated-identity.js";
3
+ import { SimCognitoUserMfa } from "./mfa/sim-cognito-user-mfa.js";
3
4
  import type { SimCognitoAttributeType, SimCognitoUserAttributes } from "./sim-cognito-user-attributes.js";
4
5
  import { SimCognitoUserPassword } from "./sim-cognito-user-password.js";
5
6
  import { SimCognitoUserStatus } from "./sim-cognito-user-status.js";
@@ -41,6 +42,7 @@ export declare class SimCognitoUser {
41
42
  private readonly clock;
42
43
  private readonly userAttributes;
43
44
  private readonly confirmation;
45
+ private readonly userMfa;
44
46
  private readonly federatedIdentity;
45
47
  private userStatus;
46
48
  private userPassword;
@@ -95,6 +97,12 @@ export declare class SimCognitoUser {
95
97
  * confirmed user has none: a code is single use, and confirming spends it.
96
98
  */
97
99
  get confirmationCode(): string | undefined;
100
+ /**
101
+ * The second factors this user has registered, which it registers and is
102
+ * challenged with itself. Changing them moves this user's
103
+ * `UserLastModifiedDate` on, as every other change to a user does.
104
+ */
105
+ get mfa(): SimCognitoUserMfa;
98
106
  /**
99
107
  * Set the password an admin gave this user.
100
108
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAE5F,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,wBAAwB,CAAC;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAEvD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAEnD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,cAAc;IACzB,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,YAAY,EAAE,IAAI,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA2B;IAC1D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA6B;IAC1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AAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAG/C;IAED;;;;;;;OAOG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAElD;IAED;;OAEG;IACH,gBAAgB,CACd,SAAS,EAAE,SAAS,uBAAuB,EAAE,GAAG,SAAS,GACxD,IAAI,CAGN;IAED;;OAEG;IACH,MAAM,IAAI,IAAI,CAGb;IAED;;OAEG;IACH,OAAO,IAAI,IAAI,CAGd;IAED;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;IAMd;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,KAAK;CAGd"}
@@ -1,3 +1,4 @@
1
+ import { SimCognitoUserMfa } from "./mfa/sim-cognito-user-mfa.js";
1
2
  import { SimCognitoUserConfirmation } from "./sim-cognito-user-confirmation.js";
2
3
  import { SimCognitoUserPassword } from "./sim-cognito-user-password.js";
3
4
  import { SimCognitoUserStatus } from "./sim-cognito-user-status.js";
@@ -20,6 +21,7 @@ export class SimCognitoUser {
20
21
  clock;
21
22
  userAttributes;
22
23
  confirmation;
24
+ userMfa;
23
25
  federatedIdentity;
24
26
  userStatus;
25
27
  userPassword;
@@ -37,6 +39,12 @@ export class SimCognitoUser {
37
39
  this.clock = properties.clock;
38
40
  this.creationDate = this.clock.now();
39
41
  this.modifiedDate = this.creationDate;
42
+ this.userMfa = new SimCognitoUserMfa({
43
+ attributes: this.userAttributes.values,
44
+ changed: () => {
45
+ this.touch();
46
+ },
47
+ });
40
48
  }
41
49
  /**
42
50
  * When the user last changed.
@@ -104,6 +112,14 @@ export class SimCognitoUser {
104
112
  get confirmationCode() {
105
113
  return this.confirmation.code;
106
114
  }
115
+ /**
116
+ * The second factors this user has registered, which it registers and is
117
+ * challenged with itself. Changing them moves this user's
118
+ * `UserLastModifiedDate` on, as every other change to a user does.
119
+ */
120
+ get mfa() {
121
+ return this.userMfa;
122
+ }
107
123
  /**
108
124
  * Set the password an admin gave this user.
109
125
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/user/sim-cognito-user.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAKhF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAwBpE;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,cAAc;IACT,QAAQ,CAAqB;IAC7B,GAAG,CAAS;IACZ,YAAY,CAAO;IAElB,KAAK,CAAW;IAChB,cAAc,CAA2B;IACzC,YAAY,CAA6B;IACzC,iBAAiB,CAA0C;IACpE,UAAU,CAAuB;IACjC,YAAY,CAAqC;IACjD,SAAS,GAAG,IAAI,CAAC;IACjB,YAAY,CAAO;IAE3B,YAAY,UAAoC;QAC9C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;QAC1B,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,UAAU;YACb,UAAU,CAAC,MAAM,IAAI,oBAAoB,CAAC,mBAAmB,CAAC;QAChE,IAAI,CAAC,YAAY,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACpE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,IA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H,MAAM;QACJ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED;;;;;;OAMG;IACK,MAAM,CAAC,MAA4B;QACzC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;QACzB,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED;;;OAGG;IACK,iBAAiB;QACvB,IAAI,IAAI,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;YACzC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO;YACL,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,EAAE;SACzE,CAAC;IACJ,CAAC;IAEO,KAAK;QACX,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IACvC,CAAC;CACF"}
@@ -7,6 +7,7 @@ import { type SimIamInterServiceAuthZ } from "../../../iam/authorize/sim-iam-int
7
7
  import type { SimLambdaContainerImages } from "../../function/code/image/sim-lambda-container-images.js";
8
8
  import type { SimLambdaCodeStore } from "../../function/code/store/sim-lambda-code-store.js";
9
9
  import type { SimLambdaVmSdkModuleProvider } from "../../function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js";
10
+ import type { SimLogsServiceWriter } from "../../../logs/write/sim-logs-service-writer.js";
10
11
  import { SimLambdaEnvironmentConflicts } from "../../function/environment/sim-lambda-environment-conflicts.js";
11
12
  import { type SimLambdaFunctionMap } from "../../function/sim-lambda-function.js";
12
13
  import type { SimCreateFunctionCommand, SimCreateFunctionCommandOutput } from "./create-function.command.js";
@@ -20,6 +21,7 @@ interface CreateFunctionCommandHandlerProperties {
20
21
  containerImages?: SimLambdaContainerImages | undefined;
21
22
  vmSdkModuleProvider?: SimLambdaVmSdkModuleProvider | undefined;
22
23
  environmentConflicts?: SimLambdaEnvironmentConflicts;
24
+ logs?: SimLogsServiceWriter | undefined;
23
25
  }
24
26
  interface CreateFunctionCommandHandlerOptions {
25
27
  readonly caller?: SimAwsCaller;
@@ -37,6 +39,7 @@ export declare class CreateFunctionCommandHandler implements CommandHandler<SimC
37
39
  private readonly background;
38
40
  private readonly codeResolver;
39
41
  private readonly environmentConflicts;
42
+ private readonly logs;
40
43
  constructor(properties: CreateFunctionCommandHandlerProperties);
41
44
  /**
42
45
  * Create a sim Lambda function.
@@ -1 +1 @@
1
- {"version":3,"file":"create-function.handler.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/create-function/create-function.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,wDAAwD,CAAC;AAIhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACzG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AACpH,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAE/G,OAAO,EAGL,KAAK,oBAAoB,EAG1B,MAAM,uCAAuC,CAAC;AAM/C,OAAO,KAAK,EACV,wBAAwB,EACxB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AA6B,CAAC;IACrD,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CACzC;AAED,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;GAIG;AACH,qBAAa,4BAA6B,YAAW,cAAc,CACjE,wBAAwB,EACxB,8BAA8B,CAC/B;IACC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA2B;IAC9D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuB;IACjD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA2B;IACtD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IACrE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmC;IAExD,YAAY,UAAU,EAAE,sCAAsC,EA4B7D;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,8BAA8B,CAAC,CAgDzC;IAED;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAWpC;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IASvB;;;OAGG;YACW,WAAW;CAW1B"}
@@ -20,8 +20,9 @@ export class CreateFunctionCommandHandler {
20
20
  background;
21
21
  codeResolver;
22
22
  environmentConflicts;
23
+ logs;
23
24
  constructor(properties) {
24
- const { accountRegionScope, functions, runAsOwner, iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), codeStore, containerImages, vmSdkModuleProvider, environmentConflicts = new SimLambdaEnvironmentConflicts(), } = properties;
25
+ const { accountRegionScope, functions, runAsOwner, iam = new SimIamAllowAllAuth(), background = new BackgroundTasks(), codeStore, containerImages, vmSdkModuleProvider, environmentConflicts = new SimLambdaEnvironmentConflicts(), logs, } = properties;
25
26
  this.accountRegionScope = accountRegionScope;
26
27
  this.functions = functions;
27
28
  this.runAsOwner = runAsOwner;
@@ -36,6 +37,7 @@ export class CreateFunctionCommandHandler {
36
37
  clock: background,
37
38
  });
38
39
  this.environmentConflicts = environmentConflicts;
40
+ this.logs = logs;
39
41
  }
40
42
  /**
41
43
  * Create a sim Lambda function.
@@ -63,6 +65,7 @@ export class CreateFunctionCommandHandler {
63
65
  accountRegionScope: this.accountRegionScope,
64
66
  runAsOwner: this.runAsOwner,
65
67
  clock: this.background,
68
+ logs: this.logs,
66
69
  });
67
70
  this.functions.set(simFunction.name, simFunction);
68
71
  // New function becomes Active async in the background.
@@ -1 +1 @@
1
- {"version":3,"file":"create-function.handler.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/create-function/create-function.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,GAChB,MAAM,2CAA2C,CAAC;AAInD,OAAO,EACL,kBAAkB,GAEnB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,iCAAiC,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAIxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EACL,iCAAiC,EACjC,iBAAiB,EAGjB,oBAAoB,GACrB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAEL,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AAsBpC;;;;GAIG;AACH,MAAM,OAAO,4BAA4B;IAItB,kBAAkB,CAA2B;IAC7C,SAAS,CAAuB;IAChC,UAAU,CAAmB;IAC7B,UAAU,CAA2B;IACrC,UAAU,CAAsB;IAChC,YAAY,CAAwB;IACpC,oBAAoB,CAAgC;IAErE,YAAY,UAAkD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K,CAAC,IAAI;YACxB,UAAU,EAAE,IAAI,CAAC,kBAAkB,CAAC,UAAU;YAC9C,YAAY,EAAE,KAAK,CAAC,YAAY,IAAI,iCAAiC;YACrE,iBAAiB,EAAE,KAAK,CAAC,oBAAoB;SAC9C,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,WAAW,CACvB,KAA0B,EAC1B,WAAiC,EACjC,MAAgC;QAEhC,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE;YACvD,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,WAAW;YACX,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"create-function.handler.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/create-function/create-function.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,GAChB,MAAM,2CAA2C,CAAC;AAInD,OAAO,EACL,kBAAkB,GAEnB,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,iCAAiC,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAKxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AAC/G,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EACL,iCAAiC,EACjC,iBAAiB,EAGjB,oBAAoB,GACrB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAEL,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC;AAuBpC;;;;GAIG;AACH,MAAM,OAAO,4BAA4B;IAItB,kBAAkB,CAA2B;IAC7C,SAAS,CAAuB;IAChC,UAAU,CAAmB;IAC7B,UAAU,CAA2B;IACrC,UAAU,CAAsB;IAChC,YAAY,CAAwB;IACpC,oBAAoB,CAAgC;IACpD,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C;QACJ,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACK,eAAe,CAAC,KAA0B;QAChD,OAAO,IAAI,oBAAoB,CAAC;YAC9B,YAAY,EAAE,KAAK,CAAC,IAAI;YACxB,UAAU,EAAE,IAAI,CAAC,kBAAkB,CAAC,UAAU;YAC9C,YAAY,EAAE,KAAK,CAAC,YAAY,IAAI,iCAAiC;YACrE,iBAAiB,EAAE,KAAK,CAAC,oBAAoB;SAC9C,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,WAAW,CACvB,KAA0B,EAC1B,WAAiC,EACjC,MAAgC;QAEhC,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE;YACvD,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,WAAW;YACX,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -6,6 +6,7 @@ import type { SimIamInterServiceAuthZ } from "../../../iam/authorize/sim-iam-int
6
6
  import type { SimLambdaContainerImages } from "../../function/code/image/sim-lambda-container-images.js";
7
7
  import type { SimLambdaCodeStore } from "../../function/code/store/sim-lambda-code-store.js";
8
8
  import type { SimLambdaVmSdkModuleProvider } from "../../function/code/vm/sdk/sim-lambda-vm-sdk-module-provider.js";
9
+ import type { SimLogsServiceWriter } from "../../../logs/write/sim-logs-service-writer.js";
9
10
  import type { SimLambdaEnvironmentConflicts } from "../../function/environment/sim-lambda-environment-conflicts.js";
10
11
  import type { SimLambdaFunctionMap } from "../../function/sim-lambda-function.js";
11
12
  import type { SimLambdaFunctionUrlStore } from "../../function/url/sim-lambda-function-url-store.js";
@@ -24,6 +25,7 @@ interface SimLambdaFunctionCommandsProperties {
24
25
  readonly codeStore?: SimLambdaCodeStore | undefined;
25
26
  readonly containerImages?: SimLambdaContainerImages | undefined;
26
27
  readonly vmSdkModuleProvider?: SimLambdaVmSdkModuleProvider | undefined;
28
+ readonly logs?: SimLogsServiceWriter | undefined;
27
29
  }
28
30
  interface SimLambdaFunctionCommandOptions {
29
31
  readonly caller?: SimAwsCaller;
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-function-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/function/sim-lambda-function-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACzG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AACpH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gEAAgE,CAAC;AACpH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAErG,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,+CAA+C,CAAC;AAEvD,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AAErC,UAAU,mCAAmC;IAC3C,QAAQ,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IACtD,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,yBAAyB,CAAC;IACjD,QAAQ,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;IAC7D,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,eAAe,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CACzE;AAED,UAAU,+BAA+B;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsC;IAEjE,YAAY,UAAU,EAAE,mCAAmC,EAE1D;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,8BAA8B,CAAC,CAKzC;IAED;;OAEG;IACG,GAAG,CACP,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,2BAA2B,CAAC,CAKtC;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,8BAA8B,CAAC,CAKzC;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,gBAAgB,EACzB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,sBAAsB,CAAC,CAKjC;CACF"}
1
+ {"version":3,"file":"sim-lambda-function-commands.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/function/sim-lambda-function-commands.ts"],"names":[],"m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AAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,yBAAyB,CAAC;IACjD,QAAQ,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;IAC7D,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,eAAe,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAChE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACxE,QAAQ,CAAC,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAClD;AAED,UAAU,+BAA+B;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;CAChC;AAED;;;;;;GAMG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsC;IAEjE,YAAY,UAAU,EAAE,mCAAmC,EAE1D;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,8BAA8B,CAAC,CAKzC;IAED;;OAEG;IACG,GAAG,CACP,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,2BAA2B,CAAC,CAKtC;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,8BAA8B,CAAC,CAKzC;IAED;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,gBAAgB,EACzB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,sBAAsB,CAAC,CAKjC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-function-commands.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/function/sim-lambda-function-commands.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAK7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAK7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAKpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAuBnE;;;;;;GAMG;AACH,MAAM,OAAO,yBAAyB;IACnB,UAAU,CAAsC;IAEjE,YAAY,UAA+C;QACzD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAiC,EACjC,OAAyC;QAEzC,OAAO,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CACnE,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CACP,OAA8B,EAC9B,OAAyC;QAEzC,OAAO,MAAM,IAAI,yBAAyB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAChE,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAiC,EACjC,OAAyC;QAEzC,OAAO,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CACnE,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAyB,EACzB,OAAyC;QAEzC,OAAO,MAAM,IAAI,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAC3D,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"sim-lambda-function-commands.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/function/sim-lambda-function-commands.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAK7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAK7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAKpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAwBnE;;;;;;GAMG;AACH,MAAM,OAAO,yBAAyB;IACnB,UAAU,CAAsC;IAEjE,YAAY,UAA+C;QACzD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAiC,EACjC,OAAyC;QAEzC,OAAO,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CACnE,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CACP,OAA8B,EAC9B,OAAyC;QAEzC,OAAO,MAAM,IAAI,yBAAyB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAChE,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAiC,EACjC,OAAyC;QAEzC,OAAO,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CACnE,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAyB,EACzB,OAAyC;QAEzC,OAAO,MAAM,IAAI,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAC3D,OAAO,EACP,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,3 +1,4 @@
1
+ import type { SimLambdaOutputSink } from "../logging/sim-lambda-output-sink.js";
1
2
  import type { SimLambdaHandler } from "../sim-lambda-handler.type.js";
2
3
  /**
3
4
  * Executable code backing a sim Lambda function.
@@ -17,6 +18,11 @@ export interface SimLambdaExecutableCode {
17
18
  * global touched.
18
19
  */
19
20
  readonly runsInHostScope: boolean;
21
+ /**
22
+ * Record what this code writes to its standard streams, so an invocation's
23
+ * output reaches the function's log group.
24
+ */
25
+ recordOutputTo(sink: SimLambdaOutputSink): void;
20
26
  handlerFunction(): SimLambdaHandler;
21
27
  }
22
28
  /**
@@ -30,6 +36,15 @@ export declare class SimLambdaHandlerReferenceCode implements SimLambdaExecutabl
30
36
  */
31
37
  readonly runsInHostScope = true;
32
38
  constructor(handler: SimLambdaHandler);
39
+ /**
40
+ * Record nothing.
41
+ *
42
+ * A referenced handler has no streams of its own to tee: it is an ordinary
43
+ * function closing over the test's own module scope, so its `console.log`
44
+ * reaches the host console directly and there is nothing here to intercept
45
+ * without patching a global the whole test run shares.
46
+ */
47
+ recordOutputTo(): void;
33
48
  /**
34
49
  * Get the referenced handler function.
35
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-executable-code.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAElC,eAAe,IAAI,gBAAgB,CAAC;CACrC;AAED;;GAEG;AACH,qBAAa,6BAA8B,YAAW,uBAAuB;IAO/D,OAAO,CAAC,QAAQ,CAAC,OAAO;IANpC;;;OAGG;IACH,QAAQ,CAAC,eAAe,QAAQ;IAEhC,YAA6B,OAAO,EAAE,gBAAgB,EAAI;IAE1D;;OAEG;IACH,eAAe,IAAI,gBAAgB,CAElC;CACF"}
1
+ {"version":3,"file":"sim-lambda-executable-code.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAElC;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEhD,eAAe,IAAI,gBAAgB,CAAC;CACrC;AAED;;GAEG;AACH,qBAAa,6BAA8B,YAAW,uBAAuB;IAO/D,OAAO,CAAC,QAAQ,CAAC,OAAO;IANpC;;;OAGG;IACH,QAAQ,CAAC,eAAe,QAAQ;IAEhC,YAA6B,OAAO,EAAE,gBAAgB,EAAI;IAE1D;;;;;;;OAOG;IACH,cAAc,IAAI,IAAI,CAErB;IAED;;OAEG;IACH,eAAe,IAAI,gBAAgB,CAElC;CACF"}
@@ -11,6 +11,17 @@ export class SimLambdaHandlerReferenceCode {
11
11
  constructor(handler) {
12
12
  this.handler = handler;
13
13
  }
14
+ /**
15
+ * Record nothing.
16
+ *
17
+ * A referenced handler has no streams of its own to tee: it is an ordinary
18
+ * function closing over the test's own module scope, so its `console.log`
19
+ * reaches the host console directly and there is nothing here to intercept
20
+ * without patching a global the whole test run shares.
21
+ */
22
+ recordOutputTo() {
23
+ // Nothing to record from.
24
+ }
14
25
  /**
15
26
  * Get the referenced handler function.
16
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-executable-code.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AAwBA;;GAEG;AACH,MAAM,OAAO,6BAA6B;IAOX,OAAO;IANpC;;;OAGG;IACM,eAAe,GAAG,IAAI,CAAC;IAEhC,YAA6B,OAAyB;uBAAzB,OAAO;IAAqB,CAAC;IAE1D;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
1
+ {"version":3,"file":"sim-lambda-executable-code.js","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-executable-code.ts"],"names":[],"mappings":"AA+BA;;GAEG;AACH,MAAM,OAAO,6BAA6B;IAOX,OAAO;IANpC;;;OAGG;IACM,eAAe,GAAG,IAAI,CAAC;IAEhC,YAA6B,OAAyB;uBAAzB,OAAO;IAAqB,CAAC;IAE1D;;;;;;;OAOG;IACH,cAAc;QACZ,0BAA0B;IAC5B,CAAC;IAED;;OAEG;IACH,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
@@ -0,0 +1,15 @@
1
+ export interface ParsedHandlerName {
2
+ readonly modulePath: string;
3
+ readonly exportName: string;
4
+ }
5
+ /**
6
+ * Parse an AWS Lambda handler identifier such as "index.handler" or
7
+ * "src/app.handler" into its module path and export name.
8
+ *
9
+ * The separator is the last period rather than the first, so a module in a
10
+ * directory and a module with a period in its name both resolve the way real
11
+ * Lambda resolves them: `src/app.service.handler` is the `handler` export of
12
+ * `src/app.service`.
13
+ */
14
+ export declare function parseLambdaHandlerName(handlerName: string): ParsedHandlerName;
15
+ //# sourceMappingURL=sim-lambda-handler-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-lambda-handler-name.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/function/code/sim-lambda-handler-name.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,CAc7E"}