cloudflare
Version:
The official TypeScript library for the Cloudflare API
41 lines • 1.69 kB
text/typescript
import { APIResource } from "../../../core/resource.mjs";
import { APIPromise } from "../../../core/api-promise.mjs";
import { RequestOptions } from "../../../internal/request-options.mjs";
export declare class BaseReclassify extends APIResource {
static readonly _key: readonly ['emailSecurity', 'investigate', 'reclassify'];
/**
* 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: string, params: ReclassifyCreateParams, options?: RequestOptions): APIPromise<ReclassifyCreateResponse>;
}
export declare class Reclassify extends BaseReclassify {
}
export type ReclassifyCreateResponse = unknown;
export interface ReclassifyCreateParams {
/**
* Path param: Account identifier tag.
*/
account_id: string;
/**
* Body param: The disposition the message should have.
*/
expected_disposition: 'NONE' | 'BULK' | 'MALICIOUS' | 'SPAM' | 'SPOOF' | 'SUSPICIOUS';
/**
* Body param: Base64 encoded content of the EML file.
*/
eml_content?: string;
/**
* Body param: Submission ID of the original user submission, when reclassifying an
* escalated user report.
*/
escalated_submission_id?: string;
}
export declare namespace Reclassify {
export { type ReclassifyCreateResponse as ReclassifyCreateResponse, type ReclassifyCreateParams as ReclassifyCreateParams, };
}
//# sourceMappingURL=reclassify.d.mts.map