cloudflare
Version:
The official TypeScript library for the Cloudflare API
32 lines • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Whois = exports.BaseWhois = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../core/resource.js");
const path_1 = require("../../internal/utils/path.js");
var BaseWhois = /* @__PURE__ */ (() => {
class BaseWhois extends resource_1.APIResource {
/**
* Retrieves WHOIS registration data for a domain, including registrant and
* nameserver information.
*
* @example
* ```ts
* const whois = await client.intel.whois.get({
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(params, options) {
const { account_id, ...query } = params;
return this._client.get((0, path_1.path) `/accounts/${account_id}/intel/whois`, { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseWhois._key = Object.freeze(['intel', 'whois']);
return BaseWhois;
})();
exports.BaseWhois = BaseWhois;
class Whois extends BaseWhois {
}
exports.Whois = Whois;
//# sourceMappingURL=whois.js.map