UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

68 lines • 2.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Issues = exports.BaseIssues = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../core/resource.js"); const pagination_1 = require("../../../core/pagination.js"); const path_1 = require("../../../internal/utils/path.js"); var BaseIssues = /* @__PURE__ */ (() => { class BaseIssues extends resource_1.APIResource { /** * Lists all Security Center issues for the account, showing active security * problems requiring attention. * * @deprecated */ list(params, options) { const { account_id, ...query } = params; return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/intel/attack-surface-report/issues`, (pagination_1.V4PagePagination), { query, ...options }); } /** * Retrieves Security Center issue counts aggregated by classification class. * * @deprecated */ class(params, options) { const { account_id, ...query } = params; return this._client.get((0, path_1.path) `/accounts/${account_id}/intel/attack-surface-report/issues/class`, { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves Security Center issue counts aggregated by severity level. * * @deprecated */ severity(params, options) { const { account_id, ...query } = params; return this._client.get((0, path_1.path) `/accounts/${account_id}/intel/attack-surface-report/issues/severity`, { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves Security Center issue counts aggregated by issue type. * * @deprecated */ type(params, options) { const { account_id, ...query } = params; return this._client.get((0, path_1.path) `/accounts/${account_id}/intel/attack-surface-report/issues/type`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseIssues._key = Object.freeze([ 'intel', 'attackSurfaceReport', 'issues', ]); return BaseIssues; })(); exports.BaseIssues = BaseIssues; class Issues extends BaseIssues { } exports.Issues = Issues; //# sourceMappingURL=issues.js.map