UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

36 lines • 1.36 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 BasePayloadLogs = /* @__PURE__ */ (() => { class BasePayloadLogs extends APIResource { /** * Enables or disables payload logging for DLP matches. When enabled, matched * content is stored for review. * * @deprecated */ update(params, options) { const { account_id, ...body } = params; return this._client.put(path `/accounts/${account_id}/dlp/payload_log`, { body, ...options })._thenUnwrap((obj) => obj.result); } /** * Gets the current payload logging configuration for DLP, showing whether matched * content is being logged. * * @deprecated */ get(params, options) { const { account_id } = params; return this._client.get(path `/accounts/${account_id}/dlp/payload_log`, options)._thenUnwrap((obj) => obj.result); } } BasePayloadLogs._key = Object.freeze([ 'zeroTrust', 'dlp', 'payloadLogs', ]); return BasePayloadLogs; })(); export class PayloadLogs extends BasePayloadLogs { } //# sourceMappingURL=payload-logs.mjs.map