cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Spoof = exports.BaseSpoof = 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 BaseSpoof = /* @__PURE__ */ (() => {
class BaseSpoof extends resource_1.APIResource {
/**
* Retrieves the top TLDs by emails classified as spoof or not.
*
* @example
* ```ts
* const spoof =
* await client.radar.email.security.top.tlds.spoof.get(
* 'SPOOF',
* );
* ```
*/
get(spoof, query = {}, options) {
return this._client.get((0, path_1.path) `/radar/email/security/top/tlds/spoof/${spoof}`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseSpoof._key = Object.freeze(['radar', 'email', 'security', 'top', 'tlds', 'spoof']);
return BaseSpoof;
})();
exports.BaseSpoof = BaseSpoof;
class Spoof extends BaseSpoof {
}
exports.Spoof = Spoof;
//# sourceMappingURL=spoof.js.map