UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

40 lines • 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Indicators = exports.BaseIndicators = 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 BaseIndicators = /* @__PURE__ */ (() => { class BaseIndicators extends resource_1.APIResource { /** * Lists indicators of compromise extracted from the account's Threat Signals * articles. * * @example * ```ts * const indicators = * await client.cloudforceOne.threatSignals.indicators.list({ * account_id: 'account_id', * }); * ``` */ list(params, options) { const { account_id, ...query } = params; return this._client.get((0, path_1.path) `/accounts/${account_id}/cloudforce-one/v2/threat-signals/indicators`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseIndicators._key = Object.freeze([ 'cloudforceOne', 'threatSignals', 'indicators', ]); return BaseIndicators; })(); exports.BaseIndicators = BaseIndicators; class Indicators extends BaseIndicators { } exports.Indicators = Indicators; //# sourceMappingURL=indicators.js.map