text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.getApiKeyAccessInfo = void 0;
  const handy_1 = require("./handy");
  const options_1 = require("./options");
  async function getApiKeyAccessInfo(apiKey) {
      const options = (0, options_1.getOptions)();
      const apiKeyToCheck = apiKey || options.apiKey;
      const apiKeyAccessInfo = await handy_1.httpClient
          .get(`${options.endpoint}/api-key-info`, {
          headers: {
              Authorization: `Bearer ${apiKeyToCheck}`
          }
      })
          .json();
      return apiKeyAccessInfo;
  }
  exports.getApiKeyAccessInfo = getApiKeyAccessInfo;
  //# sourceMappingURL=apikeyaccessinfo.js.map