UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

71 lines 2.45 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.IssueListResponsesV4PagePagination = exports.Issues = void 0; const resource_1 = require("../../../resource.js"); const pagination_1 = require("../../../pagination.js"); class Issues extends resource_1.APIResource { /** * Get Security Center Issues * * @deprecated */ list(params, options) { const { account_id, ...query } = params; return this._client.getAPIList(`/accounts/${account_id}/intel/attack-surface-report/issues`, IssueListResponsesV4PagePagination, { query, ...options }); } /** * Get Security Center Issue Counts by Class * * @deprecated */ class(params, options) { const { account_id, ...query } = params; return this._client.get(`/accounts/${account_id}/intel/attack-surface-report/issues/class`, { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Archive Security Center Insight * * @deprecated */ dismiss(issueId, params, options) { const { account_id, ...body } = params; return this._client.put(`/accounts/${account_id}/intel/attack-surface-report/${issueId}/dismiss`, { body, ...options, }); } /** * Get Security Center Issue Counts by Severity * * @deprecated */ severity(params, options) { const { account_id, ...query } = params; return this._client.get(`/accounts/${account_id}/intel/attack-surface-report/issues/severity`, { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Get Security Center Issue Counts by Type * * @deprecated */ type(params, options) { const { account_id, ...query } = params; return this._client.get(`/accounts/${account_id}/intel/attack-surface-report/issues/type`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } exports.Issues = Issues; class IssueListResponsesV4PagePagination extends pagination_1.V4PagePagination { } exports.IssueListResponsesV4PagePagination = IssueListResponsesV4PagePagination; Issues.IssueListResponsesV4PagePagination = IssueListResponsesV4PagePagination; //# sourceMappingURL=issues.js.map