import { z } from 'zod'; /** * A zod schema for an API Gateway Event Request Context * * @see {@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference} */ declare const APIGatewayEventRequestContextSchema: z.ZodObject<{ accountId: z.ZodString; apiId: z.ZodString; deploymentId: z.ZodOptional>; authorizer: z.ZodOptional, z.ZodObject<{ claims: z.ZodRecord; scopes: z.ZodOptional>; }, z.core.$strip>]>>>; stage: z.ZodString; protocol: z.ZodString; identity: z.ZodObject<{ accessKey: z.ZodOptional>; accountId: z.ZodOptional>; apiKey: z.ZodOptional>; apiKeyId: z.ZodOptional>; caller: z.ZodOptional>; cognitoAuthenticationProvider: z.ZodOptional>; cognitoAuthenticationType: z.ZodOptional>; cognitoIdentityId: z.ZodOptional>; cognitoIdentityPoolId: z.ZodOptional>; principalOrgId: z.ZodOptional>; sourceIp: z.ZodOptional]>>; user: z.ZodOptional>; userAgent: z.ZodOptional>; userArn: z.ZodOptional>; clientCert: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; requestId: z.ZodString; requestTime: z.ZodString; requestTimeEpoch: z.ZodNumber; resourceId: z.ZodOptional>; resourcePath: z.ZodString; domainName: z.ZodOptional>; domainPrefix: z.ZodOptional>; extendedRequestId: z.ZodOptional>; httpMethod: z.ZodEnum<{ GET: "GET"; POST: "POST"; PUT: "PUT"; PATCH: "PATCH"; DELETE: "DELETE"; HEAD: "HEAD"; OPTIONS: "OPTIONS"; }>; path: z.ZodString; connectedAt: z.ZodOptional>; connectionId: z.ZodOptional>; eventType: z.ZodOptional>>; messageDirection: z.ZodOptional>; messageId: z.ZodOptional>; routeKey: z.ZodOptional>; operationName: z.ZodOptional>; }, z.core.$strip>; /** * A zod schema for an API Gateway Proxy event * * @example * ```json * { * "type": "REQUEST", * "methodArn": "arn:aws:execute-api:us-east-1:123456789012:abcdef123/test/GET/request", * "resource": "/request", * "path": "/request", * "httpMethod": "GET", * "headers": { * "X-AMZ-Date": "20170718T062915Z", * "Accept": "application/json", * "HeaderAuth1": "headerValue1" * }, * "queryStringParameters": { * "QueryString1": "queryValue1" * }, * "pathParameters": {}, * "stageVariables": null, * "requestContext": { * "path": "/request", * "accountId": "123456789012", * "resourceId": "05c7jb", * "stage": "test", * "requestId": "...", * "identity": { * "cognitoIdentityPoolId": null, * "accountId": null, * "cognitoIdentityId": null, * "caller": null, * "sourceIp": "192.168.1.1", * "principalOrgId": null, * "accessKey": null, * "cognitoAuthenticationType": null, * "cognitoAuthenticationProvider": null, * "userArn": null, * "userAgent": "HTTPie/3.2.2", * "user": null * } * }, * "resourcePath": "/request", * "httpMethod": "GET", * "apiId": "abcdef123" * } * ``` * @see {@link APIGatewayProxyEvent | `APIGatewayProxyEvent`} * @see {@link https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html} */ declare const APIGatewayProxyEventSchema: z.ZodObject<{ resource: z.ZodString; path: z.ZodString; httpMethod: z.ZodEnum<{ GET: "GET"; POST: "POST"; PUT: "PUT"; PATCH: "PATCH"; DELETE: "DELETE"; HEAD: "HEAD"; OPTIONS: "OPTIONS"; }>; headers: z.ZodOptional>>; multiValueHeaders: z.ZodOptional>>>; queryStringParameters: z.ZodNullable>; multiValueQueryStringParameters: z.ZodNullable>>; pathParameters: z.ZodOptional>>; stageVariables: z.ZodOptional>>; requestContext: z.ZodObject<{ accountId: z.ZodString; apiId: z.ZodString; deploymentId: z.ZodOptional>; authorizer: z.ZodOptional, z.ZodObject<{ claims: z.ZodRecord; scopes: z.ZodOptional>; }, z.core.$strip>]>>>; stage: z.ZodString; protocol: z.ZodString; identity: z.ZodObject<{ accessKey: z.ZodOptional>; accountId: z.ZodOptional>; apiKey: z.ZodOptional>; apiKeyId: z.ZodOptional>; caller: z.ZodOptional>; cognitoAuthenticationProvider: z.ZodOptional>; cognitoAuthenticationType: z.ZodOptional>; cognitoIdentityId: z.ZodOptional>; cognitoIdentityPoolId: z.ZodOptional>; principalOrgId: z.ZodOptional>; sourceIp: z.ZodOptional]>>; user: z.ZodOptional>; userAgent: z.ZodOptional>; userArn: z.ZodOptional>; clientCert: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; requestId: z.ZodString; requestTime: z.ZodString; requestTimeEpoch: z.ZodNumber; resourceId: z.ZodOptional>; resourcePath: z.ZodString; domainName: z.ZodOptional>; domainPrefix: z.ZodOptional>; extendedRequestId: z.ZodOptional>; httpMethod: z.ZodEnum<{ GET: "GET"; POST: "POST"; PUT: "PUT"; PATCH: "PATCH"; DELETE: "DELETE"; HEAD: "HEAD"; OPTIONS: "OPTIONS"; }>; path: z.ZodString; connectedAt: z.ZodOptional>; connectionId: z.ZodOptional>; eventType: z.ZodOptional>>; messageDirection: z.ZodOptional>; messageId: z.ZodOptional>; routeKey: z.ZodOptional>; operationName: z.ZodOptional>; }, z.core.$strip>; body: z.ZodNullable; isBase64Encoded: z.ZodBoolean; }, z.core.$strip>; /** * A zod schema for an API Gateway Request Authorizer event * * @example * ```json * { * "type": "REQUEST", * "methodArn": "arn:aws:execute-api:us-west-2:123456789012:ymy8tbxw7b/prod/GET/", * "resource": "/{proxy+}", * "path": "/hello/world", * "httpMethod": "GET", * "headers": { * "X-AMZ-Date": "20170718T062915Z", * "Accept": "application/json", * "HeaderAuth1": "headerValue1" * }, * "multiValueHeaders": { * "X-AMZ-Date": ["20170718T062915Z"], * "Accept": ["application/json"], * "HeaderAuth1": ["headerValue1"] * }, * "queryStringParameters": {}, * "multiValueQueryStringParameters": {}, * "pathParameters": {}, * "stageVariables": {}, * "requestContext": { * "path": "/request", * "accountId": "123456789012", * "resourceId": "05c7jb", * "stage": "test", * "requestId": "...", * "identity": { * "cognitoIdentityPoolId": null, * "accountId": null, * "cognitoIdentityId": null, * "caller": null, * "sourceIp": "192.168.1.1", * "principalOrgId": null, * "accessKey": null, * "cognitoAuthenticationType": null, * "cognitoAuthenticationProvider": null, * "userArn": null, * "userAgent": "HTTPie/3.2.2", * "user": null * } * }, * "domainName": "id.execute-api.us-west-2.amazonaws.com", * "deploymentId": "lle82z", * "apiId": "ymy8tbxw7b" * } * ``` * * @see {@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-input.html#w76aac15b9c21c25c21b5} */ declare const APIGatewayRequestAuthorizerEventSchema: z.ZodObject<{ type: z.ZodLiteral<"REQUEST">; methodArn: z.ZodString; resource: z.ZodString; path: z.ZodString; httpMethod: z.ZodEnum<{ GET: "GET"; POST: "POST"; PUT: "PUT"; PATCH: "PATCH"; DELETE: "DELETE"; HEAD: "HEAD"; OPTIONS: "OPTIONS"; }>; headers: z.ZodRecord; multiValueHeaders: z.ZodRecord>; queryStringParameters: z.ZodRecord; multiValueQueryStringParameters: z.ZodRecord>; pathParameters: z.ZodRecord; stageVariables: z.ZodRecord; requestContext: z.ZodObject<{ accountId: z.ZodString; apiId: z.ZodString; deploymentId: z.ZodOptional>; authorizer: z.ZodOptional, z.ZodObject<{ claims: z.ZodRecord; scopes: z.ZodOptional>; }, z.core.$strip>]>>>; stage: z.ZodString; protocol: z.ZodString; identity: z.ZodObject<{ accessKey: z.ZodOptional>; accountId: z.ZodOptional>; apiKey: z.ZodOptional>; apiKeyId: z.ZodOptional>; caller: z.ZodOptional>; cognitoAuthenticationProvider: z.ZodOptional>; cognitoAuthenticationType: z.ZodOptional>; cognitoIdentityId: z.ZodOptional>; cognitoIdentityPoolId: z.ZodOptional>; principalOrgId: z.ZodOptional>; sourceIp: z.ZodOptional]>>; user: z.ZodOptional>; userAgent: z.ZodOptional>; userArn: z.ZodOptional>; clientCert: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; requestId: z.ZodString; requestTime: z.ZodString; requestTimeEpoch: z.ZodNumber; resourceId: z.ZodOptional>; resourcePath: z.ZodString; domainName: z.ZodOptional>; domainPrefix: z.ZodOptional>; extendedRequestId: z.ZodOptional>; httpMethod: z.ZodEnum<{ GET: "GET"; POST: "POST"; PUT: "PUT"; PATCH: "PATCH"; DELETE: "DELETE"; HEAD: "HEAD"; OPTIONS: "OPTIONS"; }>; path: z.ZodString; connectedAt: z.ZodOptional>; connectionId: z.ZodOptional>; eventType: z.ZodOptional>>; messageDirection: z.ZodOptional>; messageId: z.ZodOptional>; routeKey: z.ZodOptional>; operationName: z.ZodOptional>; }, z.core.$strip>; domainName: z.ZodOptional; deploymentId: z.ZodOptional; apiId: z.ZodOptional; }, z.core.$strip>; /** * A zod schema for an API Gateway Token Authorizer event * * @example * ```json * { * "type": "TOKEN", * "authorizationToken": "Bearer abcd1234", * "methodArn": "arn:aws:execute-api:us-west-2:123456789012:ymy8tbxw7b/prod/GET/" * } * ``` * * @see {@link https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-input.html#w76aac15b9c21c25c21b3} */ declare const APIGatewayTokenAuthorizerEventSchema: z.ZodObject<{ type: z.ZodLiteral<"TOKEN">; authorizationToken: z.ZodString; methodArn: z.ZodString; }, z.core.$strip>; export { APIGatewayEventRequestContextSchema, APIGatewayProxyEventSchema, APIGatewayRequestAuthorizerEventSchema, APIGatewayTokenAuthorizerEventSchema, }; //# sourceMappingURL=api-gateway.d.ts.map