UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

28 lines • 1.22 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 BaseReclassify = /* @__PURE__ */ (() => { class BaseReclassify extends APIResource { /** * Submits a request to reclassify an email's disposition. Use for reporting false * positives or false negatives. Optionally provide the raw EML content for * reanalysis. The reclassification is processed asynchronously. Deprecated; use * the create submissions endpoint instead. * * @deprecated */ create(investigateID, params, options) { const { account_id, ...body } = params; return this._client.post(path `/accounts/${account_id}/email-security/investigate/${investigateID}/reclassify`, { body, ...options })._thenUnwrap((obj) => obj.result); } } BaseReclassify._key = Object.freeze([ 'emailSecurity', 'investigate', 'reclassify', ]); return BaseReclassify; })(); export class Reclassify extends BaseReclassify { } //# sourceMappingURL=reclassify.mjs.map