UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

63 lines • 2.36 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { V4PagePagination } from "../../../core/pagination.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseIssues = /* @__PURE__ */ (() => { class BaseIssues extends 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(path `/accounts/${account_id}/intel/attack-surface-report/issues`, (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(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(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(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; })(); export class Issues extends BaseIssues { } //# sourceMappingURL=issues.mjs.map