@kensio/yulin 1.18.0 → 1.18.2

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 (389) hide show
  1. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +8 -2
  2. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts.map +1 -1
  3. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +9 -3
  4. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js.map +1 -1
  5. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.d.ts +25 -0
  6. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.d.ts.map +1 -0
  7. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.js +36 -0
  8. package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-web-acl.js.map +1 -0
  9. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.d.ts.map +1 -1
  10. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js +6 -5
  11. package/dist/service/cloudfront/cfn/sim-cfn-cloudfront-resource-factory.js.map +1 -1
  12. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
  13. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +10 -0
  14. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  15. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts +27 -0
  16. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.d.ts.map +1 -0
  17. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js +35 -0
  18. package/dist/service/cognito/cfn/client/sim-cfn-cognito-refresh-token-rotation.js.map +1 -0
  19. package/dist/service/cognito/command/auth/auth.command.d.ts +31 -0
  20. package/dist/service/cognito/command/auth/auth.command.d.ts.map +1 -1
  21. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts +2 -0
  22. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.d.ts.map +1 -1
  23. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js +13 -1
  24. package/dist/service/cognito/command/auth/sim-cognito-auth-commands.js.map +1 -1
  25. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts +35 -0
  26. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.d.ts.map +1 -0
  27. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js +51 -0
  28. package/dist/service/cognito/command/auth/sim-cognito-get-tokens-from-refresh-token.js.map +1 -0
  29. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts +3 -8
  30. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.d.ts.map +1 -1
  31. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js +24 -17
  32. package/dist/service/cognito/command/auth/sim-cognito-refresh-sign-in.js.map +1 -1
  33. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts +56 -0
  34. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.d.ts.map +1 -0
  35. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js +50 -0
  36. package/dist/service/cognito/command/auth/sim-cognito-refreshed-tokens.js.map +1 -0
  37. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.d.ts.map +1 -1
  38. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js +0 -1
  39. package/dist/service/cognito/command/client/sim-cognito-unsimulated-client-options.js.map +1 -1
  40. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +4 -3
  41. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
  42. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +5 -3
  43. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
  44. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +3 -1
  45. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  46. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js +1 -1
  47. package/dist/service/cognito/command/hosted/sim-cognito-presented-grant.js.map +1 -1
  48. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts +3 -3
  49. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.d.ts.map +1 -1
  50. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js +5 -4
  51. package/dist/service/cognito/command/hosted/sim-cognito-token-grants.js.map +1 -1
  52. package/dist/service/cognito/command/sim-cognito-command.types.d.ts +1 -1
  53. package/dist/service/cognito/command/sim-cognito-command.types.d.ts.map +1 -1
  54. package/dist/service/cognito/index.d.ts +1 -0
  55. package/dist/service/cognito/index.d.ts.map +1 -1
  56. package/dist/service/cognito/index.js +1 -0
  57. package/dist/service/cognito/index.js.map +1 -1
  58. package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.d.ts.map +1 -1
  59. package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js +4 -0
  60. package/dist/service/cognito/sdk/sim-cognito-sdk-auth-routes.js.map +1 -1
  61. package/dist/service/cognito/sim-cognito-authentication.d.ts +8 -0
  62. package/dist/service/cognito/sim-cognito-authentication.d.ts.map +1 -1
  63. package/dist/service/cognito/sim-cognito-authentication.js +11 -0
  64. package/dist/service/cognito/sim-cognito-authentication.js.map +1 -1
  65. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts +11 -1
  66. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.d.ts.map +1 -1
  67. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js +17 -2
  68. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token-store.js.map +1 -1
  69. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts +41 -0
  70. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.d.ts.map +1 -1
  71. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js +62 -0
  72. package/dist/service/cognito/user-pool/auth/sim-cognito-issued-token.js.map +1 -1
  73. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts +5 -0
  74. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.d.ts.map +1 -1
  75. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js +7 -0
  76. package/dist/service/cognito/user-pool/auth/sim-cognito-pool-auth.js.map +1 -1
  77. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts +11 -0
  78. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.d.ts.map +1 -0
  79. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js +17 -0
  80. package/dist/service/cognito/user-pool/auth/sim-cognito-refresh-token-input.js.map +1 -0
  81. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts +61 -0
  82. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.d.ts.map +1 -0
  83. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js +80 -0
  84. package/dist/service/cognito/user-pool/auth/sim-cognito-refreshable-session.factory.js.map +1 -0
  85. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts +10 -0
  86. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.d.ts.map +1 -1
  87. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js +22 -0
  88. package/dist/service/cognito/user-pool/client/sim-cognito-client-secret.js.map +1 -1
  89. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts +48 -0
  90. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.d.ts.map +1 -0
  91. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js +79 -0
  92. package/dist/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.js.map +1 -0
  93. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts +7 -0
  94. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.d.ts.map +1 -1
  95. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js +7 -0
  96. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.js.map +1 -1
  97. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +6 -0
  98. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  99. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +7 -0
  100. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  101. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts +34 -0
  102. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.d.ts.map +1 -1
  103. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js +40 -1
  104. package/dist/service/cognito/user-pool/token/sim-cognito-token-issuer.js.map +1 -1
  105. package/dist/service/lambda/command/create-function/create-function-input.js +1 -1
  106. package/dist/service/lambda/command/create-function/create-function-input.js.map +1 -1
  107. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts +17 -0
  108. package/dist/service/lambda/command/function/sim-lambda-function-commands.d.ts.map +1 -1
  109. package/dist/service/lambda/command/function/sim-lambda-function-commands.js +43 -0
  110. package/dist/service/lambda/command/function/sim-lambda-function-commands.js.map +1 -1
  111. package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts +31 -0
  112. package/dist/service/lambda/command/list-functions/list-functions-authorizer.d.ts.map +1 -0
  113. package/dist/service/lambda/command/list-functions/list-functions-authorizer.js +41 -0
  114. package/dist/service/lambda/command/list-functions/list-functions-authorizer.js.map +1 -0
  115. package/dist/service/lambda/command/list-functions/list-functions.command.d.ts +34 -0
  116. package/dist/service/lambda/command/list-functions/list-functions.command.d.ts.map +1 -0
  117. package/dist/service/lambda/command/list-functions/list-functions.command.js +5 -0
  118. package/dist/service/lambda/command/list-functions/list-functions.command.js.map +1 -0
  119. package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts +35 -0
  120. package/dist/service/lambda/command/list-functions/list-functions.handler.d.ts.map +1 -0
  121. package/dist/service/lambda/command/list-functions/list-functions.handler.js +46 -0
  122. package/dist/service/lambda/command/list-functions/list-functions.handler.js.map +1 -0
  123. package/dist/service/lambda/command/sim-lambda-command.types.d.ts +3 -0
  124. package/dist/service/lambda/command/sim-lambda-command.types.d.ts.map +1 -1
  125. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts +27 -0
  126. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.d.ts.map +1 -0
  127. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js +37 -0
  128. package/dist/service/lambda/command/update-function-code/update-function-code-authorizer.js.map +1 -0
  129. package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts +16 -0
  130. package/dist/service/lambda/command/update-function-code/update-function-code-input.d.ts.map +1 -0
  131. package/dist/service/lambda/command/update-function-code/update-function-code-input.js +30 -0
  132. package/dist/service/lambda/command/update-function-code/update-function-code-input.js.map +1 -0
  133. package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts +41 -0
  134. package/dist/service/lambda/command/update-function-code/update-function-code.command.d.ts.map +1 -0
  135. package/dist/service/lambda/command/update-function-code/update-function-code.command.js +5 -0
  136. package/dist/service/lambda/command/update-function-code/update-function-code.command.js.map +1 -0
  137. package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts +52 -0
  138. package/dist/service/lambda/command/update-function-code/update-function-code.handler.d.ts.map +1 -0
  139. package/dist/service/lambda/command/update-function-code/update-function-code.handler.js +72 -0
  140. package/dist/service/lambda/command/update-function-code/update-function-code.handler.js.map +1 -0
  141. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts +28 -0
  142. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.d.ts.map +1 -0
  143. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js +38 -0
  144. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-authorizer.js.map +1 -0
  145. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts +23 -0
  146. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.d.ts.map +1 -0
  147. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js +29 -0
  148. package/dist/service/lambda/command/update-function-configuration/update-function-configuration-input.js.map +1 -0
  149. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts +42 -0
  150. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.d.ts.map +1 -0
  151. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js +5 -0
  152. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.command.js.map +1 -0
  153. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts +50 -0
  154. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.d.ts.map +1 -0
  155. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js +61 -0
  156. package/dist/service/lambda/command/update-function-configuration/update-function-configuration.handler.js.map +1 -0
  157. package/dist/service/lambda/function/code/lambda-code-source.d.ts +15 -2
  158. package/dist/service/lambda/function/code/lambda-code-source.d.ts.map +1 -1
  159. package/dist/service/lambda/function/code/lambda-code-source.js +19 -14
  160. package/dist/service/lambda/function/code/lambda-code-source.js.map +1 -1
  161. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts +6 -0
  162. package/dist/service/lambda/function/code/sim-lambda-code-resolver.d.ts.map +1 -1
  163. package/dist/service/lambda/function/code/sim-lambda-code-resolver.js.map +1 -1
  164. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts +28 -0
  165. package/dist/service/lambda/function/code/sim-lambda-executable-code.d.ts.map +1 -1
  166. package/dist/service/lambda/function/code/sim-lambda-executable-code.js +10 -0
  167. package/dist/service/lambda/function/code/sim-lambda-executable-code.js.map +1 -1
  168. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.d.ts.map +1 -1
  169. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js +2 -1
  170. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code-factory.js.map +1 -1
  171. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts +11 -1
  172. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.d.ts.map +1 -1
  173. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js +16 -0
  174. package/dist/service/lambda/function/code/sim-lambda-vm-zip-code.js.map +1 -1
  175. package/dist/service/lambda/{command/create-function/create-function-environment-names.d.ts → function/environment/lambda-environment-variable-names.d.ts} +1 -1
  176. package/dist/service/lambda/function/environment/lambda-environment-variable-names.d.ts.map +1 -0
  177. package/dist/service/lambda/{command/create-function/create-function-environment-names.js → function/environment/lambda-environment-variable-names.js} +1 -1
  178. package/dist/service/lambda/function/environment/lambda-environment-variable-names.js.map +1 -0
  179. package/dist/service/lambda/{command/create-function/create-function-environment.d.ts → function/environment/lambda-environment-variables.d.ts} +2 -2
  180. package/dist/service/lambda/function/environment/lambda-environment-variables.d.ts.map +1 -0
  181. package/dist/service/lambda/{command/create-function/create-function-environment.js → function/environment/lambda-environment-variables.js} +2 -2
  182. package/dist/service/lambda/function/environment/lambda-environment-variables.js.map +1 -0
  183. package/dist/service/lambda/function/environment/lambda-reserved-variable-names.d.ts.map +1 -0
  184. package/dist/service/lambda/function/environment/lambda-reserved-variable-names.js.map +1 -0
  185. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts +35 -0
  186. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.d.ts.map +1 -0
  187. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js +54 -0
  188. package/dist/service/lambda/function/sim-lambda-function-reconfiguration.js.map +1 -0
  189. package/dist/service/lambda/function/sim-lambda-function.d.ts +34 -56
  190. package/dist/service/lambda/function/sim-lambda-function.d.ts.map +1 -1
  191. package/dist/service/lambda/function/sim-lambda-function.js +43 -9
  192. package/dist/service/lambda/function/sim-lambda-function.js.map +1 -1
  193. package/dist/service/lambda/function/sim-lambda-function.type.d.ts +53 -0
  194. package/dist/service/lambda/function/sim-lambda-function.type.d.ts.map +1 -0
  195. package/dist/service/lambda/function/sim-lambda-function.type.js +2 -0
  196. package/dist/service/lambda/function/sim-lambda-function.type.js.map +1 -0
  197. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.d.ts.map +1 -1
  198. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js +12 -0
  199. package/dist/service/lambda/sdk/sim-lambda-sdk-command-router.js.map +1 -1
  200. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts +27 -0
  201. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.d.ts.map +1 -0
  202. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js +76 -0
  203. package/dist/service/lambda/serve/api/sim-lambda-api-function-input.js.map +1 -0
  204. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.d.ts.map +1 -1
  205. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js +19 -58
  206. package/dist/service/lambda/serve/api/sim-lambda-api-function-routes.js.map +1 -1
  207. package/dist/service/lambda/sim-lambda-commands.d.ts.map +1 -1
  208. package/dist/service/lambda/sim-lambda-commands.js +1 -0
  209. package/dist/service/lambda/sim-lambda-commands.js.map +1 -1
  210. package/dist/service/lambda/sim-lambda.d.ts +6 -0
  211. package/dist/service/lambda/sim-lambda.d.ts.map +1 -1
  212. package/dist/service/lambda/sim-lambda.js +12 -0
  213. package/dist/service/lambda/sim-lambda.js.map +1 -1
  214. package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts +1 -1
  215. package/dist/service/s3/bucket/notification/sim-s3-notification-event.d.ts.map +1 -1
  216. package/dist/service/s3/bucket/notification/sim-s3-notification-event.js +7 -1
  217. package/dist/service/s3/bucket/notification/sim-s3-notification-event.js.map +1 -1
  218. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.d.ts.map +1 -1
  219. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js +0 -1
  220. package/dist/service/s3/bucket/notification/sim-s3-unsimulated-notification-events.js.map +1 -1
  221. package/dist/service/s3/command/copy-object/copy-object-builder.d.ts +34 -0
  222. package/dist/service/s3/command/copy-object/copy-object-builder.d.ts.map +1 -0
  223. package/dist/service/s3/command/copy-object/copy-object-builder.js +40 -0
  224. package/dist/service/s3/command/copy-object/copy-object-builder.js.map +1 -0
  225. package/dist/service/s3/command/copy-object/copy-object-source.d.ts +37 -0
  226. package/dist/service/s3/command/copy-object/copy-object-source.d.ts.map +1 -0
  227. package/dist/service/s3/command/copy-object/copy-object-source.js +80 -0
  228. package/dist/service/s3/command/copy-object/copy-object-source.js.map +1 -0
  229. package/dist/service/s3/command/copy-object/copy-object.command.d.ts +41 -0
  230. package/dist/service/s3/command/copy-object/copy-object.command.d.ts.map +1 -0
  231. package/dist/service/s3/command/copy-object/copy-object.command.js +2 -0
  232. package/dist/service/s3/command/copy-object/copy-object.command.js.map +1 -0
  233. package/dist/service/s3/command/copy-object/copy-object.handler.d.ts +43 -0
  234. package/dist/service/s3/command/copy-object/copy-object.handler.d.ts.map +1 -0
  235. package/dist/service/s3/command/copy-object/copy-object.handler.js +76 -0
  236. package/dist/service/s3/command/copy-object/copy-object.handler.js.map +1 -0
  237. package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts +6 -4
  238. package/dist/service/s3/command/list-objects/list-objects-authorizer.d.ts.map +1 -1
  239. package/dist/service/s3/command/list-objects/list-objects-authorizer.js +6 -4
  240. package/dist/service/s3/command/list-objects/list-objects-authorizer.js.map +1 -1
  241. package/dist/service/s3/command/list-objects/list-objects-page-builder.d.ts +4 -2
  242. package/dist/service/s3/command/list-objects/list-objects-page-builder.d.ts.map +1 -1
  243. package/dist/service/s3/command/list-objects/list-objects-page-builder.js +8 -2
  244. package/dist/service/s3/command/list-objects/list-objects-page-builder.js.map +1 -1
  245. package/dist/service/s3/command/list-objects/list-objects.command.d.ts +7 -0
  246. package/dist/service/s3/command/list-objects/list-objects.command.d.ts.map +1 -1
  247. package/dist/service/s3/command/list-objects/list-objects.handler.d.ts.map +1 -1
  248. package/dist/service/s3/command/list-objects/list-objects.handler.js +2 -0
  249. package/dist/service/s3/command/list-objects/list-objects.handler.js.map +1 -1
  250. package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.d.ts +1 -0
  251. package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.d.ts.map +1 -1
  252. package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.js +6 -1
  253. package/dist/service/s3/command/list-objects-v2/list-objects-v2-page-builder.js.map +1 -1
  254. package/dist/service/s3/command/list-objects-v2/list-objects-v2.command.d.ts +8 -2
  255. package/dist/service/s3/command/list-objects-v2/list-objects-v2.command.d.ts.map +1 -1
  256. package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.d.ts.map +1 -1
  257. package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.js +2 -0
  258. package/dist/service/s3/command/list-objects-v2/list-objects-v2.handler.js.map +1 -1
  259. package/dist/service/s3/command/object/sim-s3-object-commands.d.ts +4 -0
  260. package/dist/service/s3/command/object/sim-s3-object-commands.d.ts.map +1 -1
  261. package/dist/service/s3/command/object/sim-s3-object-commands.js +7 -0
  262. package/dist/service/s3/command/object/sim-s3-object-commands.js.map +1 -1
  263. package/dist/service/s3/command/sim-s3-command.types.d.ts +1 -0
  264. package/dist/service/s3/command/sim-s3-command.types.d.ts.map +1 -1
  265. package/dist/service/s3/error/sim-s3.error.d.ts +11 -0
  266. package/dist/service/s3/error/sim-s3.error.d.ts.map +1 -1
  267. package/dist/service/s3/error/sim-s3.error.js +13 -0
  268. package/dist/service/s3/error/sim-s3.error.js.map +1 -1
  269. package/dist/service/s3/object/s3-common-prefix.d.ts +22 -0
  270. package/dist/service/s3/object/s3-common-prefix.d.ts.map +1 -0
  271. package/dist/service/s3/object/s3-common-prefix.js +16 -0
  272. package/dist/service/s3/object/s3-common-prefix.js.map +1 -0
  273. package/dist/service/s3/object/s3-object-listing.d.ts +9 -2
  274. package/dist/service/s3/object/s3-object-listing.d.ts.map +1 -1
  275. package/dist/service/s3/object/s3-object-listing.js +70 -13
  276. package/dist/service/s3/object/s3-object-listing.js.map +1 -1
  277. package/dist/service/s3/sdk/sim-s3-sdk-command-router.d.ts.map +1 -1
  278. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js +4 -0
  279. package/dist/service/s3/sdk/sim-s3-sdk-command-router.js.map +1 -1
  280. package/dist/service/s3/serve/api/sim-s3-api-input.d.ts.map +1 -1
  281. package/dist/service/s3/serve/api/sim-s3-api-input.js +2 -0
  282. package/dist/service/s3/serve/api/sim-s3-api-input.js.map +1 -1
  283. package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts +5 -0
  284. package/dist/service/s3/serve/api/sim-s3-api-listing.d.ts.map +1 -1
  285. package/dist/service/s3/serve/api/sim-s3-api-listing.js +6 -1
  286. package/dist/service/s3/serve/api/sim-s3-api-listing.js.map +1 -1
  287. package/dist/service/s3/sim-s3-operations.d.ts +2 -0
  288. package/dist/service/s3/sim-s3-operations.d.ts.map +1 -1
  289. package/dist/service/s3/sim-s3-operations.js +4 -0
  290. package/dist/service/s3/sim-s3-operations.js.map +1 -1
  291. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.d.ts +4 -0
  292. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.d.ts.map +1 -1
  293. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.js +9 -0
  294. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-creator.js.map +1 -1
  295. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.d.ts +22 -0
  296. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.d.ts.map +1 -0
  297. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.js +28 -0
  298. package/dist/service/wafv2/cfn/association/sim-cfn-waf-association-skip.js.map +1 -0
  299. package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.d.ts +25 -6
  300. package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.d.ts.map +1 -1
  301. package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.js +32 -7
  302. package/dist/service/wafv2/cfn/sim-cfn-waf-resource-error.js.map +1 -1
  303. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.d.ts +16 -0
  304. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.d.ts.map +1 -0
  305. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.js +22 -0
  306. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-evaluatable-rules.js.map +1 -0
  307. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.d.ts +13 -4
  308. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.d.ts.map +1 -1
  309. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.js +21 -11
  310. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-config.js.map +1 -1
  311. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.d.ts +11 -1
  312. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.d.ts.map +1 -1
  313. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.js +19 -2
  314. package/dist/service/wafv2/cfn/web-acl/sim-cfn-waf-web-acl-creator.js.map +1 -1
  315. package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.d.ts +9 -0
  316. package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.d.ts.map +1 -1
  317. package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.js +9 -0
  318. package/dist/service/wafv2/command/web-acl/sim-wafv2-unsimulated-web-acl-input.js.map +1 -1
  319. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts +2 -0
  320. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.d.ts.map +1 -1
  321. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js +3 -0
  322. package/dist/service/wafv2/command/web-acl/sim-wafv2-web-acl-commands.js.map +1 -1
  323. package/dist/service/wafv2/index.d.ts +1 -0
  324. package/dist/service/wafv2/index.d.ts.map +1 -1
  325. package/dist/service/wafv2/index.js.map +1 -1
  326. package/dist/service/wafv2/managed/sim-waf-managed-group-statement.d.ts.map +1 -1
  327. package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js +1 -0
  328. package/dist/service/wafv2/managed/sim-waf-managed-group-statement.js.map +1 -1
  329. package/dist/service/wafv2/sim-wafv2-commands.d.ts.map +1 -1
  330. package/dist/service/wafv2/sim-wafv2-commands.js +3 -0
  331. package/dist/service/wafv2/sim-wafv2-commands.js.map +1 -1
  332. package/dist/service/wafv2/sim-wafv2.d.ts +12 -0
  333. package/dist/service/wafv2/sim-wafv2.d.ts.map +1 -1
  334. package/dist/service/wafv2/sim-wafv2.js +18 -0
  335. package/dist/service/wafv2/sim-wafv2.js.map +1 -1
  336. package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts +49 -0
  337. package/dist/service/wafv2/statement/sim-waf-rate-based-input.d.ts.map +1 -0
  338. package/dist/service/wafv2/statement/sim-waf-rate-based-input.js +94 -0
  339. package/dist/service/wafv2/statement/sim-waf-rate-based-input.js.map +1 -0
  340. package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts +22 -0
  341. package/dist/service/wafv2/statement/sim-waf-rate-based.d.ts.map +1 -0
  342. package/dist/service/wafv2/statement/sim-waf-rate-based.js +41 -0
  343. package/dist/service/wafv2/statement/sim-waf-rate-based.js.map +1 -0
  344. package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts +18 -0
  345. package/dist/service/wafv2/statement/sim-waf-rate-based.type.d.ts.map +1 -0
  346. package/dist/service/wafv2/statement/sim-waf-rate-based.type.js +2 -0
  347. package/dist/service/wafv2/statement/sim-waf-rate-based.type.js.map +1 -0
  348. package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts +29 -0
  349. package/dist/service/wafv2/statement/sim-waf-rate-counter.d.ts.map +1 -0
  350. package/dist/service/wafv2/statement/sim-waf-rate-counter.js +35 -0
  351. package/dist/service/wafv2/statement/sim-waf-rate-counter.js.map +1 -0
  352. package/dist/service/wafv2/statement/sim-waf-statement.d.ts +6 -0
  353. package/dist/service/wafv2/statement/sim-waf-statement.d.ts.map +1 -1
  354. package/dist/service/wafv2/statement/sim-waf-statement.js +4 -0
  355. package/dist/service/wafv2/statement/sim-waf-statement.js.map +1 -1
  356. package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts +2 -1
  357. package/dist/service/wafv2/statement/sim-waf-statement.type.d.ts.map +1 -1
  358. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts +10 -0
  359. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.d.ts.map +1 -0
  360. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js +40 -0
  361. package/dist/service/wafv2/statement/sim-waf-unsimulated-rate-based.js.map +1 -0
  362. package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.d.ts.map +1 -1
  363. package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js +0 -5
  364. package/dist/service/wafv2/statement/sim-waf-unsimulated-statement.js.map +1 -1
  365. package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.d.ts.map +1 -1
  366. package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js +25 -2
  367. package/dist/service/wafv2/web-acl/sim-waf-rule-evaluator.js.map +1 -1
  368. package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts +6 -0
  369. package/dist/service/wafv2/web-acl/sim-waf-rule.type.d.ts.map +1 -1
  370. package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.d.ts +26 -0
  371. package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.d.ts.map +1 -0
  372. package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.js +34 -0
  373. package/dist/service/wafv2/web-acl/sim-waf-unevaluatable-rules.js.map +1 -0
  374. package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.d.ts.map +1 -1
  375. package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js +16 -1
  376. package/dist/service/wafv2/web-acl/sim-waf-web-acl-capacity.js.map +1 -1
  377. package/dist/util/clock/sim-clock-control.d.ts +8 -0
  378. package/dist/util/clock/sim-clock-control.d.ts.map +1 -1
  379. package/dist/util/clock/sim-clock-control.js +10 -1
  380. package/dist/util/clock/sim-clock-control.js.map +1 -1
  381. package/package.json +1 -1
  382. package/dist/service/lambda/command/create-function/create-function-environment-names.d.ts.map +0 -1
  383. package/dist/service/lambda/command/create-function/create-function-environment-names.js.map +0 -1
  384. package/dist/service/lambda/command/create-function/create-function-environment.d.ts.map +0 -1
  385. package/dist/service/lambda/command/create-function/create-function-environment.js.map +0 -1
  386. package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.d.ts.map +0 -1
  387. package/dist/service/lambda/command/create-function/lambda-reserved-variable-names.js.map +0 -1
  388. /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.d.ts +0 -0
  389. /package/dist/service/lambda/{command/create-function → function/environment}/lambda-reserved-variable-names.js +0 -0
@@ -0,0 +1,48 @@
1
+ /**
2
+ * The refresh token rotation setting of an app client, in the shape a request
3
+ * sets it and a described client reports it.
4
+ *
5
+ * https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RefreshTokenRotationType.html
6
+ */
7
+ export interface SimCognitoRefreshTokenRotationType {
8
+ readonly Feature?: string | undefined;
9
+ readonly RetryGracePeriodSeconds?: number | undefined;
10
+ }
11
+ /**
12
+ * Whether an app client rotates its refresh tokens, and for how long it goes
13
+ * on honouring the one it rotated out.
14
+ *
15
+ * Rotation changes which operation renews a session.
16
+ * `GetTokensFromRefreshToken` answers a rotating client with a replacement
17
+ * refresh token, and `REFRESH_TOKEN_AUTH` is not available to one at all.
18
+ *
19
+ * The grace period is what lets a client retry a request whose answer it never
20
+ * saw: the spent token goes on working for that many seconds, so a retry with
21
+ * it succeeds rather than signing the user out.
22
+ */
23
+ export declare class SimCognitoRefreshTokenRotation {
24
+ /**
25
+ * The feature as the request wrote it, which is what Cognito reports back.
26
+ */
27
+ readonly feature: string;
28
+ /**
29
+ * How many seconds a rotated-out refresh token keeps working. A client that
30
+ * asked for no grace period gets none, so its spent token stops working the
31
+ * moment the replacement is issued.
32
+ */
33
+ readonly retryGracePeriodSeconds: number;
34
+ private readonly requested;
35
+ constructor(requested: SimCognitoRefreshTokenRotationType | undefined);
36
+ private static requireFeature;
37
+ private static requireGraceSeconds;
38
+ /**
39
+ * Whether this client rotates its refresh tokens.
40
+ */
41
+ get enabled(): boolean;
42
+ /**
43
+ * The setting as a described app client reports it, which is only when the
44
+ * request set it. A client nobody configured for rotation reports none.
45
+ */
46
+ toOutput(): SimCognitoRefreshTokenRotationType | undefined;
47
+ }
48
+ //# sourceMappingURL=sim-cognito-refresh-token-rotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-refresh-token-rotation.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.ts"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvD;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,8BAA8B;IACzC;;OAEG;IACH,SAAgB,OAAO,EAAE,MAAM,CAAC;IAEhC;;;;OAIG;IACH,SAAgB,uBAAuB,EAAE,MAAM,CAAC;IAEhD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiD;IAE3E,YAAY,SAAS,EAAE,kCAAkC,GAAG,SAAS,EASpE;IAED,OAAO,CAAC,MAAM,CAAC,cAAc;IAe7B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAgBlC;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;;OAGG;IACH,QAAQ,IAAI,kCAAkC,GAAG,SAAS,CAEzD;CACF"}
@@ -0,0 +1,79 @@
1
+ import { SimCognitoInvalidParameterException } from "../../error/sim-cognito.error.js";
2
+ const enabled = "ENABLED";
3
+ const disabled = "DISABLED";
4
+ const features = [enabled, disabled];
5
+ /**
6
+ * The longest grace period Cognito allows a rotated-out refresh token.
7
+ */
8
+ const mostGraceSeconds = 60;
9
+ /**
10
+ * The grace period a client that asked for none gets, which is none: a
11
+ * rotated-out token stops working as soon as its replacement is issued.
12
+ */
13
+ const defaultGraceSeconds = 0;
14
+ /**
15
+ * Whether an app client rotates its refresh tokens, and for how long it goes
16
+ * on honouring the one it rotated out.
17
+ *
18
+ * Rotation changes which operation renews a session.
19
+ * `GetTokensFromRefreshToken` answers a rotating client with a replacement
20
+ * refresh token, and `REFRESH_TOKEN_AUTH` is not available to one at all.
21
+ *
22
+ * The grace period is what lets a client retry a request whose answer it never
23
+ * saw: the spent token goes on working for that many seconds, so a retry with
24
+ * it succeeds rather than signing the user out.
25
+ */
26
+ export class SimCognitoRefreshTokenRotation {
27
+ /**
28
+ * The feature as the request wrote it, which is what Cognito reports back.
29
+ */
30
+ feature;
31
+ /**
32
+ * How many seconds a rotated-out refresh token keeps working. A client that
33
+ * asked for no grace period gets none, so its spent token stops working the
34
+ * moment the replacement is issued.
35
+ */
36
+ retryGracePeriodSeconds;
37
+ requested;
38
+ constructor(requested) {
39
+ this.requested = requested;
40
+ this.feature = SimCognitoRefreshTokenRotation.requireFeature(requested?.Feature);
41
+ this.retryGracePeriodSeconds =
42
+ SimCognitoRefreshTokenRotation.requireGraceSeconds(requested?.RetryGracePeriodSeconds);
43
+ }
44
+ static requireFeature(value) {
45
+ if (value === undefined) {
46
+ return disabled;
47
+ }
48
+ if (!features.includes(value)) {
49
+ throw new SimCognitoInvalidParameterException(`RefreshTokenRotation Feature '${value}' is not a Cognito setting: ` +
50
+ `use one of ${features.join(", ")}`);
51
+ }
52
+ return value;
53
+ }
54
+ static requireGraceSeconds(value) {
55
+ if (value === undefined) {
56
+ return defaultGraceSeconds;
57
+ }
58
+ if (!Number.isSafeInteger(value) || value < 0 || value > mostGraceSeconds) {
59
+ throw new SimCognitoInvalidParameterException(`RefreshTokenRotation RetryGracePeriodSeconds of ${String(value)} is ` +
60
+ `outside the range Cognito allows: a whole number of seconds ` +
61
+ `between 0 and ${String(mostGraceSeconds)}`);
62
+ }
63
+ return value;
64
+ }
65
+ /**
66
+ * Whether this client rotates its refresh tokens.
67
+ */
68
+ get enabled() {
69
+ return this.feature === enabled;
70
+ }
71
+ /**
72
+ * The setting as a described app client reports it, which is only when the
73
+ * request set it. A client nobody configured for rotation reports none.
74
+ */
75
+ toOutput() {
76
+ return this.requested;
77
+ }
78
+ }
79
+ //# sourceMappingURL=sim-cognito-refresh-token-rotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-refresh-token-rotation.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-refresh-token-rotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAEvF,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,QAAQ,GAAG,UAAU,CAAC;AAE5B,MAAM,QAAQ,GAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAE5B;;;GAGG;AAC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IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,OAAO,KAAK,OAAO,CAAC;IAClC,CAAC;IAED;;;OAGG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF"}
@@ -1,6 +1,7 @@
1
1
  import { SimCognitoExplicitAuthFlows } from "./sim-cognito-explicit-auth-flows.js";
2
2
  import { SimCognitoOAuthSettings, type SimCognitoOAuthSettingsType } from "./sim-cognito-oauth-settings.js";
3
3
  import { SimCognitoPreventUserExistenceErrors } from "./sim-cognito-prevent-user-existence-errors.js";
4
+ import { SimCognitoRefreshTokenRotation, type SimCognitoRefreshTokenRotationType } from "./sim-cognito-refresh-token-rotation.js";
4
5
  import { SimCognitoTokenValidity, type SimCognitoTokenValidityInput } from "./sim-cognito-token-validity.js";
5
6
  /**
6
7
  * The app client properties a request can set.
@@ -13,6 +14,7 @@ export interface SimCognitoUserPoolClientSettingsProperties extends SimCognitoTo
13
14
  readonly ClientName?: string | undefined;
14
15
  readonly ExplicitAuthFlows?: readonly string[] | undefined;
15
16
  readonly PreventUserExistenceErrors?: string | undefined;
17
+ readonly RefreshTokenRotation?: SimCognitoRefreshTokenRotationType | undefined;
16
18
  }
17
19
  /**
18
20
  * The settable properties of one simulated app client.
@@ -28,6 +30,11 @@ export declare class SimCognitoUserPoolClientSettings {
28
30
  readonly explicitAuthFlows: SimCognitoExplicitAuthFlows;
29
31
  readonly preventUserExistenceErrors: SimCognitoPreventUserExistenceErrors;
30
32
  readonly tokenValidity: SimCognitoTokenValidity;
33
+ /**
34
+ * Whether this client rotates its refresh tokens, which decides what
35
+ * renews a session made through it.
36
+ */
37
+ readonly refreshTokenRotation: SimCognitoRefreshTokenRotation;
31
38
  /**
32
39
  * What this client may do at the pool's hosted domain.
33
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client-settings.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,KAAK,2BAA2B,EACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,iCAAiC,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,WAAW,0CACf,SAAQ,4BAA4B,EAAE,2BAA2B;IACjE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED;;;;;;;;GAQG;AACH,qBAAa,gCAAgC;IAC3C,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,iBAAiB,EAAE,2BAA2B,CAAC;IAC/D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,SAAgB,aAAa,EAAE,uBAAuB,CAAC;IAEvD;;OAEG;IACH,SAAgB,KAAK,EAAE,uBAAuB,CAAC;IAE/C,YAAY,UAAU,EAAE,0CAA0C,EAajE;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client-settings.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,KAAK,2BAA2B,EACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,8BAA8B,EAC9B,KAAK,kCAAkC,EACxC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,EAClC,MAAM,iCAAiC,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,WAAW,0CACf,SAAQ,4BAA4B,EAAE,2BAA2B;IACjE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC3D,QAAQ,CAAC,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,oBAAoB,CAAC,EAC1B,kCAAkC,GAClC,SAAS,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,qBAAa,gCAAgC;IAC3C,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,iBAAiB,EAAE,2BAA2B,CAAC;IAC/D,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,SAAgB,aAAa,EAAE,uBAAuB,CAAC;IAEvD;;;OAGG;IACH,SAAgB,oBAAoB,EAAE,8BAA8B,CAAC;IAErE;;OAEG;IACH,SAAgB,KAAK,EAAE,uBAAuB,CAAC;IAE/C,YAAY,UAAU,EAAE,0CAA0C,EAgBjE;CACF"}
@@ -2,6 +2,7 @@ import { SimCognitoName } from "../sim-cognito-name.js";
2
2
  import { SimCognitoExplicitAuthFlows } from "./sim-cognito-explicit-auth-flows.js";
3
3
  import { SimCognitoOAuthSettings, } from "./sim-cognito-oauth-settings.js";
4
4
  import { SimCognitoPreventUserExistenceErrors } from "./sim-cognito-prevent-user-existence-errors.js";
5
+ import { SimCognitoRefreshTokenRotation, } from "./sim-cognito-refresh-token-rotation.js";
5
6
  import { SimCognitoTokenValidity, } from "./sim-cognito-token-validity.js";
6
7
  /**
7
8
  * The settable properties of one simulated app client.
@@ -17,6 +18,11 @@ export class SimCognitoUserPoolClientSettings {
17
18
  explicitAuthFlows;
18
19
  preventUserExistenceErrors;
19
20
  tokenValidity;
21
+ /**
22
+ * Whether this client rotates its refresh tokens, which decides what
23
+ * renews a session made through it.
24
+ */
25
+ refreshTokenRotation;
20
26
  /**
21
27
  * What this client may do at the pool's hosted domain.
22
28
  */
@@ -29,6 +35,7 @@ export class SimCognitoUserPoolClientSettings {
29
35
  this.explicitAuthFlows = new SimCognitoExplicitAuthFlows(properties.ExplicitAuthFlows);
30
36
  this.preventUserExistenceErrors = new SimCognitoPreventUserExistenceErrors(properties.PreventUserExistenceErrors);
31
37
  this.tokenValidity = new SimCognitoTokenValidity(properties);
38
+ this.refreshTokenRotation = new SimCognitoRefreshTokenRotation(properties.RefreshTokenRotation);
32
39
  this.oauth = new SimCognitoOAuthSettings(properties);
33
40
  }
34
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client-settings.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,GAExB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,uBAAuB,GAExB,MAAM,iCAAiC,CAAC;AAgBzC;;;;;;;;GAQG;AACH,MAAM,OAAO,gCAAgC;IAC3B,IAAI,CAAS;IACb,iBAAiB,CAA8B;IAC/C,0BAA0B,CAAuC;IACjE,aAAa,CAA0B;IAEvD;;OAEG;IACa,KAAK,CAA0B;IAE/C,YAAY,UAAsD;QAChE,IAAI,CAAC,IAAI,GAAG,IAAI,cAAc,CAAC;YAC7B,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,UAAU,CAAC,UAAU;SAC7B,CAAC,CAAC,KAAK,CAAC;QACT,IAAI,CAAC,iBAAiB,GAAG,IAAI,2BAA2B,CACtD,UAAU,CAAC,iBAAiB,CAC7B,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,oCAAoC,CACxE,UAAU,CAAC,0BAA0B,CACtC,CAAC;QACF,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client-settings.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,GAExB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,EACL,8BAA8B,GAE/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,uBAAuB,GAExB,MAAM,iCAAiC,CAAC;AAmBzC;;;;;;;;GAQG;AACH,MAAM,OAAO,gCAAgC;IAC3B,IAAI,CAAS;IACb,iBAAiB,CAA8B;IAC/C,0BAA0B,CAAuC;IACjE,aAAa,CAA0B;IAEvD;;;OAGG;IACa,oBAAoB,CAAiC;IAErE;;OAEG;IACa,KAAK,CAA0B;IAE/C,YAAY,UAAsD;QAChE,IAAI,CAAC,IAAI,GAAG,IAAI,cAAc,CAAC;YAC7B,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,UAAU,CAAC,UAAU;SAC7B,CAAC,CAAC,KAAK,CAAC;QACT,IAAI,CAAC,iBAAiB,GAAG,IAAI,2BAA2B,CACtD,UAAU,CAAC,iBAAiB,CAC7B,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,oCAAoC,CACxE,UAAU,CAAC,0BAA0B,CACtC,CAAC;QACF,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,oBAAoB,GAAG,IAAI,8BAA8B,CAC5D,UAAU,CAAC,oBAAoB,CAChC,CAAC;QACF,IAAI,CAAC,KAAK,GAAG,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;CACF"}
@@ -2,6 +2,7 @@ import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
2
  import type { SimCognitoUserPoolId } from "../sim-cognito-user-pool-id.js";
3
3
  import type { SimCognitoExplicitAuthFlows } from "./sim-cognito-explicit-auth-flows.js";
4
4
  import type { SimCognitoPreventUserExistenceErrors } from "./sim-cognito-prevent-user-existence-errors.js";
5
+ import type { SimCognitoRefreshTokenRotation } from "./sim-cognito-refresh-token-rotation.js";
5
6
  import type { SimCognitoTokenValidity } from "./sim-cognito-token-validity.js";
6
7
  import type { SimCognitoOAuthSettings } from "./sim-cognito-oauth-settings.js";
7
8
  import type { SimCognitoUserPoolClientSettings } from "./sim-cognito-user-pool-client-settings.js";
@@ -50,6 +51,11 @@ export declare class SimCognitoUserPoolClient {
50
51
  * How long each kind of token this client is given lasts.
51
52
  */
52
53
  get tokenValidity(): SimCognitoTokenValidity;
54
+ /**
55
+ * Whether this client rotates its refresh tokens, and how long it goes on
56
+ * honouring one it rotated out.
57
+ */
58
+ get refreshTokenRotation(): SimCognitoRefreshTokenRotation;
53
59
  /**
54
60
  * What this client may do at its pool's hosted domain: which grant, which
55
61
  * scopes, which redirects and which identity providers.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MA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gBAAgB,IAAI,IAAI,CAE3B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,EAAE,gCAAgC,GAAG,IAAI,CAGvD;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AAC3G,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAEvF,UAAU,kCAAkC;IAC1C,QAAQ,CAAC,EAAE,EAAE,0BAA0B,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,oBAAoB,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,gCAAgC,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAwB;IACnC,SAAgB,EAAE,EAAE,0BAA0B,CAAC;IAC/C,SAAgB,UAAU,EAAE,oBAAoB,CAAC;IACjD,SAAgB,YAAY,EAAE,IAAI,CAAC;IAEnC;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,cAAc,CAAmC;IACzD,OAAO,CAAC,YAAY,CAAO;IAE3B,YAAY,UAAU,EAAE,kCAAkC,EAQzD;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,2BAA2B,CAEnD;IAED;;OAEG;IACH,IAAI,0BAA0B,IAAI,oCAAoC,CAErE;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,uBAAuB,CAE3C;IAED;;;OAGG;IACH,IAAI,oBAAoB,IAAI,8BAA8B,CAEzD;IAED;;;OAGG;IACH,IAAI,KAAK,IAAI,uBAAuB,CAEnC;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,IAAI,CAE3B;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,EAAE,gCAAgC,GAAG,IAAI,CAGvD;CACF"}
@@ -51,6 +51,13 @@ export class SimCognitoUserPoolClient {
51
51
  get tokenValidity() {
52
52
  return this.clientSettings.tokenValidity;
53
53
  }
54
+ /**
55
+ * Whether this client rotates its refresh tokens, and how long it goes on
56
+ * honouring one it rotated out.
57
+ */
58
+ get refreshTokenRotation() {
59
+ return this.clientSettings.refreshTokenRotation;
60
+ }
54
61
  /**
55
62
  * What this client may do at its pool's hosted domain: which grant, which
56
63
  * scopes, which redirects and which identity providers.
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-user-pool-client.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IACnB,EAAE,CAA6B;IAC/B,UAAU,CAAuB;IACjC,YAAY,CAAO;IAEnC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QAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IACvC,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-user-pool-client.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/client/sim-cognito-user-pool-client.ts"],"names":[],"mappings":"AAkBA;;;;;;;GAOG;AACH,MAAM,OAAO,wBAAwB;IACnB,EAAE,CAA6B;IAC/B,UAAU,CAAuB;IACjC,YAAY,CAAO;IAEnC;;;OAGG;IACa,MAAM,CAAqB;IAE1B,KAAK,CAAW;IACzB,cAAc,CAAmC;IACjD,YAAY,CAAO;IAE3B,YAAY,UAA8C;QACxD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;QAC1C,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,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAI,iBAAiB;QACnB,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,IAAI,0BAA0B;QAC5B,OAAO,IAAI,CAAC,cAAc,CAAC,0BAA0B,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAClD,CAAC;IAED;;;OAGG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC;IACnC,CAAC;IAED;;;OAGG;IACH,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC;IACnC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAA0C;QAC/C,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;IACvC,CAAC;CACF"}
@@ -1,4 +1,5 @@
1
1
  import type { SimClock } from "../../../../util/clock/sim-clock.js";
2
+ import { SimCognitoIssuedToken } from "../auth/sim-cognito-issued-token.js";
2
3
  import type { SimCognitoUserPoolClient } from "../client/sim-cognito-user-pool-client.js";
3
4
  import type { SimCognitoUserPool } from "../sim-cognito-user-pool.js";
4
5
  import type { SimCognitoTriggerOccasion } from "../trigger/sim-cognito-trigger-occasion.js";
@@ -41,6 +42,16 @@ interface SimCognitoIssueTokensProperties {
41
42
  */
42
43
  readonly scopes?: readonly string[] | undefined;
43
44
  }
45
+ /**
46
+ * Reissuing tokens for a refresh token the caller presented.
47
+ */
48
+ interface SimCognitoRefreshTokensProperties extends SimCognitoIssueTokensProperties {
49
+ /**
50
+ * The refresh token the request was made with, which a rotating app client
51
+ * spends and replaces.
52
+ */
53
+ readonly spent: SimCognitoIssuedToken;
54
+ }
44
55
  /**
45
56
  * Issues the tokens a successful authentication answers with.
46
57
  *
@@ -62,6 +73,10 @@ export declare class SimCognitoTokenIssuer {
62
73
  private readonly triggers;
63
74
  constructor(properties: SimCognitoTokenIssuerProperties);
64
75
  private static expiryOf;
76
+ /**
77
+ * Mint an opaque refresh token, as real Cognito's is opaque.
78
+ */
79
+ private static mintRefreshToken;
65
80
  /**
66
81
  * Sign an id token and an access token for a user, and mint a refresh
67
82
  * token to go with them.
@@ -84,6 +99,25 @@ export declare class SimCognitoTokenIssuer {
84
99
  * that expires.
85
100
  */
86
101
  reissue(properties: SimCognitoIssueTokensProperties): Promise<SimCognitoIssuedTokens>;
102
+ /**
103
+ * Sign fresh tokens for a refresh token the caller presented.
104
+ *
105
+ * Whether a new refresh token comes back is the app client's to decide. A
106
+ * rotating client hands one out and spends the token that bought it, and a
107
+ * client with rotation off answers with the two JWTs alone, leaving the
108
+ * caller the refresh token it already has until that expires.
109
+ */
110
+ refresh(properties: SimCognitoRefreshTokensProperties): Promise<SimCognitoIssuedTokens>;
111
+ /**
112
+ * Sign fresh tokens and rotate the refresh token that bought them.
113
+ *
114
+ * The replacement runs out when the token it replaced would have, so a
115
+ * rotating session ends at the app client's `RefreshTokenValidity` however
116
+ * often it was renewed. The spent token is revoked after the replacement is
117
+ * stored, so it stays refusable for the grace period rather than being
118
+ * swept away with the tokens that have already run out.
119
+ */
120
+ private rotate;
87
121
  private signTokens;
88
122
  private claimsOverride;
89
123
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-token-issuer.d.ts","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-issuer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAclE;;;;;;GAMG;AACH,MAAM,WA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CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CACjD;AAED;;GAEG;AACH,UAAU,iCAAkC,SAAQ,+BAA+B;IACjF;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD,YAAY,UAAU,EAAE,+BAA+B,EAGtD;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ;IAIvB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAI/B;;;;;;;;;;;OAWG;IACG,KAAK,CACT,UAAU,EAAE,+BAA+B,GAC1C,OAAO,CAAC,sBAAsB,CAAC,CAuBjC;IAED;;;;;;;OAOG;IACG,OAAO,CACX,UAAU,EAAE,+BAA+B,GAC1C,OAAO,CAAC,sBAAsB,CAAC,CAEjC;IAED;;;;;;;OAOG;IACG,OAAO,CACX,UAAU,EAAE,iCAAiC,GAC5C,OAAO,CAAC,sBAAsB,CAAC,CAQjC;IAED;;;;;;;;OAQG;YACW,MAAM;YAkBN,UAAU;YAyDV,cAAc;CAY7B"}
@@ -36,6 +36,12 @@ export class SimCognitoTokenIssuer {
36
36
  static expiryOf(issuedAt, seconds) {
37
37
  return new Date(issuedAt.getTime() + seconds * 1000);
38
38
  }
39
+ /**
40
+ * Mint an opaque refresh token, as real Cognito's is opaque.
41
+ */
42
+ static mintRefreshToken() {
43
+ return randomBytes(refreshTokenBytes).toString("base64url");
44
+ }
39
45
  /**
40
46
  * Sign an id token and an access token for a user, and mint a refresh
41
47
  * token to go with them.
@@ -52,7 +58,7 @@ export class SimCognitoTokenIssuer {
52
58
  const { pool, client, user } = properties;
53
59
  const issuedAt = this.clock.now();
54
60
  const signed = await this.signTokens(properties, issuedAt);
55
- const refreshToken = randomBytes(refreshTokenBytes).toString("base64url");
61
+ const refreshToken = SimCognitoTokenIssuer.mintRefreshToken();
56
62
  pool.auth.addRefreshToken(new SimCognitoIssuedToken({
57
63
  value: refreshToken,
58
64
  username: user.username,
@@ -76,6 +82,39 @@ export class SimCognitoTokenIssuer {
76
82
  async reissue(properties) {
77
83
  return await this.signTokens(properties, this.clock.now());
78
84
  }
85
+ /**
86
+ * Sign fresh tokens for a refresh token the caller presented.
87
+ *
88
+ * Whether a new refresh token comes back is the app client's to decide. A
89
+ * rotating client hands one out and spends the token that bought it, and a
90
+ * client with rotation off answers with the two JWTs alone, leaving the
91
+ * caller the refresh token it already has until that expires.
92
+ */
93
+ async refresh(properties) {
94
+ const rotation = properties.client.refreshTokenRotation;
95
+ if (!rotation.enabled) {
96
+ return await this.reissue(properties);
97
+ }
98
+ return await this.rotate(properties, rotation.retryGracePeriodSeconds);
99
+ }
100
+ /**
101
+ * Sign fresh tokens and rotate the refresh token that bought them.
102
+ *
103
+ * The replacement runs out when the token it replaced would have, so a
104
+ * rotating session ends at the app client's `RefreshTokenValidity` however
105
+ * often it was renewed. The spent token is revoked after the replacement is
106
+ * stored, so it stays refusable for the grace period rather than being
107
+ * swept away with the tokens that have already run out.
108
+ */
109
+ async rotate(properties, gracePeriodSeconds) {
110
+ const { pool, spent } = properties;
111
+ const issuedAt = this.clock.now();
112
+ const signed = await this.signTokens(properties, issuedAt);
113
+ const refreshToken = SimCognitoTokenIssuer.mintRefreshToken();
114
+ pool.auth.addRefreshToken(spent.replacedBy(refreshToken, issuedAt));
115
+ pool.auth.revokeRefreshTokenAt(spent, SimCognitoTokenIssuer.expiryOf(issuedAt, gracePeriodSeconds));
116
+ return { ...signed, refreshToken };
117
+ }
79
118
  async signTokens(properties, issuedAt) {
80
119
  const { pool, client, user } = properties;
81
120
  const claimsOverride = await this.claimsOverride(properties);
@@ -1 +1 @@
1
- {"version":3,"file":"sim-cognito-token-issuer.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-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C,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAC5C,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC,CACnD,CAAC;QAEF,IAAI,CAAC,IAAI,CAAC,cAAc,CACtB,IAAI,qBAAqB,CAAC;YACxB,KAAK,EAAE,iBAAiB;YACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,MAAM,CAAC,EAAE;YACnB,QAAQ;YACR,SAAS,EAAE,oBAAoB;YAC/B,uEAAuE;YACvE,oEAAoE;YACpE,+DAA+D;YAC/D,MAAM,EAAE,UAAU,CAAC,MAAM;SAC1B,CAAC,CACH,CAAC;QAEF,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;YACvE,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,kBAAkB;SAC9B,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,cAAc,CAC1B,UAA2C;QAE3C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC;QAEpE,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,EAAE;YACtD,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"sim-cognito-token-issuer.js","sourceRoot":"","sources":["../../../../../src/service/cognito/user-pool/token/sim-cognito-token-issuer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAM5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,iBAA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C/D,MAAM,EAAE,UAAU,CAAC,MAAM;SAC1B,CAAC,CACH,CAAC;QAEF,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;YACvE,WAAW,EAAE,iBAAiB;YAC9B,SAAS,EAAE,kBAAkB;SAC9B,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,cAAc,CAC1B,UAA2C;QAE3C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC;QAEpE,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,EAAE;YACtD,IAAI;YACJ,MAAM;YACN,IAAI;YACJ,cAAc;SACf,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
1
  import { assertDefined } from "../../../../util/type-guard/defined.js";
2
2
  import { requireLambdaCodeSource, } from "../../function/code/lambda-code-source.js";
3
- import { requireLambdaEnvironmentVariables } from "./create-function-environment.js";
3
+ import { requireLambdaEnvironmentVariables } from "../../function/environment/lambda-environment-variables.js";
4
4
  /**
5
5
  * Require the AWS-required CreateFunction input fields, and validate the
6
6
  * function code input into a sim Lambda code source.
@@ -1 +1 @@
1
- {"version":3,"file":"create-function-input.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/create-function/create-function-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EACL,uBAAuB,GAExB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAkBrF;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAiC;IAEjC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;IAC1B,aAAa,CACX,KAAK,CAAC,YAAY,EAClB,mDAAmD,CACpD,CAAC;IACF,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,2CAA2C,CAAC,CAAC;IAEvE,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,YAAY;QACxB,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,UAAU,EAAE,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC;QAC/C,WAAW,EAAE,KAAK,CAAC,OAAO;QAC1B,WAAW,EAAE,KAAK,CAAC,OAAO;QAC1B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,cAAc,EAAE,KAAK,CAAC,OAAO;QAC7B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,oBAAoB,EAAE,iCAAiC,CAAC,KAAK,CAAC,WAAW,CAAC;KAC3E,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"create-function-input.js","sourceRoot":"","sources":["../../../../../src/service/lambda/command/create-function/create-function-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EACL,uBAAuB,GAExB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAkB/G;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAiC;IAEjC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;IAC1B,aAAa,CACX,KAAK,CAAC,YAAY,EAClB,mDAAmD,CACpD,CAAC;IACF,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,2CAA2C,CAAC,CAAC;IAEvE,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,YAAY;QACxB,OAAO,EAAE,KAAK,CAAC,IAAI;QACnB,UAAU,EAAE,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC;QAC/C,WAAW,EAAE,KAAK,CAAC,OAAO;QAC1B,WAAW,EAAE,KAAK,CAAC,OAAO;QAC1B,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,cAAc,EAAE,KAAK,CAAC,OAAO;QAC7B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,oBAAoB,EAAE,iCAAiC,CAAC,KAAK,CAAC,WAAW,CAAC;KAC3E,CAAC;AACJ,CAAC"}
@@ -10,15 +10,20 @@ import type { SimLogsServiceWriter } from "../../../logs/write/sim-logs-service-
10
10
  import type { SimLambdaOutboundHttp } from "../../function/outbound/sim-lambda-outbound-http.js";
11
11
  import type { SimLambdaEnvironmentConflicts } from "../../function/environment/sim-lambda-environment-conflicts.js";
12
12
  import type { SimLambdaFunctionMap } from "../../function/sim-lambda-function.js";
13
+ import type { SimLambdaFunctionLookup } from "../../function/url/sim-lambda-function-lookup.js";
13
14
  import type { SimLambdaFunctionUrlStore } from "../../function/url/sim-lambda-function-url-store.js";
14
15
  import type { SimLambdaFunctionVersionStore } from "../../function/version/sim-lambda-function-version-store.js";
15
16
  import type { SimCreateFunctionCommand, SimCreateFunctionCommandOutput } from "../create-function/create-function.command.js";
16
17
  import type { SimDeleteFunctionCommand, SimDeleteFunctionCommandOutput } from "../delete-function/delete-function.command.js";
17
18
  import type { SimGetFunctionCommand, SimGetFunctionCommandOutput } from "../get-function/get-function.command.js";
18
19
  import type { SimInvokeCommand, SimInvokeCommandOutput } from "../invoke/invoke.command.js";
20
+ import type { SimListFunctionsCommand, SimListFunctionsCommandOutput } from "../list-functions/list-functions.command.js";
21
+ import type { SimUpdateFunctionCodeCommand, SimUpdateFunctionCodeCommandOutput } from "../update-function-code/update-function-code.command.js";
22
+ import type { SimUpdateFunctionConfigurationCommand, SimUpdateFunctionConfigurationCommandOutput } from "../update-function-configuration/update-function-configuration.command.js";
19
23
  interface SimLambdaFunctionCommandsProperties {
20
24
  readonly accountRegionScope: SimAwsAccountRegionScope;
21
25
  readonly functions: SimLambdaFunctionMap;
26
+ readonly functionLookup: SimLambdaFunctionLookup;
22
27
  readonly iam: SimIamInterServiceAuthZ;
23
28
  readonly background: BackgroundScheduler;
24
29
  readonly runAsOwner: SimAwsRunAsOwner;
@@ -52,6 +57,18 @@ export declare class SimLambdaFunctionCommands {
52
57
  * Read a function's configuration.
53
58
  */
54
59
  get(command: SimGetFunctionCommand, options?: SimLambdaFunctionCommandOptions): Promise<SimGetFunctionCommandOutput>;
60
+ /**
61
+ * Replace the code a function runs.
62
+ */
63
+ updateCode(command: SimUpdateFunctionCodeCommand, options?: SimLambdaFunctionCommandOptions): Promise<SimUpdateFunctionCodeCommandOutput>;
64
+ /**
65
+ * Change a function's settings.
66
+ */
67
+ updateConfiguration(command: SimUpdateFunctionConfigurationCommand, options?: SimLambdaFunctionCommandOptions): Promise<SimUpdateFunctionConfigurationCommandOutput>;
68
+ /**
69
+ * List the functions that exist in this Account and Region.
70
+ */
71
+ list(command: SimListFunctionsCommand, options?: SimLambdaFunctionCommandOptions): Promise<SimListFunctionsCommandOutput>;
55
72
  /**
56
73
  * Delete a function, and the Function URL that belongs to it.
57
74
  */
@@ -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,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AA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AAS,CAAC;IACjD,QAAQ,CAAC,YAAY,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC3D;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":[],"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;AACz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GACxC,OAAO,CAAC,2CAA2C,CAAC,CActD;IAED;;OAEG;IACG,IAAI,CACR,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,6BAA6B,CAAC,CAKxC;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"}
@@ -2,6 +2,9 @@ import { CreateFunctionCommandHandler } from "../create-function/create-function
2
2
  import { DeleteFunctionCommandHandler } from "../delete-function/delete-function.handler.js";
3
3
  import { GetFunctionCommandHandler } from "../get-function/get-function.handler.js";
4
4
  import { InvokeCommandHandler } from "../invoke/invoke.handler.js";
5
+ import { ListFunctionsCommandHandler } from "../list-functions/list-functions.handler.js";
6
+ import { UpdateFunctionCodeCommandHandler } from "../update-function-code/update-function-code.handler.js";
7
+ import { UpdateFunctionConfigurationCommandHandler } from "../update-function-configuration/update-function-configuration.handler.js";
5
8
  /**
6
9
  * The function lifecycle commands of one simulated Lambda scope.
7
10
  *
@@ -26,6 +29,46 @@ export class SimLambdaFunctionCommands {
26
29
  async get(command, options) {
27
30
  return await new GetFunctionCommandHandler(this.properties).handle(command, options);
28
31
  }
32
+ /**
33
+ * Replace the code a function runs.
34
+ */
35
+ async updateCode(command, options) {
36
+ const { functionLookup, versions, iam, background, codeStore, containerImages, vmSdkModuleProvider, outboundHttp, } = this.properties;
37
+ return await new UpdateFunctionCodeCommandHandler({
38
+ // The lookup rather than the map itself, because this command resolves
39
+ // a name that may arrive as a function ARN.
40
+ functions: functionLookup,
41
+ versions,
42
+ iam,
43
+ background,
44
+ codeStore,
45
+ containerImages,
46
+ vmSdkModuleProvider,
47
+ outboundHttp,
48
+ }).handle(command, options);
49
+ }
50
+ /**
51
+ * Change a function's settings.
52
+ */
53
+ async updateConfiguration(command, options) {
54
+ const { functionLookup, functions, iam, background, environmentConflicts } = this.properties;
55
+ return await new UpdateFunctionConfigurationCommandHandler({
56
+ // The lookup rather than the map itself, because this command resolves
57
+ // a name that may arrive as a function ARN. The map comes too, for the
58
+ // environments a changed one is checked against.
59
+ functions: functionLookup,
60
+ functionMap: functions,
61
+ iam,
62
+ background,
63
+ environmentConflicts,
64
+ }).handle(command, options);
65
+ }
66
+ /**
67
+ * List the functions that exist in this Account and Region.
68
+ */
69
+ async list(command, options) {
70
+ return await new ListFunctionsCommandHandler(this.properties).handle(command, options);
71
+ }
29
72
  /**
30
73
  * Delete a function, and the Function URL that belongs to it.
31
74
  */
@@ -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":"AAcA,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;AA0BnE;;;;;;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":"AAeA,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;AAKnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAK1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAK3G,OAAO,EAAE,yCAAyC,EAAE,MAAM,2EAA2E,CAAC;AA2BtI;;;;;;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,CAC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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"}
@@ -0,0 +1,31 @@
1
+ import type { SimAwsCaller } from "../../../aws/caller/sim-aws-caller.js";
2
+ import type { SimIamInterServiceAuthZ } from "../../../iam/authorize/sim-iam-inter-service-auth-z.js";
3
+ interface ListFunctionsAuthorizerProperties {
4
+ readonly iam: SimIamInterServiceAuthZ;
5
+ }
6
+ /**
7
+ * Applies IAM authorization to a Lambda ListFunctions request.
8
+ *
9
+ * AWS maps the ListFunctions API operation to the lambda:ListFunctions IAM
10
+ * action. The operation reaches every function in the Account and Region, so
11
+ * AWS documents its resource as "*" rather than any one function ARN.
12
+ *
13
+ * Authorization therefore applies to the whole operation. A denied caller
14
+ * receives AccessDenied rather than a filtered listing.
15
+ */
16
+ export declare class ListFunctionsAuthorizer {
17
+ private static readonly action;
18
+ private static readonly resource;
19
+ private readonly iam;
20
+ constructor(properties: ListFunctionsAuthorizerProperties);
21
+ /**
22
+ * Ensure the caller may list the simulated Account's Lambda functions.
23
+ *
24
+ * The caller is passed through unchanged so sim IAM can distinguish an
25
+ * omitted caller, which defaults to Account root, from an explicit anonymous
26
+ * caller.
27
+ */
28
+ authorize(caller?: SimAwsCaller): void;
29
+ }
30
+ export {};
31
+ //# sourceMappingURL=list-functions-authorizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-functions-authorizer.d.ts","sourceRoot":"","sources":["../../../../../src/service/lambda/command/list-functions/list-functions-authorizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wDAAwD,CAAC;AAGtG,UAAU,iCAAiC;IACzC,QAAQ,CAAC,GAAG,EAAE,uBAAuB,CAAC;CACvC;AAED;;;;;;;;;GASG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACxD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAO;IAEvC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA0B;IAE9C,YAAY,UAAU,EAAE,iCAAiC,EAExD;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAcrC;CACF"}