UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

35 lines • 1.31 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { SinglePage } from "../../../core/pagination.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseIssueTypes = /* @__PURE__ */ (() => { class BaseIssueTypes extends APIResource { /** * Lists all available issue types in Security Center, describing categories of * security issues. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const issueTypeGetResponse of client.intel.attackSurfaceReport.issueTypes.get( * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } * ``` */ get(params, options) { const { account_id } = params; return this._client.getAPIList(path `/accounts/${account_id}/intel/attack-surface-report/issue-types`, (SinglePage), options); } } BaseIssueTypes._key = Object.freeze([ 'intel', 'attackSurfaceReport', 'issueTypes', ]); return BaseIssueTypes; })(); export class IssueTypes extends BaseIssueTypes { } //# sourceMappingURL=issue-types.mjs.map