UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

32 lines • 1.09 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../core/resource.mjs"; import { path } from "../../../internal/utils/path.mjs"; export var BaseSummary = /* @__PURE__ */ (() => { class BaseSummary extends APIResource { /** * Gets an aggregate summary of risk scores across the account, including * distribution and trends. * * @example * ```ts * const summary = * await client.zeroTrust.riskScoring.summary.get({ * account_id: 'account_id', * }); * ``` */ get(params, options) { const { account_id } = params; return this._client.get(path `/accounts/${account_id}/zt_risk_scoring/summary`, options)._thenUnwrap((obj) => obj.result); } } BaseSummary._key = Object.freeze([ 'zeroTrust', 'riskScoring', 'summary', ]); return BaseSummary; })(); export class Summary extends BaseSummary { } //# sourceMappingURL=summary.mjs.map