@kensio/yulin 0.47.0 → 1.0.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 (746) hide show
  1. package/README.md +1 -0
  2. package/dist/config/eslint/cffjs2.eslint.config.d.ts +1 -1
  3. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  4. package/dist/sdk/router/resolve-sim-sdk-command-router.js +3 -0
  5. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  6. package/dist/serve/controller/factory/sim-aws-service-controller-factory.d.ts.map +1 -1
  7. package/dist/serve/controller/factory/sim-aws-service-controller-factory.js +4 -0
  8. package/dist/serve/controller/factory/sim-aws-service-controller-factory.js.map +1 -1
  9. package/dist/serve/controller/sim-aws-service-signing-name.d.ts.map +1 -1
  10. package/dist/serve/controller/sim-aws-service-signing-name.js +5 -0
  11. package/dist/serve/controller/sim-aws-service-signing-name.js.map +1 -1
  12. package/dist/serve/controller/sim-service-controller.d.ts +1 -1
  13. package/dist/serve/controller/sim-service-controller.d.ts.map +1 -1
  14. package/dist/serve/controller/sim-service-controller.js.map +1 -1
  15. package/dist/serve/http/url/sim-aws-local-url.d.ts.map +1 -1
  16. package/dist/serve/http/url/sim-aws-local-url.js +1 -0
  17. package/dist/serve/http/url/sim-aws-local-url.js.map +1 -1
  18. package/dist/{service/lambda/serve/event/sim-lambda-url-body-encoding.d.ts → serve/payload-2/sim-payload-2-body-encoding.d.ts} +7 -7
  19. package/dist/serve/payload-2/sim-payload-2-body-encoding.d.ts.map +1 -0
  20. package/dist/{service/lambda/serve/event/sim-lambda-url-body-encoding.js → serve/payload-2/sim-payload-2-body-encoding.js} +7 -7
  21. package/dist/serve/payload-2/sim-payload-2-body-encoding.js.map +1 -0
  22. package/dist/serve/payload-2/sim-payload-2-connection.d.ts +19 -0
  23. package/dist/serve/payload-2/sim-payload-2-connection.d.ts.map +1 -0
  24. package/dist/serve/payload-2/sim-payload-2-connection.js +25 -0
  25. package/dist/serve/payload-2/sim-payload-2-connection.js.map +1 -0
  26. package/dist/serve/payload-2/sim-payload-2-endpoint.d.ts +26 -0
  27. package/dist/serve/payload-2/sim-payload-2-endpoint.d.ts.map +1 -0
  28. package/dist/serve/payload-2/sim-payload-2-endpoint.js +2 -0
  29. package/dist/serve/payload-2/sim-payload-2-endpoint.js.map +1 -0
  30. package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts +51 -0
  31. package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts.map +1 -0
  32. package/dist/serve/payload-2/sim-payload-2-event-builder.js +98 -0
  33. package/dist/serve/payload-2/sim-payload-2-event-builder.js.map +1 -0
  34. package/dist/{service/lambda/serve/event/sim-lambda-url-event-time.d.ts → serve/payload-2/sim-payload-2-event-time.d.ts} +3 -3
  35. package/dist/serve/payload-2/sim-payload-2-event-time.d.ts.map +1 -0
  36. package/dist/{service/lambda/serve/event/sim-lambda-url-event-time.js → serve/payload-2/sim-payload-2-event-time.js} +4 -4
  37. package/dist/serve/payload-2/sim-payload-2-event-time.js.map +1 -0
  38. package/dist/serve/payload-2/sim-payload-2-event.type.d.ts +123 -0
  39. package/dist/serve/payload-2/sim-payload-2-event.type.d.ts.map +1 -0
  40. package/dist/serve/payload-2/sim-payload-2-event.type.js +2 -0
  41. package/dist/serve/payload-2/sim-payload-2-event.type.js.map +1 -0
  42. package/dist/serve/payload-2/sim-payload-2-iam-caller.d.ts +29 -0
  43. package/dist/serve/payload-2/sim-payload-2-iam-caller.d.ts.map +1 -0
  44. package/dist/{service/lambda/serve/event/sim-lambda-url-iam-authorizer.js → serve/payload-2/sim-payload-2-iam-caller.js} +8 -9
  45. package/dist/serve/payload-2/sim-payload-2-iam-caller.js.map +1 -0
  46. package/dist/serve/payload-2/sim-payload-2-request-context.d.ts +41 -0
  47. package/dist/serve/payload-2/sim-payload-2-request-context.d.ts.map +1 -0
  48. package/dist/serve/payload-2/sim-payload-2-request-context.js +54 -0
  49. package/dist/serve/payload-2/sim-payload-2-request-context.js.map +1 -0
  50. package/dist/{service/lambda/serve/event/sim-lambda-url-request-parts.d.ts → serve/payload-2/sim-payload-2-request-parts.d.ts} +15 -4
  51. package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts.map +1 -0
  52. package/dist/{service/lambda/serve/event/sim-lambda-url-request-parts.js → serve/payload-2/sim-payload-2-request-parts.js} +17 -5
  53. package/dist/serve/payload-2/sim-payload-2-request-parts.js.map +1 -0
  54. package/dist/serve/payload-2/sim-payload-2-response-builder.d.ts +26 -0
  55. package/dist/serve/payload-2/sim-payload-2-response-builder.d.ts.map +1 -0
  56. package/dist/{service/lambda/serve/response/sim-lambda-url-response-builder.js → serve/payload-2/sim-payload-2-response-builder.js} +13 -8
  57. package/dist/serve/payload-2/sim-payload-2-response-builder.js.map +1 -0
  58. package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.d.ts +29 -0
  59. package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.d.ts.map +1 -0
  60. package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.js +43 -0
  61. package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.js.map +1 -0
  62. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.d.ts +66 -0
  63. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.d.ts.map +1 -0
  64. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.js +53 -0
  65. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.js.map +1 -0
  66. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.d.ts +31 -0
  67. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.d.ts.map +1 -0
  68. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.js +46 -0
  69. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.js.map +1 -0
  70. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.d.ts +59 -0
  71. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.d.ts.map +1 -0
  72. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.js +43 -0
  73. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.js.map +1 -0
  74. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.d.ts +31 -0
  75. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.d.ts.map +1 -0
  76. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.js +78 -0
  77. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.js.map +1 -0
  78. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.d.ts +60 -0
  79. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.d.ts.map +1 -0
  80. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.js +84 -0
  81. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.js.map +1 -0
  82. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.d.ts +34 -0
  83. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.d.ts.map +1 -0
  84. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.js +75 -0
  85. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.js.map +1 -0
  86. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.d.ts +38 -0
  87. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.d.ts.map +1 -0
  88. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.js +34 -0
  89. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.js.map +1 -0
  90. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.d.ts +37 -0
  91. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.d.ts.map +1 -0
  92. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.js +18 -0
  93. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.js.map +1 -0
  94. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.d.ts +43 -0
  95. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.d.ts.map +1 -0
  96. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.js +70 -0
  97. package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.js.map +1 -0
  98. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.d.ts +27 -0
  99. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.d.ts.map +1 -0
  100. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.js +40 -0
  101. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.js.map +1 -0
  102. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.d.ts +66 -0
  103. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.d.ts.map +1 -0
  104. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.js +54 -0
  105. package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.js.map +1 -0
  106. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts +31 -0
  107. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts.map +1 -0
  108. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js +63 -0
  109. package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js.map +1 -0
  110. package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.d.ts +36 -0
  111. package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.d.ts.map +1 -0
  112. package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.js +44 -0
  113. package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.js.map +1 -0
  114. package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.d.ts +48 -0
  115. package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.d.ts.map +1 -0
  116. package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.js +62 -0
  117. package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.js.map +1 -0
  118. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.d.ts +18 -0
  119. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.d.ts.map +1 -0
  120. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.js +37 -0
  121. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.js.map +1 -0
  122. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.d.ts +38 -0
  123. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.d.ts.map +1 -0
  124. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.js +2 -0
  125. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.js.map +1 -0
  126. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.d.ts +32 -0
  127. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.d.ts.map +1 -0
  128. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.js +65 -0
  129. package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.js.map +1 -0
  130. package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.d.ts +27 -0
  131. package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.d.ts.map +1 -0
  132. package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.js +35 -0
  133. package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.js.map +1 -0
  134. package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.d.ts +23 -0
  135. package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.d.ts.map +1 -0
  136. package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.js +32 -0
  137. package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.js.map +1 -0
  138. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.d.ts +36 -0
  139. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.d.ts.map +1 -0
  140. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.js +48 -0
  141. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.js.map +1 -0
  142. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.d.ts +18 -0
  143. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.d.ts.map +1 -0
  144. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.js +47 -0
  145. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.js.map +1 -0
  146. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.d.ts +48 -0
  147. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.d.ts.map +1 -0
  148. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.js +23 -0
  149. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.js.map +1 -0
  150. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.d.ts +10 -0
  151. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.d.ts.map +1 -0
  152. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.js +19 -0
  153. package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.js.map +1 -0
  154. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.d.ts +29 -0
  155. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.d.ts.map +1 -0
  156. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.js +63 -0
  157. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.js.map +1 -0
  158. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.d.ts +42 -0
  159. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.d.ts.map +1 -0
  160. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.js +61 -0
  161. package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.js.map +1 -0
  162. package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.d.ts +23 -0
  163. package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.d.ts.map +1 -0
  164. package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.js +32 -0
  165. package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.js.map +1 -0
  166. package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.d.ts +47 -0
  167. package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.d.ts.map +1 -0
  168. package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.js +66 -0
  169. package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.js.map +1 -0
  170. package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.d.ts +18 -0
  171. package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.d.ts.map +1 -0
  172. package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.js +16 -0
  173. package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.js.map +1 -0
  174. package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.d.ts +23 -0
  175. package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.d.ts.map +1 -0
  176. package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.js +35 -0
  177. package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.js.map +1 -0
  178. package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.d.ts +36 -0
  179. package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.d.ts.map +1 -0
  180. package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.js +49 -0
  181. package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.js.map +1 -0
  182. package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.d.ts +42 -0
  183. package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.d.ts.map +1 -0
  184. package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.js +60 -0
  185. package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.js.map +1 -0
  186. package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.d.ts +20 -0
  187. package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.d.ts.map +1 -0
  188. package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.js +19 -0
  189. package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.js.map +1 -0
  190. package/dist/service/apigatewayv2/api/route/sim-http-api-route.d.ts +65 -0
  191. package/dist/service/apigatewayv2/api/route/sim-http-api-route.d.ts.map +1 -0
  192. package/dist/service/apigatewayv2/api/route/sim-http-api-route.js +56 -0
  193. package/dist/service/apigatewayv2/api/route/sim-http-api-route.js.map +1 -0
  194. package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.d.ts +51 -0
  195. package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.d.ts.map +1 -0
  196. package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.js +48 -0
  197. package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.js.map +1 -0
  198. package/dist/service/apigatewayv2/api/sim-http-api-host.d.ts +32 -0
  199. package/dist/service/apigatewayv2/api/sim-http-api-host.d.ts.map +1 -0
  200. package/dist/service/apigatewayv2/api/sim-http-api-host.js +31 -0
  201. package/dist/service/apigatewayv2/api/sim-http-api-host.js.map +1 -0
  202. package/dist/service/apigatewayv2/api/sim-http-api-id.d.ts +12 -0
  203. package/dist/service/apigatewayv2/api/sim-http-api-id.d.ts.map +1 -0
  204. package/dist/service/apigatewayv2/api/sim-http-api-id.js +9 -0
  205. package/dist/service/apigatewayv2/api/sim-http-api-id.js.map +1 -0
  206. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts +72 -0
  207. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts.map +1 -0
  208. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js +110 -0
  209. package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js.map +1 -0
  210. package/dist/service/apigatewayv2/api/sim-http-api-match.d.ts +56 -0
  211. package/dist/service/apigatewayv2/api/sim-http-api-match.d.ts.map +1 -0
  212. package/dist/service/apigatewayv2/api/sim-http-api-match.js +46 -0
  213. package/dist/service/apigatewayv2/api/sim-http-api-match.js.map +1 -0
  214. package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.d.ts +28 -0
  215. package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.d.ts.map +1 -0
  216. package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.js +43 -0
  217. package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.js.map +1 -0
  218. package/dist/service/apigatewayv2/api/sim-http-api-request.d.ts +22 -0
  219. package/dist/service/apigatewayv2/api/sim-http-api-request.d.ts.map +1 -0
  220. package/dist/service/apigatewayv2/api/sim-http-api-request.js +23 -0
  221. package/dist/service/apigatewayv2/api/sim-http-api-request.js.map +1 -0
  222. package/dist/service/apigatewayv2/api/sim-http-api-store.d.ts +29 -0
  223. package/dist/service/apigatewayv2/api/sim-http-api-store.d.ts.map +1 -0
  224. package/dist/service/apigatewayv2/api/sim-http-api-store.js +35 -0
  225. package/dist/service/apigatewayv2/api/sim-http-api-store.js.map +1 -0
  226. package/dist/service/apigatewayv2/api/sim-http-api-view.d.ts +40 -0
  227. package/dist/service/apigatewayv2/api/sim-http-api-view.d.ts.map +1 -0
  228. package/dist/service/apigatewayv2/api/sim-http-api-view.js +23 -0
  229. package/dist/service/apigatewayv2/api/sim-http-api-view.js.map +1 -0
  230. package/dist/service/apigatewayv2/api/sim-http-api.d.ts +73 -0
  231. package/dist/service/apigatewayv2/api/sim-http-api.d.ts.map +1 -0
  232. package/dist/service/apigatewayv2/api/sim-http-api.js +80 -0
  233. package/dist/service/apigatewayv2/api/sim-http-api.js.map +1 -0
  234. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.d.ts +34 -0
  235. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.d.ts.map +1 -0
  236. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.js +53 -0
  237. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.js.map +1 -0
  238. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.d.ts +21 -0
  239. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.d.ts.map +1 -0
  240. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.js +26 -0
  241. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.js.map +1 -0
  242. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts +46 -0
  243. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts.map +1 -0
  244. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js +47 -0
  245. package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js.map +1 -0
  246. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.d.ts +33 -0
  247. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.d.ts.map +1 -0
  248. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.js +49 -0
  249. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.js.map +1 -0
  250. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.d.ts +38 -0
  251. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.d.ts.map +1 -0
  252. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.js +47 -0
  253. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.js.map +1 -0
  254. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.d.ts +31 -0
  255. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.d.ts.map +1 -0
  256. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.js +36 -0
  257. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.js.map +1 -0
  258. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.d.ts +39 -0
  259. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.d.ts.map +1 -0
  260. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js +79 -0
  261. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js.map +1 -0
  262. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts +47 -0
  263. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts.map +1 -0
  264. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js +83 -0
  265. package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js.map +1 -0
  266. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.d.ts +29 -0
  267. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.d.ts.map +1 -0
  268. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.js +40 -0
  269. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.js.map +1 -0
  270. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.d.ts +34 -0
  271. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.d.ts.map +1 -0
  272. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js +67 -0
  273. package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js.map +1 -0
  274. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.d.ts +27 -0
  275. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.d.ts.map +1 -0
  276. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.js +38 -0
  277. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.js.map +1 -0
  278. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.d.ts +34 -0
  279. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.d.ts.map +1 -0
  280. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js +59 -0
  281. package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js.map +1 -0
  282. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.d.ts +32 -0
  283. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.d.ts.map +1 -0
  284. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.js +42 -0
  285. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.js.map +1 -0
  286. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.d.ts +35 -0
  287. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.d.ts.map +1 -0
  288. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js +57 -0
  289. package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js.map +1 -0
  290. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts +40 -0
  291. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts.map +1 -0
  292. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js +47 -0
  293. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js.map +1 -0
  294. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.d.ts +55 -0
  295. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.d.ts.map +1 -0
  296. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.js +108 -0
  297. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.js.map +1 -0
  298. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.d.ts +32 -0
  299. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.d.ts.map +1 -0
  300. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.js +85 -0
  301. package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.js.map +1 -0
  302. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.d.ts +28 -0
  303. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.d.ts.map +1 -0
  304. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.js +39 -0
  305. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.js.map +1 -0
  306. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.d.ts +52 -0
  307. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.d.ts.map +1 -0
  308. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.js +145 -0
  309. package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.js.map +1 -0
  310. package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.d.ts +45 -0
  311. package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.d.ts.map +1 -0
  312. package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.js +97 -0
  313. package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.js.map +1 -0
  314. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.d.ts +25 -0
  315. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.d.ts.map +1 -0
  316. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.js +35 -0
  317. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.js.map +1 -0
  318. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts +36 -0
  319. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts.map +1 -0
  320. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js +63 -0
  321. package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js.map +1 -0
  322. package/dist/service/apigatewayv2/command/api/api.command.d.ts +83 -0
  323. package/dist/service/apigatewayv2/command/api/api.command.d.ts.map +1 -0
  324. package/dist/service/apigatewayv2/command/api/api.command.js +2 -0
  325. package/dist/service/apigatewayv2/command/api/api.command.js.map +1 -0
  326. package/dist/service/apigatewayv2/command/api/sim-http-api-commands.d.ts +49 -0
  327. package/dist/service/apigatewayv2/command/api/sim-http-api-commands.d.ts.map +1 -0
  328. package/dist/service/apigatewayv2/command/api/sim-http-api-commands.js +98 -0
  329. package/dist/service/apigatewayv2/command/api/sim-http-api-commands.js.map +1 -0
  330. package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.d.ts +52 -0
  331. package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.d.ts.map +1 -0
  332. package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.js +63 -0
  333. package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.js.map +1 -0
  334. package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.d.ts +28 -0
  335. package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.d.ts.map +1 -0
  336. package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.js +44 -0
  337. package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.js.map +1 -0
  338. package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.d.ts +42 -0
  339. package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.d.ts.map +1 -0
  340. package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.js +36 -0
  341. package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.js.map +1 -0
  342. package/dist/service/apigatewayv2/command/authorizer/authorizer.command.d.ts +63 -0
  343. package/dist/service/apigatewayv2/command/authorizer/authorizer.command.d.ts.map +1 -0
  344. package/dist/service/apigatewayv2/command/authorizer/authorizer.command.js +2 -0
  345. package/dist/service/apigatewayv2/command/authorizer/authorizer.command.js.map +1 -0
  346. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.d.ts +37 -0
  347. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.d.ts.map +1 -0
  348. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.js +104 -0
  349. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.js.map +1 -0
  350. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.d.ts +34 -0
  351. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.d.ts.map +1 -0
  352. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.js +68 -0
  353. package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.js.map +1 -0
  354. package/dist/service/apigatewayv2/command/integration/integration.command.d.ts +38 -0
  355. package/dist/service/apigatewayv2/command/integration/integration.command.d.ts.map +1 -0
  356. package/dist/service/apigatewayv2/command/integration/integration.command.js +2 -0
  357. package/dist/service/apigatewayv2/command/integration/integration.command.js.map +1 -0
  358. package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.d.ts +23 -0
  359. package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.d.ts.map +1 -0
  360. package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.js +73 -0
  361. package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.js.map +1 -0
  362. package/dist/service/apigatewayv2/command/route/route.command.d.ts +39 -0
  363. package/dist/service/apigatewayv2/command/route/route.command.d.ts.map +1 -0
  364. package/dist/service/apigatewayv2/command/route/route.command.js +2 -0
  365. package/dist/service/apigatewayv2/command/route/route.command.js.map +1 -0
  366. package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.d.ts +53 -0
  367. package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.d.ts.map +1 -0
  368. package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.js +96 -0
  369. package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.js.map +1 -0
  370. package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.d.ts +25 -0
  371. package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.d.ts.map +1 -0
  372. package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js +84 -0
  373. package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js.map +1 -0
  374. package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.d.ts +27 -0
  375. package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.d.ts.map +1 -0
  376. package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.js +44 -0
  377. package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.js.map +1 -0
  378. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.d.ts +9 -0
  379. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.d.ts.map +1 -0
  380. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.js +2 -0
  381. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.js.map +1 -0
  382. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.d.ts +8 -0
  383. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.d.ts.map +1 -0
  384. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.js +2 -0
  385. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.js.map +1 -0
  386. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts +42 -0
  387. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts.map +1 -0
  388. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js +77 -0
  389. package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js.map +1 -0
  390. package/dist/service/apigatewayv2/command/sim-http-api-access.d.ts +45 -0
  391. package/dist/service/apigatewayv2/command/sim-http-api-access.d.ts.map +1 -0
  392. package/dist/service/apigatewayv2/command/sim-http-api-access.js +40 -0
  393. package/dist/service/apigatewayv2/command/sim-http-api-access.js.map +1 -0
  394. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.d.ts +27 -0
  395. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.d.ts.map +1 -0
  396. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js +70 -0
  397. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js.map +1 -0
  398. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.d.ts +29 -0
  399. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.d.ts.map +1 -0
  400. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.js +52 -0
  401. package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.js.map +1 -0
  402. package/dist/service/apigatewayv2/command/stage/stage.command.d.ts +38 -0
  403. package/dist/service/apigatewayv2/command/stage/stage.command.d.ts.map +1 -0
  404. package/dist/service/apigatewayv2/command/stage/stage.command.js +2 -0
  405. package/dist/service/apigatewayv2/command/stage/stage.command.js.map +1 -0
  406. package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.d.ts +42 -0
  407. package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.d.ts.map +1 -0
  408. package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.js +45 -0
  409. package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.js.map +1 -0
  410. package/dist/service/apigatewayv2/index.d.ts +29 -0
  411. package/dist/service/apigatewayv2/index.d.ts.map +1 -0
  412. package/dist/service/apigatewayv2/index.js +23 -0
  413. package/dist/service/apigatewayv2/index.js.map +1 -0
  414. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.d.ts +10 -0
  415. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.d.ts.map +1 -0
  416. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.js +29 -0
  417. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.js.map +1 -0
  418. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.d.ts +18 -0
  419. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.d.ts.map +1 -0
  420. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.js +29 -0
  421. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.js.map +1 -0
  422. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.d.ts +47 -0
  423. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.d.ts.map +1 -0
  424. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.d.ts +30 -0
  425. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.d.ts.map +1 -0
  426. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.js +26 -0
  427. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.js.map +1 -0
  428. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.js +109 -0
  429. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.js.map +1 -0
  430. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.d.ts +33 -0
  431. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.d.ts.map +1 -0
  432. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.js +59 -0
  433. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.js.map +1 -0
  434. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.d.ts +55 -0
  435. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.d.ts.map +1 -0
  436. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.js +95 -0
  437. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.js.map +1 -0
  438. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.d.ts +37 -0
  439. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.d.ts.map +1 -0
  440. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.d.ts +19 -0
  441. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.d.ts.map +1 -0
  442. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.js +20 -0
  443. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.js.map +1 -0
  444. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.js +86 -0
  445. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.js.map +1 -0
  446. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.d.ts +29 -0
  447. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.d.ts.map +1 -0
  448. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.js +37 -0
  449. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.js.map +1 -0
  450. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.d.ts +47 -0
  451. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.d.ts.map +1 -0
  452. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.js +63 -0
  453. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.js.map +1 -0
  454. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.d.ts +56 -0
  455. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.d.ts.map +1 -0
  456. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.js +80 -0
  457. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.js.map +1 -0
  458. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.d.ts +24 -0
  459. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.d.ts.map +1 -0
  460. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.js +70 -0
  461. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.js.map +1 -0
  462. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.d.ts +18 -0
  463. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.d.ts.map +1 -0
  464. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.js +24 -0
  465. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.js.map +1 -0
  466. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.d.ts +33 -0
  467. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.d.ts.map +1 -0
  468. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.js +49 -0
  469. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.js.map +1 -0
  470. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.d.ts +11 -0
  471. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.d.ts.map +1 -0
  472. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.js +12 -0
  473. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.js.map +1 -0
  474. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.d.ts +35 -0
  475. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.d.ts.map +1 -0
  476. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.js +43 -0
  477. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.js.map +1 -0
  478. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.d.ts +29 -0
  479. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.d.ts.map +1 -0
  480. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.js +85 -0
  481. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.js.map +1 -0
  482. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.d.ts +39 -0
  483. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.d.ts.map +1 -0
  484. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.js +49 -0
  485. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.js.map +1 -0
  486. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.d.ts +55 -0
  487. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.d.ts.map +1 -0
  488. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.js +102 -0
  489. package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.js.map +1 -0
  490. package/dist/service/apigatewayv2/registry/sim-http-api-registry.d.ts +31 -0
  491. package/dist/service/apigatewayv2/registry/sim-http-api-registry.d.ts.map +1 -0
  492. package/dist/service/apigatewayv2/registry/sim-http-api-registry.js +42 -0
  493. package/dist/service/apigatewayv2/registry/sim-http-api-registry.js.map +1 -0
  494. package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.d.ts +19 -0
  495. package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.d.ts.map +1 -0
  496. package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.js +81 -0
  497. package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.js.map +1 -0
  498. package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.d.ts +40 -0
  499. package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.d.ts.map +1 -0
  500. package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.js +57 -0
  501. package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.js.map +1 -0
  502. package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.d.ts +42 -0
  503. package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.d.ts.map +1 -0
  504. package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.js +49 -0
  505. package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.js.map +1 -0
  506. package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.d.ts +27 -0
  507. package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.d.ts.map +1 -0
  508. package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.js +49 -0
  509. package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.js.map +1 -0
  510. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.d.ts +28 -0
  511. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.d.ts.map +1 -0
  512. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.js +2 -0
  513. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.js.map +1 -0
  514. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.d.ts +32 -0
  515. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.d.ts.map +1 -0
  516. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.js +42 -0
  517. package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.js.map +1 -0
  518. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts +44 -0
  519. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts.map +1 -0
  520. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js +131 -0
  521. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js.map +1 -0
  522. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts +52 -0
  523. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts.map +1 -0
  524. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.js +72 -0
  525. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.js.map +1 -0
  526. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts +64 -0
  527. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts.map +1 -0
  528. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js +67 -0
  529. package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js.map +1 -0
  530. package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.d.ts +14 -0
  531. package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.d.ts.map +1 -0
  532. package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.js +21 -0
  533. package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.js.map +1 -0
  534. package/dist/service/apigatewayv2/sim-api-gateway-v2.d.ts +125 -0
  535. package/dist/service/apigatewayv2/sim-api-gateway-v2.d.ts.map +1 -0
  536. package/dist/service/apigatewayv2/sim-api-gateway-v2.js +198 -0
  537. package/dist/service/apigatewayv2/sim-api-gateway-v2.js.map +1 -0
  538. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +11 -0
  539. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  540. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +25 -0
  541. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  542. package/dist/service/aws/factory/sim-aws-service-factory.d.ts +13 -0
  543. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  544. package/dist/service/aws/factory/sim-aws-service-factory.js +15 -0
  545. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  546. package/dist/service/aws/sim-aws-account-region-scope.d.ts +5 -0
  547. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  548. package/dist/service/aws/sim-aws-account-region-scope.js +6 -0
  549. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  550. package/dist/service/aws/sim-aws.d.ts +3 -0
  551. package/dist/service/aws/sim-aws.d.ts.map +1 -1
  552. package/dist/service/aws/sim-aws.js +4 -0
  553. package/dist/service/aws/sim-aws.js.map +1 -1
  554. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.d.ts +7 -0
  555. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.d.ts.map +1 -0
  556. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.js +40 -0
  557. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.js.map +1 -0
  558. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.d.ts +24 -0
  559. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.d.ts.map +1 -0
  560. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.js +26 -0
  561. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.js.map +1 -0
  562. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.d.ts +29 -0
  563. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.d.ts.map +1 -0
  564. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.js +34 -0
  565. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.js.map +1 -0
  566. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.d.ts +25 -0
  567. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.d.ts.map +1 -0
  568. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.js +27 -0
  569. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.js.map +1 -0
  570. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.d.ts +24 -0
  571. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.d.ts.map +1 -0
  572. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.js +26 -0
  573. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.js.map +1 -0
  574. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.d.ts +24 -0
  575. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.d.ts.map +1 -0
  576. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.js +23 -0
  577. package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.js.map +1 -0
  578. package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.d.ts.map +1 -1
  579. package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js +2 -0
  580. package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js.map +1 -1
  581. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts +20 -0
  582. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -0
  583. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +74 -0
  584. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -0
  585. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.d.ts.map +1 -1
  586. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js +5 -46
  587. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js.map +1 -1
  588. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts +3 -3
  589. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
  590. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +30 -23
  591. package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
  592. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.d.ts +28 -0
  593. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.d.ts.map +1 -0
  594. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js +39 -0
  595. package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js.map +1 -0
  596. package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.d.ts +32 -0
  597. package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.d.ts.map +1 -0
  598. package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.js +41 -0
  599. package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.js.map +1 -0
  600. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +13 -0
  601. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
  602. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +45 -1
  603. package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
  604. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts.map +1 -1
  605. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js +1 -0
  606. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js.map +1 -1
  607. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +4 -0
  608. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
  609. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +5 -0
  610. package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
  611. package/dist/service/cognito/command/client/user-pool-client.command.d.ts +6 -3
  612. package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
  613. package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts +28 -0
  614. package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts.map +1 -0
  615. package/dist/service/cognito/command/sim-cognito-canonical-value.js +44 -0
  616. package/dist/service/cognito/command/sim-cognito-canonical-value.js.map +1 -0
  617. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts +23 -0
  618. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts.map +1 -0
  619. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js +38 -0
  620. package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js.map +1 -0
  621. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +8 -3
  622. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
  623. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +39 -5
  624. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
  625. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts +13 -2
  626. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts.map +1 -1
  627. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js +41 -6
  628. package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js.map +1 -1
  629. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
  630. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +1 -0
  631. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
  632. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -0
  633. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
  634. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +5 -0
  635. package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
  636. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +5 -3
  637. package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
  638. package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.d.ts +44 -0
  639. package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.d.ts.map +1 -0
  640. package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.js +88 -0
  641. package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.js.map +1 -0
  642. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts +42 -0
  643. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts.map +1 -0
  644. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js +44 -0
  645. package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js.map +1 -0
  646. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +6 -0
  647. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
  648. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -0
  649. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
  650. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +7 -0
  651. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
  652. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +6 -0
  653. package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
  654. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +50 -0
  655. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +1 -0
  656. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +61 -0
  657. package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +1 -0
  658. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +6 -0
  659. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
  660. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +2 -0
  661. package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
  662. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +7 -0
  663. package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
  664. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +6 -0
  665. package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
  666. package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.d.ts +14 -0
  667. package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.d.ts.map +1 -0
  668. package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.js +17 -0
  669. package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.js.map +1 -0
  670. package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.d.ts +13 -0
  671. package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.d.ts.map +1 -0
  672. package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.js +16 -0
  673. package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.js.map +1 -0
  674. package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator-parser.d.ts.map +1 -1
  675. package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator-parser.js +4 -0
  676. package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator-parser.js.map +1 -1
  677. package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.d.ts +4 -0
  678. package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.d.ts.map +1 -1
  679. package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.js +4 -3
  680. package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.js.map +1 -1
  681. package/dist/service/iam/authorize/sim-iam-arn-match.d.ts +12 -0
  682. package/dist/service/iam/authorize/sim-iam-arn-match.d.ts.map +1 -0
  683. package/dist/service/iam/authorize/sim-iam-arn-match.js +45 -0
  684. package/dist/service/iam/authorize/sim-iam-arn-match.js.map +1 -0
  685. package/dist/service/iam/command/role/list-roles/list-roles.handler.js +2 -2
  686. package/dist/service/iam/command/role/list-roles/list-roles.handler.js.map +1 -1
  687. package/dist/service/lambda/function/policy/sim-lambda-permission.d.ts +6 -5
  688. package/dist/service/lambda/function/policy/sim-lambda-permission.d.ts.map +1 -1
  689. package/dist/service/lambda/function/policy/sim-lambda-permission.js +6 -5
  690. package/dist/service/lambda/function/policy/sim-lambda-permission.js.map +1 -1
  691. package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.d.ts +13 -0
  692. package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.d.ts.map +1 -0
  693. package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.js +19 -0
  694. package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.js.map +1 -0
  695. package/dist/service/lambda/serve/event/sim-lambda-url-event.type.d.ts +9 -93
  696. package/dist/service/lambda/serve/event/sim-lambda-url-event.type.d.ts.map +1 -1
  697. package/dist/service/lambda/serve/sim-lambda-controller.d.ts.map +1 -1
  698. package/dist/service/lambda/serve/sim-lambda-controller.js +6 -5
  699. package/dist/service/lambda/serve/sim-lambda-controller.js.map +1 -1
  700. package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts +12 -0
  701. package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts.map +1 -1
  702. package/dist/service/route53/resolve/sim-r53-service-target-resolver.js +32 -0
  703. package/dist/service/route53/resolve/sim-r53-service-target-resolver.js.map +1 -1
  704. package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js +2 -2
  705. package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js.map +1 -1
  706. package/dist/util/jwt/sim-jwt-claims.d.ts +54 -0
  707. package/dist/util/jwt/sim-jwt-claims.d.ts.map +1 -0
  708. package/dist/util/jwt/sim-jwt-claims.js +77 -0
  709. package/dist/util/jwt/sim-jwt-claims.js.map +1 -0
  710. package/dist/util/jwt/sim-jwt-keys.d.ts +32 -0
  711. package/dist/util/jwt/sim-jwt-keys.d.ts.map +1 -0
  712. package/dist/util/jwt/sim-jwt-keys.js +24 -0
  713. package/dist/util/jwt/sim-jwt-keys.js.map +1 -0
  714. package/dist/util/jwt/sim-jwt-rs256.d.ts +38 -0
  715. package/dist/util/jwt/sim-jwt-rs256.d.ts.map +1 -0
  716. package/dist/util/jwt/sim-jwt-rs256.js +60 -0
  717. package/dist/util/jwt/sim-jwt-rs256.js.map +1 -0
  718. package/dist/util/jwt/sim-jwt.d.ts +43 -0
  719. package/dist/util/jwt/sim-jwt.d.ts.map +1 -0
  720. package/dist/util/jwt/sim-jwt.error.d.ts +13 -0
  721. package/dist/util/jwt/sim-jwt.error.d.ts.map +1 -0
  722. package/dist/util/jwt/sim-jwt.error.js +13 -0
  723. package/dist/util/jwt/sim-jwt.error.js.map +1 -0
  724. package/dist/util/jwt/sim-jwt.js +94 -0
  725. package/dist/util/jwt/sim-jwt.js.map +1 -0
  726. package/package.json +36 -31
  727. package/dist/service/lambda/serve/event/sim-lambda-url-body-encoding.d.ts.map +0 -1
  728. package/dist/service/lambda/serve/event/sim-lambda-url-body-encoding.js.map +0 -1
  729. package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.d.ts +0 -36
  730. package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.d.ts.map +0 -1
  731. package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.js +0 -61
  732. package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.js.map +0 -1
  733. package/dist/service/lambda/serve/event/sim-lambda-url-event-time.d.ts.map +0 -1
  734. package/dist/service/lambda/serve/event/sim-lambda-url-event-time.js.map +0 -1
  735. package/dist/service/lambda/serve/event/sim-lambda-url-iam-authorizer.d.ts +0 -30
  736. package/dist/service/lambda/serve/event/sim-lambda-url-iam-authorizer.d.ts.map +0 -1
  737. package/dist/service/lambda/serve/event/sim-lambda-url-iam-authorizer.js.map +0 -1
  738. package/dist/service/lambda/serve/event/sim-lambda-url-request-context.d.ts +0 -29
  739. package/dist/service/lambda/serve/event/sim-lambda-url-request-context.d.ts.map +0 -1
  740. package/dist/service/lambda/serve/event/sim-lambda-url-request-context.js +0 -54
  741. package/dist/service/lambda/serve/event/sim-lambda-url-request-context.js.map +0 -1
  742. package/dist/service/lambda/serve/event/sim-lambda-url-request-parts.d.ts.map +0 -1
  743. package/dist/service/lambda/serve/event/sim-lambda-url-request-parts.js.map +0 -1
  744. package/dist/service/lambda/serve/response/sim-lambda-url-response-builder.d.ts +0 -21
  745. package/dist/service/lambda/serve/response/sim-lambda-url-response-builder.d.ts.map +0 -1
  746. package/dist/service/lambda/serve/response/sim-lambda-url-response-builder.js.map +0 -1
@@ -0,0 +1,123 @@
1
+ /**
2
+ * A Lambda proxy invocation event in API Gateway HTTP API payload format 2.0.
3
+ *
4
+ * Two simulated services build this same event: an HTTP API with an `AWS_PROXY`
5
+ * integration, which is what the format is named after, and a Lambda Function
6
+ * URL, which real Lambda documents as using the same format. The fields that
7
+ * differ between them, such as the route key and the stage, are supplied by
8
+ * whichever endpoint received the request.
9
+ *
10
+ * This is a minimal structural equivalent of the `aws-lambda` typings package's
11
+ * `APIGatewayProxyEventV2` and `LambdaFunctionURLEvent`, so handlers typed
12
+ * against that package can be invoked unchanged.
13
+ */
14
+ export interface SimPayload2Event {
15
+ version: "2.0";
16
+ routeKey: string;
17
+ rawPath: string;
18
+ rawQueryString: string;
19
+ cookies?: string[];
20
+ headers: Record<string, string>;
21
+ queryStringParameters?: Record<string, string>;
22
+ pathParameters?: Record<string, string>;
23
+ stageVariables?: Record<string, string>;
24
+ requestContext: SimPayload2RequestContext;
25
+ body?: string;
26
+ isBase64Encoded: boolean;
27
+ }
28
+ /**
29
+ * The requestContext block of a payload format 2.0 event.
30
+ */
31
+ export interface SimPayload2RequestContext {
32
+ accountId: string;
33
+ apiId: string;
34
+ authorizer?: SimPayload2AuthorizerContext;
35
+ domainName: string;
36
+ domainPrefix: string;
37
+ http: SimPayload2HttpContext;
38
+ requestId: string;
39
+ routeKey: string;
40
+ stage: string;
41
+ time: string;
42
+ timeEpoch: number;
43
+ }
44
+ /**
45
+ * The requestContext.authorizer block, present only on an invocation the
46
+ * endpoint authorized.
47
+ *
48
+ * An endpoint that admits anyone has no caller to describe, so real AWS leaves
49
+ * this out entirely rather than filling it with blanks. Which member is
50
+ * present says which kind of authorizer admitted the request: `iam` for a
51
+ * SigV4-signed request, `jwt` for a JWT authorizer.
52
+ */
53
+ export interface SimPayload2AuthorizerContext {
54
+ iam?: SimPayload2IamAuthorizer;
55
+ jwt?: SimPayload2JwtAuthorizer;
56
+ }
57
+ /**
58
+ * The IAM caller of a SigV4-authorized invocation.
59
+ *
60
+ * `userArn` and `accountId` describe the principal the request was attributed
61
+ * to, which is what makes a handler able to behave differently for different
62
+ * callers.
63
+ *
64
+ * `callerId` and `userId` carry the caller ARN rather than the opaque unique
65
+ * id (`AIDA...`, `AROA...:session`) real AWS puts there: the simulator has no
66
+ * unique-id namespace at the request boundary, and an ARN is what a test would
67
+ * assert on anyway. `accessKey` is empty, as the simulator does not carry the
68
+ * signing access key id past authentication. `cognitoIdentity` and
69
+ * `principalOrgId` are always null, as neither is simulated.
70
+ */
71
+ export interface SimPayload2IamAuthorizer {
72
+ accessKey: string;
73
+ accountId: string;
74
+ callerId: string;
75
+ cognitoIdentity: null;
76
+ principalOrgId: null;
77
+ userArn: string;
78
+ userId: string;
79
+ }
80
+ /**
81
+ * The JWT the endpoint's authorizer accepted, as it reaches the handler.
82
+ *
83
+ * `scopes` is null when the token carries no `scope` claim, which is what real
84
+ * API Gateway puts there rather than an empty list.
85
+ */
86
+ export interface SimPayload2JwtAuthorizer {
87
+ claims: Record<string, string>;
88
+ scopes: string[] | null;
89
+ }
90
+ /**
91
+ * The requestContext.http block of a payload format 2.0 event.
92
+ */
93
+ export interface SimPayload2HttpContext {
94
+ method: string;
95
+ path: string;
96
+ protocol: string;
97
+ sourceIp: string;
98
+ userAgent: string;
99
+ }
100
+ /**
101
+ * Structured handler result for a payload format 2.0 invocation.
102
+ *
103
+ * A handler may also return any other value, in which case real AWS infers a
104
+ * 200 JSON response from it.
105
+ */
106
+ export interface SimPayload2Result extends SimPayload2ResultBody {
107
+ statusCode?: number | undefined;
108
+ }
109
+ /**
110
+ * A handler result that carries a status code, which is what makes real AWS
111
+ * treat it as an HTTP response rather than a value to JSON-encode.
112
+ */
113
+ export interface SimPayload2StructuredResult extends SimPayload2ResultBody {
114
+ statusCode: number;
115
+ }
116
+ interface SimPayload2ResultBody {
117
+ headers?: Record<string, string | number | boolean> | undefined;
118
+ cookies?: string[] | undefined;
119
+ body?: string | undefined;
120
+ isBase64Encoded?: boolean | undefined;
121
+ }
122
+ export {};
123
+ //# sourceMappingURL=sim-payload-2-event.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-event.type.d.ts","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-event.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,cAAc,EAAE,yBAAyB,CAAC;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,4BAA4B;IAC3C,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B,GAAG,CAAC,EAAE,wBAAwB,CAAC;CAChC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,IAAI,CAAC;IACtB,cAAc,EAAE,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,qBAAqB;IACxE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,qBAAqB;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GAAG,SAAS,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sim-payload-2-event.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-event.type.js","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-event.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import type { SimAwsRequestCaller } from "../../service/iam/request/sim-aws-request-caller.js";
2
+ import type { SimPayload2AuthorizerContext } from "./sim-payload-2-event.type.js";
3
+ /**
4
+ * What an endpoint reports as the Account of a caller it did not authenticate,
5
+ * which is every caller of an endpoint that admits anyone.
6
+ */
7
+ export declare const simPayload2AnonymousAccountId = "anonymous";
8
+ /**
9
+ * How the IAM caller of an invocation appears in the event.
10
+ *
11
+ * Everything here is derived from the caller's ARN. A caller without one is
12
+ * described the way an unauthenticated caller is, rather than filled in with
13
+ * something no real invocation would carry.
14
+ */
15
+ export declare class SimPayload2IamCaller {
16
+ private readonly caller;
17
+ constructor(caller: SimAwsRequestCaller);
18
+ /**
19
+ * The Account this invocation is reported as coming from.
20
+ */
21
+ accountId(): string;
22
+ /**
23
+ * The `requestContext.authorizer` block describing this caller, or undefined
24
+ * when there is no IAM principal to describe.
25
+ */
26
+ authorizerContext(): SimPayload2AuthorizerContext | undefined;
27
+ private arn;
28
+ }
29
+ //# sourceMappingURL=sim-payload-2-iam-caller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-iam-caller.d.ts","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-iam-caller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAElF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAEzD;;;;;;GAMG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAE7C,YAAY,MAAM,EAAE,mBAAmB,EAEtC;IAED;;OAEG;IACH,SAAS,IAAI,MAAM,CAQlB;IAED;;;OAGG;IACH,iBAAiB,IAAI,4BAA4B,GAAG,SAAS,CAkB5D;IAED,OAAO,CAAC,GAAG;CAKZ"}
@@ -1,17 +1,16 @@
1
1
  /**
2
- * What a Function URL reports as the Account of a caller it did not
3
- * authenticate, which is every caller of a `NONE` URL.
2
+ * What an endpoint reports as the Account of a caller it did not authenticate,
3
+ * which is every caller of an endpoint that admits anyone.
4
4
  */
5
- export const simLambdaUrlAnonymousAccountId = "anonymous";
5
+ export const simPayload2AnonymousAccountId = "anonymous";
6
6
  /**
7
- * How the caller of a Function URL invocation appears in the event.
7
+ * How the IAM caller of an invocation appears in the event.
8
8
  *
9
- * Real Lambda only ever authenticates an IAM principal at a Function URL, so
10
- * everything here is derived from the caller's ARN. A caller without one is
9
+ * Everything here is derived from the caller's ARN. A caller without one is
11
10
  * described the way an unauthenticated caller is, rather than filled in with
12
11
  * something no real invocation would carry.
13
12
  */
14
- export class SimLambdaUrlIamCaller {
13
+ export class SimPayload2IamCaller {
15
14
  caller;
16
15
  constructor(caller) {
17
16
  this.caller = caller;
@@ -22,7 +21,7 @@ export class SimLambdaUrlIamCaller {
22
21
  accountId() {
23
22
  const arnAccountId = this.arn()?.split(":", 6)[4];
24
23
  if (arnAccountId === undefined || arnAccountId.length === 0) {
25
- return simLambdaUrlAnonymousAccountId;
24
+ return simPayload2AnonymousAccountId;
26
25
  }
27
26
  return arnAccountId;
28
27
  }
@@ -52,4 +51,4 @@ export class SimLambdaUrlIamCaller {
52
51
  return principal.kind === "arn" ? principal.arn : undefined;
53
52
  }
54
53
  }
55
- //# sourceMappingURL=sim-lambda-url-iam-authorizer.js.map
54
+ //# sourceMappingURL=sim-payload-2-iam-caller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-iam-caller.js","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-iam-caller.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAW,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,OAAO,oBAAoB;IACd,MAAM,CAAsB;IAE7C,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,SAAS;QACP,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAElD,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5D,OAAO,6BAA6B,CAAC;QACvC,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,iBAAiB;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAEvB,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO;YACL,GAAG,EAAE;gBACH,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;gBAC3B,QAAQ,EAAE,GAAG;gBACb,eAAe,EAAE,IAAI;gBACrB,cAAc,EAAE,IAAI;gBACpB,OAAO,EAAE,GAAG;gBACZ,MAAM,EAAE,GAAG;aACZ;SACF,CAAC;IACJ,CAAC;IAEO,GAAG;QACT,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QAElC,OAAO,SAAS,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9D,CAAC;CACF"}
@@ -0,0 +1,41 @@
1
+ import type { SimAwsRequestCaller } from "../../service/iam/request/sim-aws-request-caller.js";
2
+ import type { SimPayload2Endpoint } from "./sim-payload-2-endpoint.js";
3
+ import type { SimPayload2JwtAuthorizer, SimPayload2RequestContext } from "./sim-payload-2-event.type.js";
4
+ /**
5
+ * What the endpoint's authorizer knows about the caller, if it authorized one.
6
+ *
7
+ * The two members are the two kinds of authorizer a payload format 2.0
8
+ * endpoint has. Neither is present for an endpoint that admits anyone, which
9
+ * is what leaves the authorizer block out of the event.
10
+ */
11
+ export interface SimPayload2Authorization {
12
+ /** The caller of a SigV4-signed request the endpoint authenticated. */
13
+ readonly caller?: SimAwsRequestCaller | undefined;
14
+ /** The token a JWT authorizer accepted. */
15
+ readonly jwt?: SimPayload2JwtAuthorizer | undefined;
16
+ }
17
+ interface SimPayload2RequestContextInput {
18
+ readonly request: Request;
19
+ readonly url: URL;
20
+ readonly endpoint: SimPayload2Endpoint;
21
+ /** The simulated instant the request is stamped with. */
22
+ readonly at: Date;
23
+ readonly authorization?: SimPayload2Authorization | undefined;
24
+ }
25
+ /**
26
+ * Builds the requestContext block of a payload format 2.0 event.
27
+ *
28
+ * This describes the AWS-shaped endpoint the request reached and, when the
29
+ * endpoint authorized one, the caller behind it. A caller is supplied only for
30
+ * an endpoint that authenticates, which is what makes the authorizer block
31
+ * present there and absent for an open endpoint, as it is on real AWS.
32
+ */
33
+ export declare class SimPayload2RequestContextBuilder {
34
+ /**
35
+ * Build the requestContext for one request.
36
+ */
37
+ build(input: SimPayload2RequestContextInput): SimPayload2RequestContext;
38
+ private iamCaller;
39
+ }
40
+ export {};
41
+ //# sourceMappingURL=sim-payload-2-request-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-request-context.d.ts","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-request-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AAOvC;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,uEAAuE;IACvE,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAClD,2CAA2C;IAC3C,QAAQ,CAAC,GAAG,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACrD;AAED,UAAU,8BAA8B;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,yDAAyD;IACzD,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,aAAa,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CAC/D;AAED;;;;;;;GAOG;AACH,qBAAa,gCAAgC;IAC3C;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,8BAA8B,GAAG,yBAAyB,CAoCtE;IAED,OAAO,CAAC,SAAS;CAKlB"}
@@ -0,0 +1,54 @@
1
+ import { randomUUID } from "node:crypto";
2
+ import { simPayload2SourceIp } from "./sim-payload-2-connection.js";
3
+ import { simPayload2EventTime } from "./sim-payload-2-event-time.js";
4
+ import { simPayload2AnonymousAccountId, SimPayload2IamCaller, } from "./sim-payload-2-iam-caller.js";
5
+ /**
6
+ * Builds the requestContext block of a payload format 2.0 event.
7
+ *
8
+ * This describes the AWS-shaped endpoint the request reached and, when the
9
+ * endpoint authorized one, the caller behind it. A caller is supplied only for
10
+ * an endpoint that authenticates, which is what makes the authorizer block
11
+ * present there and absent for an open endpoint, as it is on real AWS.
12
+ */
13
+ export class SimPayload2RequestContextBuilder {
14
+ /**
15
+ * Build the requestContext for one request.
16
+ */
17
+ build(input) {
18
+ const { request, url, endpoint, at } = input;
19
+ const iamCaller = this.iamCaller(input.authorization?.caller);
20
+ const requestContext = {
21
+ // An unauthenticated request has no Account behind it, and that is what
22
+ // AWS calls anonymous.
23
+ accountId: iamCaller?.accountId() ?? simPayload2AnonymousAccountId,
24
+ apiId: endpoint.apiId,
25
+ domainName: endpoint.domainName,
26
+ domainPrefix: endpoint.domainPrefix,
27
+ http: {
28
+ method: request.method,
29
+ path: url.pathname,
30
+ protocol: "HTTP/1.1",
31
+ sourceIp: simPayload2SourceIp,
32
+ userAgent: request.headers.get("user-agent") ?? "",
33
+ },
34
+ requestId: randomUUID(),
35
+ routeKey: endpoint.routeKey,
36
+ stage: endpoint.stage,
37
+ time: simPayload2EventTime(at),
38
+ timeEpoch: at.getTime(),
39
+ };
40
+ const jwt = input.authorization?.jwt;
41
+ if (jwt !== undefined) {
42
+ requestContext.authorizer = { jwt };
43
+ }
44
+ const authorizer = iamCaller?.authorizerContext();
45
+ if (authorizer !== undefined) {
46
+ requestContext.authorizer = authorizer;
47
+ }
48
+ return requestContext;
49
+ }
50
+ iamCaller(caller) {
51
+ return caller === undefined ? undefined : new SimPayload2IamCaller(caller);
52
+ }
53
+ }
54
+ //# sourceMappingURL=sim-payload-2-request-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-request-context.js","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-request-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAMpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EACL,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AAyBvC;;;;;;;GAOG;AACH,MAAM,OAAO,gCAAgC;IAC3C;;OAEG;IACH,KAAK,CAAC,KAAqC;QACzC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;QAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAE9D,MAAM,cAAc,GAA8B;YAChD,wEAAwE;YACxE,uBAAuB;YACvB,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,6BAA6B;YAClE,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,UAAU,EAAE,QAAQ,CAAC,UAAU;YAC/B,YAAY,EAAE,QAAQ,CAAC,YAAY;YACnC,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,IAAI,EAAE,GAAG,CAAC,QAAQ;gBAClB,QAAQ,EAAE,UAAU;gBACpB,QAAQ,EAAE,mBAAmB;gBAC7B,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE;aACnD;YACD,SAAS,EAAE,UAAU,EAAE;YACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,IAAI,EAAE,oBAAoB,CAAC,EAAE,CAAC;YAC9B,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE;SACxB,CAAC;QAEF,MAAM,GAAG,GAAG,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC;QACrC,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,cAAc,CAAC,UAAU,GAAG,EAAE,GAAG,EAAE,CAAC;QACtC,CAAC;QAED,MAAM,UAAU,GAAG,SAAS,EAAE,iBAAiB,EAAE,CAAC;QAClD,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,cAAc,CAAC,UAAU,GAAG,UAAU,CAAC;QACzC,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC;IAEO,SAAS,CACf,MAAuC;QAEvC,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -1,3 +1,10 @@
1
+ interface SimPayload2ProxiedRequest {
2
+ readonly request: Request;
3
+ /** The AWS-shaped hostname of the endpoint the request reached. */
4
+ readonly domainName: string;
5
+ readonly traceId: string;
6
+ readonly sourceIp: string;
7
+ }
1
8
  /**
2
9
  * Reads the parts of an HTTP request that payload format 2.0 delivers in its
3
10
  * own event fields rather than as raw request data.
@@ -5,14 +12,17 @@
5
12
  * Keeping this separate leaves the event builder to assemble the event from
6
13
  * parts, without also owning the header, cookie and query conventions.
7
14
  */
8
- export declare class SimLambdaUrlRequestParts {
15
+ export declare class SimPayload2RequestParts {
9
16
  /**
10
17
  * Collect request headers, which payload format 2.0 delivers as single
11
18
  * lowercased values.
12
19
  *
13
- * Cookies are left out because they travel in their own event field.
20
+ * Cookies are left out because they travel in their own event field. The
21
+ * proxy headers are set rather than merged: AWS terminates the connection
22
+ * itself and rewrites them before the handler sees them, so whatever a
23
+ * client sent under those names does not survive.
14
24
  */
15
- headers(request: Request): Record<string, string>;
25
+ headers(proxied: SimPayload2ProxiedRequest): Record<string, string>;
16
26
  /**
17
27
  * Collect the request cookies as the separate list the event carries.
18
28
  */
@@ -23,4 +33,5 @@ export declare class SimLambdaUrlRequestParts {
23
33
  */
24
34
  queryStringParameters(url: URL): Record<string, string>;
25
35
  }
26
- //# sourceMappingURL=sim-lambda-url-request-parts.d.ts.map
36
+ export {};
37
+ //# sourceMappingURL=sim-payload-2-request-parts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-request-parts.d.ts","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-request-parts.ts"],"names":[],"mappings":"AAAA,UAAU,yBAAyB;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,qBAAa,uBAAuB;IAClC;;;;;;;;OAQG;IACH,OAAO,CAAC,OAAO,EAAE,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoBlE;IAED;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAWlC;IAED;;;OAGG;IACH,qBAAqB,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAStD;CACF"}
@@ -5,21 +5,33 @@
5
5
  * Keeping this separate leaves the event builder to assemble the event from
6
6
  * parts, without also owning the header, cookie and query conventions.
7
7
  */
8
- export class SimLambdaUrlRequestParts {
8
+ export class SimPayload2RequestParts {
9
9
  /**
10
10
  * Collect request headers, which payload format 2.0 delivers as single
11
11
  * lowercased values.
12
12
  *
13
- * Cookies are left out because they travel in their own event field.
13
+ * Cookies are left out because they travel in their own event field. The
14
+ * proxy headers are set rather than merged: AWS terminates the connection
15
+ * itself and rewrites them before the handler sees them, so whatever a
16
+ * client sent under those names does not survive.
14
17
  */
15
- headers(request) {
18
+ headers(proxied) {
16
19
  // Fetch API header names are already lowercased, which is the case
17
20
  // payload format 2.0 delivers them in, and repeats are already joined.
18
21
  const headers = new Map();
19
- request.headers.forEach((value, name) => {
22
+ proxied.request.headers.forEach((value, name) => {
20
23
  headers.set(name, value);
21
24
  });
22
25
  headers.delete("cookie");
26
+ // The endpoint's own hostname, not the localhost one the request arrived
27
+ // at, because that is the hostname the request named on real AWS.
28
+ headers.set("host", proxied.domainName);
29
+ headers.set("x-amzn-trace-id", proxied.traceId);
30
+ headers.set("x-forwarded-for", proxied.sourceIp);
31
+ // Simulated endpoints are reached over plain localhost HTTP, while a real
32
+ // one is only reachable over HTTPS, so these describe the AWS endpoint.
33
+ headers.set("x-forwarded-port", "443");
34
+ headers.set("x-forwarded-proto", "https");
23
35
  return Object.fromEntries(headers);
24
36
  }
25
37
  /**
@@ -47,4 +59,4 @@ export class SimLambdaUrlRequestParts {
47
59
  ]));
48
60
  }
49
61
  }
50
- //# sourceMappingURL=sim-lambda-url-request-parts.js.map
62
+ //# sourceMappingURL=sim-payload-2-request-parts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-request-parts.js","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-request-parts.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IAClC;;;;;;;;OAQG;IACH,OAAO,CAAC,OAAkC;QACxC,mEAAmE;QACnE,uEAAuE;QACvE,MAAM,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;QAC1C,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YAC9C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEzB,yEAAyE;QACzE,kEAAkE;QAClE,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAChD,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjD,0EAA0E;QAC1E,wEAAwE;QACxE,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;QAE1C,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAgB;QACtB,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAEnD,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvD,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,YAAY;aAChB,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;aAC9B,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,qBAAqB,CAAC,GAAQ;QAC5B,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;QAE9C,OAAO,MAAM,CAAC,WAAW,CACvB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAoB,EAAE,CAAC;YACvC,GAAG;YACH,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SACvC,CAAC,CACH,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Turns a payload format 2.0 handler result into the HTTP response the client
3
+ * sees.
4
+ *
5
+ * Real AWS accepts two shapes here: a structured response carrying a
6
+ * statusCode, or any other value, which it wraps in a 200 JSON response. That
7
+ * second rule is why a handler returning `{ body: "hi" }` and nothing else
8
+ * produces a 200 whose body is the JSON `{"body":"hi"}`: without a statusCode
9
+ * there is no structured response to read, so the whole object is the value.
10
+ * Both are supported so handlers written either way behave as they would on
11
+ * AWS.
12
+ */
13
+ export declare class SimPayload2ResponseBuilder {
14
+ private readonly bodyEncoding;
15
+ /**
16
+ * Build the HTTP response for one handler result.
17
+ */
18
+ build(result: unknown): Response;
19
+ /**
20
+ * Whether the handler returned a structured HTTP response rather than a
21
+ * value to be JSON-encoded.
22
+ */
23
+ private isStructuredResult;
24
+ private structuredResponse;
25
+ }
26
+ //# sourceMappingURL=sim-payload-2-response-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-response-builder.d.ts","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-response-builder.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAiC;IAE9D;;OAEG;IACH,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,CAS/B;IAED;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,kBAAkB;CAgC3B"}
@@ -1,14 +1,19 @@
1
- import { SimLambdaUrlBodyEncoding } from "../event/sim-lambda-url-body-encoding.js";
1
+ import { SimPayload2BodyEncoding } from "./sim-payload-2-body-encoding.js";
2
2
  const jsonContentType = "application/json";
3
3
  /**
4
- * Turns a Function URL handler result into the HTTP response the client sees.
4
+ * Turns a payload format 2.0 handler result into the HTTP response the client
5
+ * sees.
5
6
  *
6
- * Real Lambda accepts two shapes here: a structured response carrying a
7
- * statusCode, or any other value, which it wraps in a 200 JSON response. Both
8
- * are supported so handlers written either way behave as they would on AWS.
7
+ * Real AWS accepts two shapes here: a structured response carrying a
8
+ * statusCode, or any other value, which it wraps in a 200 JSON response. That
9
+ * second rule is why a handler returning `{ body: "hi" }` and nothing else
10
+ * produces a 200 whose body is the JSON `{"body":"hi"}`: without a statusCode
11
+ * there is no structured response to read, so the whole object is the value.
12
+ * Both are supported so handlers written either way behave as they would on
13
+ * AWS.
9
14
  */
10
- export class SimLambdaUrlResponseBuilder {
11
- bodyEncoding = new SimLambdaUrlBodyEncoding();
15
+ export class SimPayload2ResponseBuilder {
16
+ bodyEncoding = new SimPayload2BodyEncoding();
12
17
  /**
13
18
  * Build the HTTP response for one handler result.
14
19
  */
@@ -54,4 +59,4 @@ export class SimLambdaUrlResponseBuilder {
54
59
  });
55
60
  }
56
61
  }
57
- //# sourceMappingURL=sim-lambda-url-response-builder.js.map
62
+ //# sourceMappingURL=sim-payload-2-response-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-payload-2-response-builder.js","sourceRoot":"","sources":["../../../src/serve/payload-2/sim-payload-2-response-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAM3E,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,YAAY,GAAG,IAAI,uBAAuB,EAAE,CAAC;IAE9D;;OAEG;IACH,KAAK,CAAC,MAAe;QACnB,IAAI,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QAED,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACnC,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,EAAE,cAAc,EAAE,eAAe,EAAE;SAC7C,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACK,kBAAkB,CACxB,MAAe;QAEf,OAAO,CACL,OAAO,MAAM,KAAK,QAAQ;YAC1B,MAAM,KAAK,IAAI;YACf,YAAY,IAAI,MAAM;YACtB,OAAQ,MAA4B,CAAC,UAAU,KAAK,QAAQ,CAC7D,CAAC;IACJ,CAAC;IAEO,kBAAkB,CAAC,MAAmC;QAC5D,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;QAC9B,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;QAC3D,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QAE3C,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,aAAa,EAAE,CAAC;YAC1C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACnC,CAAC;QAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;YACnC,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACvC,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;YACjC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAC/C,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CACnC,MAAM,CAAC,IAAI,IAAI,EAAE,EACjB,MAAM,CAAC,eAAe,IAAI,KAAK,CAChC,CAAC;QAEF,OAAO,IAAI,QAAQ;QACjB,qEAAqE;QACrE,gDAAgD;QAChD,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAC/B;YACE,MAAM,EAAE,MAAM,CAAC,UAAU;YACzB,OAAO;SACR,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,29 @@
1
+ import { SimJwtKeys } from "../../../../util/jwt/sim-jwt-keys.js";
2
+ import type { SimCognitoUserPoolRegistry } from "../../../cognito/registry/sim-cognito-user-pool-registry.js";
3
+ import type { SimHttpApiJwtIssuerKeys } from "./sim-http-api-jwt-issuer-keys.js";
4
+ interface SimCognitoHttpApiJwtIssuerKeysProperties {
5
+ readonly userPoolRegistry: SimCognitoUserPoolRegistry;
6
+ }
7
+ /**
8
+ * Simulated Cognito user pools as the issuers a JWT authorizer verifies
9
+ * against.
10
+ *
11
+ * All of the Cognito-shaped URL handling lives here rather than in API
12
+ * Gateway, which knows only that an authorizer names an issuer by URL. The
13
+ * registry spans simulated Accounts, matching an API Gateway authorizer that
14
+ * can name a pool in any Account.
15
+ */
16
+ export declare class SimCognitoHttpApiJwtIssuerKeys implements SimHttpApiJwtIssuerKeys {
17
+ private readonly userPoolRegistry;
18
+ constructor(properties: SimCognitoHttpApiJwtIssuerKeysProperties);
19
+ /**
20
+ * The keys the pool this issuer URL names publishes.
21
+ *
22
+ * An issuer that is not a Cognito URL, names no pool this simulation has, or
23
+ * names one through another region's endpoint publishes nothing, and every
24
+ * token claiming it is refused.
25
+ */
26
+ publishedBy(issuerUrl: string): SimJwtKeys;
27
+ }
28
+ export {};
29
+ //# sourceMappingURL=sim-cognito-http-api-jwt-issuer-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-http-api-jwt-issuer-keys.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAC;AAC9G,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAYjF,UAAU,wCAAwC;IAChD,QAAQ,CAAC,gBAAgB,EAAE,0BAA0B,CAAC;CACvD;AAED;;;;;;;;GAQG;AACH,qBAAa,8BAA+B,YAAW,uBAAuB;IAC5E,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA6B;IAE9D,YAAY,UAAU,EAAE,wCAAwC,EAE/D;IAED;;;;;;OAMG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAczC;CACF"}
@@ -0,0 +1,43 @@
1
+ import { SimJwtKeys } from "../../../../util/jwt/sim-jwt-keys.js";
2
+ /**
3
+ * The issuer URL a simulated Cognito user pool's tokens name.
4
+ *
5
+ * The region appears twice, once in the hostname and once as the leading part
6
+ * of the pool id, and real Cognito only issues for a pool through its own
7
+ * region's endpoint. Both are captured so the two can be compared.
8
+ */
9
+ const cognitoIssuerUrl = /^https:\/\/cognito-idp\.(?<hostRegion>[a-z0-9-]+)\.amazonaws\.com\/(?<poolId>(?<poolRegion>[a-z0-9-]+)_[A-Za-z0-9]+)$/;
10
+ /**
11
+ * Simulated Cognito user pools as the issuers a JWT authorizer verifies
12
+ * against.
13
+ *
14
+ * All of the Cognito-shaped URL handling lives here rather than in API
15
+ * Gateway, which knows only that an authorizer names an issuer by URL. The
16
+ * registry spans simulated Accounts, matching an API Gateway authorizer that
17
+ * can name a pool in any Account.
18
+ */
19
+ export class SimCognitoHttpApiJwtIssuerKeys {
20
+ userPoolRegistry;
21
+ constructor(properties) {
22
+ this.userPoolRegistry = properties.userPoolRegistry;
23
+ }
24
+ /**
25
+ * The keys the pool this issuer URL names publishes.
26
+ *
27
+ * An issuer that is not a Cognito URL, names no pool this simulation has, or
28
+ * names one through another region's endpoint publishes nothing, and every
29
+ * token claiming it is refused.
30
+ */
31
+ publishedBy(issuerUrl) {
32
+ const groups = cognitoIssuerUrl.exec(issuerUrl)?.groups;
33
+ if (groups === undefined || groups["hostRegion"] !== groups["poolRegion"]) {
34
+ return new SimJwtKeys([]);
35
+ }
36
+ const pool = this.userPoolRegistry.find(groups["poolId"] ?? "");
37
+ if (pool === undefined) {
38
+ return new SimJwtKeys([]);
39
+ }
40
+ return new SimJwtKeys(pool.jwks().keys);
41
+ }
42
+ }
43
+ //# sourceMappingURL=sim-cognito-http-api-jwt-issuer-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-cognito-http-api-jwt-issuer-keys.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIlE;;;;;;GAMG;AACH,MAAM,gBAAgB,GACpB,uHAAuH,CAAC;AAM1H;;;;;;;;GAQG;AACH,MAAM,OAAO,8BAA8B;IACxB,gBAAgB,CAA6B;IAE9D,YAAY,UAAoD;QAC9D,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,gBAAgB,CAAC;IACtD,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CAAC,SAAiB;QAC3B,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAExD,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;YAC1E,OAAO,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QAEhE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QAC5B,CAAC;QAED,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF"}
@@ -0,0 +1,66 @@
1
+ import type { SimPayload2JwtAuthorizer } from "../../../../serve/payload-2/sim-payload-2-event.type.js";
2
+ import type { SimAwsRequestCaller } from "../../../iam/request/sim-aws-request-caller.js";
3
+ /**
4
+ * Why an endpoint refused a request, which decides the response it gets.
5
+ *
6
+ * `unauthorized` covers everything up to and including claim validation: real
7
+ * API Gateway answers all of it with one 401 and one body, so a client learns
8
+ * that its token was not accepted and nothing about which check it failed.
9
+ * `forbidden` is only ever an unmet route scope, which is a token that was
10
+ * accepted and does not allow this route.
11
+ */
12
+ export type SimHttpApiRefusalKind = "unauthorized" | "forbidden";
13
+ interface SimHttpApiAdmittedProperties {
14
+ /** The token a `JWT` route's authorizer accepted. */
15
+ readonly jwt?: SimPayload2JwtAuthorizer | undefined;
16
+ /** The principal an `AWS_IAM` route allowed the request. */
17
+ readonly caller?: SimAwsRequestCaller | undefined;
18
+ }
19
+ /**
20
+ * A request the endpoint admitted, and what its authorizer knows about the
21
+ * caller.
22
+ *
23
+ * Both members are absent on a route that authorizes nobody, since there is no
24
+ * caller to describe, which is what leaves `requestContext.authorizer` out of
25
+ * the event entirely. Which one is present says which kind of authorization
26
+ * admitted the request.
27
+ */
28
+ export declare class SimHttpApiAdmitted {
29
+ readonly admitted: true;
30
+ readonly jwt: SimPayload2JwtAuthorizer | undefined;
31
+ readonly caller: SimAwsRequestCaller | undefined;
32
+ constructor(properties?: SimHttpApiAdmittedProperties);
33
+ }
34
+ /**
35
+ * A request the endpoint refused, before any integration was invoked.
36
+ *
37
+ * `errorDescription` is the one AWS publishes for a token whose audience does
38
+ * not match, and is absent everywhere else rather than filled in with text
39
+ * AWS was not seen to send.
40
+ *
41
+ * An `AWS_IAM` route refuses with `forbidden`, whoever the caller turned out
42
+ * to be: nothing about an unsigned request makes it a 401 here, because the
43
+ * boundary already resolved it to an anonymous caller and IAM then allows that
44
+ * caller nothing.
45
+ */
46
+ export declare class SimHttpApiRefused {
47
+ readonly admitted: false;
48
+ readonly kind: SimHttpApiRefusalKind;
49
+ readonly errorDescription: string | undefined;
50
+ private constructor();
51
+ /**
52
+ * The token was missing, unreadable, or did not verify.
53
+ */
54
+ static unauthorized(errorDescription?: string): SimHttpApiRefused;
55
+ /**
56
+ * The token verified and none of its scopes is one the route asks for, or
57
+ * IAM did not allow the caller `execute-api:Invoke` on the route.
58
+ */
59
+ static forbidden(): SimHttpApiRefused;
60
+ }
61
+ /**
62
+ * What an endpoint decided about one request.
63
+ */
64
+ export type SimHttpApiAuthorization = SimHttpApiAdmitted | SimHttpApiRefused;
65
+ export {};
66
+ //# sourceMappingURL=sim-http-api-authorization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-http-api-authorization.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/api/authorizer/sim-http-api-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yDAAyD,CAAC;AACxG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAE1F;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG,WAAW,CAAC;AAEjE,UAAU,4BAA4B;IACpC,qDAAqD;IACrD,QAAQ,CAAC,GAAG,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACpD,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CACnD;AAED;;;;;;;;GAQG;AACH,qBAAa,kBAAkB;IAC7B,SAAgB,QAAQ,OAAiB;IACzC,SAAgB,GAAG,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC1D,SAAgB,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAExD,YAAY,UAAU,GAAE,4BAAiC,EAGxD;CACF;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,iBAAiB;IAC5B,SAAgB,QAAQ,QAAkB;IAC1C,SAAgB,IAAI,EAAE,qBAAqB,CAAC;IAC5C,SAAgB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IAErD,OAAO,eAGN;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAEhE;IAED;;;OAGG;IACH,MAAM,CAAC,SAAS,IAAI,iBAAiB,CAEpC;CACF;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,iBAAiB,CAAC"}