"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeApiRequest = void 0;
const normalizeApiRequest = (event, body) => {
    const request = {
        headers: {
            'accept': event.headers['accept'] || '',
            'accept-encoding': event.headers['accept-encoding'] || '',
            'authorization': event.headers['authorization'] || '',
            'connection': event.headers['connection'] || '',
            'content-length': event.headers['content-length'] || '',
            'content-type': event.headers['content-type'] || '',
            'host': event.headers['host'] || '',
            'user-agent': event.headers['user-agent'] || '',
            'x-dfns-appid': event.headers['x-dfns-appid'] || '',
            'x-dfns-appsecret': event.headers['x-dfns-appsecret'] || '',
            'x-dfns-nonce': event.headers['x-dfns-nonce'] || '',
            'x-dfns-useraction': event.headers['x-dfns-useraction'] || '',
            'x-dfns-apisignature': event.headers['x-dfns-apisignature'] || '',
        },
        body: JSON.stringify(body),
        isBase64Encoded: false,
        http: {
            scheme: 'HTTPS',
            method: event.requestContext.http.method,
            path: event.rawPath,
            queryString: event.rawQueryString || '',
            authority: event.requestContext.domainName,
        },
    };
    return JSON.stringify(request);
};
exports.normalizeApiRequest = normalizeApiRequest;
//# sourceMappingURL=normalizeRequest.js.map