Skip to content
Myr

custom-context.ts

This file

Path

src/adapter/aws-lambda/custom-context.ts

83 lines · 1.5 KiB · TypeScript

Last changed by

chore: add `format` script (#1334)watanybefore adoption954c06e

History of this file

Take it

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

lines 1–3why, one step back
1// @denoify-ignore
23interface ClientCert {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 4–7why, one step back
4 clientCertPem: string
5 subjectDN: string6 issuerDN: string7 serialNumber: string

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

line 8why, one step back
8 validity: {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 9–11why, one step back
9 notBefore: string
10 notAfter: string11 }

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

lines 12–14why, one step back
12}
1314interface Identity {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 15–27why, one step back
15 accessKey?: string
16 accountId?: string17 caller?: string18 cognitoAuthenticationProvider?: string19 cognitoAuthenticationType?: string20 cognitoIdentityId?: string21 cognitoIdentityPoolId?: string22 principalOrgId?: string23 sourceIp: string24 user?: string25 userAgent: string26 userArn?: string27 clientCert?: ClientCert

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

lines 28–30why, one step back
28}
2930export interface ApiGatewayRequestContext {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 31–32why, one step back
31 accountId: string
32 apiId: string

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

line 33why, one step back
33 authorizer: {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 34–49why, one step back
34 claims?: unknown
35 scopes?: unknown36 }37 domainName: string38 domainPrefix: string39 extendedRequestId: string40 httpMethod: string41 identity: Identity42 path: string43 protocol: string44 requestId: string45 requestTime: string46 requestTimeEpoch: number47 resourceId?: string48 resourcePath: string49 stage: string

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

lines 50–53why, one step back
50}
5152interface Authorizer {53 iam?: {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 54–61why, one step back
54 accessKey: string
55 accountId: string56 callerId: string57 cognitoIdentity: null58 principalOrgId: null59 userArn: string60 userId: string61 }

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

lines 62–64why, one step back
62}
6364export interface LambdaFunctionUrlRequestContext {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 65–70why, one step back
65 accountId: string
66 apiId: string67 authentication: null68 authorizer: Authorizer69 domainName: string70 domainPrefix: string

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

line 71why, one step back
71 http: {

chore: add `format` script (#1334)watanybefore adoption954c06e

lines 72–82why, one step back
72 method: string
73 path: string74 protocol: string75 sourceIp: string76 userAgent: string77 }78 requestId: string79 routeKey: string80 stage: string81 time: string82 timeEpoch: number

fix(adaptor): Access to custom request context on AWS Lambda Adaptor (#1305)watanybefore adoptioneefdb27

line 83why, one step back
83}