UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

59 lines 2.24 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; import * as IssuesAPI from 'cloudflare/resources/intel/attack-surface-report/issues'; import { V4PagePagination } from 'cloudflare/pagination'; export class Issues extends APIResource { /** * Get Security Center Issues */ 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 */ 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 */ dismiss(issueId, params, options) { const { account_id, ...body } = params; return this._client.put(`/accounts/${account_id}/intel/attack-surface-report/${issueId}/dismiss`, { body, ...options, })._thenUnwrap((obj) => obj.result); } /** * Get Security Center Issue Counts by Severity */ 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 */ 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); } } export class IssueListResponsesV4PagePagination extends V4PagePagination { } (function (Issues) { Issues.IssueListResponsesV4PagePagination = IssuesAPI.IssueListResponsesV4PagePagination; })(Issues || (Issues = {})); //# sourceMappingURL=issues.mjs.map