@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
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-controller.d.ts","sourceRoot":"","sources":["../../../../src/service/lambda/serve/sim-lambda-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAI9C,OAAO,EAEL,kBAAkB,EACnB,MAAM,4BAA4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AAyC,EAQhE;IAED;;OAEG;IACG,aAAa,CAAC,cAAc,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAc3E;IAED;;;;;;;OAOG;YACW,mBAAmB;YAkBnB,MAAM;CAqBrB"}
@@ -1,7 +1,8 @@
1
+ import { SimPayload2EventBuilder } from "../../../serve/payload-2/sim-payload-2-event-builder.js";
2
+ import { SimPayload2ResponseBuilder } from "../../../serve/payload-2/sim-payload-2-response-builder.js";
1
3
  import { SimAws } from "../../aws/sim-aws.js";
2
- import { SimLambdaUrlEventBuilder } from "./event/sim-lambda-url-event-builder.js";
4
+ import { simLambdaUrlEndpoint } from "./event/sim-lambda-url-endpoint.js";
3
5
  import { SimLambdaUrlErrorResponse } from "./response/sim-lambda-url-error-response.js";
4
- import { SimLambdaUrlResponseBuilder } from "./response/sim-lambda-url-response-builder.js";
5
6
  import { SimLambdaUrlRouter, } from "./sim-lambda-url-router.js";
6
7
  import { SimLambdaUrlAuthorizer } from "./auth/sim-lambda-url-authorizer.js";
7
8
  /**
@@ -19,14 +20,14 @@ import { SimLambdaUrlAuthorizer } from "./auth/sim-lambda-url-authorizer.js";
19
20
  export class SimLambdaServiceController {
20
21
  router;
21
22
  eventBuilder;
22
- responseBuilder = new SimLambdaUrlResponseBuilder();
23
+ responseBuilder = new SimPayload2ResponseBuilder();
23
24
  errorResponse = new SimLambdaUrlErrorResponse();
24
25
  constructor(properties = {}) {
25
26
  const { simAws = new SimAws() } = properties;
26
27
  this.router = properties.router ?? new SimLambdaUrlRouter({ simAws });
27
28
  // Taken from the router rather than from properties, so a supplied router
28
29
  // and the event timestamps always belong to the same simulation.
29
- this.eventBuilder = new SimLambdaUrlEventBuilder({
30
+ this.eventBuilder = new SimPayload2EventBuilder({
30
31
  clock: this.router.simAws,
31
32
  });
32
33
  }
@@ -67,7 +68,7 @@ export class SimLambdaServiceController {
67
68
  }
68
69
  async invoke(route, request, authenticatedCaller) {
69
70
  try {
70
- const event = await this.eventBuilder.build(request, route.functionUrl, authenticatedCaller);
71
+ const event = await this.eventBuilder.build(request, simLambdaUrlEndpoint(route.functionUrl), { caller: authenticatedCaller });
71
72
  return this.responseBuilder.build(await route.simFunction.invoke(event));
72
73
  }
73
74
  catch {
@@ -1 +1 @@
1
- {"version":3,"file":"sim-lambda-controller.js","sourceRoot":"","sources":["../../../../src/service/lambda/serve/sim-lambda-controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAEL,kBAAkB,GACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAQ7E;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,MAAM,CAAqB;IAC3B,YAAY,CAA2B;IACvC,eAAe,GAAG,IAAI,2BAA2B,EAAE,CAAC;IACpD,aAAa,GAAG,IAAI,yBAAyB,EAAE,CAAC;IAEjE,YAAY,UAAU,GAAyC,EAAE;QAC/D,MAAM,EAAE,MAAM,GAAG,IAAI,MAAM,EAAE,EAAE,GAAG,UAAU,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,IAAI,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACtE,0EAA0E;QAC1E,iEAAiE;QACjE,IAAI,CAAC,YAAY,GAAG,IAAI,wBAAwB,CAAC;YAC/C,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;SAC1B,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,cAAoC;QACtD,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,C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AAI,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3E,CAAC;QAAC,MAAM,CAAC;YACP,iEAAiE;YACjE,sEAAsE;YACtE,wEAAwE;YACxE,sBAAsB;YACtB,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,CAAC;QAClD,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"sim-lambda-controller.js","sourceRoot":"","sources":["../../../../src/service/lambda/serve/sim-lambda-controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAEL,kBAAkB,GACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAQ7E;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,0BAA0B;IACpB,MAAM,CAAqB;IAC3B,YAAY,CAA0B;IACtC,eAAe,GAAG,IAAI,0BAA0B,EAAE,CAAC;IACnD,aAAa,GAAG,IAAI,yBAAyB,EAAE,CAAC;IAEjE,YAAY,UAAU,GAAyC,EAAE;QAC/D,MAAM,EAAE,MAAM,GAAG,IAAI,MAAM,EAAE,EAAE,GAAG,UAAU,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,IAAI,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACtE,0EAA0E;QAC1E,iEAAiE;QACjE,IAAI,CAAC,YAAY,GAAG,IAAI,uBAAuB,CAAC;YAC9C,KAAK,EAAE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ChB,mBAAyC;QAEzC,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CACzC,OAAO,EACP,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,EACvC,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAChC,CAAC;YAEF,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3E,CAAC;QAAC,MAAM,CAAC;YACP,iEAAiE;YACjE,sEAAsE;YACtE,wEAAwE;YACxE,sBAAsB;YACtB,OAAO,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,CAAC;QAClD,CAAC;IACH,CAAC;CACF"}
@@ -53,6 +53,18 @@ export declare class SimRoute53ServiceTargetResolver {
53
53
  * one DNS label, so the label count here is exact.
54
54
  */
55
55
  private lambdaFunctionUrlServiceTarget;
56
+ /**
57
+ * Resolve API Gateway HTTP API endpoint hostnames.
58
+ *
59
+ * Simulated HTTP API hostnames use:
60
+ *
61
+ * <api-id>.execute-api.<region>
62
+ *
63
+ * The real AWS endpoint ends `.amazonaws.com`, which the local URL rewriting
64
+ * drops in the same way it drops it from S3 endpoints. The API id is one DNS
65
+ * label, so the label count here is exact.
66
+ */
67
+ private httpApiServiceTarget;
56
68
  /**
57
69
  * Resolve Cognito user pool endpoint hostnames.
58
70
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-r53-service-target-resolver.d.ts","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAU/F;;;;;;;;;;;;GAYG;AACH,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAE9D;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAczD;IAED;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAa/B;;;;;;;;;OASG;IACH,OAAO,CAAC,uBAAuB;IA0B/B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,8BAA8B;IA2BtC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,uBAAuB;CA0BhC"}
1
+ {"version":3,"file":"sim-r53-service-target-resolver.d.ts","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAW/F;;;;;;;;;;;;GAYG;AACH,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAE9D;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAezD;IAED;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAa/B;;;;;;;;;OASG;IACH,OAAO,CAAC,uBAAuB;IA0B/B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,8BAA8B;IA2BtC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,oBAAoB;IA2B5B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,uBAAuB;CA0BhC"}
@@ -1,3 +1,4 @@
1
+ import { executeApiHostLabel } from "../../apigatewayv2/api/sim-http-api-host.js";
1
2
  import { lambdaFunctionUrlHostLabel } from "../../lambda/function/url/sim-lambda-function-url-host.js";
2
3
  import { simRoute53LogicalName } from "../local-name/sim-route53-local-name.js";
3
4
  import { simRoute53DnsHostName } from "../serve/sim-route53-dns-host.js";
@@ -36,6 +37,7 @@ export class SimRoute53ServiceTargetResolver {
36
37
  this.s3Targets.resolve(logicalName) ??
37
38
  this.cloudFrontServiceTarget(logicalName) ??
38
39
  this.lambdaFunctionUrlServiceTarget(logicalName) ??
40
+ this.httpApiServiceTarget(logicalName) ??
39
41
  this.cognitoIdpServiceTarget(logicalName));
40
42
  }
41
43
  /**
@@ -112,6 +114,36 @@ export class SimRoute53ServiceTargetResolver {
112
114
  regionName: regionName,
113
115
  };
114
116
  }
117
+ /**
118
+ * Resolve API Gateway HTTP API endpoint hostnames.
119
+ *
120
+ * Simulated HTTP API hostnames use:
121
+ *
122
+ * <api-id>.execute-api.<region>
123
+ *
124
+ * The real AWS endpoint ends `.amazonaws.com`, which the local URL rewriting
125
+ * drops in the same way it drops it from S3 endpoints. The API id is one DNS
126
+ * label, so the label count here is exact.
127
+ */
128
+ httpApiServiceTarget(logicalName) {
129
+ const labels = logicalName.split(".");
130
+ if (labels.length !== 3) {
131
+ return undefined;
132
+ }
133
+ const [apiId, service, regionName] = labels;
134
+ if (service !== executeApiHostLabel || regionName === undefined) {
135
+ return undefined;
136
+ }
137
+ /* v8 ignore if -- defensive check */
138
+ if (apiId === undefined || apiId.length === 0) {
139
+ return undefined;
140
+ }
141
+ return {
142
+ service: "apiGatewayV2",
143
+ resourceName: apiId,
144
+ regionName: regionName,
145
+ };
146
+ }
115
147
  /**
116
148
  * Resolve Cognito user pool endpoint hostnames.
117
149
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sim-r53-service-target-resolver.js","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAC5C,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,+BAA+B;IACzB,SAAS,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAE9D;;;;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AC;CACF"}
1
+ {"version":3,"file":"sim-r53-service-target-resolver.js","sourceRoot":"","sources":["../../../../src/service/route53/resolve/sim-r53-service-target-resolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAC5C,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,+BAA+B;IACzB,SAAS,GAAG,IAAI,0BAA0B,EAAE,CAAC;IAE9D;;;;;;OAMG;IACH,OAAO,CAAC,QAAgB;QACtB,MAAM,WAAW,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;QACpD,qCAAqC;QACrC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,CACL,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC;YACzC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC;YACnC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC;YACzC,IAAI,CAAC,8BAA8B,CAAC,WAAW,CAAC;YAChD,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC;YACtC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAC1C,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACK,uBAAuB,CAC7B,WAAmB;QAEnB,IAAI,WAAW,KAAK,qBAAqB,EAAE,CAAC;YAC1C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,YAA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C;CACF"}
@@ -48,8 +48,8 @@ export class S3BucketWebsiteRedirects {
48
48
  condition.HttpErrorCodeReturnedEquals !== String(response.status)) {
49
49
  return false;
50
50
  }
51
- return !(condition.KeyPrefixEquals !== undefined &&
52
- !this.requestKey(request).startsWith(condition.KeyPrefixEquals));
51
+ return (condition.KeyPrefixEquals === undefined ||
52
+ this.requestKey(request).startsWith(condition.KeyPrefixEquals));
53
53
  }
54
54
  redirectResponse(request, redirect) {
55
55
  const url = new URL(request.url);
@@ -1 +1 @@
1
- {"version":3,"file":"s3-bucket-website-redirects.js","sourceRoot":"","sources":["../../../../../../src/service/s3/bucket/website/redirect/s3-bucket-website-redirects.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAEhB,oBAAoB;IADvC,YACmB,oBAAoB,GAA8B,EAAE;oCAApD,oBAAoB;IACpC,CAAC;IAEJ;;OAEG;IACH,oBAAoB;QAClB,OAAO,CACL,IAAI,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,KAAK,SAAS,CACxE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,OAAO,CACZ,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,CAC1C,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,CACtC,CACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,0BAA0B,CACxB,OAAgB,EAChB,QAAkB,EAClB,cAAuB;QAEvB,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,MAAM,qBAAqB,GACzB,IAAI,CAAC,oBAAoB,CAAC,qBAAqB,CAAC;QAElD,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE;gBACpC,QAAQ,EAAE,qBAAqB,CAAC,QAAQ;gBACxC,QAAQ,EAAE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E,CAAC,CAAC,EAAE,SAAS,EAAE,eAAe,IAAI,EAAE,CACrC,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"s3-bucket-website-redirects.js","sourceRoot":"","sources":["../../../../../../src/service/s3/bucket/website/redirect/s3-bucket-website-redirects.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAEhB,oBAAoB;IADvC,YACmB,oBAAoB,GAA8B,EAAE;oCAApD,oBAAoB;IACpC,CAAC;IAEJ;;OAEG;IACH,oBAAoB;QAClB,OAAO,CACL,IAAI,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,KAAK,SAAS,CACxE,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,OAAO,CACZ,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,CAC1C,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,CACtC,CACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,0BAA0B,CACxB,OAAgB,EAChB,QAAkB,EAClB,cAAuB;QAEvB,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,MAAM,qBAAqB,GACzB,IAAI,CAAC,oBAAoB,CAAC,qBAAqB,CAAC;QAElD,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE;gBACpC,QAAQ,EAAE,qBAAqB,CAAC,QAAQ;gBACxC,QAAQ,EAAE,qBAAqB,CAAC,QAAQ;aACzC,CAAC,CAAC;QACL,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACxE,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CACjD,CAAC;QAEF,IA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aAAM,IAAI,QAAQ,CAAC,oBAAoB,KAAK,SAAS,EAAE,CAAC;YACvD,GAAG,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CACjD,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;YAC/B,gEAAgE;YAChE,QAAQ,CAAC,oBAAoB,CAC9B,EAAE,CAAC;QACN,CAAC;QAED,OAAO,IAAI,QAAQ,CAAC,SAAS,EAAE;YAC7B,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,IAAI,KAAK,CAAC;YAClD,OAAO,EAAE;gBACP,QAAQ,EAAE,GAAG,CAAC,IAAI;aACnB;SACF,CAAC,CAAC;IACL,CAAC;IAEO,UAAU,CAAC,OAAgB;QACjC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACjC,OAAO,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC1C,CAAC;IAEO,iBAAiB,CAAC,OAAgB;QACxC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAE5C,OAAO,CACL,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACpD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC;YAClD,OAAO,SAAS,KAAK,SAAS,IAAI,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QACrE,CAAC,CAAC,EAAE,SAAS,EAAE,eAAe,IAAI,EAAE,CACrC,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * One value a JWT claim can hold, which is whatever JSON can hold.
3
+ */
4
+ export type SimJwtClaimValue = string | number | boolean | null | readonly SimJwtClaimValue[] | {
5
+ readonly [name: string]: SimJwtClaimValue;
6
+ };
7
+ /**
8
+ * The claim set of one JWT, as it was signed.
9
+ */
10
+ export type SimJwtClaimRecord = Readonly<Record<string, SimJwtClaimValue>>;
11
+ /**
12
+ * Whether a claim holds a list, narrowed to the element type rather than to
13
+ * the `any[]` Array.isArray gives on its own.
14
+ */
15
+ export declare function isSimJwtClaimList(value: SimJwtClaimValue | undefined): value is readonly SimJwtClaimValue[];
16
+ /**
17
+ * The payload of a JWT, read by claim name.
18
+ *
19
+ * A claim is whatever the issuer put there, so every accessor here answers
20
+ * undefined for a claim that is absent and for one holding something other
21
+ * than the type asked for. That keeps the checks a verifier makes uniform: a
22
+ * missing `exp` and an `exp` holding a string both fail the same way, rather
23
+ * than one failing and the other throwing.
24
+ */
25
+ export declare class SimJwtClaims {
26
+ private readonly values;
27
+ constructor(values: SimJwtClaimRecord);
28
+ /**
29
+ * Whether the token carries this claim at all, whatever it holds.
30
+ */
31
+ has(name: string): boolean;
32
+ /**
33
+ * A claim holding a string.
34
+ */
35
+ text(name: string): string | undefined;
36
+ /**
37
+ * A claim holding a number, which is how the time claims are carried.
38
+ */
39
+ number(name: string): number | undefined;
40
+ /**
41
+ * A claim holding either one string or a list of them, as `aud` does.
42
+ *
43
+ * A list with anything but strings in it answers undefined rather than the
44
+ * strings it happens to hold, since a claim that shape was not written by an
45
+ * issuer this understands.
46
+ */
47
+ textList(name: string): readonly string[] | undefined;
48
+ /**
49
+ * Every claim, for a consumer that passes the whole set on rather than
50
+ * asking for one.
51
+ */
52
+ toRecord(): SimJwtClaimRecord;
53
+ }
54
+ //# sourceMappingURL=sim-jwt-claims.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt-claims.d.ts","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt-claims.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,gBAAgB,EAAE,GAC3B;IAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAAE,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAE3E;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,gBAAgB,GAAG,SAAS,GAClC,KAAK,IAAI,SAAS,gBAAgB,EAAE,CAEtC;AAED;;;;;;;;GAQG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoB;IAE3C,YAAY,MAAM,EAAE,iBAAiB,EAEpC;IAED;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzB;IAED;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIrC;IAED;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIvC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAsBpD;IAED;;;OAGG;IACH,QAAQ,IAAI,iBAAiB,CAE5B;CACF"}
@@ -0,0 +1,77 @@
1
+ /* eslint-disable security/detect-object-injection -- every lookup here is a
2
+ claim name this simulation asks for, such as `iss` or `exp`, read out of a
3
+ plain object that JSON.parse produced. */
4
+ /**
5
+ * Whether a claim holds a list, narrowed to the element type rather than to
6
+ * the `any[]` Array.isArray gives on its own.
7
+ */
8
+ export function isSimJwtClaimList(value) {
9
+ return Array.isArray(value);
10
+ }
11
+ /**
12
+ * The payload of a JWT, read by claim name.
13
+ *
14
+ * A claim is whatever the issuer put there, so every accessor here answers
15
+ * undefined for a claim that is absent and for one holding something other
16
+ * than the type asked for. That keeps the checks a verifier makes uniform: a
17
+ * missing `exp` and an `exp` holding a string both fail the same way, rather
18
+ * than one failing and the other throwing.
19
+ */
20
+ export class SimJwtClaims {
21
+ values;
22
+ constructor(values) {
23
+ this.values = values;
24
+ }
25
+ /**
26
+ * Whether the token carries this claim at all, whatever it holds.
27
+ */
28
+ has(name) {
29
+ return this.values[name] !== undefined;
30
+ }
31
+ /**
32
+ * A claim holding a string.
33
+ */
34
+ text(name) {
35
+ const value = this.values[name];
36
+ return typeof value === "string" ? value : undefined;
37
+ }
38
+ /**
39
+ * A claim holding a number, which is how the time claims are carried.
40
+ */
41
+ number(name) {
42
+ const value = this.values[name];
43
+ return typeof value === "number" ? value : undefined;
44
+ }
45
+ /**
46
+ * A claim holding either one string or a list of them, as `aud` does.
47
+ *
48
+ * A list with anything but strings in it answers undefined rather than the
49
+ * strings it happens to hold, since a claim that shape was not written by an
50
+ * issuer this understands.
51
+ */
52
+ textList(name) {
53
+ const value = this.values[name];
54
+ if (typeof value === "string") {
55
+ return [value];
56
+ }
57
+ if (!isSimJwtClaimList(value)) {
58
+ return undefined;
59
+ }
60
+ const strings = [];
61
+ for (const entry of value) {
62
+ if (typeof entry !== "string") {
63
+ return undefined;
64
+ }
65
+ strings.push(entry);
66
+ }
67
+ return strings;
68
+ }
69
+ /**
70
+ * Every claim, for a consumer that passes the whole set on rather than
71
+ * asking for one.
72
+ */
73
+ toRecord() {
74
+ return this.values;
75
+ }
76
+ }
77
+ //# sourceMappingURL=sim-jwt-claims.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt-claims.js","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt-claims.ts"],"names":[],"mappings":"AAAA;;4CAE4C;AAkB5C;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,KAAmC;IAEnC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,OAAO,YAAY;IACN,MAAM,CAAoB;IAE3C,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;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* The fields are the ones an RSA signing key carries. They are typed as plain
5
+ * strings rather than as literals so that a JWKS from any simulated issuer is
6
+ * assignable here without being converted first.
7
+ */
8
+ export interface SimJwk {
9
+ readonly kty: string;
10
+ readonly kid: string;
11
+ readonly n: string;
12
+ readonly e: string;
13
+ readonly alg?: string | undefined;
14
+ readonly use?: string | undefined;
15
+ }
16
+ /**
17
+ * The keys one issuer publishes, selected by the `kid` a token names.
18
+ *
19
+ * A verifier picks the key by id rather than trying each one, which is what
20
+ * makes an unknown `kid` a refusal rather than a slow failure. An issuer that
21
+ * publishes no keys at all therefore matches nothing, which is the answer for
22
+ * an issuer this simulation knows nothing about.
23
+ */
24
+ export declare class SimJwtKeys {
25
+ private readonly keys;
26
+ constructor(keys: readonly SimJwk[]);
27
+ /**
28
+ * The key with this id, if the issuer published one.
29
+ */
30
+ find(kid: string | undefined): SimJwk | undefined;
31
+ }
32
+ //# sourceMappingURL=sim-jwt-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt-keys.d.ts","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt-keys.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoB;IAEzC,YAAY,IAAI,EAAE,SAAS,MAAM,EAAE,EAElC;IAED;;OAEG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAMhD;CACF"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The keys one issuer publishes, selected by the `kid` a token names.
3
+ *
4
+ * A verifier picks the key by id rather than trying each one, which is what
5
+ * makes an unknown `kid` a refusal rather than a slow failure. An issuer that
6
+ * publishes no keys at all therefore matches nothing, which is the answer for
7
+ * an issuer this simulation knows nothing about.
8
+ */
9
+ export class SimJwtKeys {
10
+ keys;
11
+ constructor(keys) {
12
+ this.keys = keys;
13
+ }
14
+ /**
15
+ * The key with this id, if the issuer published one.
16
+ */
17
+ find(kid) {
18
+ if (kid === undefined) {
19
+ return undefined;
20
+ }
21
+ return this.keys.find((key) => key.kid === kid);
22
+ }
23
+ }
24
+ //# sourceMappingURL=sim-jwt-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt-keys.js","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt-keys.ts"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AACH,MAAM,OAAO,UAAU;IACJ,IAAI,CAAoB;IAEzC,YAAY,IAAuB;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,GAAuB;QAC1B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;IAClD,CAAC;CACF"}
@@ -0,0 +1,38 @@
1
+ import type { SimJwk } from "./sim-jwt-keys.js";
2
+ import type { SimJwt } from "./sim-jwt.js";
3
+ /**
4
+ * The one signature algorithm simulated, which is the one Cognito signs with.
5
+ *
6
+ * The allow-list is a single value on purpose. `none` and the `HS*` family are
7
+ * the two ways a verifier that trusts the header is talked out of checking
8
+ * anything, and neither is a value any issuer here uses.
9
+ */
10
+ export declare const simJwtRs256Algorithm = "RS256";
11
+ /**
12
+ * Verifies the RS256 signature of a JWT against a published JWK.
13
+ *
14
+ * The signature check is real: the public key is reconstructed from the JWK's
15
+ * modulus and exponent, and `node:crypto` verifies the real signature over the
16
+ * real signing input. Nothing here trusts the token's own header beyond
17
+ * reading which key it names.
18
+ */
19
+ export declare class SimJwtRs256 {
20
+ /**
21
+ * Whether this token's header names the one algorithm that is verified.
22
+ */
23
+ isSupportedAlgorithm(jwt: SimJwt): boolean;
24
+ /**
25
+ * Whether this token carries a genuine RS256 signature by this key.
26
+ */
27
+ verify(jwt: SimJwt, jwk: SimJwk): boolean;
28
+ /**
29
+ * Reconstruct the public key from the published JWK.
30
+ *
31
+ * A JWK that cannot be read is treated as a key that verifies nothing,
32
+ * rather than as an error: it comes from an issuer document, so refusing the
33
+ * token is the right answer and there is nothing for a caller to do about
34
+ * the key itself.
35
+ */
36
+ private publicKey;
37
+ }
38
+ //# sourceMappingURL=sim-jwt-rs256.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt-rs256.d.ts","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt-rs256.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C;;;;;;;GAOG;AACH,qBAAa,WAAW;IACtB;;OAEG;IACH,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEzC;IAED;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAUxC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAalB"}
@@ -0,0 +1,60 @@
1
+ import { createPublicKey, createVerify } from "node:crypto";
2
+ /**
3
+ * The one signature algorithm simulated, which is the one Cognito signs with.
4
+ *
5
+ * The allow-list is a single value on purpose. `none` and the `HS*` family are
6
+ * the two ways a verifier that trusts the header is talked out of checking
7
+ * anything, and neither is a value any issuer here uses.
8
+ */
9
+ export const simJwtRs256Algorithm = "RS256";
10
+ /**
11
+ * Verifies the RS256 signature of a JWT against a published JWK.
12
+ *
13
+ * The signature check is real: the public key is reconstructed from the JWK's
14
+ * modulus and exponent, and `node:crypto` verifies the real signature over the
15
+ * real signing input. Nothing here trusts the token's own header beyond
16
+ * reading which key it names.
17
+ */
18
+ export class SimJwtRs256 {
19
+ /**
20
+ * Whether this token's header names the one algorithm that is verified.
21
+ */
22
+ isSupportedAlgorithm(jwt) {
23
+ return jwt.header.alg === simJwtRs256Algorithm;
24
+ }
25
+ /**
26
+ * Whether this token carries a genuine RS256 signature by this key.
27
+ */
28
+ verify(jwt, jwk) {
29
+ const publicKey = this.publicKey(jwk);
30
+ if (publicKey === undefined) {
31
+ return false;
32
+ }
33
+ return createVerify("RSA-SHA256")
34
+ .update(jwt.signingInput)
35
+ .verify(publicKey, jwt.signature);
36
+ }
37
+ /**
38
+ * Reconstruct the public key from the published JWK.
39
+ *
40
+ * A JWK that cannot be read is treated as a key that verifies nothing,
41
+ * rather than as an error: it comes from an issuer document, so refusing the
42
+ * token is the right answer and there is nothing for a caller to do about
43
+ * the key itself.
44
+ */
45
+ publicKey(jwk) {
46
+ try {
47
+ // Only the key type and the RSA parameters take part in the
48
+ // reconstruction. `kid`, `alg` and `use` describe how the key is meant
49
+ // to be chosen and used, not what it is.
50
+ return createPublicKey({
51
+ key: { kty: jwk.kty, n: jwk.n, e: jwk.e },
52
+ format: "jwk",
53
+ });
54
+ }
55
+ catch {
56
+ return undefined;
57
+ }
58
+ }
59
+ }
60
+ //# sourceMappingURL=sim-jwt-rs256.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt-rs256.js","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt-rs256.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAK5E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,OAAO,WAAW;IACtB;;OAEG;IACH,oBAAoB,CAAC,GAAW;QAC9B,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,KAAK,oBAAoB,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,GAAW,EAAE,GAAW;QAC7B,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QAEtC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,YAAY,CAAC,YAAY,CAAC;aAC9B,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;aACxB,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;OAOG;IACK,SAAS,CAAC,GAAW;QAC3B,IAAI,CAAC;YACH,4DAA4D;YAC5D,uEAAuE;YACvE,yCAAyC;YACzC,OAAO,eAAe,CAAC;gBACrB,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE;gBACzC,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,43 @@
1
+ import { SimJwtClaims } from "./sim-jwt-claims.js";
2
+ /**
3
+ * The header of a JWT: which algorithm signed it, and with which key.
4
+ *
5
+ * `kid` is optional in the JWT specification and present on every token from
6
+ * an issuer publishing more than one key, so it is read when it is there and
7
+ * left undefined when it is not.
8
+ */
9
+ export interface SimJwtHeader {
10
+ readonly alg: string;
11
+ readonly kid?: string | undefined;
12
+ }
13
+ /**
14
+ * One parsed JWT: its header, its claims, and the bytes a verifier needs.
15
+ *
16
+ * Parsing says nothing about whether the token is genuine. It says only that
17
+ * the string is shaped like a JWT and that its header and payload are JSON
18
+ * objects, which is what has to be true before a signature can be checked at
19
+ * all.
20
+ */
21
+ export declare class SimJwt {
22
+ readonly header: SimJwtHeader;
23
+ readonly claims: SimJwtClaims;
24
+ /**
25
+ * The signed bytes: the encoded header and payload joined by a dot, exactly
26
+ * as they arrived. Re-encoding them would change the signing input, since
27
+ * two encodings of the same JSON are different strings.
28
+ */
29
+ readonly signingInput: string;
30
+ readonly signature: Buffer;
31
+ private constructor();
32
+ /**
33
+ * Read a token string as a JWT, or refuse it.
34
+ */
35
+ static parse(token: string): SimJwt;
36
+ private static readHeader;
37
+ /**
38
+ * Decode one base64url part into the JSON object it has to hold.
39
+ */
40
+ private static readObject;
41
+ private static readJson;
42
+ }
43
+ //# sourceMappingURL=sim-jwt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt.d.ts","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEb,MAAM,qBAAqB,CAAC;AAmB7B;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,qBAAa,MAAM;IACjB,SAAgB,MAAM,EAAE,YAAY,CAAC;IACrC,SAAgB,MAAM,EAAE,YAAY,CAAC;IAErC;;;;OAIG;IACH,SAAgB,YAAY,EAAE,MAAM,CAAC;IAErC,SAAgB,SAAS,EAAE,MAAM,CAAC;IAElC,OAAO,eAKN;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA2BlC;IAED,OAAO,CAAC,MAAM,CAAC,UAAU;IAiBzB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;IAczB,OAAO,CAAC,MAAM,CAAC,QAAQ;CAYxB"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * A token that cannot be read as a JWT.
3
+ *
4
+ * Everything that goes wrong before a signature can be checked is one of
5
+ * these: the wrong number of parts, a segment that is not base64url JSON, or a
6
+ * header missing the fields a JWT header has. Whether that refusal is worth a
7
+ * 401 or something else is the caller's decision, so nothing here carries a
8
+ * status code.
9
+ */
10
+ export declare class SimJwtError extends Error {
11
+ readonly name = "SimJwtError";
12
+ }
13
+ //# sourceMappingURL=sim-jwt.error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt.error.d.ts","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt.error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC,SAAyB,IAAI,iBAAiB;CAC/C"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * A token that cannot be read as a JWT.
3
+ *
4
+ * Everything that goes wrong before a signature can be checked is one of
5
+ * these: the wrong number of parts, a segment that is not base64url JSON, or a
6
+ * header missing the fields a JWT header has. Whether that refusal is worth a
7
+ * 401 or something else is the caller's decision, so nothing here carries a
8
+ * status code.
9
+ */
10
+ export class SimJwtError extends Error {
11
+ name = "SimJwtError";
12
+ }
13
+ //# sourceMappingURL=sim-jwt.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-jwt.error.js","sourceRoot":"","sources":["../../../src/util/jwt/sim-jwt.error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IACX,IAAI,GAAG,aAAa,CAAC;CAC/C"}