UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

32 lines • 1.13 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 BaseLimits = /* @__PURE__ */ (() => { class BaseLimits extends APIResource { /** * Retrieves current DLP usage limits and quotas for the account, including maximum * allowed counts and current usage for custom entries, dataset cells, and document * fingerprints. * * @example * ```ts * const limits = await client.zeroTrust.dlp.limits.list({ * account_id: 'account_id', * }); * ``` */ list(params, options) { const { account_id } = params; return this._client.get(path `/accounts/${account_id}/dlp/limits`, options)._thenUnwrap((obj) => obj.result); } } BaseLimits._key = Object.freeze([ 'zeroTrust', 'dlp', 'limits', ]); return BaseLimits; })(); export class Limits extends BaseLimits { } //# sourceMappingURL=limits.mjs.map