fix(aws-lambda): add jwt and lambda authorizer types for API Gateway v2 (#5142)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
`ApiGatewayRequestContextV2["authorizer"]` only declared the `iam` variant, so reading the context of a Lambda (REQUEST) authorizer or a JWT authorizer was a TypeScript error even though API Gateway populates those keys: ctx.env.event.requestContext.authorizer.lambda.userId // Property 'lambda' does not exist on type 'Authorizer'. The payload format 2.0 event documented by AWS carries `authorizer.jwt` with `claims` and `scopes`, and a Lambda authorizer's `context` object is delivered under `authorizer.lambda`. Add both as optional properties, mirroring `@types/aws-lambda`. Types only — no runtime change, and `iam` is untouched, so this is backwards compatible. Closes #3281
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+69 added−1 removed
- tests:+60 added−1 removed
- other:+9 added−0 removed