@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.
- package/README.md +1 -0
- package/dist/config/eslint/cffjs2.eslint.config.d.ts +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +3 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/serve/controller/factory/sim-aws-service-controller-factory.d.ts.map +1 -1
- package/dist/serve/controller/factory/sim-aws-service-controller-factory.js +4 -0
- package/dist/serve/controller/factory/sim-aws-service-controller-factory.js.map +1 -1
- package/dist/serve/controller/sim-aws-service-signing-name.d.ts.map +1 -1
- package/dist/serve/controller/sim-aws-service-signing-name.js +5 -0
- package/dist/serve/controller/sim-aws-service-signing-name.js.map +1 -1
- package/dist/serve/controller/sim-service-controller.d.ts +1 -1
- package/dist/serve/controller/sim-service-controller.d.ts.map +1 -1
- package/dist/serve/controller/sim-service-controller.js.map +1 -1
- package/dist/serve/http/url/sim-aws-local-url.d.ts.map +1 -1
- package/dist/serve/http/url/sim-aws-local-url.js +1 -0
- package/dist/serve/http/url/sim-aws-local-url.js.map +1 -1
- 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
- package/dist/serve/payload-2/sim-payload-2-body-encoding.d.ts.map +1 -0
- package/dist/{service/lambda/serve/event/sim-lambda-url-body-encoding.js → serve/payload-2/sim-payload-2-body-encoding.js} +7 -7
- package/dist/serve/payload-2/sim-payload-2-body-encoding.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-connection.d.ts +19 -0
- package/dist/serve/payload-2/sim-payload-2-connection.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-connection.js +25 -0
- package/dist/serve/payload-2/sim-payload-2-connection.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint.d.ts +26 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint.js +2 -0
- package/dist/serve/payload-2/sim-payload-2-endpoint.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts +51 -0
- package/dist/serve/payload-2/sim-payload-2-event-builder.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event-builder.js +98 -0
- package/dist/serve/payload-2/sim-payload-2-event-builder.js.map +1 -0
- 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
- package/dist/serve/payload-2/sim-payload-2-event-time.d.ts.map +1 -0
- package/dist/{service/lambda/serve/event/sim-lambda-url-event-time.js → serve/payload-2/sim-payload-2-event-time.js} +4 -4
- package/dist/serve/payload-2/sim-payload-2-event-time.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.type.d.ts +123 -0
- package/dist/serve/payload-2/sim-payload-2-event.type.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-event.type.js +2 -0
- package/dist/serve/payload-2/sim-payload-2-event.type.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-iam-caller.d.ts +29 -0
- package/dist/serve/payload-2/sim-payload-2-iam-caller.d.ts.map +1 -0
- package/dist/{service/lambda/serve/event/sim-lambda-url-iam-authorizer.js → serve/payload-2/sim-payload-2-iam-caller.js} +8 -9
- package/dist/serve/payload-2/sim-payload-2-iam-caller.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-request-context.d.ts +41 -0
- package/dist/serve/payload-2/sim-payload-2-request-context.d.ts.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-request-context.js +54 -0
- package/dist/serve/payload-2/sim-payload-2-request-context.js.map +1 -0
- 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
- package/dist/serve/payload-2/sim-payload-2-request-parts.d.ts.map +1 -0
- package/dist/{service/lambda/serve/event/sim-lambda-url-request-parts.js → serve/payload-2/sim-payload-2-request-parts.js} +17 -5
- package/dist/serve/payload-2/sim-payload-2-request-parts.js.map +1 -0
- package/dist/serve/payload-2/sim-payload-2-response-builder.d.ts +26 -0
- package/dist/serve/payload-2/sim-payload-2-response-builder.d.ts.map +1 -0
- package/dist/{service/lambda/serve/response/sim-lambda-url-response-builder.js → serve/payload-2/sim-payload-2-response-builder.js} +13 -8
- package/dist/serve/payload-2/sim-payload-2-response-builder.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.d.ts +29 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.js +43 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-cognito-http-api-jwt-issuer-keys.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.d.ts +66 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.js +53 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorization.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.d.ts +31 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.js +46 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer-store.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.d.ts +59 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.js +43 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.d.ts +31 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.js +78 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-identity-source.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.d.ts +60 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.js +84 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claim-checks.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.d.ts +34 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.js +75 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-claims.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.d.ts +38 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.js +34 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-configuration.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.d.ts +37 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.js +18 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-issuer-keys.js.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.d.ts +43 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.js +70 -0
- package/dist/service/apigatewayv2/api/authorizer/sim-http-api-jwt-verification.js.map +1 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.d.ts +27 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.js +40 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration-store.js.map +1 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.d.ts +66 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.js +54 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-integration.js.map +1 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts +31 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js +63 -0
- package/dist/service/apigatewayv2/api/integration/sim-http-api-lambda-uri.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.d.ts +36 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.js +44 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-default-route-key.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.d.ts +48 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.js +62 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-method-route-key.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.d.ts +18 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.js +37 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key-parser.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.d.ts +38 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.js +2 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-key.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.d.ts +32 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.js +65 -0
- package/dist/service/apigatewayv2/api/route/key/sim-http-api-route-method.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.d.ts +27 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.js +35 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-greedy-segment.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.d.ts +23 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.js +32 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-literal-segment.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.d.ts +36 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.js +48 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-parameters.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.d.ts +18 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.js +47 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.d.ts +48 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.js +23 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segment.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.d.ts +10 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.js +19 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-path-segments.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.d.ts +29 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.js +63 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.d.ts +42 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.js +61 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-route-path.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.d.ts +23 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.js +32 -0
- package/dist/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.d.ts +47 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.js +66 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-rank.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.d.ts +18 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.js +16 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-request.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.d.ts +23 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.js +35 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-scopes.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.d.ts +36 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.js +49 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-selector.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.d.ts +42 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.js +60 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-store.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.d.ts +20 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.js +19 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route-view.js.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.d.ts +65 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.js +56 -0
- package/dist/service/apigatewayv2/api/route/sim-http-api-route.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.d.ts +51 -0
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.js +48 -0
- package/dist/service/apigatewayv2/api/sim-http-api-execute-api-arn.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-host.d.ts +32 -0
- package/dist/service/apigatewayv2/api/sim-http-api-host.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-host.js +31 -0
- package/dist/service/apigatewayv2/api/sim-http-api-host.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-id.d.ts +12 -0
- package/dist/service/apigatewayv2/api/sim-http-api-id.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-id.js +9 -0
- package/dist/service/apigatewayv2/api/sim-http-api-id.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts +72 -0
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js +110 -0
- package/dist/service/apigatewayv2/api/sim-http-api-lambda-proxy.factory.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-match.d.ts +56 -0
- package/dist/service/apigatewayv2/api/sim-http-api-match.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-match.js +46 -0
- package/dist/service/apigatewayv2/api/sim-http-api-match.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.d.ts +28 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.js +43 -0
- package/dist/service/apigatewayv2/api/sim-http-api-proxy-authorization.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-request.d.ts +22 -0
- package/dist/service/apigatewayv2/api/sim-http-api-request.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-request.js +23 -0
- package/dist/service/apigatewayv2/api/sim-http-api-request.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-store.d.ts +29 -0
- package/dist/service/apigatewayv2/api/sim-http-api-store.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-store.js +35 -0
- package/dist/service/apigatewayv2/api/sim-http-api-store.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-view.d.ts +40 -0
- package/dist/service/apigatewayv2/api/sim-http-api-view.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api-view.js +23 -0
- package/dist/service/apigatewayv2/api/sim-http-api-view.js.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api.d.ts +73 -0
- package/dist/service/apigatewayv2/api/sim-http-api.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/sim-http-api.js +80 -0
- package/dist/service/apigatewayv2/api/sim-http-api.js.map +1 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.d.ts +34 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.js +53 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-selector.js.map +1 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.d.ts +21 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.js +26 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage-store.js.map +1 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts +46 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.d.ts.map +1 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js +47 -0
- package/dist/service/apigatewayv2/api/stage/sim-http-api-stage.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.d.ts +33 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.js +49 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-creator.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.d.ts +38 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.js +47 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-document.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.d.ts +31 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.js +36 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-import-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.d.ts +39 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js +79 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts +47 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js +83 -0
- package/dist/service/apigatewayv2/cfn/api/sim-cfn-http-api-property-rules.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.d.ts +29 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.js +40 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-creator.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.d.ts +34 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js +67 -0
- package/dist/service/apigatewayv2/cfn/authorizer/sim-cfn-http-api-authorizer-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.d.ts +27 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.js +38 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-creator.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.d.ts +34 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js +59 -0
- package/dist/service/apigatewayv2/cfn/integration/sim-cfn-http-api-integration-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.d.ts +32 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.js +42 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-creator.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.d.ts +35 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js +57 -0
- package/dist/service/apigatewayv2/cfn/route/sim-cfn-http-api-route-properties.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts +40 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js +47 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-parser.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.d.ts +55 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.js +108 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-property-values.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.d.ts +32 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.js +85 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-api-gateway-v2-resource-factory.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.d.ts +28 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.js +39 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-imports.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.d.ts +52 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.js +145 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-http-api-template.factory.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.d.ts +45 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.js +97 -0
- package/dist/service/apigatewayv2/cfn/sim-cfn-imported-http-api-template.factory.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.d.ts +25 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.js +35 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-creator.js.map +1 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts +36 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.d.ts.map +1 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js +63 -0
- package/dist/service/apigatewayv2/cfn/stage/sim-cfn-http-api-stage-properties.js.map +1 -0
- package/dist/service/apigatewayv2/command/api/api.command.d.ts +83 -0
- package/dist/service/apigatewayv2/command/api/api.command.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/api/api.command.js +2 -0
- package/dist/service/apigatewayv2/command/api/api.command.js.map +1 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-commands.d.ts +49 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-commands.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-commands.js +98 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-commands.js.map +1 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.d.ts +52 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.js +63 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-commands.js.map +1 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.d.ts +28 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.js +44 -0
- package/dist/service/apigatewayv2/command/api/sim-http-api-import-input.js.map +1 -0
- package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.d.ts +42 -0
- package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.js +36 -0
- package/dist/service/apigatewayv2/command/authorize/sim-api-gateway-v2-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/authorizer.command.d.ts +63 -0
- package/dist/service/apigatewayv2/command/authorizer/authorizer.command.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/authorizer.command.js +2 -0
- package/dist/service/apigatewayv2/command/authorizer/authorizer.command.js.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.d.ts +37 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.js +104 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-authorizer-commands.js.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.d.ts +34 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.js +68 -0
- package/dist/service/apigatewayv2/command/authorizer/sim-http-api-jwt-authorizer-input.js.map +1 -0
- package/dist/service/apigatewayv2/command/integration/integration.command.d.ts +38 -0
- package/dist/service/apigatewayv2/command/integration/integration.command.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/integration/integration.command.js +2 -0
- package/dist/service/apigatewayv2/command/integration/integration.command.js.map +1 -0
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.d.ts +23 -0
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.js +73 -0
- package/dist/service/apigatewayv2/command/integration/sim-http-api-integration-commands.js.map +1 -0
- package/dist/service/apigatewayv2/command/route/route.command.d.ts +39 -0
- package/dist/service/apigatewayv2/command/route/route.command.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/route/route.command.js +2 -0
- package/dist/service/apigatewayv2/command/route/route.command.js.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.d.ts +53 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.js +96 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-authorization.js.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.d.ts +25 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js +84 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-commands.js.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.d.ts +27 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.js +44 -0
- package/dist/service/apigatewayv2/command/route/sim-http-api-route-target.js.map +1 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.d.ts +9 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.js +2 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-command.types.js.map +1 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.d.ts +8 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.js +2 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-request-options.js.map +1 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts +42 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js +77 -0
- package/dist/service/apigatewayv2/command/sim-api-gateway-v2-unsimulated-input.js.map +1 -0
- package/dist/service/apigatewayv2/command/sim-http-api-access.d.ts +45 -0
- package/dist/service/apigatewayv2/command/sim-http-api-access.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/sim-http-api-access.js +40 -0
- package/dist/service/apigatewayv2/command/sim-http-api-access.js.map +1 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.d.ts +27 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js +70 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-commands.js.map +1 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.d.ts +29 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.js +52 -0
- package/dist/service/apigatewayv2/command/stage/sim-http-api-stage-rules.js.map +1 -0
- package/dist/service/apigatewayv2/command/stage/stage.command.d.ts +38 -0
- package/dist/service/apigatewayv2/command/stage/stage.command.d.ts.map +1 -0
- package/dist/service/apigatewayv2/command/stage/stage.command.js +2 -0
- package/dist/service/apigatewayv2/command/stage/stage.command.js.map +1 -0
- package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.d.ts +42 -0
- package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.d.ts.map +1 -0
- package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.js +45 -0
- package/dist/service/apigatewayv2/error/sim-api-gateway-v2.error.js.map +1 -0
- package/dist/service/apigatewayv2/index.d.ts +29 -0
- package/dist/service/apigatewayv2/index.d.ts.map +1 -0
- package/dist/service/apigatewayv2/index.js +23 -0
- package/dist/service/apigatewayv2/index.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.d.ts +10 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.js +29 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-body.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.d.ts +18 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.js +29 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-command.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.d.ts +47 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.d.ts +30 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.js +26 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.factory.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.js +109 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-document.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.d.ts +33 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.js +59 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-import.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.d.ts +55 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.js +95 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration-references.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.d.ts +37 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.d.ts +19 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.js +20 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.factory.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.js +86 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integration.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.d.ts +29 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.js +37 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-integrations.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.d.ts +47 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.js +63 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-object.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.d.ts +56 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.js +80 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-operation.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.d.ts +24 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.js +70 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-path-item.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.d.ts +18 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.js +24 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-paths.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.d.ts +33 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.js +49 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-pointer.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.d.ts +11 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.js +12 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-refusal.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.d.ts +35 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.js +43 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-route-authorization.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.d.ts +29 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.js +85 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-scheme.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.d.ts +39 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.js +49 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-security-schemes.js.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.d.ts +55 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.d.ts.map +1 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.js +102 -0
- package/dist/service/apigatewayv2/openapi/sim-http-api-openapi-value.js.map +1 -0
- package/dist/service/apigatewayv2/registry/sim-http-api-registry.d.ts +31 -0
- package/dist/service/apigatewayv2/registry/sim-http-api-registry.d.ts.map +1 -0
- package/dist/service/apigatewayv2/registry/sim-http-api-registry.js +42 -0
- package/dist/service/apigatewayv2/registry/sim-http-api-registry.js.map +1 -0
- package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.d.ts +19 -0
- package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.d.ts.map +1 -0
- package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.js +81 -0
- package/dist/service/apigatewayv2/sdk/sim-api-gateway-v2-sdk-command-router.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.d.ts +40 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.js +57 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-iam-route-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.d.ts +42 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.js +49 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-integration-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.d.ts +27 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.js +49 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-jwt-route-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.d.ts +28 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.js +2 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorize-input.js.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.d.ts +32 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.js +42 -0
- package/dist/service/apigatewayv2/serve/auth/sim-http-api-route-authorizer.js.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts +44 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js +131 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-controller.js.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts +52 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.js +72 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-error-response.js.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts +64 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js +67 -0
- package/dist/service/apigatewayv2/serve/sim-api-gateway-v2-router.js.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.d.ts +14 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.d.ts.map +1 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.js +21 -0
- package/dist/service/apigatewayv2/serve/sim-http-api-endpoint.js.map +1 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2.d.ts +125 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2.d.ts.map +1 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2.js +198 -0
- package/dist/service/apigatewayv2/sim-api-gateway-v2.js.map +1 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +11 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +25 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts +13 -0
- package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-service-factory.js +15 -0
- package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.d.ts +5 -0
- package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
- package/dist/service/aws/sim-aws-account-region-scope.js +6 -0
- package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
- package/dist/service/aws/sim-aws.d.ts +3 -0
- package/dist/service/aws/sim-aws.d.ts.map +1 -1
- package/dist/service/aws/sim-aws.js +4 -0
- package/dist/service/aws/sim-aws.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.d.ts +7 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.js +40 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-api-gateway-v2-cfn-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.d.ts +24 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.js +26 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-authorizer-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.d.ts +29 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.js +34 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.d.ts +25 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.js +27 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-integration-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.d.ts +24 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.js +26 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-route-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.d.ts +24 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.js +23 -0
- package/dist/service/cloudformation/resource/cfn/apigatewayv2/sim-http-api-stage-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js +2 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-resource-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts +20 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +74 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js +5 -46
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-resolver.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts +3 -3
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js +30 -23
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-client-properties.js.map +1 -1
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.d.ts +28 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.d.ts.map +1 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js +39 -0
- package/dist/service/cognito/cfn/client/sim-cfn-cognito-token-validity-units.js.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.d.ts +32 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.d.ts.map +1 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.js +41 -0
- package/dist/service/cognito/cfn/sim-cfn-cognito-generated-name.js.map +1 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts +13 -0
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.d.ts.map +1 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js +45 -1
- package/dist/service/cognito/cfn/user-pool/sim-cfn-cognito-user-pool-properties.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js +1 -0
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-commands.js.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts +4 -0
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.d.ts.map +1 -1
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js +5 -0
- package/dist/service/cognito/command/client/sim-cognito-user-pool-client-view.js.map +1 -1
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts +6 -3
- package/dist/service/cognito/command/client/user-pool-client.command.d.ts.map +1 -1
- package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts +28 -0
- package/dist/service/cognito/command/sim-cognito-canonical-value.d.ts.map +1 -0
- package/dist/service/cognito/command/sim-cognito-canonical-value.js +44 -0
- package/dist/service/cognito/command/sim-cognito-canonical-value.js.map +1 -0
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts +23 -0
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.d.ts.map +1 -0
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js +38 -0
- package/dist/service/cognito/command/sim-cognito-unsimulated-structure.js.map +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts +8 -3
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js +39 -5
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-features.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts +13 -2
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js +41 -6
- package/dist/service/cognito/command/user-pool/sim-cognito-unsimulated-pool-messaging.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js +1 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-commands.js.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts +4 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.d.ts.map +1 -1
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js +5 -0
- package/dist/service/cognito/command/user-pool/sim-cognito-user-pool-view.js.map +1 -1
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts +5 -3
- package/dist/service/cognito/command/user-pool/user-pool.command.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.d.ts +44 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.js +88 -0
- package/dist/service/cognito/user-pool/auth/sim-cognito-signed-in.factory.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts +42 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js +44 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-unsimulated-client-settings.js.map +1 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js +2 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts +7 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js +6 -0
- package/dist/service/cognito/user-pool/client/sim-cognito-user-pool-client.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts +50 -0
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.d.ts.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js +61 -0
- package/dist/service/cognito/user-pool/sim-cognito-unsimulated-pool-settings.js.map +1 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts +6 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js +2 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool-factory.js.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts +7 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.d.ts.map +1 -1
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js +6 -0
- package/dist/service/cognito/user-pool/sim-cognito-user-pool.js.map +1 -1
- package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.d.ts +14 -0
- package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.d.ts.map +1 -0
- package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.js +17 -0
- package/dist/service/iam/authorize/match/condition/arn/equals/sim-iam-arn-equals.js.map +1 -0
- package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.d.ts +13 -0
- package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.d.ts.map +1 -0
- package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.js +16 -0
- package/dist/service/iam/authorize/match/condition/arn/like/sim-iam-arn-like.js.map +1 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator-parser.d.ts.map +1 -1
- package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator-parser.js +4 -0
- package/dist/service/iam/authorize/match/condition/sim-iam-condition-operator-parser.js.map +1 -1
- package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.d.ts +4 -0
- package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.d.ts.map +1 -1
- package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.js +4 -3
- package/dist/service/iam/authorize/match/sim-iam-policy-principal-matcher.js.map +1 -1
- package/dist/service/iam/authorize/sim-iam-arn-match.d.ts +12 -0
- package/dist/service/iam/authorize/sim-iam-arn-match.d.ts.map +1 -0
- package/dist/service/iam/authorize/sim-iam-arn-match.js +45 -0
- package/dist/service/iam/authorize/sim-iam-arn-match.js.map +1 -0
- package/dist/service/iam/command/role/list-roles/list-roles.handler.js +2 -2
- package/dist/service/iam/command/role/list-roles/list-roles.handler.js.map +1 -1
- package/dist/service/lambda/function/policy/sim-lambda-permission.d.ts +6 -5
- package/dist/service/lambda/function/policy/sim-lambda-permission.d.ts.map +1 -1
- package/dist/service/lambda/function/policy/sim-lambda-permission.js +6 -5
- package/dist/service/lambda/function/policy/sim-lambda-permission.js.map +1 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.d.ts +13 -0
- package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.d.ts.map +1 -0
- package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.js +19 -0
- package/dist/service/lambda/serve/event/sim-lambda-url-endpoint.js.map +1 -0
- package/dist/service/lambda/serve/event/sim-lambda-url-event.type.d.ts +9 -93
- package/dist/service/lambda/serve/event/sim-lambda-url-event.type.d.ts.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.d.ts.map +1 -1
- package/dist/service/lambda/serve/sim-lambda-controller.js +6 -5
- package/dist/service/lambda/serve/sim-lambda-controller.js.map +1 -1
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts +12 -0
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.d.ts.map +1 -1
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.js +32 -0
- package/dist/service/route53/resolve/sim-r53-service-target-resolver.js.map +1 -1
- package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js +2 -2
- package/dist/service/s3/bucket/website/redirect/s3-bucket-website-redirects.js.map +1 -1
- package/dist/util/jwt/sim-jwt-claims.d.ts +54 -0
- package/dist/util/jwt/sim-jwt-claims.d.ts.map +1 -0
- package/dist/util/jwt/sim-jwt-claims.js +77 -0
- package/dist/util/jwt/sim-jwt-claims.js.map +1 -0
- package/dist/util/jwt/sim-jwt-keys.d.ts +32 -0
- package/dist/util/jwt/sim-jwt-keys.d.ts.map +1 -0
- package/dist/util/jwt/sim-jwt-keys.js +24 -0
- package/dist/util/jwt/sim-jwt-keys.js.map +1 -0
- package/dist/util/jwt/sim-jwt-rs256.d.ts +38 -0
- package/dist/util/jwt/sim-jwt-rs256.d.ts.map +1 -0
- package/dist/util/jwt/sim-jwt-rs256.js +60 -0
- package/dist/util/jwt/sim-jwt-rs256.js.map +1 -0
- package/dist/util/jwt/sim-jwt.d.ts +43 -0
- package/dist/util/jwt/sim-jwt.d.ts.map +1 -0
- package/dist/util/jwt/sim-jwt.error.d.ts +13 -0
- package/dist/util/jwt/sim-jwt.error.d.ts.map +1 -0
- package/dist/util/jwt/sim-jwt.error.js +13 -0
- package/dist/util/jwt/sim-jwt.error.js.map +1 -0
- package/dist/util/jwt/sim-jwt.js +94 -0
- package/dist/util/jwt/sim-jwt.js.map +1 -0
- package/package.json +36 -31
- package/dist/service/lambda/serve/event/sim-lambda-url-body-encoding.d.ts.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-body-encoding.js.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.d.ts +0 -36
- package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.d.ts.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.js +0 -61
- package/dist/service/lambda/serve/event/sim-lambda-url-event-builder.js.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-event-time.d.ts.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-event-time.js.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-iam-authorizer.d.ts +0 -30
- package/dist/service/lambda/serve/event/sim-lambda-url-iam-authorizer.d.ts.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-iam-authorizer.js.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-request-context.d.ts +0 -29
- package/dist/service/lambda/serve/event/sim-lambda-url-request-context.d.ts.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-request-context.js +0 -54
- package/dist/service/lambda/serve/event/sim-lambda-url-request-context.js.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-request-parts.d.ts.map +0 -1
- package/dist/service/lambda/serve/event/sim-lambda-url-request-parts.js.map +0 -1
- package/dist/service/lambda/serve/response/sim-lambda-url-response-builder.d.ts +0 -21
- package/dist/service/lambda/serve/response/sim-lambda-url-response-builder.d.ts.map +0 -1
- package/dist/service/lambda/serve/response/sim-lambda-url-response-builder.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SimHttpApiPathSegment } from "./sim-http-api-path-segment.js";
|
|
2
|
+
/**
|
|
3
|
+
* Reads one segment of a route key path.
|
|
4
|
+
*
|
|
5
|
+
* A segment is either a literal or a parameter, and anything in between, such
|
|
6
|
+
* as `{petId` or `pets{id}`, is refused at `CreateRoute`. Real API Gateway
|
|
7
|
+
* refuses it there too, which is the point of parsing this early rather than
|
|
8
|
+
* discovering it when a request fails to match.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SimHttpApiPathSegmentParser {
|
|
11
|
+
/**
|
|
12
|
+
* Read one path segment, naming the whole route key in anything refused so
|
|
13
|
+
* the caller can see which route it came from.
|
|
14
|
+
*/
|
|
15
|
+
parse(text: string, routeKey: string): SimHttpApiPathSegment;
|
|
16
|
+
private literal;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=sim-http-api-path-segment-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-path-segment-parser.d.ts","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAU5E;;;;;;;GAOG;AACH,qBAAa,2BAA2B;IACtC;;;OAGG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAqB3D;IAED,OAAO,CAAC,OAAO;CAShB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SimApiGatewayV2BadRequest } from "../../../error/sim-api-gateway-v2.error.js";
|
|
2
|
+
import { SimHttpApiGreedySegment } from "./sim-http-api-greedy-segment.js";
|
|
3
|
+
import { SimHttpApiLiteralSegment } from "./sim-http-api-literal-segment.js";
|
|
4
|
+
import { SimHttpApiVariableSegment } from "./sim-http-api-variable-segment.js";
|
|
5
|
+
/**
|
|
6
|
+
* A `{name}` or `{name+}` segment. The name is what reaches the handler as a
|
|
7
|
+
* path parameter, so it is the character set a JavaScript property name can
|
|
8
|
+
* hold without quoting.
|
|
9
|
+
*/
|
|
10
|
+
const parameterSegment = /^\{(?<name>[\w.-]+)(?<greedy>\+)?\}$/;
|
|
11
|
+
/**
|
|
12
|
+
* Reads one segment of a route key path.
|
|
13
|
+
*
|
|
14
|
+
* A segment is either a literal or a parameter, and anything in between, such
|
|
15
|
+
* as `{petId` or `pets{id}`, is refused at `CreateRoute`. Real API Gateway
|
|
16
|
+
* refuses it there too, which is the point of parsing this early rather than
|
|
17
|
+
* discovering it when a request fails to match.
|
|
18
|
+
*/
|
|
19
|
+
export class SimHttpApiPathSegmentParser {
|
|
20
|
+
/**
|
|
21
|
+
* Read one path segment, naming the whole route key in anything refused so
|
|
22
|
+
* the caller can see which route it came from.
|
|
23
|
+
*/
|
|
24
|
+
parse(text, routeKey) {
|
|
25
|
+
if (!text.includes("{") && !text.includes("}")) {
|
|
26
|
+
return this.literal(text, routeKey);
|
|
27
|
+
}
|
|
28
|
+
const groups = parameterSegment.exec(text)?.groups;
|
|
29
|
+
const name = groups?.["name"];
|
|
30
|
+
if (name === undefined) {
|
|
31
|
+
throw new SimApiGatewayV2BadRequest(`Route key '${routeKey}' has the malformed path segment '${text}': ` +
|
|
32
|
+
"a segment is either a literal, a {name} parameter, or a {name+} " +
|
|
33
|
+
"greedy parameter");
|
|
34
|
+
}
|
|
35
|
+
if (groups?.["greedy"] === undefined) {
|
|
36
|
+
return new SimHttpApiVariableSegment(name);
|
|
37
|
+
}
|
|
38
|
+
return new SimHttpApiGreedySegment(name);
|
|
39
|
+
}
|
|
40
|
+
literal(text, routeKey) {
|
|
41
|
+
if (text.length === 0) {
|
|
42
|
+
throw new SimApiGatewayV2BadRequest(`Route key '${routeKey}' has an empty path segment`);
|
|
43
|
+
}
|
|
44
|
+
return new SimHttpApiLiteralSegment(text);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=sim-http-api-path-segment-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-path-segment-parser.js","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-path-segment-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,sCAAsC,CAAC;AAEhE;;;;;;;GAOG;AACH,MAAM,OAAO,2BAA2B;IACtC;;;OAGG;IACH,KAAK,CAAC,IAAY,EAAE,QAAgB;QAClC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACtC,CAAC;QAED,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACnD,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC;QAE9B,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,MAAM,IAAI,yBAAyB,CACjC,cAAc,QAAQ,qCAAqC,IAAI,KAAK;gBAClE,kEAAkE;gBAClE,kBAAkB,CACrB,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;QAC7C,CAAC;QAED,OAAO,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAEO,OAAO,CAAC,IAAY,EAAE,QAAgB;QAC5C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACtB,MAAM,IAAI,yBAAyB,CACjC,cAAc,QAAQ,6BAA6B,CACpD,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { SimHttpApiPathParameter } from "./sim-http-api-path-parameters.js";
|
|
2
|
+
/**
|
|
3
|
+
* How specific each kind of path segment is, lower being more specific.
|
|
4
|
+
*
|
|
5
|
+
* A literal segment names one path, a `{name}` segment names any one segment,
|
|
6
|
+
* and a `{proxy+}` segment names everything left. Route selection compares
|
|
7
|
+
* these segment by segment, rather than counting characters, because it is the
|
|
8
|
+
* segment where two routes first differ that decides between them.
|
|
9
|
+
*/
|
|
10
|
+
export declare const literalSegmentRank = 0;
|
|
11
|
+
export declare const variableSegmentRank = 1;
|
|
12
|
+
export declare const greedySegmentRank = 2;
|
|
13
|
+
/**
|
|
14
|
+
* What one route path segment took from the front of a request path.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SimHttpApiSegmentMatch {
|
|
17
|
+
readonly consumed: number;
|
|
18
|
+
readonly parameter?: SimHttpApiPathParameter | undefined;
|
|
19
|
+
constructor(consumed: number, parameter?: SimHttpApiPathParameter);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* One segment of a route path.
|
|
23
|
+
*
|
|
24
|
+
* Each kind of segment answers the same questions, so matching a route is a
|
|
25
|
+
* loop over its segments rather than a switch over segment kinds.
|
|
26
|
+
*/
|
|
27
|
+
export interface SimHttpApiPathSegment {
|
|
28
|
+
/** How specific this kind of segment is. Lower is more specific. */
|
|
29
|
+
readonly rank: number;
|
|
30
|
+
/**
|
|
31
|
+
* The path parameter this segment captures into, or nothing for a literal,
|
|
32
|
+
* which captures into none.
|
|
33
|
+
*/
|
|
34
|
+
readonly parameterName: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The segment with any parameter name erased.
|
|
37
|
+
*
|
|
38
|
+
* Two route keys differing only in a parameter name are the same route to
|
|
39
|
+
* real API Gateway, so this is what a route is stored under.
|
|
40
|
+
*/
|
|
41
|
+
readonly signature: string;
|
|
42
|
+
/**
|
|
43
|
+
* Take what this segment matches from the front of the request path segments
|
|
44
|
+
* it is offered, or nothing when it does not match them.
|
|
45
|
+
*/
|
|
46
|
+
consume(remaining: readonly string[]): SimHttpApiSegmentMatch | undefined;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=sim-http-api-path-segment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-path-segment.d.ts","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-path-segment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC;;GAEG;AACH,qBAAa,sBAAsB;IACjC,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,SAAS,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAEhE,YAAY,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,uBAAuB,EAGhE;CACF;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,oEAAoE;IACpE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,sBAAsB,GAAG,SAAS,CAAC;CAC3E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How specific each kind of path segment is, lower being more specific.
|
|
3
|
+
*
|
|
4
|
+
* A literal segment names one path, a `{name}` segment names any one segment,
|
|
5
|
+
* and a `{proxy+}` segment names everything left. Route selection compares
|
|
6
|
+
* these segment by segment, rather than counting characters, because it is the
|
|
7
|
+
* segment where two routes first differ that decides between them.
|
|
8
|
+
*/
|
|
9
|
+
export const literalSegmentRank = 0;
|
|
10
|
+
export const variableSegmentRank = 1;
|
|
11
|
+
export const greedySegmentRank = 2;
|
|
12
|
+
/**
|
|
13
|
+
* What one route path segment took from the front of a request path.
|
|
14
|
+
*/
|
|
15
|
+
export class SimHttpApiSegmentMatch {
|
|
16
|
+
consumed;
|
|
17
|
+
parameter;
|
|
18
|
+
constructor(consumed, parameter) {
|
|
19
|
+
this.consumed = consumed;
|
|
20
|
+
this.parameter = parameter;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sim-http-api-path-segment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-path-segment.js","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-path-segment.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AACpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AACrC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,OAAO,sBAAsB;IACjB,QAAQ,CAAS;IACjB,SAAS,CAAuC;IAEhE,YAAY,QAAgB,EAAE,SAAmC;QAC/D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Split a URL path into the segments route matching works through.
|
|
3
|
+
*
|
|
4
|
+
* A leading slash produces no segment, so `/pets/dog` is `pets` then `dog`,
|
|
5
|
+
* and `/` is no segments at all. One trailing slash is dropped, so `/pets/`
|
|
6
|
+
* and `/pets` are the same path. That last part is observed rather than
|
|
7
|
+
* documented: real API Gateway matches both to the same route.
|
|
8
|
+
*/
|
|
9
|
+
export declare function simHttpApiPathSegments(path: string): string[];
|
|
10
|
+
//# sourceMappingURL=sim-http-api-path-segments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-path-segments.d.ts","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-path-segments.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAW7D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Split a URL path into the segments route matching works through.
|
|
3
|
+
*
|
|
4
|
+
* A leading slash produces no segment, so `/pets/dog` is `pets` then `dog`,
|
|
5
|
+
* and `/` is no segments at all. One trailing slash is dropped, so `/pets/`
|
|
6
|
+
* and `/pets` are the same path. That last part is observed rather than
|
|
7
|
+
* documented: real API Gateway matches both to the same route.
|
|
8
|
+
*/
|
|
9
|
+
export function simHttpApiPathSegments(path) {
|
|
10
|
+
// The leading slash is taken off rather than tested for: a URL pathname
|
|
11
|
+
// always has one, and a route key path without one is refused before this
|
|
12
|
+
// is reached.
|
|
13
|
+
const segments = path.slice(1).split("/");
|
|
14
|
+
if (segments.at(-1) === "") {
|
|
15
|
+
segments.pop();
|
|
16
|
+
}
|
|
17
|
+
return segments;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=sim-http-api-path-segments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-path-segments.js","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-path-segments.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY;IACjD,wEAAwE;IACxE,0EAA0E;IAC1E,cAAc;IACd,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE1C,IAAI,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;QAC3B,QAAQ,CAAC,GAAG,EAAE,CAAC;IACjB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SimHttpApiRoutePath } from "./sim-http-api-route-path.js";
|
|
2
|
+
/**
|
|
3
|
+
* Reads the path half of a route key into the segments it is made of.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SimHttpApiRoutePathParser {
|
|
6
|
+
private readonly segmentParser;
|
|
7
|
+
/**
|
|
8
|
+
* Read a route key path, naming the whole route key in anything refused.
|
|
9
|
+
*/
|
|
10
|
+
parse(path: string, routeKey: string): SimHttpApiRoutePath;
|
|
11
|
+
/**
|
|
12
|
+
* Refuse a path naming the same parameter twice.
|
|
13
|
+
*
|
|
14
|
+
* A handler reads path parameters off one object, so `GET /pets/{id}/toys/{id}`
|
|
15
|
+
* has one `id` to put two captures in. Accepting it would silently keep one
|
|
16
|
+
* segment and lose the other, which is the kind of quietly wrong behaviour
|
|
17
|
+
* refusing exists to avoid. Whether real API Gateway refuses it is not
|
|
18
|
+
* established, so this is stricter than AWS rather than known to match it.
|
|
19
|
+
*/
|
|
20
|
+
private requireDistinctParameterNames;
|
|
21
|
+
/**
|
|
22
|
+
* Refuse a greedy segment anywhere but the end.
|
|
23
|
+
*
|
|
24
|
+
* A `{proxy+}` takes everything left of the path, so a segment after it
|
|
25
|
+
* could never match anything.
|
|
26
|
+
*/
|
|
27
|
+
private requireGreedyLast;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=sim-http-api-route-path-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-route-path-parser.d.ts","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE;;GAEG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqC;IAEnE;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAezD;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,6BAA6B;IAuBrC;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;CAkB1B"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { SimApiGatewayV2BadRequest } from "../../../error/sim-api-gateway-v2.error.js";
|
|
2
|
+
import { SimHttpApiPathSegmentParser } from "./sim-http-api-path-segment-parser.js";
|
|
3
|
+
import { greedySegmentRank } from "./sim-http-api-path-segment.js";
|
|
4
|
+
import { simHttpApiPathSegments } from "./sim-http-api-path-segments.js";
|
|
5
|
+
import { SimHttpApiRoutePath } from "./sim-http-api-route-path.js";
|
|
6
|
+
/**
|
|
7
|
+
* Reads the path half of a route key into the segments it is made of.
|
|
8
|
+
*/
|
|
9
|
+
export class SimHttpApiRoutePathParser {
|
|
10
|
+
segmentParser = new SimHttpApiPathSegmentParser();
|
|
11
|
+
/**
|
|
12
|
+
* Read a route key path, naming the whole route key in anything refused.
|
|
13
|
+
*/
|
|
14
|
+
parse(path, routeKey) {
|
|
15
|
+
if (!path.startsWith("/")) {
|
|
16
|
+
throw new SimApiGatewayV2BadRequest(`Route key '${routeKey}' has the path '${path}', which does not ` +
|
|
17
|
+
`start with a slash`);
|
|
18
|
+
}
|
|
19
|
+
const segments = simHttpApiPathSegments(path).map((text) => this.segmentParser.parse(text, routeKey));
|
|
20
|
+
this.requireGreedyLast(segments, routeKey);
|
|
21
|
+
this.requireDistinctParameterNames(segments, routeKey);
|
|
22
|
+
return new SimHttpApiRoutePath({ text: path, segments });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Refuse a path naming the same parameter twice.
|
|
26
|
+
*
|
|
27
|
+
* A handler reads path parameters off one object, so `GET /pets/{id}/toys/{id}`
|
|
28
|
+
* has one `id` to put two captures in. Accepting it would silently keep one
|
|
29
|
+
* segment and lose the other, which is the kind of quietly wrong behaviour
|
|
30
|
+
* refusing exists to avoid. Whether real API Gateway refuses it is not
|
|
31
|
+
* established, so this is stricter than AWS rather than known to match it.
|
|
32
|
+
*/
|
|
33
|
+
requireDistinctParameterNames(segments, routeKey) {
|
|
34
|
+
const named = new Set();
|
|
35
|
+
for (const { parameterName } of segments) {
|
|
36
|
+
if (parameterName === undefined) {
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (named.has(parameterName)) {
|
|
40
|
+
throw new SimApiGatewayV2BadRequest(`Route key '${routeKey}' names the path parameter ` +
|
|
41
|
+
`'${parameterName}' more than once: a handler reads path ` +
|
|
42
|
+
`parameters off one object, so only one of them could arrive`);
|
|
43
|
+
}
|
|
44
|
+
named.add(parameterName);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Refuse a greedy segment anywhere but the end.
|
|
49
|
+
*
|
|
50
|
+
* A `{proxy+}` takes everything left of the path, so a segment after it
|
|
51
|
+
* could never match anything.
|
|
52
|
+
*/
|
|
53
|
+
requireGreedyLast(segments, routeKey) {
|
|
54
|
+
const greedyAt = segments.findIndex((segment) => segment.rank === greedySegmentRank);
|
|
55
|
+
if (greedyAt === -1 || greedyAt === segments.length - 1) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
throw new SimApiGatewayV2BadRequest(`Route key '${routeKey}' has a greedy path parameter before the end of ` +
|
|
59
|
+
`the path: a {name+} parameter takes the rest of the path, so nothing ` +
|
|
60
|
+
`can follow it`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=sim-http-api-route-path-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-route-path-parser.js","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-route-path-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACnB,aAAa,GAAG,IAAI,2BAA2B,EAAE,CAAC;IAEnE;;OAEG;IACH,KAAK,CAAC,IAAY,EAAE,QAAgB;QAClC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,yBAAyB,CACjC,cAAc,QAAQ,mBAAmB,IAAI,oBAAoB;gBAC/D,oBAAoB,CACvB,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACzD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,CACzC,CAAC;QACF,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,6BAA6B,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAEvD,OAAO,IAAI,mBAAmB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;OAQG;IACK,6BAA6B,CACnC,QAA0C,EAC1C,QAAgB;QAEhB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;QAEhC,KAAK,MAAM,EAAE,aAAa,EAAE,IAAI,QAAQ,EAAE,CAAC;YACzC,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;gBAChC,SAAS;YACX,CAAC;YAED,IAAI,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBAC7B,MAAM,IAAI,yBAAyB,CACjC,cAAc,QAAQ,6BAA6B;oBACjD,IAAI,aAAa,yCAAyC;oBAC1D,6DAA6D,CAChE,CAAC;YACJ,CAAC;YAED,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACK,iBAAiB,CACvB,QAA0C,EAC1C,QAAgB;QAEhB,MAAM,QAAQ,GAAG,QAAQ,CAAC,SAAS,CACjC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,iBAAiB,CAChD,CAAC;QAEF,IAAI,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxD,OAAO;QACT,CAAC;QAED,MAAM,IAAI,yBAAyB,CACjC,cAAc,QAAQ,kDAAkD;YACtE,uEAAuE;YACvE,eAAe,CAClB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SimHttpApiPathParameters } from "./sim-http-api-path-parameters.js";
|
|
2
|
+
import { type SimHttpApiPathSegment } from "./sim-http-api-path-segment.js";
|
|
3
|
+
interface SimHttpApiRoutePathProperties {
|
|
4
|
+
readonly text: string;
|
|
5
|
+
readonly segments: readonly SimHttpApiPathSegment[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The path half of a route key, such as `/pets/{petId}`.
|
|
9
|
+
*
|
|
10
|
+
* The text is kept as the route key gave it, since that is what `RouteKey`
|
|
11
|
+
* reports back and what reaches the handler as `event.routeKey`.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimHttpApiRoutePath {
|
|
14
|
+
readonly text: string;
|
|
15
|
+
readonly segments: readonly SimHttpApiPathSegment[];
|
|
16
|
+
constructor(properties: SimHttpApiRoutePathProperties);
|
|
17
|
+
/**
|
|
18
|
+
* This path with every parameter name erased, which is what makes two route
|
|
19
|
+
* keys differing only in parameter name the same route.
|
|
20
|
+
*/
|
|
21
|
+
get signature(): string;
|
|
22
|
+
/**
|
|
23
|
+
* How specific each segment is, in order, for route selection to compare.
|
|
24
|
+
*/
|
|
25
|
+
get segmentRanks(): readonly number[];
|
|
26
|
+
/**
|
|
27
|
+
* Whether this path ends in a greedy segment, which puts it behind every
|
|
28
|
+
* fully matching route.
|
|
29
|
+
*/
|
|
30
|
+
get hasGreedySegment(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Match this path against the segments of one request path, capturing
|
|
33
|
+
* whatever its parameters name.
|
|
34
|
+
*
|
|
35
|
+
* The request has to be used up exactly: a path with segments left over
|
|
36
|
+
* matches nothing, which is what keeps `GET /pets` from matching
|
|
37
|
+
* `/pets/dog`.
|
|
38
|
+
*/
|
|
39
|
+
match(requestSegments: readonly string[]): SimHttpApiPathParameters | undefined;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=sim-http-api-route-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-route-path.d.ts","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-route-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AAExC,UAAU,6BAA6B;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACrD;AAED;;;;;GAKG;AACH,qBAAa,mBAAmB;IAC9B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAE3D,YAAY,UAAU,EAAE,6BAA6B,EAGpD;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,SAAS,MAAM,EAAE,CAEpC;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED;;;;;;;OAOG;IACH,KAAK,CACH,eAAe,EAAE,SAAS,MAAM,EAAE,GACjC,wBAAwB,GAAG,SAAS,CAoBtC;CACF"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { SimHttpApiPathParameters } from "./sim-http-api-path-parameters.js";
|
|
2
|
+
import { greedySegmentRank, } from "./sim-http-api-path-segment.js";
|
|
3
|
+
/**
|
|
4
|
+
* The path half of a route key, such as `/pets/{petId}`.
|
|
5
|
+
*
|
|
6
|
+
* The text is kept as the route key gave it, since that is what `RouteKey`
|
|
7
|
+
* reports back and what reaches the handler as `event.routeKey`.
|
|
8
|
+
*/
|
|
9
|
+
export class SimHttpApiRoutePath {
|
|
10
|
+
text;
|
|
11
|
+
segments;
|
|
12
|
+
constructor(properties) {
|
|
13
|
+
this.text = properties.text;
|
|
14
|
+
this.segments = properties.segments;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* This path with every parameter name erased, which is what makes two route
|
|
18
|
+
* keys differing only in parameter name the same route.
|
|
19
|
+
*/
|
|
20
|
+
get signature() {
|
|
21
|
+
return `/${this.segments.map((segment) => segment.signature).join("/")}`;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* How specific each segment is, in order, for route selection to compare.
|
|
25
|
+
*/
|
|
26
|
+
get segmentRanks() {
|
|
27
|
+
return this.segments.map((segment) => segment.rank);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Whether this path ends in a greedy segment, which puts it behind every
|
|
31
|
+
* fully matching route.
|
|
32
|
+
*/
|
|
33
|
+
get hasGreedySegment() {
|
|
34
|
+
return this.segments.some((segment) => segment.rank === greedySegmentRank);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Match this path against the segments of one request path, capturing
|
|
38
|
+
* whatever its parameters name.
|
|
39
|
+
*
|
|
40
|
+
* The request has to be used up exactly: a path with segments left over
|
|
41
|
+
* matches nothing, which is what keeps `GET /pets` from matching
|
|
42
|
+
* `/pets/dog`.
|
|
43
|
+
*/
|
|
44
|
+
match(requestSegments) {
|
|
45
|
+
const parameters = new SimHttpApiPathParameters();
|
|
46
|
+
let taken = 0;
|
|
47
|
+
for (const segment of this.segments) {
|
|
48
|
+
const matched = segment.consume(requestSegments.slice(taken));
|
|
49
|
+
if (matched === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
parameters.add(matched.parameter);
|
|
53
|
+
taken += matched.consumed;
|
|
54
|
+
}
|
|
55
|
+
if (taken !== requestSegments.length) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
return parameters;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=sim-http-api-route-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-route-path.js","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-route-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EACL,iBAAiB,GAElB,MAAM,gCAAgC,CAAC;AAOxC;;;;;GAKG;AACH,MAAM,OAAO,mBAAmB;IACd,IAAI,CAAS;IACb,QAAQ,CAAmC;IAE3D,YAAY,UAAyC;QACnD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACtC,CAAC;IAED;;;OAGG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACH,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,iBAAiB,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CACH,eAAkC;QAElC,MAAM,UAAU,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAClD,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;YAE9D,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;gBAC1B,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAClC,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC;QAC5B,CAAC;QAED,IAAI,KAAK,KAAK,eAAe,CAAC,MAAM,EAAE,CAAC;YACrC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type SimHttpApiPathSegment, SimHttpApiSegmentMatch } from "./sim-http-api-path-segment.js";
|
|
2
|
+
/**
|
|
3
|
+
* A route path segment capturing one path segment, such as `{petId}`.
|
|
4
|
+
*
|
|
5
|
+
* It matches exactly one segment, whatever is in it, and the value reaches the
|
|
6
|
+
* handler as `event.pathParameters.petId`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SimHttpApiVariableSegment implements SimHttpApiPathSegment {
|
|
9
|
+
readonly rank = 1;
|
|
10
|
+
/**
|
|
11
|
+
* Every parameter segment has the same signature, whatever the name is, so
|
|
12
|
+
* `GET /pets/{id}` and `GET /pets/{petId}` are one route.
|
|
13
|
+
*/
|
|
14
|
+
readonly signature = "{}";
|
|
15
|
+
readonly parameterName: string;
|
|
16
|
+
constructor(parameterName: string);
|
|
17
|
+
/**
|
|
18
|
+
* Take the one request segment this parameter names, when there is one with
|
|
19
|
+
* something in it.
|
|
20
|
+
*/
|
|
21
|
+
consume(remaining: readonly string[]): SimHttpApiSegmentMatch | undefined;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sim-http-api-variable-segment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-variable-segment.d.ts","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,qBAAqB,EAC1B,sBAAsB,EAEvB,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,qBAAa,yBAA0B,YAAW,qBAAqB;IACrE,SAAgB,IAAI,KAAuB;IAC3C;;;OAGG;IACH,SAAgB,SAAS,QAAQ;IACjC,SAAgB,aAAa,EAAE,MAAM,CAAC;IAEtC,YAAY,aAAa,EAAE,MAAM,EAEhC;IAED;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,sBAAsB,GAAG,SAAS,CAWxE;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SimHttpApiPathParameter } from "./sim-http-api-path-parameters.js";
|
|
2
|
+
import { SimHttpApiSegmentMatch, variableSegmentRank, } from "./sim-http-api-path-segment.js";
|
|
3
|
+
/**
|
|
4
|
+
* A route path segment capturing one path segment, such as `{petId}`.
|
|
5
|
+
*
|
|
6
|
+
* It matches exactly one segment, whatever is in it, and the value reaches the
|
|
7
|
+
* handler as `event.pathParameters.petId`.
|
|
8
|
+
*/
|
|
9
|
+
export class SimHttpApiVariableSegment {
|
|
10
|
+
rank = variableSegmentRank;
|
|
11
|
+
/**
|
|
12
|
+
* Every parameter segment has the same signature, whatever the name is, so
|
|
13
|
+
* `GET /pets/{id}` and `GET /pets/{petId}` are one route.
|
|
14
|
+
*/
|
|
15
|
+
signature = "{}";
|
|
16
|
+
parameterName;
|
|
17
|
+
constructor(parameterName) {
|
|
18
|
+
this.parameterName = parameterName;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Take the one request segment this parameter names, when there is one with
|
|
22
|
+
* something in it.
|
|
23
|
+
*/
|
|
24
|
+
consume(remaining) {
|
|
25
|
+
const [value] = remaining;
|
|
26
|
+
if (value === undefined || value.length === 0) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
return new SimHttpApiSegmentMatch(1, new SimHttpApiPathParameter(this.parameterName, value));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=sim-http-api-variable-segment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-variable-segment.js","sourceRoot":"","sources":["../../../../../../src/service/apigatewayv2/api/route/path/sim-http-api-variable-segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAEL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,MAAM,OAAO,yBAAyB;IACpB,IAAI,GAAG,mBAAmB,CAAC;IAC3C;;;OAGG;IACa,SAAS,GAAG,IAAI,CAAC;IACjB,aAAa,CAAS;IAEtC,YAAY,aAAqB;QAC/B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,SAA4B;QAClC,MAAM,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;QAE1B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC9C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,sBAAsB,CAC/B,CAAC,EACD,IAAI,uBAAuB,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CACvD,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The three tiers AWS documents for route selection, most specific first: a
|
|
3
|
+
* route matching the whole path, a route ending in a greedy parameter, then
|
|
4
|
+
* the `$default` catch-all.
|
|
5
|
+
*/
|
|
6
|
+
export declare const fullMatchTier = 0;
|
|
7
|
+
export declare const greedyMatchTier = 1;
|
|
8
|
+
export declare const defaultRouteTier = 2;
|
|
9
|
+
interface SimHttpApiRouteRankProperties {
|
|
10
|
+
readonly tier: number;
|
|
11
|
+
readonly methodRank: number;
|
|
12
|
+
readonly segmentRanks: readonly number[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* How specific one route is, and therefore which of two matching routes serves
|
|
16
|
+
* a request.
|
|
17
|
+
*
|
|
18
|
+
* The whole precedence rule lives in `compareTo`, in the order it is applied:
|
|
19
|
+
*
|
|
20
|
+
* 1. The tier. AWS documents this one: a full match beats a greedy match,
|
|
21
|
+
* which beats `$default`.
|
|
22
|
+
* 2. The method. An exact method beats `ANY`. Observed rather than documented,
|
|
23
|
+
* as is its place above the path comparison rather than below it.
|
|
24
|
+
* 3. The path, segment by segment from the left, with a literal beating a
|
|
25
|
+
* `{name}` parameter and a `{name}` beating a `{name+}`. The first two rows
|
|
26
|
+
* of AWS's worked example give the literal-beats-parameter part. Comparing
|
|
27
|
+
* left to right rather than counting characters is what makes
|
|
28
|
+
* `GET /a/b/{c}` beat `GET /a/{b}/ccccc`, which has more literal characters
|
|
29
|
+
* and is less specific where it counts. It is also what gives the observed
|
|
30
|
+
* rule that the longest literal prefix wins between two greedy routes:
|
|
31
|
+
* `GET /pets/dog/{proxy+}` and `GET /pets/{proxy+}` differ at the second
|
|
32
|
+
* segment, where one has a literal and the other has taken everything.
|
|
33
|
+
*/
|
|
34
|
+
export declare class SimHttpApiRouteRank {
|
|
35
|
+
readonly tier: number;
|
|
36
|
+
readonly methodRank: number;
|
|
37
|
+
readonly segmentRanks: readonly number[];
|
|
38
|
+
constructor(properties: SimHttpApiRouteRankProperties);
|
|
39
|
+
/**
|
|
40
|
+
* Compare this rank with another, negative meaning this one is more specific
|
|
41
|
+
* and therefore wins.
|
|
42
|
+
*/
|
|
43
|
+
compareTo(other: SimHttpApiRouteRank): number;
|
|
44
|
+
private compareSegments;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=sim-http-api-route-rank.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-route-rank.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/api/route/sim-http-api-route-rank.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,UAAU,6BAA6B;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,mBAAmB;IAC9B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAEhD,YAAY,UAAU,EAAE,6BAA6B,EAIpD;IAED;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAU5C;IAED,OAAO,CAAC,eAAe;CAoBxB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The three tiers AWS documents for route selection, most specific first: a
|
|
3
|
+
* route matching the whole path, a route ending in a greedy parameter, then
|
|
4
|
+
* the `$default` catch-all.
|
|
5
|
+
*/
|
|
6
|
+
export const fullMatchTier = 0;
|
|
7
|
+
export const greedyMatchTier = 1;
|
|
8
|
+
export const defaultRouteTier = 2;
|
|
9
|
+
/**
|
|
10
|
+
* How specific one route is, and therefore which of two matching routes serves
|
|
11
|
+
* a request.
|
|
12
|
+
*
|
|
13
|
+
* The whole precedence rule lives in `compareTo`, in the order it is applied:
|
|
14
|
+
*
|
|
15
|
+
* 1. The tier. AWS documents this one: a full match beats a greedy match,
|
|
16
|
+
* which beats `$default`.
|
|
17
|
+
* 2. The method. An exact method beats `ANY`. Observed rather than documented,
|
|
18
|
+
* as is its place above the path comparison rather than below it.
|
|
19
|
+
* 3. The path, segment by segment from the left, with a literal beating a
|
|
20
|
+
* `{name}` parameter and a `{name}` beating a `{name+}`. The first two rows
|
|
21
|
+
* of AWS's worked example give the literal-beats-parameter part. Comparing
|
|
22
|
+
* left to right rather than counting characters is what makes
|
|
23
|
+
* `GET /a/b/{c}` beat `GET /a/{b}/ccccc`, which has more literal characters
|
|
24
|
+
* and is less specific where it counts. It is also what gives the observed
|
|
25
|
+
* rule that the longest literal prefix wins between two greedy routes:
|
|
26
|
+
* `GET /pets/dog/{proxy+}` and `GET /pets/{proxy+}` differ at the second
|
|
27
|
+
* segment, where one has a literal and the other has taken everything.
|
|
28
|
+
*/
|
|
29
|
+
export class SimHttpApiRouteRank {
|
|
30
|
+
tier;
|
|
31
|
+
methodRank;
|
|
32
|
+
segmentRanks;
|
|
33
|
+
constructor(properties) {
|
|
34
|
+
this.tier = properties.tier;
|
|
35
|
+
this.methodRank = properties.methodRank;
|
|
36
|
+
this.segmentRanks = properties.segmentRanks;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Compare this rank with another, negative meaning this one is more specific
|
|
40
|
+
* and therefore wins.
|
|
41
|
+
*/
|
|
42
|
+
compareTo(other) {
|
|
43
|
+
if (this.tier !== other.tier) {
|
|
44
|
+
return this.tier - other.tier;
|
|
45
|
+
}
|
|
46
|
+
if (this.methodRank !== other.methodRank) {
|
|
47
|
+
return this.methodRank - other.methodRank;
|
|
48
|
+
}
|
|
49
|
+
return this.compareSegments(other);
|
|
50
|
+
}
|
|
51
|
+
compareSegments(other) {
|
|
52
|
+
const shared = Math.min(this.segmentRanks.length, other.segmentRanks.length);
|
|
53
|
+
for (let index = 0; index < shared; index++) {
|
|
54
|
+
const mine = this.segmentRanks.at(index) ?? 0;
|
|
55
|
+
const theirs = other.segmentRanks.at(index) ?? 0;
|
|
56
|
+
if (mine !== theirs) {
|
|
57
|
+
return mine - theirs;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/* v8 ignore next -- two routes matching one request always differ
|
|
61
|
+
somewhere in the segments they share: if they did not, they would be the
|
|
62
|
+
same route key, and the second is refused as a conflict */
|
|
63
|
+
return 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=sim-http-api-route-rank.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-route-rank.js","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/api/route/sim-http-api-route-rank.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC;AAC/B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;AACjC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAQlC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,mBAAmB;IACd,IAAI,CAAS;IACb,UAAU,CAAS;IACnB,YAAY,CAAoB;IAEhD,YAAY,UAAyC;QACnD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,KAA0B;QAClC,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QAChC,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,KAAK,KAAK,CAAC,UAAU,EAAE,CAAC;YACzC,OAAO,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC;QAC5C,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAEO,eAAe,CAAC,KAA0B;QAChD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CACrB,IAAI,CAAC,YAAY,CAAC,MAAM,EACxB,KAAK,CAAC,YAAY,CAAC,MAAM,CAC1B,CAAC;QAEF,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;YAC5C,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC9C,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAEjD,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;gBACpB,OAAO,IAAI,GAAG,MAAM,CAAC;YACvB,CAAC;QACH,CAAC;QAED;;qEAE6D;QAC7D,OAAO,CAAC,CAAC;IACX,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface SimHttpApiRouteRequestProperties {
|
|
2
|
+
readonly method: string;
|
|
3
|
+
readonly segments: readonly string[];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* One request as route selection sees it: the HTTP method, and the path
|
|
7
|
+
* segments left once the stage has taken its own.
|
|
8
|
+
*
|
|
9
|
+
* A named stage is a path segment the routes know nothing about, so
|
|
10
|
+
* `/dev/pets/6` on stage `dev` reaches route selection as `pets` then `6`.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SimHttpApiRouteRequest {
|
|
13
|
+
readonly method: string;
|
|
14
|
+
readonly segments: readonly string[];
|
|
15
|
+
constructor(properties: SimHttpApiRouteRequestProperties);
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=sim-http-api-route-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-http-api-route-request.d.ts","sourceRoot":"","sources":["../../../../../src/service/apigatewayv2/api/route/sim-http-api-route-request.ts"],"names":[],"mappings":"AAAA,UAAU,gCAAgC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED;;;;;;GAMG;AACH,qBAAa,sBAAsB;IACjC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAE5C,YAAY,UAAU,EAAE,gCAAgC,EAGvD;CACF"}
|