"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRequestMethod = exports.LightdashAppUuidHeader = exports.LightdashCliVersionHeader = exports.LightdashSdkVersionHeader = exports.LightdashVersionHeader = exports.LightdashRequestMethodHeader = void 0;
const api_1 = require("../types/api");
exports.LightdashRequestMethodHeader = 'Lightdash-Request-Method';
exports.LightdashVersionHeader = 'Lightdash-Version';
exports.LightdashSdkVersionHeader = 'Lightdash-SDK-Version';
exports.LightdashCliVersionHeader = 'Lightdash-CLI-Version';
// Attaches the originating data app to a request so warehouse queries can be
// tagged with `app_uuid`. Self-reported provenance for tracking only — not
// authenticated, so it must not gate access or feed anything authoritative.
exports.LightdashAppUuidHeader = 'Lightdash-App-Uuid';
const getRequestMethod = (headerValue) => (0, api_1.isRequestMethod)(headerValue) ? headerValue : api_1.RequestMethod.UNKNOWN;
exports.getRequestMethod = getRequestMethod;
//# sourceMappingURL=api.js.map