UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

34 lines • 1.14 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseAttackers = /* @__PURE__ */ (() => { class BaseAttackers extends APIResource { /** * Lists known threat attackers tracked in Cloudforce One threat intelligence. * * @example * ```ts * const attackers = * await client.cloudforceOne.threatEvents.attackers.list({ * account_id: 'account_id', * }); * ``` */ list(params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/cloudforce-one/events/attackers`, { query, ...options, }); } } BaseAttackers._key = Object.freeze([ 'cloudforceOne', 'threatEvents', 'attackers', ]); return BaseAttackers; })(); export class Attackers extends BaseAttackers { } //# sourceMappingURL=attackers.mjs.map